Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58231

Job build failed when one of domain in Active Directory unreachable

    Details

    • Similar Issues:

      Description

      In Action Directory section on Configure global security, I added 3 domain, let said domain A, B, and C. Today, domain B has been down, so users could not login with LDAP account in domain B, that is definitely. But, I have no idea why some build jobs have been failed with error below.

      FATAL: org.acegisecurity.AuthenticationServiceException: Failed to bind to LDAP server with the bind name/password; nested exception is javax.naming.CommunicationException: 192.168.1.3:3268 [Root exception is java.net.SocketTimeoutException: connect timed out]
      java.net.SocketTimeoutException: connect timed out
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
      	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      	at java.net.Socket.connect(Socket.java:589)
      	at sun.reflect.GeneratedMethodAccessor10329.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.sun.jndi.ldap.Connection.createSocket(Connection.java:362)
      	at com.sun.jndi.ldap.Connection.<init>(Connection.java:215)
      

      From the build job configuration, I cannot find any entries related to this domain. Any idea of what might be causing this?

       

        Attachments

          Activity

          Hide
          tiendungitd Dennis Tran added a comment -

          I just facing this issues again.

          14:15:16 FATAL: org.acegisecurity.AuthenticationServiceException: Failed to bind to LDAP server with the bind name/password; nested exception is javax.naming.CommunicationException: adv.aavn.local:3268 [Root exception is java.net.SocketTimeoutException: connect timed out]14:15:16java.net.SocketTimeoutException: connect timed out*14:15:16* at java.net.PlainSocketImpl.socketConnect(Native Method)14:15:16 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)14:15:16 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)14:15:16 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)14:15:16 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)14:15:16 at java.net.Socket.connect(Socket.java:589)14:15:16 at sun.reflect.GeneratedMethodAccessor20610.invoke(Unknown Source)14:15:16 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)14:15:16 at java.lang.reflect.Method.invoke(Method.java:498)14:15:16 at com.sun.jndi.ldap.Connection.createSocket(Connection.java:362)14:15:16 at com.sun.jndi.ldap.Connection.<init>(Connection.java:215)14:15:16 Caused: javax.naming.CommunicationException: adv.aavn.local:3268 [Root exception is java.net.SocketTimeoutException: connect timed out]14:15:16 at com.sun.jndi.ldap.Connection.<init>(Connection.java:228)14:15:16 at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137)14:15:16 at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1615)14:15:16 at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2749)14:15:16 at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)14:15:16 at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)14:15:16 at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:151)14:15:16 at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:668)14:15:16 at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:599)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$1.call(ActiveDirectoryUnixAuthenticationProvider.java:357)14:15:16 Caused: org.acegisecurity.AuthenticationServiceException: Failed to bind to LDAP server with the bind name/password; nested exception is javax.naming.CommunicationException: adv.aavn.local:3268 [Root exception is java.net.SocketTimeoutException: connect timed out]14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$1.call(ActiveDirectoryUnixAuthenticationProvider.java:360)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$1.call(ActiveDirectoryUnixAuthenticationProvider.java:340)14:15:16 at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)14:15:16 at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)14:15:16 at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)14:15:16 at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)14:15:16 at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)14:15:16 at com.google.common.cache.LocalCache.get(LocalCache.java:3965)14:15:16 at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:340)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:303)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:225)14:15:16 at hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider.loadUserByUsername(AbstractActiveDirectoryAuthenticationProvider.java:55)14:15:16 at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.loadUserByUsername(ActiveDirectorySecurityRealm.java:854)14:15:16 at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:172)14:15:16 at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:161)14:15:16 at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)14:15:16 at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)14:15:16 at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)14:15:16 at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)14:15:16 at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)14:15:16 Caused: com.google.common.util.concurrent.UncheckedExecutionException*14:15:16* at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234)14:15:16 at com.google.common.cache.LocalCache.get(LocalCache.java:3965)14:15:16 at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)14:15:16 at jenkins.security.UserDetailsCache.loadUserByUsername(UserDetailsCache.java:127)14:15:16 at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1243)14:15:16 at hudson.model.User$CanonicalIdResolver.resolve(User.java:1184)14:15:16 at hudson.model.User.get(User.java:509)14:15:16 at hudson.model.User.get(User.java:479)14:15:16 at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:388)14:15:16 at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:466)14:15:16 at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:138)14:15:16 at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)14:15:16 at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)14:15:16 at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)14:15:16 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)14:15:16 at hudson.model.Run.execute(Run.java:1841)14:15:16 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)14:15:16 at hudson.model.ResourceController.execute(ResourceController.java:97)14:15:16 at hudson.model.Executor.run(Executor.java:429)14:15:46 [Office365connector] Matched status 'FAILURE' for webhook 'null'.14:15:46 Finished: FAILURE
          
          Show
          tiendungitd Dennis Tran added a comment - I just facing this issues again. 14:15:16 FATAL: org.acegisecurity.AuthenticationServiceException: Failed to bind to LDAP server with the bind name/password; nested exception is javax.naming.CommunicationException: adv.aavn.local:3268 [Root exception is java.net.SocketTimeoutException: connect timed out]14:15:16java.net.SocketTimeoutException: connect timed out*14:15:16* at java.net.PlainSocketImpl.socketConnect(Native Method)14:15:16 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)14:15:16 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)14:15:16 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)14:15:16 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)14:15:16 at java.net.Socket.connect(Socket.java:589)14:15:16 at sun.reflect.GeneratedMethodAccessor20610.invoke(Unknown Source)14:15:16 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)14:15:16 at java.lang.reflect.Method.invoke(Method.java:498)14:15:16 at com.sun.jndi.ldap.Connection.createSocket(Connection.java:362)14:15:16 at com.sun.jndi.ldap.Connection.<init>(Connection.java:215)14:15:16 Caused: javax.naming.CommunicationException: adv.aavn.local:3268 [Root exception is java.net.SocketTimeoutException: connect timed out]14:15:16 at com.sun.jndi.ldap.Connection.<init>(Connection.java:228)14:15:16 at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137)14:15:16 at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1615)14:15:16 at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2749)14:15:16 at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319)14:15:16 at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192)14:15:16 at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:151)14:15:16 at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:668)14:15:16 at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:599)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$1.call(ActiveDirectoryUnixAuthenticationProvider.java:357)14:15:16 Caused: org.acegisecurity.AuthenticationServiceException: Failed to bind to LDAP server with the bind name/password; nested exception is javax.naming.CommunicationException: adv.aavn.local:3268 [Root exception is java.net.SocketTimeoutException: connect timed out]14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$1.call(ActiveDirectoryUnixAuthenticationProvider.java:360)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider$1.call(ActiveDirectoryUnixAuthenticationProvider.java:340)14:15:16 at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)14:15:16 at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)14:15:16 at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)14:15:16 at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)14:15:16 at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)14:15:16 at com.google.common.cache.LocalCache.get(LocalCache.java:3965)14:15:16 at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:340)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:303)14:15:16 at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:225)14:15:16 at hudson.plugins.active_directory.AbstractActiveDirectoryAuthenticationProvider.loadUserByUsername(AbstractActiveDirectoryAuthenticationProvider.java:55)14:15:16 at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.loadUserByUsername(ActiveDirectorySecurityRealm.java:854)14:15:16 at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:172)14:15:16 at jenkins.security.UserDetailsCache$Retriever.call(UserDetailsCache.java:161)14:15:16 at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4767)14:15:16 at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568)14:15:16 at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350)14:15:16 at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)14:15:16 at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)14:15:16 Caused: com.google.common.util.concurrent.UncheckedExecutionException*14:15:16* at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234)14:15:16 at com.google.common.cache.LocalCache.get(LocalCache.java:3965)14:15:16 at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)14:15:16 at jenkins.security.UserDetailsCache.loadUserByUsername(UserDetailsCache.java:127)14:15:16 at hudson.model.User$UserIDCanonicalIdResolver.resolveCanonicalId(User.java:1243)14:15:16 at hudson.model.User$CanonicalIdResolver.resolve(User.java:1184)14:15:16 at hudson.model.User.get(User.java:509)14:15:16 at hudson.model.User.get(User.java:479)14:15:16 at hudson.plugins.git.GitChangeSet.findOrCreateUser(GitChangeSet.java:388)14:15:16 at hudson.plugins.git.GitChangeSet.getAuthor(GitChangeSet.java:466)14:15:16 at jenkins.scm.RunWithSCM.calculateCulprits(RunWithSCM.java:138)14:15:16 at hudson.model.AbstractBuild.calculateCulprits(AbstractBuild.java:341)14:15:16 at jenkins.scm.RunWithSCM.getCulprits(RunWithSCM.java:96)14:15:16 at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:330)14:15:16 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)14:15:16 at hudson.model.Run.execute(Run.java:1841)14:15:16 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)14:15:16 at hudson.model.ResourceController.execute(ResourceController.java:97)14:15:16 at hudson.model.Executor.run(Executor.java:429)14:15:46 [Office365connector] Matched status 'FAILURE' for webhook ' null ' .14:15:46 Finished: FAILURE

            People

            • Assignee:
              fbelzunc Félix Belzunce Arcos
              Reporter:
              tiendungitd Dennis Tran
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: