mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #1389] NPM not renewing certs automatically. Running certbot renew manually inside container however works. #1091
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1091
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kevdogg on GitHub (Sep 9, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1389
Hi I'm using current docker image: jc21/nginx-proxy-manager:latest
Version v2.7.2 is reported on the npm login page (after I worked around the problem)
I initially obtained my LE certs in Jan 2021, however they never automatically renewed. I couldn't reach the npm web interface b/c of the hsts error when trying to reach the npm website b/c the certs had expired.
The npm docker container kept running however I kept receiving errors in the docker logs like the following:
Basically the logs were littered with these types of errors.
For background I'm using dns challenge authentication through cloudflare with API (not Global) key.
I've worked with certbot before and manually logged into the container and simply ran:
and just typing this alone -- all the certificates were renewed -- which is super strange since it proves at least my authentication credentials were valid.
So investigating further the command:
/etc/letsencrypt.ini contains the following:
I'm not using a webroot challenge so I'm not sure why this is included in the ini file.
Further more the /data partition is an external mounted volume specified in my docker-compose.yml file:
Further more
--preferred-challenges "dns,http"Why is http listed as preferred-challenge?
Lastly addressing the other error:
Attempting to renew cert (npm-1) from /etc/letsencrypt/renewal/npm-1.conf produced an unexpected error: Some challenges have failed.. Skipping.The contents of npm-1.conf are the following:
npm run as docker container within a Virtualized Ubuntu 20.04 host within FreeNAS bhyve hypervisor.
Ideally I'd like certs to be renewed automatically without any manual intervention.
@chaptergy commented on GitHub (Oct 11, 2021):
The certbot config is generic, so it is always the same independent of whether you only use http challenges, only use dns challenges, both or neither.
Unfortunately the certbot console output is very limited, to find out what the actual problem is, we would need the letsencrypt log. See Unable to create or renew certificate on how to access it.
@simeonradivoev commented on GitHub (Dec 11, 2021):
I also get this, automatic reviewal fails but when I go to the Dashboard and manually update them one by one using the UI, it works without issues
@github-actions[bot] commented on GitHub (Mar 5, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Apr 17, 2025):
Issue was closed due to inactivity.