- Newest
- Most votes
- Most comments
I wasn't able to redirect the output (due to the complicated nature of the set of commands being used. It wasn't just the lego command). But I did eventually figure out that if I installed the mail utilities that cron would email me the output.
sudo apt-get install mailutils
I didn't actually realized that these tools were not installed by default or I would have done that a long time ago. Now the bitnami user is getting all sorts of useful information from cron :-)
It appears (from the message I'm getting) that renewing my certificate requires that http be enabled in the firewall (in addition to https). I did in fact turn that off at some point. So I've got that turned back on and we'll see if it renews tomorrow morning.
Hello.
Why not try redirecting the output of the command set in crontab as shown below?
/opt/bitnami/letsencrypt/lego > /tmp/cert-renew.log

OK, so that worked. My cert renewed successfully. From my point of view the two key points were (1) install mailutils so that you can get error messages from Cron and (2) http: needs to be enabled (from Lightsail home) in order to renew certs automatically.