Atlassian Crowd health check endpoint throws error '401' after upgrade.
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
After an upgrade to Atlassian Crowd version v5.1.3 or newer, the health check endpoint /crowd/rest/healthcheck/1.0/check is now throwing a '401' error when invoked:
1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>401</status-code><message>Client must be authenticated to access this resource.</message></status>
Environment
Atlassian Crowd Data Center v5.1.3 or newer.
Cause
Before Atlassian Crowd v5.1.3, you were able to access the healthcheck endpoint at /crowd/rest/healthcheck/1.0/check. After v5.1.3 we have restricted the scope of the endpoint to an administrator user only.
Solution
You can access the new healthcheck endpoint at /crowd/status- e.g. http://<crowd-node>:8095/crowd/status which should return a success if the node is online:
1
{"state":"RUNNING"}
Was this helpful?