mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #4317] [Bug?] Changing the docker compose file's Username and password causes a 'ER_ACCESS_DENIED_ERROR' #2777
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#2777
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 @barrrricade on GitHub (Jan 23, 2025).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4317
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
I haven't tested this extensively. But i can only get nginx proxy manager working only with the default docker-compose.yaml. I tried using a different password and
On a new installation:
If I try to change the Password/usernames I get a: Bad gateway when logging in with
admin@example.comandchangemedocker compose logs appshows 'ER_ACCESS_DENIED_ERROR'"Access denied for user 'npm'@'172.21.0.3' (using password: YES)"I have to use the default's for it to work.
Nginx Proxy Manager Version
v2.11.1
To Reproduce
Steps to reproduce the behavior:
copy the yaml file from above into
/opt/nginxproxymanagerchange the lines:
run docker compose
docker compose up -dLogin to localhost:81 and use
admin@example.comandchangeme.shows
bad gatewaydocker compose logs appshowskeep the user names and password to npm -> works
Screenshots
Operating System
Ubuntu 22.04.5 x84_64
Additional context
I've tried:
./datafolder https://www.reddit.com/r/nginxproxymanager/comments/o8fer3/er_access_denied_error/@chrisman1015 commented on GitHub (Mar 12, 2025):
I'm having the same problem. Any luck solving it or a workaround?
@lordmofisto commented on GitHub (Mar 23, 2025):
I was having the same issue.
I narrowed it down to an illegal character in my password for my npm user.
When I originally ran the docker compose, I'm not sure how it set the password but it skipped the portion before the illegal character thus the loaded password from the .env file wouldn't match.
I fixed it by lengthening my password and removing special characters.
I then started fresh:
sudo docker compose down -v --remove-orphansRemoved any existing directories (since my setup was fresh I wasn't worried about losing data)
sudo rm -rf data mysql letsencryptReran the docker compose
sudo docker compose up -d && sudo docker compose logs -fWorked
@github-actions[bot] commented on GitHub (Sep 25, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍