[GH-ISSUE #3345] Faulty proxy_host config file causes boot loop with "double read ssl 443" #2250

Closed
opened 2026-02-26 07:34:43 +03:00 by kerem · 4 comments
Owner

Originally created by @Haui1112 on GitHub (Nov 23, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3345

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
An error in one proxy host file in the advanced section causes the whole app to boot loop:

listen 443 ssl http2;
listen [::]:443 ssl http2;

even commenting them out gets reversed on reboot for some reason. I had to fully remove the lines to keep that from happening.

Nginx Proxy Manager Version
2.10.4

To Reproduce
Steps to reproduce the behavior:

  1. Go to any proxy_host, edit
  2. force ssl
  3. add listen 443 ssl http2; to advanced section
  4. restart container
  5. boot loop

Expected behavior
npm should just ignore the doubled line or at least kill the one host instead of downing the whole system behind it.

Screenshots
image
image

Operating System
Ubuntu 22.04.3 -> Docker Compose

Additional context
Fallback_error.log
2023/11/22 20:15:13 [error] 10849#10849: 92907 open() "/var/www/html/robots.txt" failed (2: No such file or directory), client: .222.253.12, server: localhost-nginx-proxy-manager, request: "GET /robots.txt HTTP/1.1", host: ""
2023/11/22 22:46:11 [warn] 11251#11251: 512 worker_connections are not enough, reusing connections
2023/11/22 22:46:11 [alert] 11251#11251: 122878 512 worker_connections are not enough while connecting to upstream, client: 127.0.0.1, server: localhost-nginx-proxy-manager, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:80/favicon.ico", host: "
"
2023/11/22 22:53:25 [error] 11251#11251: 123929 open() "/var/www/html/.env" failed (2: No such file or directory), client: .236.231.176, server: localhost-nginx-proxy-manager, request: "GET /.env HTTP/1.1", host: ""
2023/11/22 23:27:08 [error] 11392#11392: 128790 open() "/var/www/html/.env" failed (2: No such file or directory), client: .16.38.88, server: localhost-nginx-proxy-manager, request: "GET /.env HTTP/1.1", host: ""
2023/11/22 23:39:22 [warn] 11392#11392: 512 worker_connections are not enough, reusing connections
2023/11/22 23:39:22 [alert] 11392#11392: 512 worker_connections are not enough
2023/11/22 23:39:22 [error] 11393#11393: 131593 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: localhost-nginx-proxy-manager, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:80/favicon.ico", host: "
"
2023/11/23 01:06:19 [error] 11607#11607: 145973 open() "/var/www/html/robots.txt" failed (2: No such file or directory), client: 35.217.99.157, server: localhost-nginx-proxy-manager, request: "GET /robots.txt HTTP/1.1", host: "federation.matrix.
.com"
2023/11/23 01:41:35 [error] 11699#11699: 150478 "/var/www/html/HNAP1/index.html" is not found (2: No such file or directory), client: 94.228.162.87, server: localhost-nginx-proxy-manager, request: "POST /HNAP1/ HTTP/1.1", host: "
*:80"
2023/11/23 02:00:01 [alert] 10157#10157: *1688 open socket #49 left in connection 22
2023/11/23 02:00:01 [alert] 10157#10157: *1686 open socket #44 left in connection 47
2023/11/23 02:00:01 [alert] 10157#10157: aborting
2023/11/23 02:00:04 [alert] 10111#10111: worker process 10157 exited on signal 9

Originally created by @Haui1112 on GitHub (Nov 23, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3345 **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** An error in one proxy host file in the advanced section causes the whole app to boot loop: listen 443 ssl http2; listen [::]:443 ssl http2; even commenting them out gets reversed on reboot for some reason. I had to fully remove the lines to keep that from happening. **Nginx Proxy Manager Version** 2.10.4 **To Reproduce** Steps to reproduce the behavior: 1. Go to any proxy_host, edit 3. force ssl 4. add **listen 443 ssl http2;** to advanced section 5. restart container 6. boot loop **Expected behavior** npm should just ignore the doubled line or at least kill the one host instead of downing the whole system behind it. **Screenshots** ![image](https://github.com/NginxProxyManager/nginx-proxy-manager/assets/109665179/1782cc0b-13fb-4eb6-8780-1381ec00e117) ![image](https://github.com/NginxProxyManager/nginx-proxy-manager/assets/109665179/f7f40fbe-9c85-40d7-9953-21500c3f956e) **Operating System** Ubuntu 22.04.3 -> Docker Compose **Additional context** Fallback_error.log 2023/11/22 20:15:13 [error] 10849#10849: *92907 open() "/var/www/html/robots.txt" failed (2: No such file or directory), client: ***.222.253.12, server: localhost-nginx-proxy-manager, request: "GET /robots.txt HTTP/1.1", host: "***" 2023/11/22 22:46:11 [warn] 11251#11251: 512 worker_connections are not enough, reusing connections 2023/11/22 22:46:11 [alert] 11251#11251: *122878 512 worker_connections are not enough while connecting to upstream, client: 127.0.0.1, server: localhost-nginx-proxy-manager, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:80/favicon.ico", host: "***" 2023/11/22 22:53:25 [error] 11251#11251: *123929 open() "/var/www/html/.env" failed (2: No such file or directory), client: ***.236.231.176, server: localhost-nginx-proxy-manager, request: "GET /.env HTTP/1.1", host: "***" 2023/11/22 23:27:08 [error] 11392#11392: *128790 open() "/var/www/html/.env" failed (2: No such file or directory), client: ***.16.38.88, server: localhost-nginx-proxy-manager, request: "GET /.env HTTP/1.1", host: "***" 2023/11/22 23:39:22 [warn] 11392#11392: 512 worker_connections are not enough, reusing connections 2023/11/22 23:39:22 [alert] 11392#11392: 512 worker_connections are not enough 2023/11/22 23:39:22 [error] 11393#11393: *131593 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: localhost-nginx-proxy-manager, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:80/favicon.ico", host: "***" 2023/11/23 01:06:19 [error] 11607#11607: *145973 open() "/var/www/html/robots.txt" failed (2: No such file or directory), client: 35.217.99.157, server: localhost-nginx-proxy-manager, request: "GET /robots.txt HTTP/1.1", host: "federation.matrix.***.com" 2023/11/23 01:41:35 [error] 11699#11699: *150478 "/var/www/html/HNAP1/index.html" is not found (2: No such file or directory), client: 94.228.162.87, server: localhost-nginx-proxy-manager, request: "POST /HNAP1/ HTTP/1.1", host: "***:80" 2023/11/23 02:00:01 [alert] 10157#10157: *1688 open socket #49 left in connection 22 2023/11/23 02:00:01 [alert] 10157#10157: *1686 open socket #44 left in connection 47 2023/11/23 02:00:01 [alert] 10157#10157: aborting 2023/11/23 02:00:04 [alert] 10111#10111: worker process 10157 exited on signal 9
kerem 2026-02-26 07:34:43 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner
<!-- gh-comment-id:1879699296 --> @Geczy commented on GitHub (Jan 6, 2024): https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2388#issuecomment-1807353881 https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1912
Author
Owner

@redtripleAAA commented on GitHub (Feb 29, 2024):

Getting the same issue here

2024/02/29 05:27:44 [alert] 255#255: *3618 512 worker_connections are not enough while connecting to upstream, client: 127.0.0.1, server: localhost-nginx-proxy-manager, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:80/favicon.ico", host: "domain", referrer: "http://domain/"

<!-- gh-comment-id:1970462013 --> @redtripleAAA commented on GitHub (Feb 29, 2024): Getting the same issue here `2024/02/29 05:27:44 [alert] 255#255: *3618 512 worker_connections are not enough while connecting to upstream, client: 127.0.0.1, server: localhost-nginx-proxy-manager, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:80/favicon.ico", host: "domain", referrer: "http://domain/" `
Author
Owner

@github-actions[bot] commented on GitHub (Sep 8, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:2336514101 --> @github-actions[bot] commented on GitHub (Sep 8, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Sep 10, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:3272935583 --> @github-actions[bot] commented on GitHub (Sep 10, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2250
No description provided.