[GH-ISSUE #1744] 504 error with Chrome, Edge, Opera No error with Firefox, Brave or app #1299

Closed
opened 2026-02-26 06:36:37 +03:00 by kerem · 3 comments
Owner

Originally created by @Philmo67 on GitHub (Jan 10, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1744

Discussed in https://github.com/jc21/nginx-proxy-manager/discussions/1637

Originally posted by Philmo67 December 7, 2021
Hello,
I have a confusing problem: redirects to my services only work when using Firefox, or the dedicated Android apps (in LAN, WLAN and WAN, so the network/firewall configuration can be considered correct). I can't connect with Chrome or Edge, I get a 504 error.
I've purged the caches, including HSTS.
Latest docker image.

The services are set up as follows:

{
  "id": 1,
  "created_on": "2021-08-23 23:48:41",
  "modified_on": "2021-11-29 12:24:09",
  "owner_user_id": 1,
  "domain_names": [
    "service.domain.org"
  ],
  "forward_host": "192.168.1.20",
  "forward_port": 80,
  "access_list_id": 0,
  "certificate_id": 19,
  "ssl_forced": true,
  "caching_enabled": false,
  "block_exploits": true,
  "advanced_config": "",
  "meta": {
    "letsencrypt_agree": false,
    "dns_challenge": false
  },
  "allow_websocket_upgrade": true,
  "http2_support": false,
  "forward_scheme": "http",
  "enabled": 1,
  "locations": [],
  "hsts_enabled": false,
  "hsts_subdomains": false
}

Error log shows :
2021/12/07 21:40:31 [error] 13228#13228: *114081 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.2, server: service.domain.org, request: "GET / HTTP/2.0", upstream: "http://192.168.1.20:80/", host: "service.domain.org"

Access log shows :
[07/Dec/2021:21:39:40 +0000] - - 499 - GET https service.domain.org "/" [Client 192.168.1.2] [Length 0] [Gzip -] [Sent-to 192.168.1.20] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43" "-" [07/Dec/2021:21:40:31 +0000] - 502 502 - GET https service.domain.org "/" [Client 192.168.1.2] [Length 556] [Gzip -] [Sent-to 192.168.1.20] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43" "-" [07/Dec/2021:21:41:23 +0000] - 502 502 - GET https service.domain.org "/favicon.ico" [Client 192.168.1.2] [Length 556] [Gzip -] [Sent-to 192.168.1.20] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43" "https://service.domain.org/"

I tested using Brave and services work fine, however, no success using Opera.

So the same services are OK using Firefox and Brave but sending a 504 error using Chrome, Edge and Opera ...

Where to start investigating?

Originally created by @Philmo67 on GitHub (Jan 10, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1744 ### Discussed in https://github.com/jc21/nginx-proxy-manager/discussions/1637 <div type='discussions-op-text'> <sup>Originally posted by **Philmo67** December 7, 2021</sup> Hello, I have a confusing problem: redirects to my services only work when using Firefox, or the dedicated Android apps (in LAN, WLAN and WAN, so the network/firewall configuration can be considered correct). I can't connect with Chrome or Edge, I get a 504 error. I've purged the caches, including HSTS. Latest docker image. The services are set up as follows: ``` { "id": 1, "created_on": "2021-08-23 23:48:41", "modified_on": "2021-11-29 12:24:09", "owner_user_id": 1, "domain_names": [ "service.domain.org" ], "forward_host": "192.168.1.20", "forward_port": 80, "access_list_id": 0, "certificate_id": 19, "ssl_forced": true, "caching_enabled": false, "block_exploits": true, "advanced_config": "", "meta": { "letsencrypt_agree": false, "dns_challenge": false }, "allow_websocket_upgrade": true, "http2_support": false, "forward_scheme": "http", "enabled": 1, "locations": [], "hsts_enabled": false, "hsts_subdomains": false } ``` Error log shows : `2021/12/07 21:40:31 [error] 13228#13228: *114081 upstream prematurely closed connection while reading response header from upstream, client: 192.168.1.2, server: service.domain.org, request: "GET / HTTP/2.0", upstream: "http://192.168.1.20:80/", host: "service.domain.org"` Access log shows : `[07/Dec/2021:21:39:40 +0000] - - 499 - GET https service.domain.org "/" [Client 192.168.1.2] [Length 0] [Gzip -] [Sent-to 192.168.1.20] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43" "-" [07/Dec/2021:21:40:31 +0000] - 502 502 - GET https service.domain.org "/" [Client 192.168.1.2] [Length 556] [Gzip -] [Sent-to 192.168.1.20] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43" "-" [07/Dec/2021:21:41:23 +0000] - 502 502 - GET https service.domain.org "/favicon.ico" [Client 192.168.1.2] [Length 556] [Gzip -] [Sent-to 192.168.1.20] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43" "https://service.domain.org/"` I tested using Brave and services work fine, however, no success using Opera. So the same services are OK using Firefox and Brave but sending a 504 error using Chrome, Edge and Opera ... Where to start investigating?</div>
kerem 2026-02-26 06:36:37 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@Philmo67 commented on GitHub (Mar 23, 2022):

What tools do you use to see what is going on ?
What do Chrome, Edge or Opera have in common that could cause timeout/bad gateway error when establishing connection (that Firefox, Brave or an android app do not have) ?

<!-- gh-comment-id:1076183936 --> @Philmo67 commented on GitHub (Mar 23, 2022): What tools do you use to see what is going on ? What do Chrome, Edge or Opera have in common that could cause timeout/bad gateway error when establishing connection (that Firefox, Brave or an android app do not have) ?
Author
Owner

@github-actions[bot] commented on GitHub (Feb 27, 2024):

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

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

@github-actions[bot] commented on GitHub (Apr 12, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2798385490 --> @github-actions[bot] commented on GitHub (Apr 12, 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#1299
No description provided.