Skip to content
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

Crontab for cert renewal does not work #27

Open
BenjaminPelletier opened this issue May 18, 2023 · 1 comment
Open

Crontab for cert renewal does not work #27

BenjaminPelletier opened this issue May 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@BenjaminPelletier
Copy link
Member

The crontab entry created by deploy_tool for prod is:

0 */12 * * * python3 /rw/app/deploy_tool.py prod renew_certs >> /rw/mount/cert_renewals.log 2>&1

However, the cert_renewals.log is filled with:

2023-05-18T00:00:01.874321 Starting cert renewal check...
2023-05-18T00:00:01.874438   RUN git log -n 1
fatal: not a git repository (or any of the parent directories): .git

ERROR: Return code 128

Probably the working folder needs to be changed.

@hcooper
Copy link
Contributor

hcooper commented Jul 19, 2023

The fix for this is just to cd /rw/app; ./deploy_tool.py.....

However #52 negates the need for this at all, since certbot can do auto-renewal from inside the container by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants