-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
letsencrypt renew cronjob gets lost every now and then #215
Comments
Fuck I meant to fix this. In a new Also, the thing that currently writes out the schedule should do the same version check, and only write if its lower than 0.23.0 (the hook was implemented in 0.23.2 but scheduled cron tasks were implemented in 0.23.0), and on versions 0.23.2 and up, trigger the Just writing this down in case you have time to fix it, I won't till the weekend. |
Same issue on my machines (dokku version updated to The cron file also gets emptied out completely (clearing out even the others entries inside), and this also happens when you add the cron-job for the first time with |
I can't think of a reason why an existing crontab entry gets removed. |
I can't find the docs now, but if I recall correctly a recent release (0.23 maybe) of Dokku changed the way cron works. I thought what I remembered reading was that if you manually maintained your crontab it would be wiped out (this is what happened for several of my non-letsencrypt cron jobs). In any case, I'm on |
The newest dokku version handles cron on it's own, and has a hook to allow injecting custom cron commands. Closes #215
This was fixed, please upgrade to 0.10.0 and rerun |
When running
According to
Edit:
|
Running |
Alright, that should be fixed now as of 0.11.0 (which also switches to |
Doesn't seem to fix it for me
|
Same here.
|
Okay now it should be fixed. We never had a symlink for the |
Update to 0.11.1 to get the fix :) |
Now it works |
Ditto, works for me now too. Do I remember correctly that, The help command shows The readme seems to more clearly show the switches as required, |
Can you open a bug for current status? |
I filed the issue here: #221 |
Description of problem
I have 2 small dokku servers running and both have lost their letsencrypt renewal cronjobs multiple times.
I have no idea why this is happening, but I experience it on two different servers running dokku version 0.23.7 on Ubuntu 18.04 and 20.04
How reproducible
Steps to Reproduce
wait
realize that certificates did not renew and cronjob is gone
Every few months I realize that certificates will expire soon and when I go check it on the server the cronjob is suddenly gone:
Actual Results
Cronjobs get lost after a while
Expected Results
Cronjobs should remain
Environment Information
2 Servers:
Ubuntu 18.04: dokku version 0.23.7
Ubuntu 20.04: dokku version 0.23.7
dokku report APP_NAME
outputThe problem does not affect an app but the global letsencrypt cronjob.
How (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
Ubuntu 18.04 server:
deb https://packagecloud.io/dokku/dokku/ubuntu/ bionic main
Ubuntu 20.04 server:
deb https://packagecloud.io/dokku/dokku/ubuntu/ focal main
Additional information
Just wanted to document this problem to see if others also experience it too.
The text was updated successfully, but these errors were encountered: