Integrating JIRA with Crowd Results in 'server returned error code 503 for URI'
Symptoms
After implementing Crowd integration, users cannot log into JIRA. The following appears in the atlassian-jira.log
:
org.codehaus.xfire.XFireRuntimeException: Server returned error code = 503 for URI : https://<crowd_domain>/crowd/services/SecurityServer
Cause
The problem occurs because JIRA needs to generate a backend request to access the Crowd service on server side. The above error gets thrown when from one of the following:
- The domain name of Crowd service can't be detected on JIRA server.
- The JVM "-Dhttp.proxyHost" blocks the JIRA self-generated requests access to the Crowd service.
Resolution
Make sure that the domain of Crowd service can be detected on JIRA server. If it cannot, check the following:
- DNS is configured correctly.
- The hosts file is configured correctly.
- Apply the IP Address instead of proxy name in the Crowd service URL.
Still not working?
This may also be caused by a known JIRA bug, which is being tracked at JRA-20715. It states that even if "-Dhttp.nonProxyHosts" has been properly defined in the JAVA_OPTS, the application may still uses the proxy to reach "nonProxyHosts". Alternatively this problem may be solved by following the resolution mentioned in JAVA Option '-Dhttp.nonProxyHosts' Does Not Work.