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

executing setns process caused "exit status 40"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • docker-slaves-plugin
    • None
    • Jenkins 2.60.3
      Docker Slaves Plugin 1.0.7

      Having a job with just a shell command

      echo "Hello World"

      When using a prebuild image, everything seems ok. But when using "Main build container" as "Build Dockerfile"

      Dockerfile containing:

       

      FROM jenkins/jenkins:lts
      RUN touch /tmp/test

       

       

      I get inconsistent results. Most of the time it fails without explicit error.

      Here are the different results I obtained.

      Most interesting seems to be the last one...

      00:00:11.116  > git tag -l # timeout=10
      00:00:11.547 Checking out Revision 478eb12a2d2ccd08c29eb548c8e4327edd95e746 (origin/asroot, origin/merge-requests/1)
      00:00:11.559 Commit message: "Use -y on apt"
      00:00:11.563  > git config core.sparsecheckout # timeout=10
      00:00:11.566  > git checkout -f 478eb12a2d2ccd08c29eb548c8e4327edd95e746
      00:00:11.572  > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10
      00:00:11.576  > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10
      00:00:14.307 Hello World
      00:00:14.307 + echo Hello World
      00:00:14.530 Finished: SUCCESS
      00:00:08.540 Checking out Revision 478eb12a2d2ccd08c29eb548c8e4327edd95e746 (origin/asroot, origin/merge-requests/1)
      00:00:08.562 Commit message: "Use -y on apt"
      00:00:08.566  > git config core.sparsecheckout # timeout=10
      00:00:08.570  > git checkout -f 478eb12a2d2ccd08c29eb548c8e4327edd95e746
      00:00:08.579  > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10
      00:00:08.585  > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10
      00:00:11.697 Build step 'Execute shell' marked build as failure
      00:00:12.197 Finished: FAILURE
      00:00:09.068  > git tag -l # timeout=10
      00:00:09.728 Checking out Revision 478eb12a2d2ccd08c29eb548c8e4327edd95e746 (origin/merge-requests/1, origin/asroot)
      00:00:09.740 Commit message: "Use -y on apt"
      00:00:09.745  > git config core.sparsecheckout # timeout=10
      00:00:09.747  > git checkout -f 478eb12a2d2ccd08c29eb548c8e4327edd95e746
      00:00:09.753  > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10
      00:00:09.758  > git rev-list 478eb12a2d2ccd08c29eb548c8e4327edd95e746 # timeout=10
      00:00:13.461 rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "process_linux.go:81: executing setns process caused \"exit status 40\""
      00:00:13.461  00:00:13.465 Build step 'Execute shell' marked build as failure 00:00:13.715 Finished: FAILURE

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

              Created:
              Updated: