acme.sh should provide a username in crontab entry
When installing the cronjob, acme.sh generates /etc/cron.d/acme.sh with:
35 0 * * * /usr/bin/acme.sh --home "/etc/acme-sh/" --config-home "/etc/acme-sh/" --cron
When running the cronjob, an error is generated:
crond[10986]: (/usr/bin/acme.sh) ERROR (getpwnam() failed - user unknown)
crond needs to know what user to run acme.sh as. The error goes away when fixing the crontab entry:
35 0 * * * root /usr/bin/acme.sh --home "/etc/acme-sh/" --config-home "/etc/acme-sh/" --cron
what is your OS version?
Gentoo Base System release 2.8 but I suppose it applies to any vixie-cron compatible crond (I'm using cronie).
A username must be supplied when a system crontab entry is installed (/etc/crontab or /etc/cron.d/). I believe the ideal way would be to use the "crontab" executable to install a user crontab (you can define your own environment then for example), but just adding the user column to the current entry should be fine aswell.
(Linked the github man page because I don't know another way to link to specific sections)
you can either edition the crontab entry by your self, or try with virtual/cron
@Neilpang Thank you. Yes, that's how everybody is doing it. Just wanted to tell you, that cron needs to know which user to run the cronjob as.
I have the same issue on a Docker install (under Synology DSM 7).