Hi, just thought I’d start a thread here about a case of: systemd “user” timer and service pairing are no longer scheduled (and thus the service hasn’t run since dec 1st apparently).
My current hypothesis is this is related to this bug (found here) but I haven’t gone digging to prove one way or another. Apparently there’s a recent commit to that bug, so perhaps I picked up some bleeding edge behavior that broke things for me.
context on my timer/service: they’ve been working for over a year without being touched, so I really don’t think there’s an error in my user units here.
expand for some debugging details and shell output here...
Dec 1st, when my timer last ran successfully, was my previous boot. Unfortunately I don’t know which nixos build that was (I’m sure there’s a way to look it up though…).
$ systemctl --user list-dependencies timers.target
timers.target
● ├─borgmatic.timer
● └─logrotate.timer
$ systemctl --all --user list-timers borgmatic.timer
NEXT LEFT LAST PASSED UNIT ACTIVATES
- - Fri 2023-12-01 19:49:41 CST 1 week 3 days ago borgmatic.timer borgmatic.service
1 timers listed.
$ systemctl --user status borgmatic.service
● borgmatic.service - borgmatic backup
Loaded: loaded (/home/myuser/.config/systemd/user/borgmatic.service; linked; preset: enabled)
Active: activating (start) since Fri 2023-12-01 19:49:41 CST; 1 week 3 days ago
TriggeredBy: ● borgmatic.timer
Main PID: 147109 (systemd-inhibit)
Tasks: 4 (limit: 38241)
Memory: 48.1M
CPU: 1min 18.719s
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/borgmatic.service
├─147109 systemd-inhibit --who=borgmatic "--why=Prevent interrupting scheduled backup" /run/current-system/sw/bin/borgmatic --syslog-verbosity 2
├─147112 /nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6/bin/python3.11 /nix/store/7djjsv3gj2j52r5cmjwx3bzvqkv5q4ga-borgmatic-1.8.1/bin/.borgmatic-wrapped --syslog-verbosity 2
├─155107 /nix/store/qp5zys77biz7imbk6yy85q5pdv7qk84j-python3-3.11.6/bin/python3.11 /nix/store/5rnsi8kx3bawizpj7k78vy075vl9lxxl-borgbackup-1.2.6/bin/.borg-wrapped compact --debug --show-rc ssh://user@borgserver.tld/./repo
└─155122 ssh -i /home/myuser/.ssh/borgkey user@borgserver.tld borg serve --debug
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO Remote: dropping DEL for id b8d2aa88cf73250d1727d7b588ae05edf8d9e104480df15dacea537196212c47 - seg 12487, iti 12490, knisi False, spe False, dins False, si []
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO Remote: dropping DEL for id f4ec914db7f3c55ac4022b7d89b1ed88900e787246fe84b21c8362b7260e40b6 - seg 12487, iti 12490, knisi False, spe False, dins False, si []
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO Remote: dropping DEL for id 3590ddbaa073a151aa3ab90a29067542b4118f72e388fcc31ddb24d505cb31f6 - seg 12487, iti 12490, knisi False, spe False, dins False, si []
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO Remote: dropping DEL for id 81c977165c1e20d3275d722f57e61049df8e1930e850366f314a96f4d848f80c - seg 12487, iti 12490, knisi False, spe False, dins False, si []
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO Remote: dropping DEL for id a93abeab04b11c71c47462ca057a4e1633c1ad7015ebd0df7e2d004a7d848b46 - seg 12487, iti 12490, knisi False, spe False, dins False, si []
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO Remote: dropping DEL for id 39714a25953f44cbc44250020ad3b26818b51c644189134bf6efd2f5c029c402 - seg 12487, iti 12490, knisi False, spe False, dins False, si []
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO Remote: dropping DEL for id fd3c21eaa1980f750d3c333e5c7876902fd8d1f8dce17bd706d30f72c1d5992d - seg 12487, iti 12490, knisi False, spe False, dins False, si []
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO Remote: dropping DEL for id 96965a79f143430db8e0f41bea40a01bd70d31a58ae88020a5868086e54f3760 - seg 12487, iti 12490, knisi False, spe False, dins False, si []
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO Remote: dropping DEL for id 9cb240c0941fab371ccb3b17f0a15cb45a3081cb6074d070dcdd4076d5b36c20 - seg 12487, iti 12490, knisi False, spe False, dins False, si []
Dec 01 20:03:22 mymachine borgmatic[147112]: INFO RemoteRepository: 4.79 kB bytes sent, 403.85 kB bytes received, 5 messages sent
$ systemctl --user status borgmatic.timer
● borgmatic.timer - Scheduler of borgmatic backups
Loaded: loaded (/home/myuser/.config/systemd/user/borgmatic.timer; enabled; preset: enabled)
Active: active (running) since Wed 2023-11-29 14:00:43 CST; 1 week 5 days ago
Trigger: n/a
Triggers: ● borgmatic.service
Nov 29 14:00:43 mymachine systemd[1450]: Started Scheduler of borgmatic backups.
Just thought I’d start this thread to keep notes in a public place in case it’s useful to someone else.