It sounds like this might be an issue with ubuntu-release-upgrader rather than systemd. Can you please run apport-collect 2017570 from that server so that the upgrade logs are attached to this bug?
** Package changed: systemd (Ubuntu) => ubuntu-release-upgrader (Ubuntu) ** Changed in: ubuntu-release-upgrader (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/2017570 Title: After upgrading to lunar, my server suspended while I was working on a VM running on that server Status in ubuntu-release-upgrader package in Ubuntu: Incomplete Bug description: I used "do-release-upgrade" to upgrade from kinetic to lunar. After rebooting to get the new kernel running, I was working on a VM that I have running on that server in libvirtd. Suddenly it stopped responding. When I looked at the terminal with the ssh connection to the server, I saw that it had sent itself into suspend. So I looked up how to disable that, and the advice I found said to mask the suspend and similar targets. I did this, and shortly after, went to bed. When I looked again in the morning, I found that it had tried to suspend again, but since the target was masked, it didn't actually suspend. ``` elyograg@sauron:~$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target Created symlink /etc/systemd/system/sleep.target → /dev/null. Created symlink /etc/systemd/system/suspend.target → /dev/null. Created symlink /etc/systemd/system/hibernate.target → /dev/null. Created symlink /etc/systemd/system/hybrid-sleep.target → /dev/null. elyograg@sauron:~$ Broadcast message from gdm@sauron on tty1 (Sun 2023-04-23 20:55:08 MDT): The system will suspend now! elyograg@sauron:~$ ``` This server is probably best described as a beige box. It's running on a desktop motherboard in a mid-tower case. ProblemType: Bug DistroRelease: Ubuntu 23.04 Package: systemd 252.5-2ubuntu3 ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6 Uname: Linux 6.2.0-20-generic x86_64 NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair ApportVersion: 2.26.1-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: pass Date: Mon Apr 24 08:17:53 2023 InstallationDate: Installed on 2021-12-20 (489 days ago) InstallationMedia: Ubuntu-Server 20.04.3 LTS "Focal Fossa" - Release amd64 (20210824) MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M. ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.2.0-20-generic root=UUID=97201ed5-6793-4950-ba18-aa4b3a4b9a4c ro net.ifnames=0 biosdevname=0 ipv6.disable=1 elevator=none SourcePackage: systemd SystemdFailedUnits: Error: command ['systemctl', 'status', '--full', '●'] failed with exit code 4: Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?). Unit \xe2\x97\x8f.service could not be found. UpgradeStatus: Upgraded to lunar on 2023-04-24 (0 days ago) dmi.bios.date: 04/20/2010 dmi.bios.release: 8.15 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: P1.80 dmi.board.name: M3A785GXH/128M dmi.board.vendor: ASRock dmi.chassis.asset.tag: To Be Filled By O.E.M. dmi.chassis.type: 3 dmi.chassis.vendor: To Be Filled By O.E.M. dmi.chassis.version: To Be Filled By O.E.M. dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.80:bd04/20/2010:br8.15:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rnM3A785GXH/128M:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:skuToBeFilledByO.E.M.: dmi.product.family: To Be Filled By O.E.M. dmi.product.name: To Be Filled By O.E.M. dmi.product.sku: To Be Filled By O.E.M. dmi.product.version: To Be Filled By O.E.M. dmi.sys.vendor: To Be Filled By O.E.M. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2017570/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp