Bamboo crashes and fails to start with SQL exception "FATAL: could not write init file"

お困りですか?

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

コミュニティに質問

プラットフォームについて: Data Center のみ - この記事は、Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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

*Fisheye および Crucible は除く

要約

This article covers an event when Bamboo crashes and fails to start reporting a PostgreSQL "FATAL: could not write init file" error.

環境

  • All Bamboo versions
  • PostgreSQL database

診断

Bamboo may crash without notice, reporting messages such as the following on <bamboo-home>/logs/atlassian-bamboo.log:

2024-02-21 04:41:50,738 WARN [nodeHeartbeat.quartz_Worker-1] [SqlExceptionHelper] SQL Error: 0, SQLState: XX000
2024-02-21 04:41:50,738 ERROR [nodeHeartbeat.quartz_Worker-1] [SqlExceptionHelper] HikariPool-2 - Connection is not available, request timed out after 30000ms.
2024-02-21 04:41:50,738 ERROR [nodeHeartbeat.quartz_Worker-1] [SqlExceptionHelper] FATAL: could not write init file

It is also possible to find similar messages during Bamboo's bootstrapping after a tentative restart:

2024-02-21 09:29:27,277 INFO [main] [HikariDataSource] HikariPool-2 - Starting...
2024-02-21 09:29:28,289 ERROR [main] [HikariPool] HikariPool-2 - Exception during pool initialization.
org.postgresql.util.PSQLException: FATAL: could not write init file

原因

The "FATAL: could not write init file" is a PostgreSQL error. It may have multiple causes, but the main one would be related to disk space or file system permission issues on the database server.

ソリューション

Check the database for errors and permissions, and increase the file system or table space if necessary.

最終更新日: 2024 年 2 月 21 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.