I see in the bnsupport bundle that you have an entry for the
bitnami user's crontab as below
1 0 * * * /etc/lego/renew-certificate.sh >> /var/log/myjob.log 2>&1
That line shouldn't be necessary as you also have the monthly entry for the root user. Could you please remove that line from the
bitnami user's crontab? Apart from that, please note that trying to run too many renewals in a short period of time may exceed the Let's Encrypt rate limits.
Apart from the above, could you please post here the content of the
/etc/lego/renew-certificate.sh script? Please replace the sensitive content with dummy values such as
email@example.com or similars.
(...) but when I put "sudo 0 0 1 * * /etc/lego/renew-certificate.sh 2> /dev/null" in the console manually, it renews fine.
Please note that
sudo 0 0 1 * * /etc/lego/renew-certificate.sh 2> /dev/null is a command that may run any random code or script in your current working directory with root privileges and that this can generate other problems. The
0 0 1 * * /etc/lego/renew-certificate.sh 2> /dev/null is the crontab syntax for "Run the
/etc/lego/renew-certificate.sh the first day of any month at 00:00 (midnight)". Instead, the command you may run to test the script is simply
Regarding the AWS agent question, I do not know what can be happening. Are you still having the error messages? Did you modify anything in your server? Did you modify anything in your server firewall rules?