mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #4478] When complete the app and login, it said Bad Gateway. I don't know why it happened, please help me ASAP! #2867
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#2867
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ashtonli on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4478
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
Nginx Proxy Manager Version
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Operating System
Additional context
@jc21 commented on GitHub (Apr 10, 2025):
what's in the docker logs for the container after you attempt to login?
@PhilipColman commented on GitHub (May 22, 2025):
I am having the same issue, I have not touched ngnix proxy manager in a while today i went to add new proxy host for service I setup, I first tried logging at https://proxy.mydomain.com/login witch is how I have NPM setup to to expose it self, I put in my email and password and nothing no feedback. the page didnt reload nothing, so after trying my password again make sure it was correct and the same nothing. So open my sqlite file and did thing to reset my password as that was first though but i restarted NPM it was the same no feedback no nothing when logging in with default user and password. I went to look in the dev tools to see if could see any thing useful i found this line in console a few time
login.bundle.js?v=2.12.3:25 POST https://proxy.mydomain.com/api/tokens 502 (Bad Gateway)so then I tried going to http://myserverip:9191/login as i though it might be issues with the way being peroxided, and I tried to log in again only difference is when I clicked log in it now says bad gateway under the password like the picture above. Looking at my logs the last thing in there as about updating my ssl certs, nothing to do with the failed log in attempt.FYI my environment is podman using quadlets with podman-auto-update.service turned on so as of now I am version 2.13.3 dont know what the last working I used was.
Also all my proxy host seem to working fine only issue is logging into NPM
Edit:
I have stopped NPM rename the data folder started back up and I can log in with default details.
Ok so left everything else as is a copy my sql lite database from original set up to newly setup data folder, and I am getting bad gateway again has the layout of the database been changed?
After more testing it does seem to be issues with the database file as restore the old data folder and rename the database file so a new one would created, and I was able to login with default log in, all old proxy work and I can no longer manage then as they are not in the database so NPM does not know about them
@PhilipColman commented on GitHub (May 28, 2025):
Update installed a new instance of npm on docker, using PostgreSQL as database, was working added a few proxy host and the issues is back, again nothing showing in logs.
Before doing a brand new install I try to get the my proxy host form the old sqlite db in to a new sqlite db and in the PostgreSQL db and as soon as there proxy host in the in the db I would not be able to log and get the bad gateway error, so I am thinking this may have something to the database?
EDIT: ok so figure the isusse with my setup and all seems to be working now so it was DNS, that was probably also the issue on the podman setup, I the reasons I migrated from podman to docker was cause I was facing DNS issues, but would not have though not having DNS would stop me from logging in, any when when I moved my DNS from podman to docker, next time i logged into NPM i had the issues back, but the odd thing is no DNS and no proxy host login is works but it combination, of having proxy hosts setup and not have DNS that was causing the bad gateway in my situation, maybe some sort of check if the proxy host have valid certs?, but I dont know why why that would need to run on login
@github-actions[bot] commented on GitHub (Dec 13, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍