Failed to upgrade to 9.1.1

Andy December 8, 2024

I attempted to upgrade my standalone confluence instance to 9.1.1, and get this error:

`Upgrade failed. Please consult the system logs for details. You will need to fix these problems, restore your database and confluence home directory to the pre upgrade state. Then retry the upgrade. Upgrade error message: Upgrade task com.atlassian.confluence.upgrade.upgradetask.LabelUniqueIndexUpgradeTask@14921b54 failed during the SCHEMA_UPGRADE phase due to: StatementCallback; bad SQL grammar [alter table LABEL add column OWNER_NOT_NULL VARCHAR(255) GENERATED ALWAYS AS (COALESCE(OWNER, '')) STORED]`

How do I resolve this?

2 answers

0 votes
Andrew Laden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2025

I worked with support. They eventually just had me drop the column from the table. The upgrade then re-created it.

ALTER TABLE label DROP COLUMN owner_not_null;

Andy March 1, 2025

I get this error:
`ERROR: relation "label" does not exist`

0 votes
Robert Wen_Cprime_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 8, 2024

Hi @Andy 

Looks like there was a problem when upgrading your DB schema before Confluence came up.  Can you provide some details about the system (server, OS version,  database, etc) you're using for Confluence?  Also, the previous version will help too.

This Community question refers to the same error on a PostgreSQL database.  https://community.atlassian.com/t5/Confluence-questions/Posgresql-Error-when-I-try-Install-Confluence/qaq-p/2861793

Andy December 27, 2024

Standalone, Rocky Linux 8.10

How do I find my previous version I was running? /opt/atlassian/confluence/confluence/META-INF/maven/com.atlassian.confluence/confluence-webapp/pom.properties shows 9.1.1.

I am using postgresql.

EDIT:

I am going to say previous version was atlassian-confluence-8.5.3-x64.bin.

Robert Wen_Cprime_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 29, 2024

Ok, what version of PostgreSQL?  I see several End of Support notices for PostgreSQL versions 9.4, 9.5, and 9.6 between Jira 8.5.3 and 9.1.1

PDF documentation is here https://confluence.atlassian.com/alldoc/jira-documentation-directory-71598773.html

Andy March 1, 2025

`psql (PostgreSQL) 10.23`

Suggest an answer

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

Atlassian Community Events