mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #1442] Unable to login #1119
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#1119
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 @Marki-dev on GitHub (Sep 29, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1442
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
This is the second time it has happened to me, but i try to log into NPM ant it takes forever then (if) it lets me in, none of my proxies load, If I check the console i get this
[9/29/2021] [7:17:17 PM] [Express ] › ⚠ warning Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?Nginx Proxy Manager Version
2.9.4
To Reproduce
Steps to reproduce the behavior:
Unable to show steps for reproduction as It happens randomly
Expected behavior
I should be allowed to login and see my stuff
Screenshots
https://thykeis.gay/i/aB8QcLlKQf
Operating System
Docker on Debian 10
Additional context
@johntdavis84 commented on GitHub (Sep 30, 2021):
Does restarting the docker container help at all? I realize it’s random and hard to reproduce, but when this happened to me and I got completely locked out, restarting the container always fixed it.
@Marki-dev commented on GitHub (Sep 30, 2021):
ill try that rn, last time it happened, I restarted and then the docker container refused to start at all
@JHeat commented on GitHub (Oct 5, 2021):
+1 docker restart helps but it's less than ideal. I really only see this impacting folks that are first configuring/triaging so it becomes more apparent? either way - if I can provide you with anything to investigate. Let me know. Thanks!
@Marki-dev commented on GitHub (Oct 5, 2021):
I just updated to the latest version and re-added all streams/proxies, I’ll update this if it happens again with the latest version
@chaptergy commented on GitHub (Oct 5, 2021):
Maybe it has to do with the database not being available yet or still being set up? We'll have to wait for more detailed reports
@merrychrishna commented on GitHub (Oct 17, 2021):
its my first time installing this image and its happenig to me too but restarting the container isnt fixing it even temporarily
@merrychrishna commented on GitHub (Oct 17, 2021):
is this only a problem when installing the image in portainer? if so, whats the proper portainer configuration? maybe im missing a setting?
@merrychrishna commented on GitHub (Oct 17, 2021):
if i stop the container, i can still see the login page when i refresh.
another thing is if i start the container and open an incognito window in chrome i can not get the login page to be displayed
@merrychrishna commented on GitHub (Oct 17, 2021):
here are my logs
something about the environment variable "production". i have not even set that env variable.
@merrychrishna commented on GitHub (Oct 17, 2021):
also related, if i create the container in portainer then refresh the page, my ip and ports disappear from the container list.
@chaptergy commented on GitHub (Oct 17, 2021):
@merrychrishna You probably just don't have the database and npm in the same docker network. At least npm is not able to connect to the database container. Or maybe you gave your database container a different name and it is not resolvable under the name
db?@merrychrishna commented on GitHub (Oct 18, 2021):
@chaptergy i think youre right about it being a problem with npm. im a noob. is there a guide on setting everything up starting from installing npm on ubuntu then docker then portainer then nginx?
@chaptergy commented on GitHub (Oct 18, 2021):
NginxProxyManager (NPM) requires docker, so docker is the first thing you have to install. There is no official documentation going that much into detail, but you should be able to find some articles when searching the web. If you want to deploy NPM via portainer, you'll need to install docker and portainer first, and could then use the app templates > custom templates to paste the docker-compose file into portainer and deploy it. Nginx is already bundled in NPM, so you shouldn't have to explicitly install it.
@merrychrishna commented on GitHub (Oct 18, 2021):
@chaptergy i managed to find some help in the portainer discord. i will post my note at the end of this message. i just havent been able to check the letsencrypt certificates out yet because they are cooling down due to too many failed attempts at issueing renewing the certs. i dont know how long the cool down takes but i think i read it will take less than a week but thats not very much info that i could find about letsencrypt cooldowns.
heres my notes that got me all setup that might help someone else
login to nginx manager on port 8181
@sharkaccident commented on GitHub (Jan 13, 2022):
I am having the same issue when deploying the container through portainer in a docker swarm. I can see the log in screen but when I attempt to login with default credentials I get bad gateway error.
From monitoring the portainer logs it looks like NPM is unable to write to db.
Portainer Config
@chaptergy commented on GitHub (Jan 13, 2022):
@sharkaccident Have a look at https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1678, maybe that helps. I'm not familiar with docker swarm, could it also be that multiple instances of the same docker container try to access the database file and somehow block each other?
@sharkaccident commented on GitHub (Jan 13, 2022):
@chaptergy . Changing fstab to in include nolock:
//myserver /mymount cifs username=*,password=*,nolock,uid=1000,gid=1000worked!
@kt-solutions commented on GitHub (Feb 10, 2022):
For me it worked to have this db-image instead of the latest:
jc21/mariadb-aria:10.4.15-innodb@github-actions[bot] commented on GitHub (Mar 3, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@rightsaidfred99 commented on GitHub (Sep 29, 2024):
Still open this issue
@github-actions[bot] commented on GitHub (Apr 16, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍