mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1098] bad gateway Login to your account #906
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#906
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 @salgari on GitHub (May 15, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1098
hola, he instalado mariadb configurado en configuration.yaml (recorder:

db_url: mysql://homeassistant:password@core-mariadb/homeassistant?charset=utf8mb4, he abierto los puertor 80 y 443, he instalado ngnix, pero cuando intento ingresar me da error error bad gateway, ¿alguna solución?, gracias
@salgari commented on GitHub (May 15, 2021):
o se esto ayuda
2021/05/15 07:25:23 [error] 574#574: *3588 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.226, server: nginxproxymanager, request: "GET /api/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.1.226:81", referrer: "http://192.168.1.226:81/"
@netstx commented on GitHub (May 21, 2021):
I have the same issue after upgrading to 2.9.3, looked at the logs, but haven't figured it out yet
@salgari commented on GitHub (May 21, 2021):
. I have enabled on the router nat loopback. Thanks
El vie., 21 may. 2021 3:43, Rafael @.***> escribió:
@jc21 commented on GitHub (May 21, 2021):
docker logs name_of_npm_containerand look for obvious problems.
@netstx commented on GitHub (May 21, 2021):
@jc21 i'm running npm on a alpine linux LXC container (inside proxmox), I was digging on /var/log, but didn't find anything. have you seen this error before?
@salgari commented on GitHub (May 21, 2021):
I'm sorry, I don't know what it can be
El vie., 21 may. 2021 14:59, Rafael @.***> escribió:
@VeteraNovis commented on GitHub (May 28, 2021):
I'm having the same issue. It seems to be a problem connecting to the database
error getaddrinfo ENOTFOUND db@NyxcAdmin commented on GitHub (Jun 4, 2021):
@Callum-W Exact same issue here. Any luck on your end?
When I visit jc21/nginx-proxy-manager:latest in the browser on port 81, I see "Bad Gateway" when attempting to login via admin. My log returns the same error you mentioned.
I am on a MacOS with the latest update. I am a noob and cannot describe my environment in further detail.
@NathanPeake commented on GitHub (Jun 6, 2021):
fresh install and same issue
@NathanPeake commented on GitHub (Jun 7, 2021):
ok so I have tried multiple versions and have the same error, so I dont think its to do with this version and more to do with the db
@StevenJonSmith commented on GitHub (Jun 9, 2021):
I too am having this issue
@VeteraNovis commented on GitHub (Jun 12, 2021):
I made no progress and ended up moving to Traefik2 instead as my reverse proxy. It seemed much more complicated but I seem to have got it working in the end. I followed this guide for anyone interested. No matter what I tried I just couldn't get this working, either with jlsage or jc21.
@just-refresh commented on GitHub (Jun 28, 2021):
Run in the same issue.
Fix for me:
docker logs container_name- saw that the DB Connection failed, because of wrong Username and Password. Put them in a config.json.And before running it again remove all images:
docker volume pruneHope that helps someone.
@cameronetchart commented on GitHub (Jul 12, 2021):
Are you using Docker Compose v2? According to the last post of #1057, this appears to cause this issue. I'm currently trying to figure out how to fix it using v2 (because I use Portainer on arm, and that Portainer still doesn't support v3 sadly).
@simeonradivoev commented on GitHub (Sep 22, 2021):
For me, it was because the environmental variables didn't have the database port
DB_MYSQL_PORT: 3306@UbioZur commented on GitHub (Oct 27, 2021):
Same problem here.
Linux Debian 11 5.10.0-9-amd64
Docker version 20.10.10, build b485636
docker-compose version 1.25.0, build unknown
NPM docker-compose file
DATABASE docker-compose file
Error log if using the docker name:
[10/27/2021] [7:59:39 AM] [Global ] › ✖ error getaddrinfo ENOTFOUND "mariadb"Error log if using the docker ip
[10/27/2021] [8:17:49 AM] [Global ] › ✖ error getaddrinfo ENOTFOUND "172.42.0.60"Trying to access the database with adminer using mariadb or the ip works so i know the database is available and able to be connected to.
### Solution found: Removing the
'or"from the env var declaration@chaptergy commented on GitHub (Oct 27, 2021):
@UbioZur It that is all you have in your compose files the issue is that the network
proxyis unknown in that compose project. You'll net to create the network in one of the compose files with something like this:and reference it in the other file
Alternatively you can manually create the network via the docker cli and reference the network as external in both files.
@UbioZur commented on GitHub (Oct 27, 2021):
I try to keep one docker-compose file per containers. the problem was not the network (as it did work very well with adminer).
The single or double quote on the database env variable were my issue,
I just found out as they were included in the log file as 'mariadb' or "mariadb" depending how it was written in the env variable.
I will edit my previous comment to reflect the solution i found.
Probably would need to get that change on the website: https://nginxproxymanager.com/setup/#running-the-app
@chaptergy commented on GitHub (Oct 27, 2021):
Ah, yeah when you use the list syntax
the quotes are included in the value. But when you use the map syntax
as we do on the website you linked, the quotes are correctly not included in the value. Also see https://github.com/docker/compose/issues/2854.