Reference
Troubleshooting
Frequent questions, grouped by symptom. Each entry only says what to check first; the full procedure is in the linked guide. Most blocking problems start with finding the request in Logs → Access Logs and reading its Block Reason.
Installation and access
npg-proxy does not start (ports 80 and 443 in use)
nginx uses the host network, so ports 80 and 443 on the host must be free. If another service such as Synology Web Station holds them, change NGINX_HTTP_PORT and NGINX_HTTPS_PORT in .env and recreate with docker compose up -d. They must not collide with API_HOST_PORT (9080 by default). Environment variables
I lost the admin password or my 2FA device
Run docker compose exec api ./server reset-password in a shell on the server to issue a new password. Add --clear-2fa to turn off two-factor authentication as well. Admin account recovery and 2FA
Proxying the admin panel through NPG ends in a redirect loop
The admin panel (port 81) answers only over HTTPS. With the proxy host's Forward Scheme set to http, the panel redirects to HTTPS and the same request repeats. Set Forward Scheme to https and Forward Port to 81. Connecting Docker containers
The admin panel shows 429 Too Many Requests
The panel's API rate limit per IP per minute (600 by default) was exceeded. With many hosts the panel's own requests add up, so raise API_RATE_LIMIT_PER_MINUTE. Environment variables
"Your role does not allow this action"
The signed-in account's role lacks the permission for that action. An administrator has to change the role in Settings → Users or add the permission in Settings → Roles. Users, roles and SSO
Real IP and Cloudflare
Logs and blocking use Cloudflare's or a proxy's address instead of the visitor's
If Cloudflare or another proxy is in front of NPG, register it in Settings → Trusted Proxies so NPG reads the real visitor address. Geo blocking, access lists, fail2ban and rate limits all work on that address. Running behind Cloudflare
Turning on Cloudflare's proxy (orange cloud) gives 525 or 526 errors
These errors mean the TLS connection between Cloudflare and NPG does not match. Check the certificate on the NPG side and Cloudflare's SSL mode. Running behind Cloudflare
A Cloudflare Tunnel pointed at https://localhost:443 does not connect
The loopback certificate NPG uses for the tunnel is self-signed. Turn on No TLS Verify in the origin settings on the Cloudflare side. Publishing through Cloudflare Tunnel
Blocking
Legitimate requests are blocked by the WAF
Find which rule (ID) blocked the request in the log detail. If it is clearly a false positive, such as a search term that looks like SQL, turn that rule off for the host or path, or watch it in detection mode first. When the WAF blocks legitimate requests
An address in the trusted list is still blocked
Each trusted list skips different checks. Global Trusted IPs, for example, do not skip the WAF or exploit blocking by default; to skip the WAF too, turn on Trusted IPs also bypass the WAF (ModSecurity). Trusted IPs, exceptions and precedence
After enabling a blocklist subscription, my LAN cannot connect
Some lists, FireHOL Level 1 among them, contain private ranges. Turn on Exclude Private IP Ranges in the subscription's Settings. Blocklist subscriptions
Geo blocking does not work
NPG knows countries only after MaxMind credentials are entered in Settings → GeoIP and the database is downloaded. Behind a proxy, trusted proxies must be set up as well. Geo and cloud blocking
Certificates
A certificate does not issue
HTTP-01 needs the server's port 80 to be reachable from the internet, and wildcard certificates work only with DNS-01. Check the error in Certificates → Issuance/Renewal History. When a certificate won't issue
Proxy behaviour
Large uploads fail
The request body size limit (100m by default) may be exceeded. Raise Max Body Size in Settings → Global Settings → HTTP, or on the proxy host's Performance tab. Large uploads, WebSockets and timeouts
WebSockets drop, or long requests end in a timeout
Check the proxy read timeout (60 seconds by default) and the WebSocket settings. Large uploads, WebSockets and timeouts
I picked a Docker container but the site does not load
nginx runs on the host network, so the container's IP and port must be reachable from the host. When a restarted container gets a new IP, NPG re-checks every 30 seconds and fixes the configuration. Connecting Docker containers
A proxy host shows the "Error" status
That host's configuration failed the nginx -t check and was set aside. Nginx Config Error at the top of the editor shows the cause and the tab to fix. Custom configuration on the Advanced tab is a frequent cause. Proxy hosts
Logs and disk
The logs are empty
The log screens show only what the API has read from nginx's log file and stored in the database. Check that no Collection rules apply to the host and that Logs → System Logs shows no collection errors. Reading logs and block reasons
Logs are filling the disk
Shorten log retention in Settings → Maintenance and check the raw file retention in Logs → Raw Files. Hosts with many uninteresting requests can be excluded with the access log Collection rules. Settings and maintenance, Dashboard, traffic and logs
Backups and accounts
A backup from another server will not restore
The upload limit of Upload & Restore is about 100 MB. Backups do not contain user accounts or API tokens, so recreate them after restoring. Updating and backups, Settings and maintenance
SSO sign-in does not link to my existing account
Existing accounts are linked by email address. In Settings → Users, open the account and check that its email matches the provider's. Signing in with SSO