mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #577] Access Denied Error #485
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#485
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 @adamgreenberg07 on GitHub (Aug 25, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/577
I have been trying for days to get this working. I had started using Docker on my WIndows10 Server with no luck.
I've now moved onto a RPi3 also with no luck.
I've installed Docker on the RPi, I've created a docker-compose and config file. I've run the docker-compose up -d command.
This is the log from the app container:
Cron is enabled, launching it!,
Starting cron daemon now...,
This is the log from the DB
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
Generating dummy SSL certificate...,
Generating a RSA private key,
...............+++++,
................+++++,
writing new private key to '/data/nginx/dummykey.pem',
-----,
Complete,
❯ Enabling IPV6 in hosts: /etc/nginx/conf.d,
❯ /etc/nginx/conf.d/include/block-exploits.conf,
❯ /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf,
❯ /etc/nginx/conf.d/include/assets.conf,
❯ /etc/nginx/conf.d/include/ip_ranges.conf,
❯ /etc/nginx/conf.d/include/proxy.conf,
❯ /etc/nginx/conf.d/include/force-ssl.conf,
❯ /etc/nginx/conf.d/include/ssl-ciphers.conf,
❯ /etc/nginx/conf.d/include/resolvers.conf,
❯ /etc/nginx/conf.d/production.conf,
❯ /etc/nginx/conf.d/default.conf,
❯ Enabling IPV6 in hosts: /data/nginx,
[8/24/2020] [11:42:28 PM] [Global ] › ✖ error ER_ACCESS_DENIED_ERROR: Access denied for user 'npm'@'pi_app_1.pi_default' (using password: YES),
[8/24/2020] [11:42:29 PM] [Global ] › ✖ error ER_ACCESS_DENIED_ERROR: Access denied for user 'npm'@'pi_app_1.pi_default' (using password: YES),
[8/24/2020] [11:42:30 PM] [Global ] › ✖ error ER_ACCESS_DENIED_ERROR: Access denied for user 'npm'@'pi_app_1.pi_default' (using password: YES),
[8/24/2020] [11:42:31 PM] [Global ] › ✖ error ER_ACCESS_DENIED_ERROR: Access denied for user 'npm'@'pi_app_1.pi_default' (using password: YES),
[8/24/2020] [11:42:32 PM] [Global ] › ✖ error ER_ACCESS_DENIED_ERROR: Access denied for user 'npm'@'pi_app_1.pi_default' (using password: YES),
[8/24/2020] [11:42:33 PM] [Global ] › ✖ error ER_ACCESS_DENIED_ERROR: Access denied for user 'npm'@'pi_app_1.pi_default' (using password: YES),
[8/24/2020] [11:42:34 PM] [Global ] › ✖ error ER_ACCESS_DENIED_ERROR: Access denied for user 'npm'@'pi_app_1.pi_default' (using password: YES),
My docker-compose file: You'll notice that I've changed the db image and the MARIADB from MYSQL in the bottom part of the file. I had the same problem being unable to get this working even with the original db and MYSQL language. This change was based on reading about what others have tried.
version: "3"
services:
app:
image: jc21/nginx-proxy-manager:2
restart: always
ports:
# Public HTTP Port:
- '80:80'
# Public HTTPS Port:
- '443:443'
# Admin Web Port:
- '81:81'
environment:
- TZ:America/New_York
volumes:
# Make sure this config.json file exists as per instructions above:
- ./config.json:/app/config/production.json
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
depends_on:
- db
db:
image: webhippie/mariadb:latest
restart: always
environment:
MARIADB_ROOT_PASSWORD: 'npm'
MARIADB_DATABASE: 'npm'
MARIADB_USER: 'npm'
MARIADB_PASSWORD: 'npm'
volumes:
- ./data/mysql:/var/lib/mysql
My config.json file
{
"database": {
"engine": "mysql",
"host": "db",
"name": "npm",
"user": "npm",
"password": "npm",
"port": 3306
}
}
Any suggestions?
@appinteractive commented on GitHub (Aug 29, 2020):
SAME ISSUE HERE! @adamgreenberg07 could you fix it already?
@adamgreenberg07 commented on GitHub (Aug 29, 2020):
No luck. I'm using an nginx proxy manager docker from jlesage right now. Based on the same nginx proxy manager
@appinteractive commented on GitHub (Aug 29, 2020):
@adamgreenberg07 seems like you cant change the db passwort without explosion. So we need to create the given user on our own before starting the server... could be fixed with a startup script in the db image which would create the user if not present
@montagsmodell commented on GitHub (Sep 13, 2020):
did you find any solution? I am having the same trouble and up until now could not get it to work.
@montagsmodell commented on GitHub (Sep 13, 2020):
It finally worked for me after using the standard login credentials:
@nygage commented on GitHub (Jan 27, 2021):
Same issue here
@appinteractive commented on GitHub (Feb 8, 2021):
Security hole or back door 🚪 as a feature? The same what Mongo db does for years, not only in their docker images. Sometimes I get the impression that projects get payed for leaving the doors wide open.
@chaptergy commented on GitHub (May 12, 2021):
This issue seems to be a mix of lots of different things. For setup on a raspberry pi please see https://github.com/jc21/nginx-proxy-manager/issues/212. If you changed the database credentials take a look at https://github.com/jc21/nginx-proxy-manager/issues/603. On other systems if you have an issue with the database, you could try a different database image.
@nexusguy59 commented on GitHub (Nov 18, 2021):
Same here and I have done everything that has been suggested here and other places and I am still getting the same thing everytime.
very frustrating.....
@montagsmodell commented on GitHub (Nov 18, 2021):
@nexusguy59 what does the log say?
@MickMorley commented on GitHub (Mar 31, 2022):
I hope this helps someone. I was getting the same error when trying to set up my Nginx Proxy Manager using docker. My MariaDB was in a separate docker (on Unraid).
The problem was, I had an "@" in my DB_MYSQL_PASSWORD variable. I changed my password to a simple string --> "password" on my database for a test. I updated the docker variable and restarted. All worked.
@cdiegosr commented on GitHub (Feb 16, 2023):
Hi!
Today I had the same problem of Bad Gateway after one update. I read and did all the indications here, my fix was:
Voilà
@Optimus1008 commented on GitHub (May 25, 2024):
Same but with a "$"! Thank you so much for leading me to the right direction!