NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.67k stars 2.64k forks source link

ER_HOST_NOT_PRIVILEGED Encountered Following docker-compose Tutorial #3656

Open w41g87 opened 7 months ago

w41g87 commented 7 months ago

Using the docker-compose.yml file provided in the tutorial documentation yields ER_HOST_NOT_PRIVILEGED error in log

Nginx Proxy Manager Version v2.11.1

To Reproduce Steps to reproduce the behavior:

  1. Go to tutorial
  2. Copy the docker-compose.yml file and save it locally
  3. Run docker-compose up
  4. Run docker-compose logs

Expected behavior The application connects to the database with no error.

Screenshots

image image

Operating System Debian 12

Additional context Also results in Bad Gateway error when attempting to login to the webUI.

sias32 commented 7 months ago

Try using docker compose up -d instead of docker-compose up -d

sias32 commented 7 months ago

And remove the version: "3" line in your docker-compose.yml or replace to version: "3.8"

w41g87 commented 7 months ago

Try using docker compose up -d instead of docker-compose up -d

And remove the version: "3" line in your docker-compose.yml or replace to version: "3.8"

Making these two modifications results in the same output

BiasedKiwi commented 6 months ago

Same behavior on Ubuntu 22.04. Any solutions?

V01ee commented 6 months ago

I was getting the same error while running docker-compose up, so I just docker-compose down and retry using sudo this time and I got no more the ER_HOST_NOT_PRIVILEGED error.

vintalie commented 3 months ago

I found this tutorial strange because it is citing the host in 'service: app:' but it is not defining a 'container_name:'db'', in 'service: db:', maybe this will work

  db:
    image: 'jc21/mariadb-aria:latest'
    container_name: db
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: 'npm'
      MYSQL_DATABASE: 'npm'
      MYSQL_USER: 'npm'
      MYSQL_PASSWORD: 'npm'
      MARIADB_AUTO_UPGRADE: '1'
    volumes:
      - ./mysql:/var/lib/mysql

And where is the port to expose the database? I don't know how mariaDb works, but that's also strange maybe adding expose: - '3306 will help