Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete double GLOBALDESCRIPTION=1 record in DB after upgrade to 8.5.0

IT4IT Service Team
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 12, 2023

After confluence upgrade to version 8.5.0 we hit the problem described here

https://confluence.atlassian.com/confkb/after-upgrading-confluence-shows-error-occurred-during-template-rendering-contact-your-administrator-for-assistance-error-1283491784.html

 

When I want to delete the offending record  I get an error about foreign constraints.

ERROR: update or delete on table "content" violates foreign key constraint "fkwjyn6091q3l1gl7bh143ma2a" on table "content" DETAIL: Key (contentid)=(1) is still referenced from table "content". SQL state: 23503

How to delete the record/fix the problem 

1 answer

0 votes
Enrico Siefert November 7, 2023

I have the same issue.

I "worked around" this on my *test system* by temporary disabling all triggers.

alter table content disable trigger ALL;

delete from content where contentid = 1;

alter table content enable trigger ALL

 

(!) This is usually a very bad Idea, I just did it on our test system to check if the server is able to start afterwards.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.0
TAGS
AUG Leaders

Atlassian Community Events