Unable to Upgrade Due to Database Permissions

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

症状

ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute Unsuccessful: alter table CONTENT add column DRAFTPAGEID varchar(255) ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute ERROR: must be owner of relation content ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute Unsuccessful: alter table CONTENT add column DRAFTSPACEKEY varchar(255) ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute ERROR: must be owner of relation content ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute Unsuccessful: alter table CONTENT add column DRAFTTYPE varchar(255) ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute ERROR: must be owner of relation content ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute Unsuccessful: alter table CONTENT add column DRAFTPAGEVERSION int4 ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute ERROR: must be owner of relation content ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute Unsuccessful: alter table PAGETEMPLATES add column LABELS varchar(255) ERROR [main] [hibernate.tool.hbm2ddl.SchemaUpdate] execute ERROR: must be owner of relation pagetemplates

原因

The database was owned by a user that is different from the database user used in Confluence.

ソリューション

Ensure that the tables' owner (http://archives.postgresql.org/pgsql-patches/2002-07/msg00198.php) are the same with the database user used by Confluence.

In PostgreSQL, a table's owner can be altered by using the ALTER TABLE query.

The database user is in either <confluence-home>/confluence.cfg.xml or server.xml.

更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。