I’m having a weird issue with my server. It claims to be triggering my timers properly, but the services themselves have no logs. My timers were set up through standard NixOS options, i.e. not manually written.
Are you sure they are not triggered? For me it looks like it works it even says Triggering OnSuccess= dependencies? Maybe the exporter just prints error logs?
If you look at the dates you can see that the timer triggered many, many times, but the service only reports triggering twice. And that last service trigger was when I ran it manually
Ah, ok. Sorry I overlooked that. That is indeed strange.
Tbh, I’m not a big expert on systemd timers and I don’t have paperless running. But for my restic backups the timer logged only the start once and still triggers every day. I wonder why yours starts every day at 7:00?
Pretty sure I’m an idiot. All these timers are set to run before 07:00, but I have a home assistant automation that turns off the server between 03:00 and 07:00. I’ve changed the trigger times and hopefully that solves the issue.
No worries. Things like that happen way to often to me as well. I’m glad you found a possible reason.
And I learned something new: systemd timers just log once they are started not when they are triggered. And it was the first time for me to look at the status of my timer as well. As they worked I never had to do it before. So we both benefit from it.
PS: You could make it more resistant to timing errors if you also set Persistent=true on the timer: systemd.timer