Received the error message while transferring postgres database from bitbucket version 4.14 to upgraded bitbucket version 5.5.0
Postgres transition version is from 9.4 to 9.6
Any help/guidance is highly appreciated!
Detailed error message from logs below:
Caused by: liquibase.exception.DatabaseException: ERROR: there is no unique constraint matching given keys for referenced table "stash_user" [Failed SQL: CREATE TABLE public.bb_comment (id BIGINT NOT NULL, author_id INT NOT NULL, comment_text TEXT NOT NULL, created_timestamp TIMESTAMP WITHOUT TIME ZONE NOT NULL, entity_version INT NOT NULL, thread_id BIGINT, updated_timestamp TIMESTAMP WITHOUT TIME ZONE NOT NULL, CONSTRAINT pk_bb_comment PRIMARY KEY (id), CONSTRAINT fk_bb_comment_author FOREIGN KEY (author_id) REFERENCES public.stash_user(id), CONSTRAINT fk_bb_comment_thread FOREIGN KEY (thread_id) REFERENCES public.bb_comment_thread(id) ON DELETE CASCADE)]
Thanks!
Please describe your transition process: You need to explain what you've done and where you're at.
To begin with I took a postgres dump from the old bitbucket server running postgres 9.4 which did give an error message as below:
"pg_dump: error reading large object 17526: ERROR: permission denied for large object 17526"
However, i restored the db dump to the upgraded bitbucket server with postgres 9.6 which did not throw any error while restoring.
Could this be the leading cause to the unique constraint ERROR message?
Thanks for you quick response!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm trying to establish the events:
Is this correct?
I would say the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have this exact same error on my postgres side. Was this ever resolved?
On the bb side I have no errors, only warnings regarding spring.
My ticket is:SSP-30116.
I am upgrading from 4.13 bb to 5.10.1 and postgres 9.2.23 to 10.4.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.