Problem communicating with Crowd - Read timed out

Still need help?

The Atlassian Community is here for you.

Ask the community


Fisheye fails while performing operations related to an external Crowd directory.

The following appears in the atlassian-fisheye-YYYY-DD-MM.log:

com.cenqua.fisheye.user.AuthenticationException: Problem communicating with Crowd
Caused by: com.atlassian.crowd.exception.OperationFailedException: Read timed out
Caused by: Read timed out


There are a couple of use cases this error could occur. In both scenarios, the error will be followed by the stack trace above.

  • User synchronisation

    ERROR [qtp685558284-24756 ] fisheye DefaultUserManager-synchroniseUsers - Error communicating with crowd. Skipping to the next user ...
  • User authentication

    ERROR [qtp1896232624-6136 ] fisheye DefaultUserManager-loginWithSanitizedUserName - Could not authenticate user "testuser"


Fisheye closes the connection to Crowd if the response is slower than the default timeout.

See our documentation on Integrating Crowd with Atlassian FishEye for more information. 


The time required by the interaction between Fisheye/Crucible and Crowd is tracked in the DEBUG level log files. In order to make sure that's your case, please turn DEBUG logging on using your Fisheye UI:

  • Go to Administration > Server Settings > Debug Logging, and turn debug logging "ON".

To locate the time and compare it with the default values or your environment configuration in order to check if the time out settings are exceeded, you should proceed as follows:

  • locate the following line in the log files com.cenqua.fisheye.user.AuthenticationException: Problem communicating with Crowd
  • retrieve the line above the exception showing the Crowd operation being performed and read the value after the time (20016 in the following example). Note that the log line may be different depending on your use case.
DEBUG [qtp1603177117-1463 ] fisheye Timer-output - <- CrowdAuth.authenticate()  time 20016 millis mem_usage = 173401976 heapsize = 2089811968 freemem = 1916409992


Increase the timeout from the default when communicating with Crowd.

  1. Stop Fisheye
  2. Create a backup your FISHEYE_INST/config.xml.
  3. Add http.timeout and socket.timeout into config.xml:
<crowd jiraInstance="false" resyncPeriod="12 hour" resync="true" refreshExistingUsers="true" sso-enabled="true" auto-add="true"><crowd-properties>#Wed Aug 19 12:39:01 EDT 2015
application.password=Sanitized by Support Utility
</crowd-properties><resyncGroupsList><group name="Administrators"/><group name="Managers"/><group name="Test"/><group name="Other Group"/><group name="Developers"/></resyncGroupsList></crowd>

Once the change has been saved, start Fisheye and this should allow more time before Fisheye closes the connection when Crowd is slow to respond.

Last modified on Jul 31, 2018

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.