Posgresql Error when I try Install Confluence

Tony Montana
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.
November 6, 2024

Hello. I have an Error

The following error(s) occurred: Configuring database failed StatementCallback; bad SQL grammar [alter table LABEL add column OWNER_NOT_NULL VARCHAR(255) GENERATED ALWAYS AS (COALESCE(OWNER, '')) STORED]

in installation. Last DC confluence and Posgresql 16.4

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 had me just drop the column and let the upgrade re-create it.

ALTER TABLE label DROP COLUMN owner_not_null;

0 votes
Septa Cahyadiputra
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.
November 6, 2024

Hi @Tony Montana

The ERROR might indicate permission as describe here:

* https://community.developer.atlassian.com/t/postgresql-15-with-jira-9-10-9-11-error-permission-denied-for-schema-public-at-character/73474

Please double check the permission as described here.

regards,
Septa Cahyadiputra

Tony Montana
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.
November 7, 2024

@Septa Cahyadiputraafter manipulations i have same error

Septa Cahyadiputra
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.
November 8, 2024

Tony, sorry to hear that. If everything checked out, I think it would be best to reach out to support so they could properly review your issue.

Just to double check, you might want to create a new DB instead of just altering the previously created DB as a sanity check.

CREATE USER conf WITH ENCRYPTED PASSWORD 'supersecure123'; 
-- since postgres 15 (before db creation)
GRANT ALL ON SCHEMA public TO conf;
-- now create objects
CREATE DATABASE conf WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;
GRANT ALL PRIVILEGES ON DATABASE conf TO conf;
-- also needed for postgres 15
ALTER DATABASE conf OWNER TO conf;

 

Ben Barrows
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!
December 27, 2024

Suggest an answer

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

Atlassian Community Events