mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1250] v2.9.5 Breaks my Setup and constantly get HHTP 502 BadGateway when I try to login #1014
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#1014
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 @tucker19 on GitHub (Jul 20, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1250
Overnight Watchtower upgraded me from 2.9.4 to 2.9.5 and starting seeing container marked as Unhealthy within Portainarr. I see under health checks this error
parse error: Invalid numeric literal at line 1, column 7 NOT OKand within my logs I just see these errors@chaptergy commented on GitHub (Jul 20, 2021):
See https://github.com/jc21/nginx-proxy-manager/issues/1249. Could you check what the owner of your files is?
@tucker19 commented on GitHub (Jul 20, 2021):
The directory for
nginx-proxy-managerwhen Ils -alshowsdrwxrwxrwxand is owned by the user I am running Docker within. Same userID and groupID as I pass in within my compose@chaptergy commented on GitHub (Jul 20, 2021):
I mean the owner of the
/data/logsdirectory inside the container.But I am confused about your errors. From what I can see you are talking about three very separate issues. In the title you mention a 502 error when trying to log in, which sounds like a database issue where the database is not available.
Then there is the unhealty information, which I can't exactly say what causes the issue, if the database is unavailable it could be because of that.
The last thing is the logrotate not working, but this is not a breaking error at all, just a minor inconvenience. I was just talking about that last issue when asking about the owner of the folders.
Here's what you could check about the first two errors:
/api, e.g.http://domain.com:81/apiand see what that returns.@PlasmatikSteak commented on GitHub (Jul 22, 2021):
When I navigate to
http://domain.com:81/apii am greeted with a502 Bad GatewaymessageOnly the npm_app_1 is marked as unhealthy.
@chaptergy commented on GitHub (Jul 22, 2021):
Hm, maybe it is related to the logrotate. Could one of you please try the following:
docker exec -ti <CONTAINER_ID> bashor portainerapt update && apt install nano -ysetup.jsfile by runningnano /app/setup.jsSee if that solves the problem.
@PlasmatikSteak commented on GitHub (Jul 22, 2021):
That did it!
The api does not return
502 Bad Gatewayand the container is now marked as healthy :DThank you so much!
@tucker19 commented on GitHub (Jul 22, 2021):
I will try this as well when I get some downtime from work. Crazy few days.
@tucker19 commented on GitHub (Jul 22, 2021):
I can confirm this fixes it on my Docker as well but I am seeing these messages now in Portainer
I do have my ports mapped to
981:81and then I try and do a<IP>:981/apiit will redirect to<IP>:81/apiand give me a HTTP 302. I still get the Bad Gateway when I just try and log in with the defaultadmin@example.comand this is the initially setup of a new container.@chaptergy commented on GitHub (Jul 22, 2021):
Your remaining issue is definitely a database issue. The database does not respond. You need to check why your database is not running.
@tucker19 commented on GitHub (Jul 22, 2021):
Okay, thanks for that info. I suspected that.
@tucker19 commented on GitHub (Jul 22, 2021):
Found my errors in db. I have confirmed all my stuff is working now. Thank you for all the help.