[GH-ISSUE #1077] DB Connection Issues - Upgrade - 2.9.0/2.9.1 #897

Closed
opened 2026-02-26 06:34:51 +03:00 by kerem · 5 comments
Owner

Originally created by @jiriteach on GitHub (May 7, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1077

I've updated to 2.9.0 and since the update, the app is reporting is unhealthy with connection issues to the db. Existing rules are working but I cannot login to NPM.

App logs are showing - error connect ECONNREFUSED

Looks like way connection approach to the db has changed. I am using yobasystems/alpine-mariadb:latest. I will try and revert the db but I am trying to do this without loosing my existing rules.

Anyone else seeing similar issues? Have removed existing containers and re-pulled without success.

My Docker compose -
version: '3'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: always
ports:
- '80:80'
- '81:81'
- '443:443'
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "DBUSERNAME"
DB_MYSQL_PASSWORD: "DBPASSWORD"
DB_MYSQL_NAME: "DBNAME"
volumes:
- /home/pi/Docker/npm/data:/data
- /home/pi/Docker/npm/letsencrypt:/etc/letsencrypt
db:
image: 'yobasystems/alpine-mariadb:latest'
restart: always
environment:
MYSQL_ROOT_PASSWORD: ROOTPASSWORD
MYSQL_DATABASE: DBNAME
MYSQL_USER: DBUSERNAME
MYSQL_PASSWORD: DBPASSWORD
volumes:
- /home/pi/Docker/npm/data/mysql:/var/lib/mysql

Originally created by @jiriteach on GitHub (May 7, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1077 I've updated to 2.9.0 and since the update, the app is reporting is unhealthy with connection issues to the db. Existing rules are working but I cannot login to NPM. App logs are showing - error connect ECONNREFUSED Looks like way connection approach to the db has changed. I am using yobasystems/alpine-mariadb:latest. I will try and revert the db but I am trying to do this without loosing my existing rules. Anyone else seeing similar issues? Have removed existing containers and re-pulled without success. My Docker compose - _version: '3' services: app: image: 'jc21/nginx-proxy-manager:latest' restart: always ports: - '80:80' - '81:81' - '443:443' environment: DB_MYSQL_HOST: "db" DB_MYSQL_PORT: 3306 DB_MYSQL_USER: "DBUSERNAME" DB_MYSQL_PASSWORD: "DBPASSWORD" DB_MYSQL_NAME: "DBNAME" volumes: - /home/pi/Docker/npm/data:/data - /home/pi/Docker/npm/letsencrypt:/etc/letsencrypt db: image: 'yobasystems/alpine-mariadb:latest' restart: always environment: MYSQL_ROOT_PASSWORD: ROOTPASSWORD MYSQL_DATABASE: DBNAME MYSQL_USER: DBUSERNAME MYSQL_PASSWORD: DBPASSWORD volumes: - /home/pi/Docker/npm/data/mysql:/var/lib/mysql_
kerem 2026-02-26 06:34:51 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jc21 commented on GitHub (May 7, 2021):

This shouldn't be related to the 2.9.0 release, as the node packages are the same as previous releases. Though I have been wrong before.

The CI test suite also brings up a MySQL database and tests connectivity. This might be an issue with arm (I'm guessing, since you're using yobasytems?)

v.2.9.1 is out. Test with that as well?

<!-- gh-comment-id:834232058 --> @jc21 commented on GitHub (May 7, 2021): This _shouldn't_ be related to the 2.9.0 release, as the node packages are the same as previous releases. Though I have been wrong before. The CI test suite also brings up a MySQL database and tests connectivity. This _might_ be an issue with arm (I'm guessing, since you're using yobasytems?) v.2.9.1 is out. Test with that as well?
Author
Owner

@jiriteach commented on GitHub (May 7, 2021):

Found the issue - Its an issue with 2.9.0 and 2.9.1 and alpine-mariadb 10.5.9 - https://hub.docker.com/r/yobasystems/alpine-mariadb/tags?page=1&ordering=last_updated.
I reverted to 10.4.17 and no problem. Everything is working as expected again with 2.9.1 and alpine-mariadb 10.4.17. All my existing rules etc. in place.

<!-- gh-comment-id:834243646 --> @jiriteach commented on GitHub (May 7, 2021): Found the issue - Its an issue with 2.9.0 and 2.9.1 and alpine-mariadb 10.5.9 - https://hub.docker.com/r/yobasystems/alpine-mariadb/tags?page=1&ordering=last_updated. I reverted to 10.4.17 and no problem. Everything is working as expected again with 2.9.1 and alpine-mariadb 10.4.17. All my existing rules etc. in place.
Author
Owner

@henkisdabro commented on GitHub (May 8, 2021):

Thanks for this solution, however when I downgraded I ended up with errors on my side, such as:

InnoDB: Unsupported redo log format. The redo log was created with MariaDB 10.5.8.

That said, I only had one host in my setup, so I rebuilt the entire stack using the new "quick setup" format anyways to get rid of the issues and start fresh.

<!-- gh-comment-id:835070366 --> @henkisdabro commented on GitHub (May 8, 2021): Thanks for this solution, however when I downgraded I ended up with errors on my side, such as: `InnoDB: Unsupported redo log format. The redo log was created with MariaDB 10.5.8.` That said, I only had one host in my setup, so I rebuilt the entire stack using the new "quick setup" format anyways to get rid of the issues and start fresh.
Author
Owner

@jiriteach commented on GitHub (May 8, 2021):

@henkisdabro - I didnt see this but I cleared my logs before which its probably why so it created new logs.

<!-- gh-comment-id:835160202 --> @jiriteach commented on GitHub (May 8, 2021): @henkisdabro - I didnt see this but I cleared my logs before which its probably why so it created new logs.
Author
Owner

@jiriteach commented on GitHub (Jun 22, 2021):

Closing as not required anymore.

<!-- gh-comment-id:865923166 --> @jiriteach commented on GitHub (Jun 22, 2021): Closing as not required anymore.
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#897
No description provided.