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

Dashboard down upon certificate renewel #264

Open
davidye007 opened this issue Jan 17, 2025 · 2 comments
Open

Dashboard down upon certificate renewel #264

davidye007 opened this issue Jan 17, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@davidye007
Copy link
Collaborator

Certbot auto-renewed the certificate for trailtrends.outdoor.org on 1/15/2025. The expiration date for the certificate is 2/13/2025. Certbot auto-renews the certificate when there is less than 30 days before certificate expiry.

Once the certificate is renewed, the user nginx no longer has read access to the renewed certificate.

A temporary fix is manually changing the folder permission with the following command:

  1. sudo chmod 644 /etc/letsencrypt/archive/trailtrends.outdoorrd.org/*

or

  1. sudo chmod 644 /etc/letsencrypt/live/trailtrends.outdoorrd.org/*.pem

A permanent solution would allow nginx to having access to Certbot renewed certificates without manual intervention.

@davidye007 davidye007 added the bug Something isn't working label Jan 17, 2025
@davidye007 davidye007 self-assigned this Jan 17, 2025
@davidye007
Copy link
Collaborator Author

Check out Slack thread for history/background on this issue.

@davidye007
Copy link
Collaborator Author

Added chmod 644 /etc/letsencrypt/live/trailtrends.outdoorrd.org/*.pem to /etc/letsencrypt/renewal-hooks/post/start-services.sh. The post script runs once the renewal is complete. This should give the user nginx read access to the renewed certificate, and keep the dashboard running with no manual intervention.

The next expiration date is 2025-4-14, so the next auto-renewal will happen around 2024-03-14 (one month earlier). We shall keep an eye out for the next certificate renewal process.

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

1 participant