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

Maven build aborted before execution due to SocketTimeoutException

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: Linux

      Hi

      I have a build server that sometime abort the scheduled build with just error
      aborted - else no error messages, see example build log below.

      I have configured a logger for the fine level (logger: hudson, log level: fine)
      see catelina log below - no useful errors

      I have just start calling maven with -X for debug output - if maven was the
      course - but have not yet capture the error (if maven is to blame - don't think so)

      Any suggestions - please see logs are version data below

      Best regards

      Peter Andersen

      ------------

      Versions:
      Hudson: 1.289
      Tomcat: 6.0.18
      java version "1.6.0_0"
      OpenJDK Runtime Environment (build 1.6.0_0-b11)
      OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
      Maven: 2.0.9
      OS Debian 5, uname -a:
      Linux hudson 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009 x86_64 GNU/Linux

      Example aborted build:
      started
      Updating svn://svn.lenio.dk/xxxx/trunk
      U ...
      A build.xml
      At revision 11963
      Parsing POMs
      [trunk] $ /usr/lib/jvm/java-6-openjdk/bin/java -Xmx768m -XX:MaxPermSize=256m -cp
      /home/sysadm/apache-tomcat-6.0.18/webapps/hudson/WEB-INF/lib/maven-agent-1.289.jar:/usr/share/maven2/boot/classworlds.jar
      hudson.maven.agent.Main /usr/share/maven2
      /home/sysadm/apache-tomcat-6.0.18/webapps/hudson/WEB-INF/lib/remoting-1.289.jar
      /home/sysadm/apache-tomcat-6.0.18/webapps/hudson/WEB-INF/lib/maven-interceptor-1.289.jar
      38194
      ERROR: Aborted
      No emails were triggered.
      finished: ABORTED

      Catalina log snippet
      Mar 11, 2009 1:33:35 AM hudson.model.Queue maintain
      FINE: Queue maintenance started hudson.model.Queue@338f7701
      Mar 11, 2009 1:33:40 AM hudson.model.Queue maintain
      FINE: Queue maintenance started hudson.model.Queue@338f7701
      Mar 11, 2009 1:33:45 AM hudson.model.Queue maintain
      FINE: Queue maintenance started hudson.model.Queue@338f7701
      Mar 11, 2009 1:33:48 AM hudson.model.Run setResult
      FINE: diop-site-build #12 : result is set to ABORTED by
      hudson.model.Run.run(Run.java:896)
      Mar 11, 2009 1:33:48 AM hudson.model.Run run
      INFO: diop-site-build #12 main build action completed: ABORTED

          [JENKINS-3273] Maven build aborted before execution due to SocketTimeoutException

          peterandersen created issue -

          sdempsay added a comment -

          I am seeing this when trying to set up a new slave on 1-306. The host I had
          been using to slave is still working, but when it tries to run the new slave I
          get:

          Started by user rsaska
          Building remotely on dev-blade-3
          Updating http://s***/Connect/trunk/java-infrastructure
          At revision 234
          no change for http://***/Connect/trunk/java-infrastructure since the previous
          build
          Parsing POMs
          [.] $ java Xmx1024M -cp /home/hudson/maven-agent.jar:/usr/share/maven
          2.0.10/boot/classworlds-1.1.jar hudson.maven.agent.Main /usr/share/maven-2.0.10
          /home/hudson/slave.jar /home/hudson/maven-interceptor.jar 56107
          ERROR: Aborted
          Skipping Cobertura coverage report as build was not successful...
          Finished: ABORTED

          sdempsay added a comment - I am seeing this when trying to set up a new slave on 1-306. The host I had been using to slave is still working, but when it tries to run the new slave I get: Started by user rsaska Building remotely on dev-blade-3 Updating http://s***/Connect/trunk/java-infrastructure At revision 234 no change for http://***/Connect/trunk/java-infrastructure since the previous build Parsing POMs [.] $ java Xmx1024M -cp /home/hudson/maven-agent.jar:/usr/share/maven 2.0.10/boot/classworlds-1.1.jar hudson.maven.agent.Main /usr/share/maven-2.0.10 /home/hudson/slave.jar /home/hudson/maven-interceptor.jar 56107 ERROR: Aborted Skipping Cobertura coverage report as build was not successful... Finished: ABORTED

          gj added a comment -

          I also seem to be encountering this issue with H1.318:
          A SCM change trigger started this job
          Updating http://.../trunk
          U pom.xml
          At revision 27567
          Parsing POMs
          [someproject] $ java cp /usr/local/hudson/data/plugins/maven-plugin/WEB-INF/lib/maven-agent
          1.318.jar:/usr/local/hudson/maven/apache-maven-2.0.10/boot/classworlds-1.1.jar
          hudson.maven.agent.Main /usr/local/hudson/maven/apache-maven-2.0.10
          /Library/Tomcat/work/Catalina/hudson.---.com/_/WEB-INF/lib/remoting-1.318.jar
          /usr/local/hudson/data/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.318.jar 50328
          ERROR: Aborted
          Finished: ABORTED

          gj added a comment - I also seem to be encountering this issue with H1.318: A SCM change trigger started this job Updating http://.../trunk U pom.xml At revision 27567 Parsing POMs [someproject] $ java cp /usr/local/hudson/data/plugins/maven-plugin/WEB-INF/lib/maven-agent 1.318.jar:/usr/local/hudson/maven/apache-maven-2.0.10/boot/classworlds-1.1.jar hudson.maven.agent.Main /usr/local/hudson/maven/apache-maven-2.0.10 /Library/Tomcat/work/Catalina/hudson.---.com/_/WEB-INF/lib/remoting-1.318.jar /usr/local/hudson/data/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.318.jar 50328 ERROR: Aborted Finished: ABORTED

          gj added a comment -

          Still getting the same symptoms and behaviour with 1.323

          gj added a comment - Still getting the same symptoms and behaviour with 1.323

          blackmuzzle added a comment -

          Same issue here: Large maven2 project, builds fine on command line, builds fine
          in Hudson - but occasionally the build aborts right after invoking the maven plugin:

          ...
          At revision 4765
          no change for http://redacted/trunk since the previous build
          Parsing POMs
          [southcom] $ /root/.hudson/tools//bin/java -cp
          /root/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.322.jar:/opt/apache-maven-2.1.0/boot/classworlds-1.1.jar
          hudson.maven.agent.Main /opt/apache-maven-2.1.0
          /opt/apache-tomcat-6.0.18/webapps/hudson/WEB-INF/lib/remoting-1.322.jar
          /root/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.322.jar 34633
          /root/.hudson/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
          ERROR: Aborted

          Simply retrying works, eventually. Some days it's hard to get hudson to build,
          other days we don't have a single "aborted" build.

          Oh and yes, access control is enabled and nobody pressed "abort".

          blackmuzzle added a comment - Same issue here: Large maven2 project, builds fine on command line, builds fine in Hudson - but occasionally the build aborts right after invoking the maven plugin: ... At revision 4765 no change for http://redacted/trunk since the previous build Parsing POMs [southcom] $ /root/.hudson/tools//bin/java -cp /root/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.322.jar:/opt/apache-maven-2.1.0/boot/classworlds-1.1.jar hudson.maven.agent.Main /opt/apache-maven-2.1.0 /opt/apache-tomcat-6.0.18/webapps/hudson/WEB-INF/lib/remoting-1.322.jar /root/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.322.jar 34633 /root/.hudson/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar ERROR: Aborted Simply retrying works, eventually. Some days it's hard to get hudson to build, other days we don't have a single "aborted" build. Oh and yes, access control is enabled and nobody pressed "abort".

          Andrew Bayer added a comment -

          The problem here seems to be that the channel never really gets started properly

          • Hudson never even has the chance to run the Maven process. I'm not sure what's
            happening to the channel, though.

          Andrew Bayer added a comment - The problem here seems to be that the channel never really gets started properly Hudson never even has the chance to run the Maven process. I'm not sure what's happening to the channel, though.

          Andrew Bayer added a comment -

          Taking issue - working on reproducing and improving logging.

          Andrew Bayer added a comment - Taking issue - working on reproducing and improving logging.

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=23288
          Log:
          Improving logging for debugging JENKINS-3273

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java http://fisheye4.cenqua.com/changelog/hudson/?cs=23288 Log: Improving logging for debugging JENKINS-3273

          Andrew Bayer added a comment -

          We've been able to reproduce this at least once, with improved debugging:

          ERROR: Aborted Maven execution for InterruptedIOException
          java.net.SocketTimeoutException: Accept timed out
          at java.net.PlainSocketImpl.socketAccept(Native Method)
          at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
          at java.net.ServerSocket.implAccept(ServerSocket.java:450)
          at java.net.ServerSocket.accept(ServerSocket.java:421)
          at
          hudson.maven.MavenProcessFactory$SocketHandler$AcceptorImpl.accept(MavenProcessFactory.java:167)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at
          hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
          at
          hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
          at
          hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
          at hudson.remoting.UserRequest.perform(UserRequest.java:104)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:244)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
          at java.util.concurrent.FutureTask.run(FutureTask.java:123)
          at
          java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
          at java.lang.Thread.run(Thread.java:595)
          Finished: ABORTED

          Andrew Bayer added a comment - We've been able to reproduce this at least once, with improved debugging: ERROR: Aborted Maven execution for InterruptedIOException java.net.SocketTimeoutException: Accept timed out at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at hudson.maven.MavenProcessFactory$SocketHandler$AcceptorImpl.accept(MavenProcessFactory.java:167) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:244) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Finished: ABORTED

          Andrew Bayer added a comment -

          Clarifying summary

          Andrew Bayer added a comment - Clarifying summary

            ashlux ashlux
            peterandersen peterandersen
            Votes:
            23 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated: