[clug] systemctl - timer keeps cancelling, I think

jm jeffm at ghostgun.com
Wed Sep 7 05:02:48 UTC 2022


A couple of random thought. What does "journalctl -u imapsync-emails", 
or whatever the timer equivalent, is say? Can you show us the unit file? 
It sound like it may be set to only fire once. I've not used systemd 
timers, but am having my own little fight with systemd at the moment. 
(only know what I just read at 
https://wiki.archlinux.org/title/systemd/Timers )

Jeff.

On 7/9/22 13:55, Tony Lewis via linux wrote:
> Hello all,
>
> I'm pretty green with systemctl, but muddle my way through.  I'm using 
> it to manage my backups.  For one part, it's just not working.
>
> I have a service that uses imapsync to backup emails, and then calls 
> borg to push the files into my backup repository.  The timer currently 
> shows "n/a" for both NEXT and LEFT, and the timer never fires:
>
> email at host:~$ systemctl --user --all list-timers
> NEXT LEFT LAST                         PASSED              UNIT 
>                  ACTIVATES
> n/a  n/a  Sun 2022-05-08 14:45:52 AEST 4 months 0 days ago 
> imapsync-emails.timer imapsync-emails.service
>
> If I manually start the service, it work, and the interesting bit is 
> that for a while, the timer shows that it is intending to fire:
>
> email at host:~$ systemctl --user start imapsync-emails
> email at host:~$ systemctl --user --all list-timers
> NEXT                         LEFT          LAST 
>                         PASSED              UNIT 
>                  ACTIVATES
> Thu 2022-09-08 15:21:33 AEST 1 day 1h left Sun 2022-05-08 14:45:52 
> AEST 4 months 0 days ago imapsync-emails.timer imapsync-emails.service
>
> But after a while (not correlated with when the imapsync job 
> finishes), it will revert back to "n/a" and not fire.
>
> I've tried disabling and re-enabling the timer and the service, and it 
> doesn't appear to help.  The backup job appears to be exiting 
> successfully:
>
> Sep 06 09:19:16 host systemd[133305]: imapsync-emails.service: Succeeded.
>
> Any clues of what I can do?
>
> Tony
>




More information about the linux mailing list