mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #1215] Bad Gateway error - Command failed: logrotate #988
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#988
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 @rutvik-rathod on GitHub (Jul 4, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1215
I have installed the nginx proxy manager using the instructions
but when I try to login the localip:81
I get a promt as
BAD gateway
@rutvik-rathod commented on GitHub (Jul 5, 2021):
@danner26 commented on GitHub (Jul 5, 2021):
Not sure if this is your issue but sometimes during startup the database is still loading/migrating which causes the frontend to report bad gateway. If you wait a few minutes it often works for me.
If that did not fix the issue, pull the logs and attach them here. If you are using docker you can use
docker psto find the container id. Then you can rundocker logs --details CONTAINER_IDOtherwise the logs reside in the normal place
@frisodubach commented on GitHub (Jul 6, 2021):
From what I've encountered, the bad gateway at login is usually from a database error. Either it's not configured correctly, or it simply doesn't work (which is common on ARM-based architecture). Doing what danner26 said will help find the exact issue though.
@simuuh commented on GitHub (Jul 11, 2021):
yes, this message is annoying, but if you wait a few more minutes to log in, the error message will disappear.
@PlasmatikSteak commented on GitHub (Jul 22, 2021):
I get the "Bad Gateway" error as well. Only just got it after upgrading to version 2.9.5.
docker logs --details CONTAINER_IDgives the below result@EvanGrote commented on GitHub (Jul 24, 2021):
Also seeing the same error. Rolling back my docker container container to version
2.9.4“resolved” the issue for me. Will follow this issue for a more permanent fix.@mrneutron42 commented on GitHub (Jul 27, 2021):
I just tried to install nginx into a Ubuntu 20.04 VM, per the instructions, and got the same Bad Gateway message.
The instructions clearly need to be updated, because they do not produce a working nginx system, as published.
To fix, I followed the advice of drewbeer:
https://github.com/jc21/nginx-proxy-manager/issues/310#issuecomment-603552819
I manually added the config.json file, and the reference to that file in the docker-compose.yaml file.
Then, I manually deleted the 2 database folders that were created on the initial failed attempts, and ran:
sudo docker-compose down
sudo docker-compose up -d
(I found that without sudo there were permission errors.)
After doing all that, I was able to log into the nginx webpage and change the email address and password.
I have not taken the next steps and added web servers.
@chaptergy commented on GitHub (Nov 5, 2021):
There used to be the issue with logrotate crashing npm but it has since been fixed. With the new suggested way of using SQLite, database errors will now also become much less likely.