Synchronization with LDAP Server Fails with PartialResultException

症状

The following exceptions are reported when starting up Stash:

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: somedomain.net:389; 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 192.168.22.194 "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.stash.stash-authentication:crowdHttpAuthHandler failed
com.atlassian.stash.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: somedomain.net:389 [Root exception is java.net.SocketTimeoutException: connect timed out]]
...
Caused by: javax.naming.CommunicationException: somedomain.net:389
...
Caused by: java.net.SocketTimeoutException: connect timed out
...

原因

Stack trace #1: the LDAP search received a follow-referral to another domain controller at 'somedomain.net' 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 Stash, if not required.

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

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.