Hi!
Running FreeNAS-11.3-U2. I have a cron job set up to refresh my certs when it needs to, the script runs every week but only actually refreshes the scripts then needed. I also have scripts that shares the certs with Nextcloud and qBittorrent (both running in jails) then removes the old certs and sets the newest as active.
The cron job runs the command "/root/.acme.sh/acme.sh --cron" as root, and i get this back this if i have "Hide standard output" unset:
[Sat Oct 24 03:09:54 CEST 2020] ===Starting cron===
[Sat Oct 24 03:09:54 CEST 2020] ===End cron===
It does not refresh the certificates, and every 2,5 months i instead get a reminder in the mail that my cert is about to run out. Same when i run "/root/.acme.sh/acme.sh --cron --force" which is supposed to force a renew no matter how recent the certificate is, i get the same kind of standard output back but no errors and neither actually refreshes the certs.
If i on the other hand ssh into my FreeNAS server and run that same commands from there, both work without problems. I have no idea why it refuses to work as a cron job. Am i missing something obvious here? The other scripts are working.
Running FreeNAS-11.3-U2. I have a cron job set up to refresh my certs when it needs to, the script runs every week but only actually refreshes the scripts then needed. I also have scripts that shares the certs with Nextcloud and qBittorrent (both running in jails) then removes the old certs and sets the newest as active.
The cron job runs the command "/root/.acme.sh/acme.sh --cron" as root, and i get this back this if i have "Hide standard output" unset:
[Sat Oct 24 03:09:54 CEST 2020] ===Starting cron===
[Sat Oct 24 03:09:54 CEST 2020] ===End cron===
It does not refresh the certificates, and every 2,5 months i instead get a reminder in the mail that my cert is about to run out. Same when i run "/root/.acme.sh/acme.sh --cron --force" which is supposed to force a renew no matter how recent the certificate is, i get the same kind of standard output back but no errors and neither actually refreshes the certs.
If i on the other hand ssh into my FreeNAS server and run that same commands from there, both work without problems. I have no idea why it refuses to work as a cron job. Am i missing something obvious here? The other scripts are working.