Synchronization with LDAP Server Fails with PartialResultException

Still need help?

The Atlassian Community is here for you.

Ask the community


When Bitbucket Server connects to LDAP to refresh the cache for a user directory, the following appears in the atlassian-bitbucket.log:

Stack trace #1:

2013-03-08 00:44:53,540 ERROR [scheduler_Worker-1]  c.a.c.d.DbCachingDirectoryPoller Error occurred while refreshing the cache for directory [ 32770 ].
com.atlassian.crowd.exception.OperationFailedException: org.springframework.ldap.PartialResultException: nested exception is javax.naming.PartialResultException [Root exception is javax.naming.ServiceUnavailableException:; socket closed [Root exception is com.sun.jndi.ldap.LdapReferralException: Continuation Reference; remaining name 'dc=atlassian,dc=com']; remaining name '']



Stack trace #2:

2014-01-02 10:20:38,339 WARN  [http-bio-7990-exec-10] 620x19548x1 "GET /scm/mo/mobile.git/info/refs HTTP/1.1" c.a.s.i.s.s.PluginAuthenticationProvider Could not authenticate rfisk; authentication by com.atlassian.bitbucket.bitbucket-authentication:crowdHttpAuthHandler failed
com.atlassian.bitbucket.user.AuthenticationSystemException: The remote authentication server is not available. Please try again later.
Caused by: org.springframework.ldap.PartialResultException: nested exception is javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: [Root exception is connect timed out]]
Caused by: javax.naming.CommunicationException:
Caused by: connect timed out


Stack trace #1: the LDAP search received a follow-referral to another domain controller at '' but this host is unreachable due to some DNS configuration issue.
Stack trace #2: check your hosts file to see if this host has been entered there.


Stack trace #1

If the LDAP server is load balanced, connect directly to one of the servers and bypass the load balancer.


Stack trace #1: Disable the follow-referral property in Bitbucket Server, if not required.

Stack trace #2: Check the hosts file and enter the above host to it.

Last modified on Apr 6, 2016

Was this helpful?

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