LDAP response read timed out
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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
This is for an outdated version of Hipchat Server
This article applies to a version of Hipchat Server which will be deprecated soon. After that period the version will no longer be supported.
You should upgrade to a more recent version of Hipchat Server as soon as you can to take advantage of new features, and security and bug fixes.
Symptoms
LDAP synchronisation with Hipchat Server failed.
The following appears in the /var/log/hipchat/atlassian-crowd.log
:
2015-01-08 13:50:47,006 scheduler_Worker-9 INFO [atlassian.crowd.directory.DbCachingRemoteDirectory] Attempting INCREMENTAL synchronisation for directory [ 393217 ]
2015-01-08 13:50:47,167 scheduler_Worker-9 INFO [atlassian.crowd.directory.DbCachingRemoteDirectory] failed synchronisation complete for directory [ 393217 ] in [ 162ms ]
2015-01-08 13:50:47,197 scheduler_Worker-9 ERROR [atlassian.crowd.directory.DbCachingDirectoryPoller] Error occurred while refreshing the cache for directory [ 393217 ].
com.atlassian.crowd.exception.OperationFailedException: org.springframework.ldap.PartialResultException: nested exception is javax.naming.PartialResultException [Root exception is javax.naming.NamingException: LDAP response read timed out, timeout used:120000ms. [Root exception is com.sun.jndi.ldap.LdapReferralException: Continuation Reference; remaining name 'DC=sbs,DC=local']; remaining name '']
at com.atlassian.crowd.directory.SpringLDAPConnector.pageSearchResults(SpringLDAPConnector.java:425)
at com.atlassian.crowd.directory.SpringLDAPConnector.searchEntitiesWithRequestControls(SpringLDAPConnector.java:460)
.....
Caused by: org.springframework.ldap.PartialResultException: nested exception is javax.naming.PartialResultException [Root exception is javax.naming.NamingException: LDAP response read timed out, timeout used:120000ms. [Root exception is com.sun.jndi.ldap.LdapReferralException: Continuation Reference; remaining name 'DC=sbs,DC=local']; remaining name ''] at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:216)
Cause
- The LDAP directory is so large that Hipchat Server fails to find the user before the timeout or
- There have been cases where enabling 'Follow Referral' option causes the same behavior
Resolution
Option 1:
- Go to
Administration > Users > User Directories
- Edit the LDAP directory
- Increase the value of Read Timeout
Option 2:
- Go to
Administration > Users > User Directories
- Edit the LDAP directory
- Disable the Follow Referral option