NginxProxyManager / NginxProxyManager/nginx-proxy-manager

NPM stopped working, no login, no cert refresh

Open
#4,198 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug stale
Dominant language
TypeScript
Stars
34.2k
Forks
3.9k
Avg merge
21h 12m
Merged PRs (30d)
20

Description

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
None of my SSL certs are valid furthermore I cannot login to the npm admin interface I got Bad Gateway error. Tried everything what I could see here in the issues. Downgrade back to 2.10.4 etc, nothing worked.

Nginx Proxy Manager Version
2.12.1

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Operating System
Debian

Additional context
I configured everything about 2years ago and didn't touch the system. Watchtower is upgrading the docker container automatically.

nginx-proxy-manager | [12/1/2024] [10:42:26 AM] [Global ] › ℹ info Using Sqlite: /data/database.sqlite
nginx-proxy-manager | [12/1/2024] [10:42:26 AM] [Migrate ] › ℹ info Current database version: none
nginx-proxy-manager | [12/1/2024] [10:42:26 AM] [Global ] › ⬤ debug CMD: [ -f '/etc/letsencrypt/credentials/credentials-6' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
nginx-proxy-manager | dns_cloudflare_api_token = xyz' > '/etc/letsencrypt/credentials/credentials-6' && chmod 600 '/etc/letsencrypt/credentials/credentials-6'; }
nginx-proxy-manager | [12/1/2024] [10:42:26 AM] [Certbot ] › ▶ start Installing cloudflare...
nginx-proxy-manager | [12/1/2024] [10:42:26 AM] [Global ] › ⬤ debug CMD: . /opt/certbot/bin/activate && pip install --no-cache-dir cloudflare==2.19.* acme==$(certbot --version | grep -Eo '0-9+') certbot-dns-cloudflare==$(certbot --version | grep -Eo '0-9+') && deactivate

nginx-proxy-manager | WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ffa7c99b410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/cloudflare/
nginx-proxy-manager | ERROR: Could not find a version that satisfies the requirement cloudflare==2.19.* (from versions: none)
nginx-proxy-manager | ERROR: No matching distribution found for cloudflare==2.19.*
nginx-proxy-manager |
nginx-proxy-manager | [12/1/2024] [10:46:29 AM] [Global ] › ✖ error Some plugins failed to install. Please check the logs above CommandError: Some plugins failed to install. Please check the logs above
nginx-proxy-manager | at /app/lib/certbot.js:39:14
nginx-proxy-manager | at Immediate. (/app/node_modules/batchflow/lib/batchflow.js:80:9)
nginx-proxy-manager | at process.processImmediate (node:internal/timers:483:21) {
nginx-proxy-manager | previous: undefined,
nginx-proxy-manager | code: 1,
nginx-proxy-manager | public: false
nginx-proxy-manager | }
nginx-proxy-manager | [12/1/2024] [10:46:30 AM] [Migrate ] › ℹ info Current database version: none
nginx-proxy-manager | [12/1/2024] [10:46:30 AM] [Global ] › ⬤ debug CMD: [ -f '/etc/letsencrypt/credentials/credentials-6' ] || { mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo '# Cloudflare API token
nginx-proxy-manager | dns_cloudflare_api_token = xyz' > '/etc/letsencrypt/credentials/credentials-6' && chmod 600 '/etc/letsencrypt/credentials/credentials-6'; }
nginx-proxy-manager | [12/1/2024] [10:46:30 AM] [Certbot ] › ▶ start Installing cloudflare...
nginx-proxy-manager | [12/1/2024] [10:46:30 AM] [Global ] › ⬤ debug CMD: . /opt/certbot/bin/activate && pip install --no-cache-dir cloudflare==2.19.* acme==$(certbot --version | grep -Eo '0-9+') certbot-dns-cloudflare==$(certbot --version | grep -Eo '0-9+') && deactivate

fallback_error.log:

2024/12/01 10:32:51 [error] 234#234: *339 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.11, server: nginxproxymanager, request: "POST /api/tokens HTTP/1.1", upstream: "http://127.0.0.1:3000/tokens", host: "npm.myserver.net", referrer: "https://npm.myserver.net/login"
2024/12/01 10:32:52 [error] 232#232: *342 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.11, server: nginxproxymanager, request: "POST /api/tokens HTTP/1.1", upstream: "http://127.0.0.1:3000/tokens", host: "npm.myserver.net", referrer: "https://npm.myserver.net/login"
2024/12/01 10:32:53 [error] 229#229: *345 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.11, server: nginxproxymanager, request: "POST /api/tokens HTTP/1.1", upstream: "http://127.0.0.1:3000/tokens", host: "npm.myserver.net", referrer: "https://npm.myserver.net/login"

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the failure reported at /app/lib/certbot.js and the logged pip installation command, then compare it with the Docker startup and fallback_error.log entries. Investigate why plugin installation fails during name resolution and prevents the service from accepting login requests. Done means the container starts normally, the admin login works, and certificate refresh can proceed.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, nginx, typescript
Domain
devops, infrastructure, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.