Local agents go offline during database backup

お困りですか?

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

コミュニティに質問


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

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

Local agents were deprecated in Bamboo 8.0. In all versions of Bamboo 9.6 and above, they will no longer function.


要約

In some scenarios when a database backup is being taken, all the local agents can become offline.

環境

Bamboo 7.2.5 or older versions

診断

The following message can be found in the atlassian-bamboo.log file:

[DefaultBuildAgent] 9 attempts at building without a successful run. The agent will stop after reaching 10 exceptions.
[DefaultBuildAgent] Maximum number of errors has been reached (10). Agent will now stop.


原因

During the database backup process, the database becomes offline, but the local agents keep trying to connect to the database in order to check if there are any new builds on the queue to be taken. This process requires a database connection to be established, therefore once the agent verifies the database if offline it throws an exception in the logs.

The local agents go offline because Bamboo is designed to have a maximum number of errors that a local agent can hit before going offline:

private static final int MAX_ERROR_COUNT = 10;

if (errorCount.intValue() >= MAX_ERROR_COUNT) {
    log.fatal("Maximum number of errors has been reached (" + MAX_ERROR_COUNT + "). Agent will now stop.");
    stop();
} else {
    log.warn(errorCnt + " attempts at building without a successful run. The agent will stop after reaching " + MAX_ERROR_COUNT + " exceptions.");
}


ソリューション

  1. Restart Bamboo so all local agents will become available again
  2. Restart agents manually by going to Bamboo administration panel >> Agents >> Local agent >> Restart button

(info) Currently, there are three possible actions that can be taken to void this to happen:


Last modified on Mar 7, 2024

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

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