Let's Encrypt SSL Certificate auto-renew not working

I installed the Let’s Encrypt certificate using https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/ manual.

Everything went fine, except the last step, crontab seems not to work.

crontab -l
no crontab for bitnami

sudo crontab -l
# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command
0 0 1 * * /etc/lego/renew-certificate.sh 2> /dev/null

sudo service cron reload
crontab -l
no crontab for bitnami

Hi @dynawings,

Did you add a cronjob with crontab -e?

If so, could you paste the cronjob here?

Best regards,

Michiel D’Hont


Please, click on :heart: if you think my answer was helpful

Yes, I did…
0 0 1 * * /etc/lego/renew-certificate.sh 2> /dev/null

Hi @dynawings,

Did you restart the cron service?

sudo service cron start

Best regards,

Michiel D’Hont


Please, click on :heart: if you think my answer was helpful

bitnami@ip-172-31-30-203:~$ sudo service cron start
start: Job is already running: cron
bitnami@ip-172-31-30-203:~$ sudo service cron stop
cron stop/waiting
bitnami@ip-172-31-30-203:~$ sudo service cron start
cron start/running, process 25805
bitnami@ip-172-31-30-203:~$ crontab -l
**no crontab for bitnami**

Same result.

I have the same problem on 4 servers.

Hi @dynawings,

Your cronjob seems to be running. Does running the script manually work? Could you paste the output here?

Did you run the crontab -e with sudo?

sudo crontab -e

Best regards,

Michiel D’Hont


Please, click on :heart: if you think my answer was helpful

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.