This document provides basic troubleshooting for setting up nginx-proxy-automation
on a home server. This includes the most common issues, but does not include all possible issues.
Before following these steps, be sure to understand and follow all instructions in the primary README documentation.
Start diagnosing as close to the server as possible, then move outwards.
For testing ports, here is a list of common network command line (cli) tools for use:
- Without using
nginx-proxy-automation
, run the container on the server, open the port as you normally would (i.e.-p 9000:9000
), and attempt to see if the port is available (on the server) after running. You can test if the port is open using one of the common network cli tools, or other possible tools (i.e. netstat). For example if you have exposed port 9000, runningnmap -p 9000 localhost
on the same server as the running Docker container, and it should return an open port. This tests if you may have a general issue with your docker setup. On failure, double check if you have setup any custom firewall rules or have setupufw
with Docker. - Perform the same steps as 1, but try testing the port from a different machine on the same subnet / LAN if possible. For example, running
nmap -p 9000 {SERVER-IP-ADDRESS}
should show an open connection. This tests if the server is exposing ports at all. This tests if you may have a firewall issue on the server that needs diagnosed. On failure, double check if you have setup any custom firewall rules or have setupufw
with Docker. - If you are using port forwarding on a router: Without using
nginx-proxy-automation
, run the container on the server, assuming you have successfully tested connecting to the container on another computer in the same LAN, and forward the port from the router to server's open port. Then you can runnmap -p 9000 {PUBLIC-ROUTER-IP-ADDRESS-OR-DOMAIN-NAME}
, and it will show an open connection. This will test if you have properly forwarded the port. On failure, you will need to diagnose your port forwarding rules, and may need to consult your router manual. Be sure you are not using the local IP address of your router (i.e. 192.168.1.1 is a common local IP address, and that will not work for this test).
If you are using port forwarding, it is highly recommended to connect via your own registered domain using DDNS. There is a chance your ISP will change the public address of your router. Using DDNS will ensure that the domain pointing to your router is using the latest public IP address of your router.