So, I thought that MicroOS Kalpa would run a system update automatically, the default being every day at midnight. I have a thread going on in TW, and I showed a screenshot how Discover announces available updates.
The response was:
Once you have run transactional-update dup , reboot to the new snapshot or if the machine is powered on and the reboot service is running it will auto reboot overnight…
So I’ve been reading the docs (Portal Kalpa) and it states:
Most of the time, you should not need to use any of these commands interactively, as Kalpa has automatic system updates via the transactional-update.service systemd service.
However, yesterday evening, out of curiosity, I manually ran:
transactional-update dup
… which resulted in a 1,100 package update!! (it’s installed in a VM and I installed it about a month ago).
So the big question: is my Kalpa not running the transactional-update.service systemd service?? What should I check ?
Thanks for the quick reply … I shall run that command when I fire up Kalpa.
I would like to mention, I think I discovered the problem. I started up the System Settings app and I found this, set to Manual, so maybe that was the issue. I don’t ever remember setting that to Manual … so I changed it to Automatic
UPDATE … here’s your command
# systemctl status transactional-update.timer
● transactional-update.timer - Daily update of the system
Loaded: loaded (/usr/lib/systemd/system/transactional-update.timer; enabled; preset: enabled)
Active: active (waiting) since Wed 2023-08-16 21:52:47 CDT; 9min ago
Trigger: Thu 2023-08-17 00:32:44 CDT; 2h 30min left
Triggers: ● transactional-update.service
Docs: man:transactional-update(8)
Aug 16 21:52:47 localhost.localdomain systemd[1]: Started Daily update of the system.
Okay, I ran this (see below) … does the statement:
“unmet condition check (ConditionACPower=true)”
Does that mean it’s not running the System Update because the laptop is not plugged in and charging?
I keep it charged often - I never let it get below 40%. (remember, this is running in a VM on the laptop).
# journalctl -u transactional-update.service
Aug 03 20:45:48 localhost.localdomain systemd[1]: Update the system was skipped because of an unmet condition check (ConditionACPower=true).
-- Boot 52543d6bd4ea49129deac6afbde67c4f --
Aug 07 13:41:00 localhost.localdomain systemd[1]: Update the system was skipped because of an unmet condition check (ConditionACPower=true).
-- Boot 8fe58004871f47839037ae811a14e034 --
Aug 09 07:16:45 localhost.localdomain systemd[1]: Update the system was skipped because of an unmet condition check (ConditionACPower=true).
-- Boot 0eb5c071da534a3e8a59dedd4b67d2ad --
Aug 16 13:57:36 localhost.localdomain systemd[1]: Update the system was skipped because of an unmet condition check (ConditionACPower=true).
Well, I started up the laptop not long ago, and I just ran the timer check - and it shows it’s going to run 12 hours from now… I’m not going to get up at 2am to check on it:
# systemctl status transactional-update.timer
● transactional-update.timer - Daily update of the system
Loaded: loaded (/usr/lib/systemd/system/transactional-update.timer; enabled; preset: enabled)
Drop-In: /etc/systemd/system/transactional-update.timer.d
└─override.conf
Active: active (waiting) since Thu 2023-08-17 12:27:57 CDT; 40min ago
Trigger: Fri 2023-08-18 01:59:53 CDT; 12h left
Triggers: ● transactional-update.service
Docs: man:transactional-update(8)
Aug 17 12:27:57 localhost.localdomain systemd[1]: Started Daily update of the system.
Thanks for your last reply @sfalken … and yea, I’ve executed a ‘transactional-update dup’ yesterday, out of curiosity (and stated in my first post).
So, I guess I’m gonna have to pour over the Kalpa documentation to learn how to change the settings for the ‘automatic update’ , i.e., to change the time to check, frequency of re-checks, and turn off the ‘power cord’ requirement.
I certainly understand the want to set the time to check at midnight-2am, for servers that are running 24x7, but not a desktop
@aggie you need to copy the default /usr/lib/systemd/system/transactional-update.service and timer over to /etc/systemd/system directory and modify as required, the service to remove the condition and the timer to set how/when you want to run.