Jenkins fails to start with EnvelopeException error

Issue

Jenkins will not start up and the logs are displaying an error like:

com.cloudbees.jenkins.cjp.installmanager.EnvelopeException: Errors found 
at com.cloudbees.jenkins.cjp.installmanager.CJPPluginManager$1.createException(CJPPluginManager.java:75) 
at com.cloudbees.jenkins.cjp.installmanager.CJPPluginManager$1.createException(CJPPluginManager.java:72) 
at com.cloudbees.jenkins.plugins.updates.envelope.AbstractOutput.createException(AbstractOutput.java:36) 
at com.cloudbees.jenkins.plugins.updates.envelope.Validation$Error.get(Validation.java:273) 
at com.cloudbees.jenkins.cjp.installmanager.CJPPluginManager.loadPlugins(CJPPluginManager.java:236) 
at com.cloudbees.jenkins.cjp.installmanager.CJPPluginManager.loadBundledPlugins(CJPPluginManager.java:215) 
at hudson.PluginManager$1$1.run(PluginManager.java:383) 
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) 
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) 
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1083) 
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) 
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
at java.lang.Thread.run(Thread.java:748) 
Caused: org.jvnet.hudson.reactor.ReactorException 
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282) 
at jenkins.InitReactorRunner.run(InitReactorRunner.java:48) 
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1117) 
at jenkins.model.Jenkins.<init>(Jenkins.java:921) 
at hudson.model.Hudson.<init>(Hudson.java:85) 
at hudson.model.Hudson.<init>(Hudson.java:81) 
at hudson.WebAppMain$3.run(WebAppMain.java:233) 
Caused: hudson.util.HudsonFailedToLoad 
at hudson.WebAppMain$3.run(WebAppMain.java:250)

Environment

Resolution

Usually this error will occur when the $JENKINS_HOME/cb-envelope/envelope.json file is corrupt or empty. To fix this, simply delete the envelope.json file and restart Jenkins. This should prompt Jenkins to recreate the file correctly on boot up and allow it to start successfully.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.