Details

    • Similar Issues:

      Description

      Hello.
      I'm using the Blueocean and Pipelines on Alpine linux and started seeing next error on each Pipeline SH step:

      [Pipeline] sh[decline_cookies_policy-testing-job] Running shell script
      ps: unrecognized option: p
      BusyBox v1.28.4 (2018-05-30 10:45:57 UTC) multi-call binary.

      Usage: ps [-o COL1,COL2=HEADER]

      Show list of processes

      -o COL1,COL2=HEADER Select columns for display
      + echo hello world[Pipeline] }
      Looks like plugin tries to call `ps` with unsuported for Alpine parameters on each sh step.

       

       

        Attachments

          Issue Links

            Activity

            Hide
            bgras Benjamin Gras added a comment -

            It looks like it might come from the latest version for the "Durable Task" plugin. I have the same problem in 1.23, and I did not have it in 1.22 (and it looks like it's a big update).

            Could you check on your side and update the component if it's the same for you ?

            I'm running Jenkins 2.135 in docker.

            Show
            bgras Benjamin Gras added a comment - It looks like it might come from the latest version for the "Durable Task" plugin. I have the same problem in 1.23, and I did not have it in 1.22 (and it looks like it's a big update). Could you check on your side and update the component if it's the same for you ? I'm running Jenkins 2.135 in docker.
            Hide
            mbld Martin Bornhold added a comment -

            Hi, this bug also hit me and I am also running it on Alpine based docker images. For me it looks like this bug leads to not propagating the correct data from the processes to the Durable Task plugin beacuse it kills long running processes which are definitely not stuck and producing output on the console. This is only my assumption, did not investiage on it.

            Downgrading from 1.23 -> 1.22 solves the issue for me but a fix would be greatly appreciated 

            I am unsing Jenkins 2.121.2 in Kubernetes (docker).

            Show
            mbld Martin Bornhold added a comment - Hi, this bug also hit me and I am also running it on Alpine based docker images. For me it looks like this bug leads to not propagating the correct data from the processes to the Durable Task plugin beacuse it kills long running processes which are definitely not stuck and producing output on the console. This is only my assumption, did not investiage on it. Downgrading from 1.23 -> 1.22 solves the issue for me but a fix would be greatly appreciated  I am unsing Jenkins 2.121.2 in Kubernetes (docker).
            Hide
            0x91 Charlie Stocker added a comment - - edited

            Benjamin Grasis correct. Here is the git blame that introduced this bug:

            https://github.com/jenkinsci/durable-task-plugin/blame/master/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java#L143

            This affects any container that uses BusyBox instead of GNU procps. BusyBox's ps is quite limited and doesn't support any kind of filtering except for the column output.

            As the command is already running a grep to check for the existence of the watched PID in the ps output, it's redundant to also ask ps to only show us that PID so the -p parameter could be dropped to maintain compatibility with busybox

            Show
            0x91 Charlie Stocker added a comment - - edited Benjamin Gras is correct. Here is the git blame that introduced this bug: https://github.com/jenkinsci/durable-task-plugin/blame/master/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java#L143 This affects any container that uses BusyBox instead of GNU procps. BusyBox's ps is quite limited and doesn't support any kind of filtering except for the column output. As the command is already running a grep to check for the existence of the watched PID in the ps output, it's redundant to also ask ps to only show us that PID so the -p parameter could be dropped to maintain compatibility with busybox
            Hide
            hong yan-hong wang added a comment -

            Totally same with Martin Bornhold.

            In my case, now I downgrade to use 'kubernetes:1.10.2' because 'kubernetes:1.11.0' will lead 'Durable Task' upgrade to 1.23.

            Show
            hong yan-hong wang added a comment - Totally same with Martin Bornhold . In my case, now I downgrade to use 'kubernetes:1.10.2' because 'kubernetes:1.11.0' will lead 'Durable Task' upgrade to 1.23.
            Hide
            paeddl Patrick Baber added a comment -

            I had the same problem, but I first saw the jobs aborted with a message like this:

            wrapper script does not seem to be touching the log file in /var/****_home/workspace/project-BBCPYWAXGTF745UL4PB4M3MPJPPB3QBHBKQGDBMMUI4RXBZRYJCQ@tmp/durable-ebb51810 (JENKINS-48300: if on a laggy filesystem, consider -Dorg.****ci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=300) script returned exit code -1
            

            With that I found a the wrong hint on Stack Overflow: https://stackoverflow.com/questions/50067372/where-to-set-dorg-jenkinsci-plugins-durabletask-bourneshellscript-heartbeat-che

            Only the downgrade of the Durable Task plugin to version 1.22 helps me.

            Just saying…

            Show
            paeddl Patrick Baber added a comment - I had the same problem, but I first saw the jobs aborted with a message like this: wrapper script does not seem to be touching the log file in / var /****_home/workspace/project-BBCPYWAXGTF745UL4PB4M3MPJPPB3QBHBKQGDBMMUI4RXBZRYJCQ@tmp/durable-ebb51810 (JENKINS-48300: if on a laggy filesystem, consider -Dorg.****ci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=300) script returned exit code -1 With that I found a the wrong hint on Stack Overflow: https://stackoverflow.com/questions/50067372/where-to-set-dorg-jenkinsci-plugins-durabletask-bourneshellscript-heartbeat-che Only the downgrade of the Durable Task plugin to version 1.22 helps me. Just saying…

              People

              • Assignee:
                Unassigned
                Reporter:
                trane9991 Taras Postument
              • Votes:
                3 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: