Hi,
I recently had to restore one of my systems from a few months old backup. I’m trying to reapply my most recent tested configuration. The build is successful, but the activation gets stuck in an endless loop. The strange thing is that the configuration used to get activated fine before I restored the system from backup.
I’m using flakes. Nixos version 24.05. aarch64. It is a virtual private server on oracle cloud, therefore I cannot operate on the boot screen. I’m using code-server (i.e. remote vscode) and ssh to access the vps. Shortly after I run nixos-rebuild test
both code-server and ssh get disconnected, so I saved the output of nixos-rebuild to a file and force reboot the system from oracle cloud console.
This is the output:
stopping the following units: acme-finished-nextcloud.deeporange.onira.world.target, acme-fixperms.service, acme-lockfiles.service, acme-nextcloud.deeporange.onira.world.timer, audit.service, code-server.service, kmod-static-nodes.service, logrotate-checkconf.service, mount-pstore.service, network-local-commands.service, network-setup.service, nextcloud-cron.timer, nscd.service, phpfpm-nextcloud.service, phpfpm.slice, phpfpm.target, postgresql.service, redis-nextcloud.service, resolvconf.service, run-wrappers.mount, systemd-binfmt.service, systemd-bootctl.socket, systemd-creds.socket, systemd-hostnamed.socket, systemd-modules-load.service, systemd-oomd.service, systemd-oomd.socket, systemd-sysctl.service, systemd-timesyncd.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-udevd.service, systemd-update-done.service, systemd-vconsole-setup.service, systemd-zram-setup@zram0.service, var-lib-nextcloud.mount, var-lib-postgresql.mount
NOT restarting the following changed units: -.mount, getty@tty1.service, nix.mount, serial-getty@ttyAMA0.service, systemd-fsck@dev-disk-by\x2dlabel-ESP.service, systemd-journal-flush.service, systemd-logind.service, systemd-random-seed.service, systemd-remount-fs.service, systemd-update-utmp.service, systemd-user-sessions.service
activating the configuration...
removing group ‘redis-nextcloud’
removing group ‘postgres’
removing group ‘nextcloud’
removing user ‘redis-nextcloud’
removing user ‘postgres’
removing user ‘nextcloud’
setting up /etc...
removing obsolete symlink ‘/etc/systemd/user-generators’...
removing obsolete file ‘/etc/mtab’...
restarting systemd...
restarting sysinit-reactivation.target
reloading the following units: dbus.service, firewall.service, reload-systemd-vconsole-setup.service, srv.mount, var-lib-acme.mount, var-lib-nixos.mount, var-lib-systemd.mount, var-log.mount
restarting the following units: acme-deeporange.onira.world.timer, dhcpcd.service, home-manager-damscal.service, nginx.service, nix-daemon.service, persist.mount, sshd.service, swap.mount, systemd-journald.service
activating the configuration...
setting up /etc...
restarting sysinit-reactivation.target
restarting the following units: acme-deeporange.onira.world.timer, dhcpcd.service, home-manager-damscal.service, nginx.service, nix-daemon.service, persist.mount, sshd.service, swap.mount, systemd-journald.service
activating the configuration...
setting up /etc...
restarting sysinit-reactivation.target
restarting the following units: acme-deeporange.onira.world.timer, dhcpcd.service, home-manager-damscal.service, nginx.service, nix-daemon.service, persist.mount, sshd.service, swap.mount, systemd-journald.service
activating the configuration...
setting up /etc...
The last part keeps looping endlessly.
Any ideas of what might be causing this?
Thank you.