Script stops when run by cron #354

Closed
opened 2025-12-29 01:23:35 +01:00 by adam · 2 comments
Owner

Originally created by @oddtwelve on GitHub (Jun 1, 2018).

The script works fine when I manually execute it, however, if I put it in crontab, here's what I get in the output:

Processing example.com

  • Checking domain name(s) of existing cert... unchanged.
  • Checking expire date of existing cert...
  • Valid till Aug 12 16:29:12 2018 GMT Certificate will not expire
    (Longer than 30 days). Ignoring because renew was forced!
  • Signing domains...
  • Generating private key...
  • Generating signing request...

... and nothing else.

No logs in syslog.

I'm sure it's something in my environment, but please, help to diagnose.

It runs fine in crontab on some other servers.

Originally created by @oddtwelve on GitHub (Jun 1, 2018). The script works fine when I manually execute it, however, if I put it in crontab, here's what I get in the output: Processing example.com + Checking domain name(s) of existing cert... unchanged. + Checking expire date of existing cert... + Valid till Aug 12 16:29:12 2018 GMT Certificate will not expire (Longer than 30 days). Ignoring because renew was forced! + Signing domains... + Generating private key... + Generating signing request... ... and nothing else. No logs in syslog. I'm sure it's something in my environment, but please, help to diagnose. It runs fine in crontab on some other servers.
adam closed this issue 2025-12-29 01:23:35 +01:00
Author
Owner

@lukas2511 commented on GitHub (Jun 2, 2018):

I'm assuming you already updated to the newest version from git and tried with that?
Could you provide the output of dehydrated -v and when running dehydrated using bash -x /path/to/dehydrated [...] (ideally run somehow from inside a cronjob)

@lukas2511 commented on GitHub (Jun 2, 2018): I'm assuming you already updated to the newest version from git and tried with that? Could you provide the output of `dehydrated -v` and when running dehydrated using `bash -x /path/to/dehydrated [...]` (ideally run somehow from inside a cronjob)
Author
Owner

@oddtwelve commented on GitHub (Jul 19, 2018):

Ok, I got it working. I had no any MTA installed, so I could not see anything in syslog. The problem was with path to openssl and openssl.cnf

@oddtwelve commented on GitHub (Jul 19, 2018): Ok, I got it working. I had no any MTA installed, so I could not see anything in syslog. The problem was with path to openssl and openssl.cnf
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#354