Password authentication failed with PostgreSQL 9

プラットフォームについて: 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 は除く

症状

When integrating Bitbucket Server with PostgreSQL 9, the connection with the database is refused and you see a reported exception similar to this:

org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: password authentication failed for user "<username>")

原因

This problem is caused because Bitbucket Server has not been added to the PostgreSQL pg_hba.conf file, without which PostgreSQL 9 will not allow the connection.

ソリューション

Add Bitbucket Server to the PostgreSQL pg_hba.conf file, so that PostgreSQL 9 will allow bitbucket to connect. The pg_hba.conf file enables client authentication between the PostgreSQL server and a client application, such as Bitbucket Server. The file defines a database host and its associated permissions (for example, the database it is allowed to connect to, the authentication method to use, and so on). For details of the file contents, see the PostgreSQL documentation at http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html.

更新日時: September 25, 2025

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

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