Greetings,
I'm seeing following exception in catalina.out. This is new installation
with Jenkins version 2.218 is deployed as WAR file on tomcat. Upon
startup LDAP authentication works perfectly fine but times out after
sometime and no one can login. Only solution so far is to restart tomcat.
I tried researching the problem and tries setting properties in
"setenv.sh" as per some of the pointers I found over the web.
-Dcom.sun.jndi.ldap.connect.pool=false
-Dcom.sun.jndi.ldap.connect.timeout=3000
-Dcom.sun.jndi.ldap.read.timeout=1000
Catalina.out file logs the values are being read, but it's not
reflecting "60000ms" and not sure where LDAP pluging/Jenkins is seeing
this value .
How do I fix this problem.
Caused by: org.acegisecurity.ldap.LdapDataAccessException:
LdapCallback;LDAP response read timed out, timeout used:60000ms.; nested
exception is javax.naming.NamingException: LDAP response read timed out\
, timeout used:60000ms.; remaining name ''
at
org.acegisecurity.ldap.LdapTemplate$LdapExceptionTranslator.translate(LdapTemplate.java:295)
at
org.acegisecurity.ldap.LdapTemplate.execute(LdapTemplate.java:128)
at
org.acegisecurity.ldap.LdapTemplate.searchForSingleEntry(LdapTemplate.java:246)
at
org.acegisecurity.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:119)
at
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator.authenticate(BindAuthenticator.java:71)
at
org.acegisecurity.providers.ldap.authenticator.BindAuthenticator2.authenticate(BindAuthenticator2.java:49)
at
org.acegisecurity.providers.ldap.LdapAuthenticationProvider.retrieveUser(LdapAuthenticationProvider.java:233)
... 42 more
Caused by: javax.naming.NamingException: LDAP response read timed out,
timeout used:60000ms.; remaining name ''
at com.sun.jndi.ldap.Connection.readReply(Connection.java:490)
at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:638)
at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:561)
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1985)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1844)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1769)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1786)
at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:418)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:396)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:378)
at
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:286)
at
org.acegisecurity.ldap.LdapTemplate$3.doInDirContext(LdapTemplate.java:249)
at
org.acegisecurity.ldap.LdapTemplate.execute(LdapTemplate.java:126)
... 47 more
Regards,
Niranjan
--
You received this message because you are subscribed to the Google Groups "Jenkins
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/6a4d2917-fae0-6bc4-e891-4ffcbb6d5548%40gmail.com.