"An unexpected error has occurred" pop-up while accessing certain Bamboo pages

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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.

*Except Fisheye and Crucible

Summary

"An unexpected error has occurred" pop-up message appears on different Bamboo pages, such as the UserGroups page and the Deployments tab.

Environment

All supported versions of Bamboo with HTTPS configured in Tomcat.

Diagnosis

The following message pops up in Bamboo: "An unexpected error has occurred"

When checking the <bamboo-home>/logs/atlassian-bamboo.log, there are occurrences of the following XSRF check failure:

1 2021-06-03 10:54:56,075 WARN [http-nio-8085-exec-21] [XsrfResourceFilter] Additional XSRF checks failed for request: http://BAMBOO_URL/rest/troubleshooting/1.0/check/process/ , origin: https://BAMBOO_URL , referrer: https://BAMBOO_URL/plugins/servlet/troubleshooting/view/ , credentials in request: true , allowed via CORS: false

Other symptoms

  • Unable to generate a Support Zip

  • A "Background page refresh cannot contact server. Please ensure Bamboo server is available." error message pops-up

  • Unable to dedicate agents with no error message in the UI. 

  • The Instance health page is blank.

Cause

The most common cause for this is a misconfigured server.xml file inside the Bamboo installation folder, with missing proxy properties. You can find more information about the XSRF checks in the following documentation:

Solution

Check the <bamboo-installation>/conf/server.xml and verify if the connector is properly configured, as seen below. Usually, one of (or all) the following properties are missing: secure, scheme, proxyName, and proxyPort.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 <Connector port="8085" protocol="HTTP/1.1" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" disableUploadTimeout="true" acceptCount="100" enableLookups="false" maxHttpHeaderSize="8192" useBodyEncodingForURI="true" URIEncoding="UTF-8" redirectPort="443" compressableMimeType="text/html,text/xml,text/plain,text/css,application/json,application/javascript,application/x-javascript" secure="true" scheme="https" proxyName="proxy-bamboo.com" proxyPort="443"> <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> </Connector>

Updated on April 10, 2025

Still need help?

The Atlassian Community is here for you.