mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #181] Startup errors #158
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#158
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 @gurumark on GitHub (Aug 3, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/181
I get the following error when starting up nginx-proxy container:
migration file "20190227065017_settings.js" failed
migration failed with error: alter table
settingadd primary keysetting_pkey(id) - ER_TOO_LONG_KEY: Specified key was too long; max key length is 1000 bytes[8/3/2019] [2:42:41 AM] [Global ] › ✖ error alter table
settingadd primary keysetting_pkey(id) - ER_TOO_LONG_KEY: Specified key was too long; max key length is 1000 bytes[8/3/2019] [2:42:42 AM] [Migrate ] › ℹ info Current database version: 20190218060101
[8/3/2019] [2:42:42 AM] [Migrate ] › ℹ info [settings] Migrating Up...
migration file "20190227065017_settings.js" failed
migration failed with error: create table
setting(idvarchar(255) not null,namevarchar(100) not null,descriptionvarchar(255) not null,valuevarchar(255) not null,metajson not null) - ER_TABLE_EXISTS_ERROR: Table 'setting' already existsIt seems like it is trying to insert a key which is too long to settings table.
@gurumark commented on GitHub (Aug 3, 2019):
To get it working again, I altered the primary key column to text. It started giving the following:
[8/3/2019] [3:09:13 AM] [Migrate ] › ℹ info Current database version: 20190218060101
[8/3/2019] [3:09:13 AM] [Migrate ] › ℹ info [settings] Migrating Up...
migration file "20190227065017_settings.js" failed
migration failed with error: create table
setting(idvarchar(255) not null,namevarchar(100) not null,descriptionvarchar(255) not null,valuevarchar(255) not null,metajson not null) - ER_TABLE_EXISTS_ERROR: Table 'setting' already exists[8/3/2019] [3:09:13 AM] [Global ] › ✖ error create table
setting(idvarchar(255) not null,namevarchar(100) not null,descriptionvarchar(255) not null,valuevarchar(255) not null,metajson not null) - ER_TABLE_EXISTS_ERROR: Table 'setting' already existsI drop the setting table then it recreates and gives the same error.
@macf0x commented on GitHub (Oct 13, 2019):
See this link. Older version of mariadb isn't supported
https://github.com/jc21/nginx-proxy-manager/issues/146#issuecomment-533845196