Skip to content

Instantly share code, notes, and snippets.

@tbell83
Last active February 23, 2018 15:50
Show Gist options
  • Select an option

  • Save tbell83/59fdba022d980f2916021dc26cad2566 to your computer and use it in GitHub Desktop.

Select an option

Save tbell83/59fdba022d980f2916021dc26cad2566 to your computer and use it in GitHub Desktop.
Jenkins Failing to start
Running from: /usr/share/jenkins/jenkins.war
Sep 12, 2016 2:19:11 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @383ms
Sep 12, 2016 2:19:12 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Sep 12, 2016 2:19:12 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Sep 12, 2016 2:19:12 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Sep 12, 2016 2:19:12 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: /mnt/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Sep 12, 2016 2:19:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.@70e9c95d{/,file:/var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Sep 12, 2016 2:19:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector@368247b9{HTTP/1.1}{0.0.0.0:8080}
Sep 12, 2016 2:19:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started @1702ms
Sep 12, 2016 2:19:13 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Sep 12, 2016 2:19:13 PM hudson.util.BootFailure publish
SEVERE: Failed to initialize Jenkins
hudson.util.HudsonFailedToLoad: java.io.IOException: Failed to create a temporary file in /mnt/jenkins
at hudson.WebAppMain$3.run(WebAppMain.java:244)
Caused by: java.io.IOException: Failed to create a temporary file in /mnt/jenkins
at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:68)
at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:55)
at hudson.util.TextFile.write(TextFile.java:118)
at jenkins.model.Jenkins.<init>(Jenkins.java:855)
at hudson.model.Hudson.<init>(Hudson.java:85)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.WebAppMain$3.run(WebAppMain.java:227)
Caused by: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:2024)
at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:66)
... 6 more
Sep 12, 2016 2:19:13 PM jenkins.model.Jenkins cleanUp
INFO: Stopping Jenkins
Sep 12, 2016 2:19:13 PM jenkins.model.Jenkins$21 onAttained
INFO: Started termination
Sep 12, 2016 2:19:13 PM jenkins.model.Jenkins$21 onTaskFailed
SEVERE: Failed NioChannelSelector.cleanUp
java.lang.IllegalArgumentException: Unable to inject class jenkins.slaves.NioChannelSelector
at hudson.init.TaskMethodFinder.lookUp(TaskMethodFinder.java:125)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at jenkins.model.Jenkins$20.execute(Jenkins.java:3016)
at org.jvnet.hudson.reactor.Reactor$Node.runIfPossible(Reactor.java:139)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:128)
at jenkins.model.Jenkins$20.execute(Jenkins.java:3016)
at org.jvnet.hudson.reactor.Reactor$Node.runIfPossible(Reactor.java:139)
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:263)
at jenkins.model.Jenkins._cleanUpRunTerminators(Jenkins.java:3013)
at jenkins.model.Jenkins.cleanUp(Jenkins.java:2935)
at hudson.WebAppMain$3.run(WebAppMain.java:248)
Sep 12, 2016 2:19:13 PM jenkins.model.Jenkins$21 onAttained
INFO: Completed termination
Sep 12, 2016 2:19:13 PM jenkins.model.Jenkins _cleanUpDisconnectComputers
INFO: Starting node disconnection
Sep 12, 2016 2:19:13 PM jenkins.model.Jenkins _cleanUpPersistQueue
INFO: Persisting build queue
Sep 12, 2016 2:19:13 PM hudson.model.Queue save
WARNING: Failed to write out the queue file /mnt/jenkins/queue.xml
java.io.IOException: Failed to create a temporary file in /mnt/jenkins
at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:68)
at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:55)
at hudson.XmlFile.write(XmlFile.java:175)
at hudson.model.Queue.save(Queue.java:449)
at jenkins.model.Jenkins._cleanUpPersistQueue(Jenkins.java:3244)
at jenkins.model.Jenkins.cleanUp(Jenkins.java:2955)
at hudson.WebAppMain$3.run(WebAppMain.java:248)
Caused by: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:2024)
at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:66)
... 6 more
Sep 12, 2016 2:19:13 PM jenkins.model.Jenkins cleanUp
INFO: Jenkins stopped
@guizhanluo
Copy link

How to solve this problem? Thank you!

@bradical
Copy link

Did anyone figure it out? I just upgraded a handful of plugins and ran into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment