Bamboo error message pop-ups in UI "An Unexpected error has occurred" while accessing plan pages

お困りですか?

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

コミュニティに質問




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

要約

An error pop-up message "An Unexpected error has occurred" is shown in the Bamboo UI when any plan page is accessed. This error can be see while accessing any page which makes an REST API call.

環境

 Applicable for any supported Bamboo version.

診断

The following actions can be taken to diagnose the issue and confirm that you're running into the problem described in this article:

  1. Below error pop-up message "An Unexpected error has occurred" is shown in the Bamboo UI when any plan page is accessed

       2. In the atlassian-bamboo.log below errors which states that the that the REST API plugin was not able to start.

2023-08-18 10:01:21,548 ERROR [Spring DM Context Creation Timer] [OsgiPlugin] Unable to start the plugin container for plugin 'com.atlassian.bamboo.plugins.rest'
org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-rest' has timed out waiting for (|(&(objectClass=com.atlassian.sal.api.ApplicationProperties)(objectClass=com.atlassian.sal.api.ApplicationProperties))(&(objectClass=com.atlassian.sal.api.features.DarkFeatureManager)(objectClass=com.atlassian.sal.api.features.DarkFeatureManager))(&(objectClass=com.atlassian.sal.api.message.I18nResolver)(objectClass=com.atlassian.sal.api.message.I18nResolver))(&(objectClass=com.atlassian.sal.api.transaction.TransactionTemplate)(objectClass=com.atlassian.sal.api.transaction.TransactionTemplate)))
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
	at java.util.TimerThread.mainLoop(Timer.java:555)
	at java.util.TimerThread.run(Timer.java:505)

    3. From the HAR file for the Bamboo UI  all the response for all the REST API URLs are '404'. None of the REST API URLs are reachable.

http://bamboo_url:8085/rest/api/latest/server?_=1692360115923	404
http://bamboo_url:8085/browse//rest/api/latest/plan/favicon/PROJECT-PLAN?_=1692360115924	404
http://bamboo_url:8085/rest/api/latest/search/branches?includeMasterBranch=true&masterPlanKey=PROJECT-PLAN&start-index=0&max-results=1&_=1692360115927	404
http://bamboo_url:8085/rest/api/latest/server?_=1692360115928	404
http://bamboo_url:8085/browse//rest/api/latest/plan/favicon/PROJECT-PLAN?_=1692360115932	404
http://bamboo_url:8085/rest/api/latest/server?_=1692360115934	404


原因

This is likely because Atlassian Bamboo REST plugin system plugin is set to DISABLE. This can be verified in application.xml file (from the support zip)

    <plugin>
      <key>com.atlassian.bamboo.plugins.rest</key>
      <name>Atlassian Bamboo REST plugin</name>
      <version>8.0.9</version>
      <vendor>Atlassian Software Systems Pty Ltd</vendor>
      <status>DISABLED</status>
      <vendor-url>https://www.atlassian.com/</vendor-url>
      <framework-version>2</framework-version>
      <bundled>Bundled</bundled>
    </plugin> 

ソリューション

Enable Atlassian Bamboo REST plugin system plugin to fix this issue.

To enable the plugin:

  1. Navigate to Bamboo Administration >> Manage Apps
  2. In the Filter visible apps option select "System" from the drop down menu.
  3. Expand the "Atlassian Bamboo REST plugin" from the list of system plugins.
  4. Click ENABLE and restart bamboo.


最終更新日 2023 年 8 月 24 日

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

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