[GH-ISSUE #682] proxy-manager unhealthy & db restarting leading to bad gateway #579

Closed
opened 2026-02-26 06:33:30 +03:00 by kerem · 1 comment
Owner

Originally created by @mlamb18 on GitHub (Nov 1, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/682

@jc21 Hello,

I have been working on this issue for days to no avail. I am working on using this but everytime I launch my docker compose I run into 2 issues.

  1. my db keeps restarting where I use yobasystems/alpine-mariadb or jc21/mariadb-aria:10.4.
  2. my proxy manager is consistently unhealthy

Current steps:

  • I have made sure the config.json is accurate in accordance with the full setup.
  • I have waited hours to see if it would resolve

Extra info:

  • I am running a simple webpage called web with the following dockerfile:

FROM ubuntu:18.04

MAINTAINER XXX

COPY index.html /var/www/html/index.html

RUN apt-get update && apt-get install -y apache2 && apt-get clean

EXPOSE 8000

CMD apachectl -D FOREGROUND

  • Here is my proxy dockerfile

FROM 'jc21/nginx-proxy-manager'

MAINTAINER XXX

  • Here is my config.json file
    {
    "database": {
    "engine": "mysql",
    "host": db,
    "name": "npm",
    "user": "npm",
    "password": "npm",
    "port": 3306
    }
    }

  • Here is my docker compose file:
    version: '3'

services:
web:
build:
context: ./webapp/
dockerfile: web
ports:

  • '8888:80'

reverse-proxy:
build:
context: ./reverse-proxy/
dockerfile: proxy
restart: always
ports:

  • '80:80'
  • '81:81'
  • '443:443'
    volumes:
  • ./config.json:/app/config/production.json
  • ./data:/data
  • ./letsencrypt:/etc/letsencrypt
    depends_on:
  • db

db:
image: yobasystems/alpine-mariadb
restart: always
ports:

  • 3306:3306
    environment:
    MYSQL_ROOT_PASSWORD: 'npm'
    MYSQL_DATABASE: 'npm'
    MYSQL_USER: 'npm'
    MYSQL_PASSWORD: 'npm'
    volumes:

  • ./data/mysql:/var/lib/mysql

  • here is my docker ps

d4f9c33d21ae web_app_reverse-proxy "/init" 7 minutes ago Up 7 minutes (unhealthy) 0.0.0.0:80-81->80-81/tcp, 0.0.0.0:443->443/tcp web_app_reverse-proxy_1
743e12c43e37 yobasystems/alpine-mariadb "/scripts/run.sh" 7 minutes ago Restarting (1) Less than a second ago web_app_db_1
329b8a367427 web_app_web "/bin/sh -c 'apachec…" 7 minutes ago Up 7 minutes 80

  • here is my db error log

2020-11-01 20:25:27 0 [Note] /usr/bin/mysqld (mysqld 10.4.12-MariaDB) starting as process 1 ...
2020-11-01 20:25:27 0 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
2020-11-01 20:25:27 0 [Note] InnoDB: Using Linux native AIO
2020-11-01 20:25:27 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-11-01 20:25:27 0 [Note] InnoDB: Uses event mutexes
2020-11-01 20:25:27 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-11-01 20:25:27 0 [Note] InnoDB: Number of pools: 1
2020-11-01 20:25:27 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-11-01 20:25:27 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts)
2020-11-01 20:25:27 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-11-01 20:25:27 0 [Note] InnoDB: Completed initialization of buffer pool
2020-11-01 20:25:27 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-11-01 20:25:27 0 [ERROR] InnoDB: Unsupported redo log format. The redo log was created with MariaDB 10.5.6.
2020-11-01 20:25:27 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-11-01 20:25:28 0 [Note] InnoDB: Starting shutdown...
2020-11-01 20:25:28 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-11-01 20:25:28 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-11-01 20:25:28 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-11-01 20:25:28 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2020-11-01 20:25:28 0 [ERROR] Aborting

Originally created by @mlamb18 on GitHub (Nov 1, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/682 @jc21 Hello, I have been working on this issue for days to no avail. I am working on using this but everytime I launch my docker compose I run into 2 issues. 1. my db keeps restarting where I use yobasystems/alpine-mariadb or jc21/mariadb-aria:10.4. 2. my proxy manager is consistently unhealthy Current steps: - I have made sure the config.json is accurate in accordance with the full setup. - I have waited hours to see if it would resolve Extra info: - I am running a simple webpage called web with the following dockerfile: FROM ubuntu:18.04 MAINTAINER XXX COPY index.html /var/www/html/index.html RUN apt-get update && apt-get install -y apache2 && apt-get clean EXPOSE 8000 CMD apachectl -D FOREGROUND - Here is my proxy dockerfile FROM 'jc21/nginx-proxy-manager' MAINTAINER XXX - Here is my config.json file { "database": { "engine": "mysql", "host": db, "name": "npm", "user": "npm", "password": "npm", "port": 3306 } } - Here is my docker compose file: version: '3' services: web: build: context: ./webapp/ dockerfile: web ports: - '8888:80' reverse-proxy: build: context: ./reverse-proxy/ dockerfile: proxy restart: always ports: - '80:80' - '81:81' - '443:443' volumes: - ./config.json:/app/config/production.json - ./data:/data - ./letsencrypt:/etc/letsencrypt depends_on: - db db: image: yobasystems/alpine-mariadb restart: always ports: - 3306:3306 environment: MYSQL_ROOT_PASSWORD: 'npm' MYSQL_DATABASE: 'npm' MYSQL_USER: 'npm' MYSQL_PASSWORD: 'npm' volumes: - ./data/mysql:/var/lib/mysql - here is my docker ps d4f9c33d21ae web_app_reverse-proxy "/init" 7 minutes ago Up 7 minutes (unhealthy) 0.0.0.0:80-81->80-81/tcp, 0.0.0.0:443->443/tcp web_app_reverse-proxy_1 743e12c43e37 yobasystems/alpine-mariadb "/scripts/run.sh" 7 minutes ago Restarting (1) Less than a second ago web_app_db_1 329b8a367427 web_app_web "/bin/sh -c 'apachec…" 7 minutes ago Up 7 minutes 80 - here is my db error log 2020-11-01 20:25:27 0 [Note] /usr/bin/mysqld (mysqld 10.4.12-MariaDB) starting as process 1 ... 2020-11-01 20:25:27 0 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive 2020-11-01 20:25:27 0 [Note] InnoDB: Using Linux native AIO 2020-11-01 20:25:27 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2020-11-01 20:25:27 0 [Note] InnoDB: Uses event mutexes 2020-11-01 20:25:27 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2020-11-01 20:25:27 0 [Note] InnoDB: Number of pools: 1 2020-11-01 20:25:27 0 [Note] InnoDB: Using SSE2 crc32 instructions 2020-11-01 20:25:27 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts) 2020-11-01 20:25:27 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 2020-11-01 20:25:27 0 [Note] InnoDB: Completed initialization of buffer pool 2020-11-01 20:25:27 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2020-11-01 20:25:27 0 [ERROR] InnoDB: Unsupported redo log format. The redo log was created with MariaDB 10.5.6. 2020-11-01 20:25:27 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error 2020-11-01 20:25:28 0 [Note] InnoDB: Starting shutdown... 2020-11-01 20:25:28 0 [ERROR] Plugin 'InnoDB' init function returned error. 2020-11-01 20:25:28 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2020-11-01 20:25:28 0 [Note] Plugin 'FEEDBACK' is disabled. 2020-11-01 20:25:28 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2020-11-01 20:25:28 0 [ERROR] Aborting
kerem 2026-02-26 06:33:30 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@anselal commented on GitHub (Jan 4, 2021):

@mlamb18 did you resolve it ? I get the same error

<!-- gh-comment-id:753774522 --> @anselal commented on GitHub (Jan 4, 2021): @mlamb18 did you resolve it ? I get the same error
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#579
No description provided.