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

Argument list too long thrown by DurableTaskStep

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • kubernetes-plugin
    • None
    • Jenkins LTS 2.452.1
      durable-task-plugin: 555.v6802fe0f0b_82
      kubernetes-plugin: 4253.v7700d91739e5

       

      at a particular place in one of our pipelines sh() calls start failing 

      that happens with both the binary_wrapper and the script_wrapper of `durabletask.BourneShellScript`.

      while `org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true`:

      • with the binary wrapper I get the error log:
        sh: 324: /home/jenkins/agent/caches/durable-task/durable_task_monitor_555.v6802fe0f0b_82_linux_64: Argument list too long

         

      • with the script wrapper this error log:
        sh: 324: nohup: Argument list too long

         

      but I am not sure if I have any influence on the arguments passed to the BourneShellScript wrappers

       

      according to the jenkins system logs, this is the call that is failing with the above error 

      Jul 03, 2024 10:31:18 AM FINE org.jenkinsci.plugins.durabletask.BourneShellScript launching [/home/jenkins/agent/caches/durable-task/durable_task_monitor_555.v6802fe0f0b_82_linux_64, -controldir=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e, -result=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e/jenkins-result.txt, -log=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e/jenkins-log.txt, -cookiename=JENKINS_SERVER_COOKIE, -cookieval=durable-1ca101f886c7abfd4d0b13c85b8d02399b77afa195cd70e975190c3f7c5192c4, -script=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e/script.sh, -daemon, -debug]
      Jul 03, 2024 10:31:18 AM FINE org.jenkinsci.plugins.durabletask.BourneShellScriptstarting check in /home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e 

       

      any ideas what can be wrong, or how I can diagnose further what is wrong?

          [JENKINS-73393] Argument list too long thrown by DurableTaskStep

          Yacine created issue -
          Yacine made changes -
          Description Original:  

          at a particular place in one of our pipelines sh() calls start failing 



          that happens with both the binary_wrapper and the script_wrapper of `durabletask.BourneShellScript`.

          while `org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true`:

          - with the binary wrapper I get the error log:
          {code:java}
          sh: 324: /home/jenkins/agent/caches/durable-task/durable_task_monitor_555.v6802fe0f0b_82_linux_64: Argument list too long{code}
           

          - with the script wrapper this error log:
          {code:java}
          sh: 324: nohup: Argument list too long{code}
           

          but I am not sure if I have any influence on the arguments passed to the BourneShellScript wrappers

           

          according to the jenkins system logs, this is the call that is failing with the above error 


          {code:java}
          Jul 03, 2024 10:31:18 AM FINE org.jenkinsci.plugins.durabletask.BourneShellScriptlaunching [/home/jenkins/agent/caches/durable-task/durable_task_monitor_555.v6802fe0f0b_82_linux_64, -controldir=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e, -result=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e/jenkins-result.txt, -log=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e/jenkins-log.txt, -cookiename=JENKINS_SERVER_COOKIE, -cookieval=durable-1ca101f886c7abfd4d0b13c85b8d02399b77afa195cd70e975190c3f7c5192c4, -script=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e/script.sh, -daemon, -debug]
          Jul 03, 2024 10:31:18 AM FINE org.jenkinsci.plugins.durabletask.BourneShellScriptstarting check in /home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e {code}
           

          any ideas what can be wrong, or how I can diagnose further what is wrong?
          New:  

          at a particular place in one of our pipelines sh() calls start failing 

          that happens with both the binary_wrapper and the script_wrapper of `durabletask.BourneShellScript`.

          while `org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true`:
           - with the binary wrapper I get the error log:
          {code:java}
          sh: 324: /home/jenkins/agent/caches/durable-task/durable_task_monitor_555.v6802fe0f0b_82_linux_64: Argument list too long{code}
           

           - with the script wrapper this error log:
          {code:java}
          sh: 324: nohup: Argument list too long{code}
           

          but I am not sure if I have any influence on the arguments passed to the BourneShellScript wrappers

           

          according to the jenkins system logs, this is the call that is failing with the above error 
          {code:java}
          Jul 03, 2024 10:31:18 AM FINE org.jenkinsci.plugins.durabletask.BourneShellScript launching [/home/jenkins/agent/caches/durable-task/durable_task_monitor_555.v6802fe0f0b_82_linux_64, -controldir=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e, -result=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e/jenkins-result.txt, -log=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e/jenkins-log.txt, -cookiename=JENKINS_SERVER_COOKIE, -cookieval=durable-1ca101f886c7abfd4d0b13c85b8d02399b77afa195cd70e975190c3f7c5192c4, -script=/home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e/script.sh, -daemon, -debug]
          Jul 03, 2024 10:31:18 AM FINE org.jenkinsci.plugins.durabletask.BourneShellScriptstarting check in /home/jenkins/agent/workspace/fix_end-notifications-notworking@tmp/durable-4984d89e {code}
           

          any ideas what can be wrong, or how I can diagnose further what is wrong?
          Yacine made changes -
          Component/s New: kubernetes-plugin [ 20639 ]
          Component/s Original: durable-task-plugin [ 18622 ]
          Yacine made changes -
          Environment Original: Jenkins LTS 2.452.1
          durable-task-plugin: 555.v6802fe0f0b_82
          New: Jenkins LTS 2.452.1
          durable-task-plugin: 555.v6802fe0f0b_82
          kubernetes-plugin: 4253.v7700d91739e5

            Unassigned Unassigned
            ysmaoui Yacine
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: