New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoupgrade not run when the machine doesn't run all the time #15689
Comments
So if the computer is never on during the time set for auto-upgrade, what time is appropriate for auto-upgrade? How do we pick? |
@grahamc: I think systemd has an option to start a service as soon as possible if it missed the previous timer event due to the machine being powered off. |
@grahamc: The computer is on during the set time. Let's say it boots on at 9:00 but the job is not run at 11:45 even when the computer is running since 9:00. As you can see from the systemd output above, systemd apparently doesn't want to run the timer the first day after boot for some mysterious reason. And I shutdown the computer in the evening so the job is never run. |
It started to work recently. Now the job is run already the first day after boot. |
This is happening to me. Laptop. Every time after startup the two timers (upgrade and gc) shows they never run and will run next day... configuration.nix:
|
Basically issue #75861... |
I marked this as stale due to inactivity. → More info |
Closing since we have |
Issue description
I've got the following options set in my configuration.nix:
system.autoUpgrade.enable = true;
system.autoUpgrade.dates = "11:45";
However, autoupgrade is never performed on my desktop computer that is switched on only during the day hours. systemd is not going to run the job the first day after boot:
systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
Thu 2016-05-26 02:15:00 CEST 16h left n/a n/a update-locatedb.timer update-locatedb.service
Thu 2016-05-26 08:47:33 CEST 23h left Wed 2016-05-25 08:47:33 CEST 55min ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Thu 2016-05-26 11:45:00 CEST 1 day 2h left n/a n/a nixos-upgrade.timer nixos-upgrade.service
Steps to reproduce
Set the options in configuration.nix as above and check with systemctl when the job is going to be run.
Technical details
The text was updated successfully, but these errors were encountered: