mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #2148] Database / Migration update failed on new docker instance #1537
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#1537
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 @rmiddle on GitHub (Jul 8, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2148
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
Fresh installation on mysql results in an error.
Nginx Proxy Manager Version
v2.9.18
To Reproduce
Steps to reproduce the behavior:
Install docker instance with a config file pointing at mysql.
From the
❯ Enabling IPV6 in hosts: /data/nginx
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info Current database version: none
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] Migrating Up...
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] auth Table created
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] user Table created
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] user_permission Table created
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] proxy_host Table created
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] redirection_host Table created
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] dead_host Table created
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] stream Table created
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] access_list Table created
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] certificate Table created
[7/8/2022] [4:03:49 AM] [Migrate ] › ℹ info [initial-schema] access_list_auth Table created
migration file "20180618015850_initial.js" failed
migration failed with error: create table
audit_log(idint unsigned not null auto_increment primary key,created_ondatetime not null,modified_ondatetime not null,user_idint unsigned not null,object_typevarchar(255) not null default '',object_idint unsigned not null default '0',actionvarchar(255) not null,metajson not null) - Connection lost: The server closed the connection.[7/8/2022] [4:03:49 AM] [Global ] › ✖ error ROLLBACK - Cannot enqueue Query after fatal error.
[7/8/2022] [4:03:50 AM] [Global ] › ✖ error connect ECONNREFUSED 172.24.0.3:3306
[7/8/2022] [4:03:51 AM] [Migrate ] › ℹ info Current database version: none
Can't take lock to run migrations: Migration table is already locked
If you are sure migrations are not running you can release the lock manually by deleting all the rows = require(migrations lock table: migrations_lock
Expected behavior
A working install.
Operating System
DietPi 64 on a RPI 4 8G. Also having the problem with Pi OS
Additional context
The template I am using has worked with prior version, it has only recently started to fail.
@github-actions[bot] commented on GitHub (Feb 14, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Mar 30, 2025):
Issue was closed due to inactivity.