[GH-ISSUE #143] 504 Gateway Time-out #125

Closed
opened 2026-02-26 06:30:26 +03:00 by kerem · 9 comments
Owner

Originally created by @fa-ve on GitHub (May 13, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/143

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

  • If having problems with Lets Encrypt, have you made absolutely sure your site is accessible from outside of your network?

No

Describe the bug

  • A clear and concise description of what the bug is.

If I create a https proxy host I get a 504 Gateway Time-out if I request the site.

  • What version of Nginx Proxy Manager is reported on the login page?
    v2.0.13

To Reproduce
Steps to reproduce the behavior:

  1. Go to Dashboard
  2. Click on Hosts
  3. Click on Add proxy host
  4. Fill in subdomain name
  5. Select https scheme
  6. fill in ip and port
  7. select SSL
  8. request SSL cert
  9. select force ssl or deselect will result same 504 Gateway Timeout
  10. open new created site and wait for error

Expected behavior
A clear and concise description of what you expected to happen.

display the site I requested.

Screenshots
N/A

Operating System

  • running on QNAP container station.

Additional context
Add any other context about the problem here, docker version, browser version if applicable to the problem. Too much info is better than too little.

Originally created by @fa-ve on GitHub (May 13, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/143 **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 - If having problems with Lets Encrypt, have you made absolutely sure your site is accessible from outside of your network? No **Describe the bug** - A clear and concise description of what the bug is. If I create a https proxy host I get a 504 Gateway Time-out if I request the site. - What version of Nginx Proxy Manager is reported on the login page? v2.0.13 **To Reproduce** Steps to reproduce the behavior: 1. Go to Dashboard 2. Click on Hosts 3. Click on Add proxy host 4. Fill in subdomain name 5. Select https scheme 6. fill in ip and port 7. select SSL 8. request SSL cert 9. select force ssl or deselect will result same 504 Gateway Timeout 10. open new created site and wait for error **Expected behavior** A clear and concise description of what you expected to happen. display the site I requested. **Screenshots** N/A **Operating System** - running on QNAP container station. **Additional context** Add any other context about the problem here, docker version, browser version if applicable to the problem. Too much info is better than too little.
kerem 2026-02-26 06:30:26 +03:00
Author
Owner

@OhHeyAlan commented on GitHub (May 13, 2019):

Step #5, try setting it to http for the scheme.

<!-- gh-comment-id:492009476 --> @OhHeyAlan commented on GitHub (May 13, 2019): Step #5, try setting it to `http` for the scheme.
Author
Owner

@fa-ve commented on GitHub (May 14, 2019):

same for HTTP, HTTP to HTTP is working perfect.. HTTPS to HTTPS is giving this timeout..

<!-- gh-comment-id:492328739 --> @fa-ve commented on GitHub (May 14, 2019): same for HTTP, HTTP to HTTP is working perfect.. HTTPS to HTTPS is giving this timeout..
Author
Owner

@fa-ve commented on GitHub (May 14, 2019):

it's a weird issue, if I connect the server through an internal IP I get the error message. If I expose the same through my public IP it works as expected. a other internal https site is working.. so something is wrong with the destination site I expect

<!-- gh-comment-id:492376111 --> @fa-ve commented on GitHub (May 14, 2019): it's a weird issue, if I connect the server through an internal IP I get the error message. If I expose the same through my public IP it works as expected. a other internal https site is working.. so something is wrong with the destination site I expect
Author
Owner

@jc21 commented on GitHub (May 16, 2019):

The error suggests that Nginx cannot talk to your upstream server. Without knowing your network stack, this is hard to diagnose.

<!-- gh-comment-id:492879352 --> @jc21 commented on GitHub (May 16, 2019): The error suggests that Nginx cannot talk to your upstream server. Without knowing your network stack, this is hard to diagnose.
Author
Owner

@murraydb commented on GitHub (Jul 24, 2020):

Just in case anyone find this. I had this trouble with Heimdall and Tautulli.
if my server address was 192.168.3.69 - I had been using that for most items. (Sonarr, PiHole, Radarr, Plex, JellyFin etc.)

When I used that same address for either Tautulli or Heimdall I would get the 504 Gateway timeout.

My solution was to check the docker items ip in portainer ex 172.17.0.2 for Heimdall and http://172.17.0.5 for Tautulli. Also to note, use the docker internal port 80 for Heimdall in my case, though I have 740 exposed via docker.

I know this wasn't a bug in the nginx-proxy-manager project, but I figured, I would share my solution in case others find this thread via google as I did.

<!-- gh-comment-id:663334397 --> @murraydb commented on GitHub (Jul 24, 2020): Just in case anyone find this. I had this trouble with Heimdall and Tautulli. if my server address was 192.168.3.69 - I had been using that for most items. (Sonarr, PiHole, Radarr, Plex, JellyFin etc.) When I used that same address for either Tautulli or Heimdall I would get the 504 Gateway timeout. My solution was to check the docker items ip in portainer ex 172.17.0.2 for Heimdall and http://172.17.0.5 for Tautulli. Also to note, use the docker internal port 80 for Heimdall in my case, though I have 740 exposed via docker. I know this wasn't a bug in the nginx-proxy-manager project, but I figured, I would share my solution in case others find this thread via google as I did.
Author
Owner

@luminousmg commented on GitHub (Aug 7, 2020):

I had a similar issue with Digital Ocean, when using the assigned IP address of the droplet. I corrected the issue by setting up a "Floating IP" in Digital Ocean and assigned that to the droplet. Everything worked once I started using the floating IP address. (I imagine this would also occur on AWS and you would need to assign an elastic IP address to the instance.) Also this is not a bug of this project, but hopefully, this helps others who may encounter this issue. Be sure to double-check the firewall and open required ports on your instance as well.

<!-- gh-comment-id:670606237 --> @luminousmg commented on GitHub (Aug 7, 2020): I had a similar issue with Digital Ocean, when using the assigned IP address of the droplet. I corrected the issue by setting up a "Floating IP" in Digital Ocean and assigned that to the droplet. Everything worked once I started using the floating IP address. (I imagine this would also occur on AWS and you would need to assign an elastic IP address to the instance.) Also this is not a bug of this project, but hopefully, this helps others who may encounter this issue. Be sure to double-check the firewall and open required ports on your instance as well.
Author
Owner

@b4oshany commented on GitHub (Sep 6, 2020):

@luminousmg, thanks for ur comment. I landed in the same problem

<!-- gh-comment-id:687719875 --> @b4oshany commented on GitHub (Sep 6, 2020): @luminousmg, thanks for ur comment. I landed in the same problem
Author
Owner

@kimtiago commented on GitHub (Jun 14, 2022):

Thanks! This topic saved me.

<!-- gh-comment-id:1154681167 --> @kimtiago commented on GitHub (Jun 14, 2022): Thanks! This topic saved me.
Author
Owner

@dongido001 commented on GitHub (Jan 19, 2023):

OMG @luminousmg Thanks a lot! was about to give up already. Saved me on Digital ocean (It's now called reserved IP)

<!-- gh-comment-id:1397539927 --> @dongido001 commented on GitHub (Jan 19, 2023): OMG @luminousmg Thanks a lot! was about to give up already. Saved me on Digital ocean (It's now called reserved IP)
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#125
No description provided.