java.io.FileNotFoundException: /proc/self/cgroup (No such file or directory)

Jenkins JIRA | Arnaud Héritier | 5 months ago
  1. 0

    Hi, After upgrading from 1.4 to 1.5 my build is failing with {code} + docker inspect -f . cloudbees/java-build-tools:0.0.6 . [Pipeline] withDockerContainer [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline java.io.FileNotFoundException: /proc/self/cgroup (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.FilePath.read(FilePath.java:1779) at hudson.FilePath.readToString(FilePath.java:1880) at org.jenkinsci.plugins.docker.workflow.client.DockerClient.getContainerIdIfContainerized(DockerClient.java:300) at org.jenkinsci.plugins.docker.workflow.WithContainerStep$Execution.start(WithContainerStep.java:149) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:137) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:113) at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:21) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:103) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:15) at org.jenkinsci.plugins.docker.workflow.Docker$Image.inside(jar:file:/Users/arnaud/Downloads/jenkins_home/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:112) at org.jenkinsci.plugins.docker.workflow.Docker.node(jar:file:/Users/arnaud/Downloads/jenkins_home/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:66) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:55) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:106) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:79) at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.ClosureBlock.eval(ClosureBlock.java:40) at com.cloudbees.groovy.cps.Next.step(Next.java:58) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:32) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:29) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:29) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:276) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:78) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:185) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:183) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Finished: FAILURE {code} You can find my project here: https://github.com/jenkins-demo/simple-maven-project-with-tests/tree/docker My Jenkinsfile is {code} docker.image('cloudbees/java-build-tools:0.0.6').inside { // Mark the code checkout 'stage'.... stage 'Checkout' // Get some code from a GitHub repository checkout scm // Mark the code build 'stage'.... stage 'Build' // Run the maven build sh "mvn -B clean verify -Dmaven.test.failure.ignore=true" stage 'Report' step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/*.xml']) } {code} I'm using Docker Beta on MacOS. Downgrading to 1.4 solves the issue.

    Jenkins JIRA | 5 months ago | Arnaud Héritier
    java.io.FileNotFoundException: /proc/self/cgroup (No such file or directory)
  2. 0
  3. 0

    When upgrading from 1.662.2 LTS i got this issue when connecting to main page: {code} INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@8ba8667: display name [Root WebApplicationContext]; startup date [Thu Mar 24 22:45:02 UTC 2016]; root of context hierarchy Mar 24, 2016 10:45:02 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@8ba8667]: org.springframework.beans.factory.support.DefaultListableBeanFactory@11787592 Mar 24, 2016 10:45:02 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@11787592: defining beans [filter,legacy]; root of factory hierarchy Mar 24, 2016 10:45:02 PM jenkins.util.groovy.GroovyHookScript execute INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy Mar 24, 2016 10:45:02 PM hudson.model.AsyncPeriodicWork$1 run INFO: Started Download metadata Mar 24, 2016 10:45:02 PM hudson.model.AsyncPeriodicWork createListener INFO: Moved /var/jenkins_home/Download metadata.log to /var/jenkins_home/logs/tasks/Download metadata.log.1 Mar 24, 2016 10:45:02 PM hudson.model.AsyncPeriodicWork$1 run INFO: Finished Download metadata. 6 ms Mar 24, 2016 10:45:02 PM org.jenkinsci.main.modules.sshd.SSHD start INFO: Started SSHD at port 50000 Mar 24, 2016 10:45:11 PM hudson.model.UpdateSite updateData INFO: Obtained the latest update center data file for UpdateSource default Mar 24, 2016 10:45:11 PM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Mar 24, 2016 10:45:11 PM hudson.util.BootFailure publish SEVERE: Failed to initialize Jenkins hudson.util.HudsonFailedToLoad: java.io.FileNotFoundException: /var/jenkins_home/secrets/initialAdminPassword (No such file or directory) at hudson.WebAppMain$3.run(WebAppMain.java:237) Caused by: java.io.FileNotFoundException: /var/jenkins_home/secrets/initialAdminPassword (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.FilePath.read(FilePath.java:1751) at hudson.FilePath.readToString(FilePath.java:1852) at jenkins.install.SetupWizard.<init>(SetupWizard.java:110) at jenkins.model.Jenkins.<init>(Jenkins.java:880) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:225) Mar 24, 2016 10:45:11 PM jenkins.model.Jenkins cleanUp INFO: Stopping Jenkins Mar 24, 2016 10:45:11 PM jenkins.model.Jenkins _cleanUpDisconnectComputers INFO: Starting node disconnection {code} On 1.642.2 security through LDAP was enabled.

    Jenkins JIRA | 9 months ago | Laurent TOURREAU
    hudson.util.HudsonFailedToLoad: java.io.FileNotFoundException: /var/jenkins_home/secrets/initialAdminPassword (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-33800] java.io.FileNotFoundException: /var/jenkins_home/secrets/initialAdminPassword when upgrading from 1.642.2 LTS to 2.0-beta-1 - Jenkins JIRA

    jenkins-ci.org | 8 months ago
    hudson.util.HudsonFailedToLoad: java.io.FileNotFoundException: / /jenkins_home/secrets/initialAdminPassword (No such file or directory)
  6. 0

  1. r1chjames 1 times, last 5 days ago
  2. richard77 1 times, last 2 weeks ago
  3. gehel 2 times, last 2 weeks ago
  4. Kialandei 100 times, last 2 weeks ago
  5. Reich 1 times, last 3 weeks ago
45 more registered users
50 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    /proc/self/cgroup (No such file or directory)

    at java.io.FileInputStream.open0()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open0(Native Method)
    2. java.io.FileInputStream.open(FileInputStream.java:195)
    3. java.io.FileInputStream.<init>(FileInputStream.java:138)
    3 frames
  3. Hudson
    FilePath.readToString
    1. hudson.FilePath.read(FilePath.java:1779)
    2. hudson.FilePath.readToString(FilePath.java:1880)
    2 frames
  4. org.jenkinsci.plugins
    CpsScript.invokeMethod
    1. org.jenkinsci.plugins.docker.workflow.client.DockerClient.getContainerIdIfContainerized(DockerClient.java:300)
    2. org.jenkinsci.plugins.docker.workflow.WithContainerStep$Execution.start(WithContainerStep.java:149)
    3. org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:137)
    4. org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:113)
    4 frames
  5. Groovy
    AbstractCallSite.call
    1. groovy.lang.GroovyObject$invokeMethod.call(Unknown Source)
    2. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    3 frames
  6. org.kohsuke.groovy
    GroovyInterceptor.onMethodCall
    1. org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151)
    2. org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:21)
    2 frames
  7. org.jenkinsci.plugins
    SandboxInterceptor.onMethodCall
    1. org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:115)
    2. org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:103)
    2 frames
  8. org.kohsuke.groovy
    Checker.checkedCall
    1. org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:149)
    2. org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:146)
    2 frames
  9. com.cloudbees.groovy
    SandboxInvoker.methodCall
    1. com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:15)
    1 frame