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

Batch step running on a node other than the master fails

    XMLWordPrintable

Details

    Description

      Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

      stage('1') {
        node('uitest') {
          bat 'echo something'
        }
      }
      

      After 10 minutes the console output prompts this and the build fails:

      ERROR: script apparently exited with code 0 but asynchronous notification was lost

      In addition the system log gets these exceptions:

      • java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
      • hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

      Attachments

        Issue Links

          Activity

            towel Yoav Miles created issue -
            towel Yoav Miles made changes -
            Field Original Value New Value
            Component/s batch-task-plugin [ 15505 ]
            towel Yoav Miles made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ]
            towel Yoav Miles made changes -
            Description Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             

            {{stage('1') {}}
            {{  node('uitest') {}}
            {{    int returnCode = bat(script: 'echo something', returnStatus: true)}}
            {{    echo "RETURN CODE: $returnCode"}}
            {{  }}}
            {{}}}
            Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    int returnCode = bat(script: 'echo something', returnStatus: true)}}
             {{    echo "RETURN CODE: $returnCode"}}
            {{  }}}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from
            towel Yoav Miles made changes -
            Description Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    int returnCode = bat(script: 'echo something', returnStatus: true)}}
             {{    echo "RETURN CODE: $returnCode"}}
            {{  }}}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from
            Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    int returnCode = bat(script: 'echo something', returnStatus: true)}}
             {{    echo "RETURN CODE: $returnCode"}}
             \{{  }}}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior is new to 2.5
            towel Yoav Miles made changes -
            Description Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    int returnCode = bat(script: 'echo something', returnStatus: true)}}
             {{    echo "RETURN CODE: $returnCode"}}
             \{{  }}}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior is new to 2.5
            Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    int returnCode = bat(script: 'echo something', returnStatus: true)}}
             {{    echo "RETURN CODE: $returnCode"}}
             {

            {  }

            }}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior is new to pipeline 2.5
            towel Yoav Miles made changes -
            Environment Jenkins 2.138.1
            Pipeline 2.5
            Jenkins 2.138.1
            Pipeline 2.6
            towel Yoav Miles made changes -
            Description Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    int returnCode = bat(script: 'echo something', returnStatus: true)}}
             {{    echo "RETURN CODE: $returnCode"}}
             {

            {  }

            }}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior is new to pipeline 2.5
            Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    int returnCode = bat(script: 'echo something', returnStatus: true)}}
             {{    echo "RETURN CODE: $returnCode"}}
             {

            {  }

            }}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior happens since pipeline 2.5
            towel Yoav Miles made changes -
            Attachment log.txt [ 44654 ]
            towel Yoav Miles made changes -
            Description Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    int returnCode = bat(script: 'echo something', returnStatus: true)}}
             {{    echo "RETURN CODE: $returnCode"}}
             {

            {  }

            }}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior happens since pipeline 2.5
            Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             


            {{ {{stage('1') {}}}}
            {{{{  node('uitest') {}}}}
            {{{{    bat 'echo something'}}}}
            {{{{ }}}}}
            {{{{}}}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior happens since pipeline 2.5
            towel Yoav Miles made changes -
            Environment Jenkins 2.138.1
            Pipeline 2.6
            Windows Server 2012 (both master and agent)
            Jenkins 2.138.1
            Pipeline 2.6
            towel Yoav Miles made changes -
            Environment Windows Server 2012 (both master and agent)
            Jenkins 2.138.1
            Pipeline 2.6
            Windows Server 2012 R2 (both master and agent)
            Jenkins 2.138.1
            Pipeline 2.6
            towel Yoav Miles made changes -
            Description Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

             


            {{ {{stage('1') {}}}}
            {{{{  node('uitest') {}}}}
            {{{{    bat 'echo something'}}}}
            {{{{ }}}}}
            {{{{}}}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior happens since pipeline 2.5
            Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

            {{stage('1') {}}
            {{  node('uitest') {}}
            {{    bat 'echo something'}}
            {{ }}}
            {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior happens since pipeline 2.5
            towel Yoav Miles made changes -
            Component/s durable-task-plugin [ 18622 ]
            Component/s pipeline [ 21692 ]
            towel Yoav Miles made changes -
            Environment Windows Server 2012 R2 (both master and agent)
            Jenkins 2.138.1
            Pipeline 2.6
            Windows Server 2012 R2 (both master and agent)
            Jenkins 2.138.1
            Pipeline 2.6
            Durable task plugin 1.26
            towel Yoav Miles made changes -
            Description Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

            {{stage('1') {}}
            {{  node('uitest') {}}
            {{    bat 'echo something'}}
            {{ }}}
            {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior happens since pipeline 2.5
            Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    bat 'echo something'}}
             \{{ }}}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior happens since durable tsak plugin 1.26
            towel Yoav Miles made changes -
            Environment Windows Server 2012 R2 (both master and agent)
            Jenkins 2.138.1
            Pipeline 2.6
            Durable task plugin 1.26
            Windows Server 2012 R2 (both master and agent)
            Jenkins 2.138.1
            Pipeline 2.6
            Durable task plugin 1.26
            Pipeline Nodes and Processes 2.22
            towel Yoav Miles made changes -
            Component/s workflow-durable-task-step-plugin [ 21715 ]
            towel Yoav Miles made changes -
            Description Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    bat 'echo something'}}
             \{{ }}}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from

             

            This behavior happens since durable tsak plugin 1.26
            Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    bat 'echo something'}}
             \{{ }}}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from
            towel Yoav Miles made changes -
            Summary Batch step running on another node fails Batch step running on a node other than the master fails
            towel Yoav Miles made changes -
            Resolution Not A Defect [ 7 ]
            Status Open [ 1 ] Closed [ 6 ]
            bshah Bhushan Shah made changes -
            Resolution Not A Defect [ 7 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            bshah Bhushan Shah made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            jglick Jesse Glick made changes -
            Description Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

            {{stage('1') {}}
             {{  node('uitest') {}}
             {{    bat 'echo something'}}
             \{{ }}}
             {{}}}

            After 10 minutes the console output prompts this and the build fails:
             ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
             * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from
            Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):

            {code}
            stage('1') {
              node('uitest') {
                bat 'echo something'
              }
            }
            {code}

            After 10 minutes the console output prompts this and the build fails:

            bq. ERROR: script apparently exited with code 0 but asynchronous notification was lost

            In addition the system log gets these exceptions:
             * {{java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer}}
             * {{hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from}}
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-52165 [ JENKINS-52165 ]
            amol_malokar milo6 made changes -
            Priority Major [ 3 ] Critical [ 2 ]

            People

              Unassigned Unassigned
              towel Yoav Miles
              Votes:
              7 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated: