How to findout how finished timer/service job?

I ran this command:
certbot renew

It produced this output:
The following certificates are not due for renewal yet:
/etc/letsencrypt/live/integris.ru/fullchain.pem expires on 2024-08-14 (skipped)
No renewals were attempted

My web server is (include version):
nginx

The operating system my web server runs on is (include version):
Ubuntu 20.04.4 LTS

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
certbot 2.10.0

How to findout how finished timer/service job ?

i see at the
journalctl -xefu snap.certbot.renew.service

  • Logs begin at Mon 2022-02-28 14:20:44 MSK. --
    May 16 19:25:17 bkc.integris.ru systemd[1]: Starting Service for snap application certbot.renew...
    -- Subject: A start job for unit snap.certbot.renew.service has begun execution
    -- Defined-By: systemd
    -- Support: Enterprise open source support | Ubuntu
    --
    -- A start job for unit snap.certbot.renew.service has begun execution.
    --
    -- The job identifier is 357763.

and at the
journalctl -xefu snap.certbot.renew.timer
> -- Logs begin at Mon 2022-02-28 14:20:44 MSK. --
> May 16 12:36:32 bkc.integris.ru systemd[1]: Started Timer renew for snap application certbot.renew.
> -- Subject: A start job for unit snap.certbot.renew.timer has finished successfully
> -- Defined-By: systemd
> -- Support: http://www.ubuntu.com/support
> --
> -- A start job for unit snap.certbot.renew.timer has finished successfully.
> --
> -- The job identifier is 356876.

But does it try to renew my certificate ? By what path ? And how this try finished ?
Thanks

1 Like

Welcome @emoxam

Are you having a problem with a cert such as a connection using an expired cert?

You can see Certbot's managed certs with this command

certbot certificates

The renew command looks at all those certs and renews each one when needed. The default for Certbot is to renew a cert when it is 30 days before expiration. The renew is usually run as a systemd timer on your system. On other systems a cronjob is used.

You can also check Certbot logs at /var/log/letsencrypt for its run activity

Does this help?

4 Likes

Yes thanks.
tail -f /var/log/letsencrypt/letsencrypt.log
is enough.

2 Likes