SSL renewal is not working again, ee version 4.1.5

Hi there, before I had a topic about ssl renewal, cron job is not working and after that I’m done, the renewal is fine, until now
Old topic: Cron job for SSL renew is not working
Now, my sites
site 1: i4energy.org, 6 days left, I have to run manually, now 89 day left.
site 2: reviewsach.net, 22 days left, I’m waiting for any idea how to fix
both site, i create crontab, when I run crontab -l, it will be shown like this

Edit this file to introduce tasks to be run by cron.

Each task to run has to be defined through a single line

indicating with different fields when the task will be run

and what command to run for the task

To define the time you can provide concrete values for

minute (m), hour (h), day of month (dom), month (mon),

and day of week (dow) or use ‘*’ in these fields (for ‘any’).#

Notice that tasks will be started based on the cron’s system

daemon’s notion of time and timezones.

Output of the crontab jobs (including errors) is sent through

email to the user the crontab file belongs to (unless redirected).

For example, you can run a backup of all your user accounts

at 5 a.m every week with:

0 5 * * 1 tar -zcf /var/backups/home.tgz /home/

For more information see the manual pages of crontab(5) and cron(8)

m h dom mon dow command

SHELL=/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

0 0 * * * /usr/local/bin/ee site ssl-renew --all

To be sure, I run command “ee cron list --all”, it will be shown below
----±-------------±----------------------------------------±---------------+
| id | site_url | command | schedule |
±—±-------------±----------------------------------------±---------------+
| 1 | i4energy.org | sh -c ‘wp cron event run --due-now’ | 0 4/10 * * * * |
| 2 | host | sh -c ‘/usr/local/bin/ee site ssl-renew | @daily |
| | | --all’ | |
±—±-------------±----------------------------------------±---------------+
Like I said on the old topic, the cron job, it works before
But I don’t know why this time, it doesn’t
Normal, when the Current certificate will expire in less than 25 days, the cron job will run. But now, the site reviewsach.net has only 22 day left. So, any idea about this SSL problem now?

anyone can help me with this? it’s 5 days and no one answer? So sad

I have stopped using the cron container and instead just place that command along with the necessary path and shell lines into the main servers cron.

sudo crontab -e

Will get you into the cron editor. Add your lines as you have for the official cron service and you should be good. I have a tendency to add an additional bit of redirection to the output so that I have some logging available.

edit: tried to fix line returns
#Add value of PATH from your system inside crontab.
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

#Check every 5th day at 1am
0 1 */5 * * /usr/local/bin/ee site ssl-renew --all >> /opt/easyengine/logs/cron.log 2>&1

To this point I have never had one of these setups fail to update SSL unless there is a cloudflare or a wildcard update that requires additional DNS entries.

Thank you. I’ll add it to my site. At the moment, only 16 days left. I will check after 5 days and see if it works

It’s 5 days since the day you told me. It’s not working my friend. Now I have only 11 days left.

I would just update the certificates manaully so they are renewed and then we can work on the automations.

sudo ee site ssl-renew --all

should do the trick.

If you get any errors with the manual command, then we know the problem is NOT the automation, but something with the configuration. Most commonly are wildcard sites and/or cloudflare sites which always seems to cause extra headaches.

This command is okay. Nothing error with this command. I have to run it manually on other sites. The problem is the automation, for 100% sure
Today I checked the site reviewsach.net, at the moment, it has 89 days again. So is this from the cron job?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.