mirror of
https://github.com/requarks/wiki.git
synced 2026-03-02 22:06:55 -05:00
migration file "2.5.1.js" failed #1962
Labels
No labels
BETA
BETA
accessibility
backlog
bug
can't replicate
contrib-easy
contrib-hard
contrib-medium
deferred
documentation
duplicate
duplicate
editors
enhancement
invalid
localization
migrate
ui
under review
v3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wiki-requarks#1962
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 @iamernie on GitHub (Sep 4, 2020).
Originally assigned to: @NGPixel on GitHub.
Describe the bug
Upgrading from Wiki.js 2.4.105 to 2.5.105 docker The following message is in the log
wiki | Loading configuration from /wiki/config.yml... OK
wiki | 2020-09-04T18:30:24.729Z [MASTER] info: =======================================
wiki | 2020-09-04T18:30:24.730Z [MASTER] info: = Wiki.js 2.5.105 =====================
wiki | 2020-09-04T18:30:24.731Z [MASTER] info: =======================================
wiki | 2020-09-04T18:30:24.731Z [MASTER] info: Initializing...
wiki | 2020-09-04T18:30:25.074Z [MASTER] info: Using database driver pg for postgres [ OK ]
wiki | 2020-09-04T18:30:25.078Z [MASTER] info: Connecting to database...
wiki | 2020-09-04T18:30:25.102Z [MASTER] info: Database Connection Successful [ OK ]
wiki | migration file "2.5.1.js" failed
wiki | migration failed with error: delete from "authentication" where "isEnabled" = $1 - update or delete on table "authentication" violates foreign key constraint "users_providerkey_foreign" on table "users"
wiki | 2020-09-04T18:30:25.134Z [MASTER] error: Database Initialization Error: delete from "authentication" where "isEnabled" = $1 - update or delete on table "authentication" violates foreign key constraint "users_providerkey_foreign" on table "users"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Database upgrades and site launches
Host Info (please complete the following information):
Additional context
@DecisionIT commented on GitHub (Sep 4, 2020):
Having the same issue on my test machine.
OS: Docker on Windows - using Ubuntu with WSL2 (test machine)
Wiki,Js Version: 2.5.105 (upgrade from 2.4.107) - docker
Database Engine: PostgreSQL 12.4 - docker
@NGPixel commented on GitHub (Sep 5, 2020):
You have some users that are using an authentication strategy that is not enabled. Can you try to either enable that strategy OR delete these users, then try the upgrade again?Disabled authentication strategies are now kept during the migration. (fixed by
8490fc1267)Can you try again using docker image
requarks/wiki:canary-2.5.108?@iamernie commented on GitHub (Sep 5, 2020):
Removed the users. Upgraded successfully. Thanks!