Project

General

Profile

Support #5503

failed to upgrade to 4.13.3

Added by Stephen Serafin almost 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
25.10.2018
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

Upgrading from 4.11.6 to 4.13.3
rccontrol from 1.17.1 to 1.19.2
vcsserver-1 from 4.11.6 to 4.13.3 works
enterprise-1 from 4.11.6 to 4.13.3 fails.
Database updates ATTEMPTING TO UPGRADE DATABASE FROM VERSION 85 TO VERSION 90
upgrade step 86 to 89 run
followed by a sqla base reset

sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) there is no unique constraint matching given keys for referenced table "repositories"
[SQL: '\nCREATE TABLE user_to_repo_branch_permissions (\n\tbranch_rule_id SERIAL NOT NULL, \n\trepository_id INTEGER NOT NULL, \n\tpermission_id INTEGER NOT NULL, \n\trule_to_perm_id INTEGER NOT NULL, \n\trule_order INTEGER NOT NULL, \n\tbranch_pattern TEXT, \n\tbranch_hash TEXT, \n\tPRIMARY KEY (branch_rule_id), \n\tFOREIGN KEY(repository_id) REFERENCES repositories (repo_id), \n\tFOREIGN KEY(permission_id) REFERENCES permissions (permission_id), \n\tFOREIGN KEY(rule_to_perm_id) REFERENCES repo_to_perm (repo_to_perm_id)\n)\n\n']
Upgrade of RhodeCode Enterprise failed.
Rolling back to previous version.

Attached is the output from the upgrade session


Files

failedupgrade.gz (6.08 KB) failedupgrade.gz Stephen Serafin, 25.10.2018 21:30
pg_indexes.gz (2.56 KB) pg_indexes.gz Stephen Serafin, 30.10.2018 15:18
rhodecode_migration.gz (2.14 KB) rhodecode_migration.gz Stephen Serafin, 30.10.2018 16:29

Also available in: Atom PDF