Jenkins won't start: WARNING: Failed to load hudson.scm.Cvs - jenkins

I recently upgraded Jenkins from 1.506 to 1.515
After the upgrade, Jenkins doesn't seem to start. The logs are full of warnings like:
WARNING: Failed to load hudson.scm.Cvs...
java.lang.InstantiationException: file:/jenkins/plugins/cvs/WEB-INF/classes/META-INF/annotations/hudson.Extension might need to be rebuilt: java.lang.ClassNotFoundException: hudson.scm.Cvs...
And the web GUI is inaccessible (times out).
I have downgraded to 1.506 again, but same result.
Since all the log warnings are CVS related (which I don't use, we're on svn), I tried deleting
/jenkins/plugins/cvs
/jenkins/plugins/cvs.jpi
But they come back after each restart, along with all the warnings.
I am running jenkins as a war in a dedicated tomcat running on Solaris.
Right now, Jenkins is completely inaccessible. Any pointers appreciated!
Larger snippet of logs below.
May 23, 2013 2:50:17 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-28080
May 23, 2013 2:50:17 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 538 ms
May 23, 2013 2:50:17 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 23, 2013 2:50:17 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Jenkins home directory: /data/trg/tar5/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
May 23, 2013 2:50:19 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-28080
May 23, 2013 2:50:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2182 ms
May 23, 2013 2:50:21 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
May 23, 2013 2:50:21 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
ScriptContent not available for JVM 1.5
May 23, 2013 2:50:22 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
May 23, 2013 2:50:22 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
May 23, 2013 2:50:22 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
May 23, 2013 2:50:23 PM hudson.ExtensionFinder$Sezpoz scout
WARNING: Failed to scout hudson.scm.CvsModule$DescriptorImpl
java.lang.InstantiationException: file:/data/trg/tar5/jenkins/plugins/cvs/WEB-INF/classes/META-INF/annotations/hudson.Extension might need to be rebuilt: java.lang.ClassNotFoundException: hudson.scm.CvsModule$DescriptorImpl
at net.java.sezpoz.IndexItem.element(IndexItem.java:144)
at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:312)
at hudson.ExtensionList.load(ExtensionList.java:295)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
at hudson.ExtensionList.iterator(ExtensionList.java:138)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:311)
at hudson.ExtensionList.load(ExtensionList.java:295)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
at hudson.ExtensionList.get(ExtensionList.java:153)
at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1090)
at hudson.maven.PluginImpl.init(PluginImpl.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: hudson.scm.CvsModule$DescriptorImpl
at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:966)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
... 24 more
May 23, 2013 2:50:23 PM hudson.ExtensionFinder$Sezpoz scout
WARNING: Failed to scout hudson.scm.CvsRepositoryItem$CvsRepositoryItemDescriptor
java.lang.InstantiationException: file:/data/trg/tar5/jenkins/plugins/cvs/WEB-INF/classes/META-INF/annotations/hudson.Extension might need to be rebuilt: java.lang.ClassNotFoundException: hudson.scm.CvsRepositoryItem$CvsRepositoryItemDescriptor
at net.java.sezpoz.IndexItem.element(IndexItem.java:144)
at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:312)
at hudson.ExtensionList.load(ExtensionList.java:295)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
at hudson.ExtensionList.iterator(ExtensionList.java:138)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:311)
at hudson.ExtensionList.load(ExtensionList.java:295)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
at hudson.ExtensionList.get(ExtensionList.java:153)
at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1090)
at hudson.maven.PluginImpl.init(PluginImpl.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: hudson.scm.CvsRepositoryItem$CvsRepositoryItemDescriptor
at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:966)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
... 24 more
May 23, 2013 2:50:23 PM hudson.ExtensionFinder$Sezpoz scout
WARNING: Failed to scout hudson.scm.browsers.ViewCVS$DescriptorImpl
java.lang.InstantiationException: file:/data/trg/tar5/jenkins/plugins/cvs/WEB-INF/classes/META-INF/annotations/hudson.Extension might need to be rebuilt: java.lang.ClassNotFoundException: hudson.scm.browsers.ViewCVS$DescriptorImpl
at net.java.sezpoz.IndexItem.element(IndexItem.java:144)
at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:312)
at hudson.ExtensionList.load(ExtensionList.java:295)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
at hudson.ExtensionList.iterator(ExtensionList.java:138)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:311)
at hudson.ExtensionList.load(ExtensionList.java:295)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
at hudson.ExtensionList.get(ExtensionList.java:153)
at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1090)
at hudson.maven.PluginImpl.init(PluginImpl.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: hudson.scm.browsers.ViewCVS$DescriptorImpl
at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:966)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
... 24 more
May 23, 2013 2:50:23 PM hudson.ExtensionFinder$Sezpoz scout
WARNING: Failed to scout hudson.scm.cvstagging.LegacyTagAction$LegacyTagActionDescriptor

I resolved this by clearing the "Workspace Root Directory". That is:
Stopping Jenkins
Moving the workspace folder (mv JENKINS_HOME/workspace JENKINS_HOME/workspace-old)
Creating a new workspace (mkdir JENKINS_HOME/workspace)
Restarting Jenkins
I don't what became corrupted, or how, but this solution didn't seem to have any adverse affects.
According to the Jenkins config page (Jenkins > Manage Jenkins > Configure System > Click Advance button near Home directory) the Workspace Root Directory is used to "Specify where Jenkins would store job workspaces on the master node."
From what I could determine, it seems to just store the files checked out from svn for each job, which are obviously easily replaced.
Anyway, all working again now.
And the upgrade worked fine second time around.

Related

Unable to execute jenkins.war in command Prompt

Remaining logNavigated to folder where my .war is located and executed 'java -jar jenkins.war'.Then this is the error i am getting while i am executing in cmd.
`Unable to run Jenkins.war in cmd,These is the whole log
WARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by Main (file:/C:/Self%20Learning/Jenkins/jenkins.war) to field java.util.zip.ZipFile.nameWARNING: Please consider reporting this to the maintainers of MainWARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operationsWARNING: All illegal access operations will be denied in a future releaseRunning from: C:\Self Learning\Jenkins\jenkins.warwebroot: $user.home/.jenkins33mFeb 22, 2018 12:38:13 PM Main deleteWinstoneTempContentsWARNING: Failed to delete the temporary Winstone file C:\Users\bchalla\AppData\Local\Temp\winstone\jenkins.war0mFeb 22, 2018 12:38:13 PM org.eclipse.jetty.util.log.Log initializedINFO: Logging initialized #704ms to org.eclipse.jetty.util.log.JavaUtilLogFeb 22, 2018 12:38:13 PM winstone.Logger logInternalINFO: Beginning extraction from war file33mFeb 22, 2018 12:38:16 PM org.eclipse.jetty.server.handler.ContextHandler setContextPathWARNING: Empty contextPath[0mFeb 22, 2018 12:38:16 PM org.eclipse.jetty.server.Server doStartINFO: jetty-9.4.z-SNAPSHOTFeb 22, 2018 12:38:18 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServletINFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServletFeb 22, 2018 12:38:18 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStartINFO: DefaultSessionIdManager workerName=node0Feb 22, 2018 12:38:18 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStartINFO: No SessionScavenger set, using defaultsFeb 22, 2018 12:38:18 PM org.eclipse.jetty.server.session.HouseKeeper startScavengingINFO: Scavenging every 660000msJenkins home directory: C:\Users\bchalla\.jenkins found at: $user.home/.jenkinsFeb 22, 2018 12:38:19 PM org.eclipse.jetty.server.handler.ContextHandler doStartINFO: Startedw.#f1a45f8{/,file:///C:/Users/bchalla/.jenkins/war/,AVAILABLE}C:\Users\bchalla\.jenkins\war}Feb 22, 2018 12:38:19 PMorg.eclipse.jetty.server.AbstractConnector doStopINFO: StoppedServerConnector#270b6b5e{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}Feb 22, 2018 12:38:19 PM org.eclipse.jetty.server.session.HouseKeeper stopScavengingINFO: Stopped scavengingfeb 22, 2018 12:38:19 PM hudson.WebAppMain contextDestroyedINFO: Shutting down a Jenkins instance that was still starting ujava.lang.Throwable: reasonat hudson.WebAppMain.contextDestroyed(WebAppMain.java:388)atorg.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:898)at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:545)atorg.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:873)atorg.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:355)atorg.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1507)at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1471 at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:927)
at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:271)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:569)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:142)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:160)
at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:124)
at org.eclipse.jetty.server.Server.doStop(Server.java:523)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at winstone.Launcher.shutdown(Launcher.java:307)
at winstone.Launcher.<init>(Launcher.java:167)
at winstone.Launcher.main(Launcher.java:354)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:294)
at Main.main(Main.java:132)Exception in thread "Jenkins initialization thread" Feb 22, 2018 12:38:19 PM org.eclipse.jetty.server.handler.ContextHandler doStopINFO: Stopped w.#f1a45f8{/,null,UNAVAILABLE}{C:\Users\bchalla\.jenkins\war}java.lang.NoClassDefFoundError: hudson/util/HudsonFailedToLoad
at hudson.WebAppMain$3.run(WebAppMain.java:247)Caused by: java.lang.ClassNotFoundException: hudson.util.HudsonFailedToLoad
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 1 moreFeb 22, 2018 12:38:19 PM winstone.Logger logInternalINFO: Winstone shutdown successfullyjava.io.IOException: Failed to start Jetty
at winstone.Launcher.<init>(Launcher.java:156)
at winstone.Launcher.main(Launcher.java:354)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:294)
at Main.main(Main.java:132)Caused by: java.net.BindException: Address already in use: bind
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Unknown Source)
at java.base/sun.nio.ch.Net.bind(Unknown Source)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at java.base/sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at
'
Can you please check in the processes if any other instance of Jenkins is running, also if there are any, please kill all of them start command prompt in admin mode and then try executing command again.
You can also check if the port is being occupied by some other process.

jenkins failed to load on java.io.IOException

We had installed Jenkins couple of weeks back when we migrated from one server to another, which was working fine.
We later migrated our jobs with same name like previous job in old jenkins and installed plugins needed. They were also working fine.
Later placed one job’s config.xml and restarted jenkins using safe restart from ui and as a process too.
But jenkins is failing on some 'ERROR Unable to create file nga/logs/nga.log java.io.IOException'.
We really don't understand where it was trying to write in unix file system.
We tried completely removing that last job of which we had pasted config.xml and restarted it, even same error.
On UI it says : Please wait while Jenkins is getting ready to work…
jenkins version: 2.89.3
java : 1.8.0_60
Full jenkins logs are below.
Jenkins home directory: /app/jenkins/jenkins_home found at: SystemProperties.getProperty("JENKINS_HOME")
Feb 17, 2018 12:53:00 PM org.eclipse.jetty.server.handler.ContextHandler doStart
INFO: Started w.#2254127a{/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Feb 17, 2018 12:53:00 PM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector#5be1d0a4{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
Feb 17, 2018 12:53:00 PM org.eclipse.jetty.server.Server doStart
INFO: Started #1101ms
Feb 17, 2018 12:53:00 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
Feb 17, 2018 12:53:01 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Feb 17, 2018 12:53:01 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Feb 17, 2018 12:53:01 PM hudson.plugins.ansicolor.PluginImpl start
INFO: AnsiColor: eliminating boring output (https://github.com/jenkinsci/ansicolor-plugin)
Feb 17, 2018 12:53:04 PM com.sonyericsson.hudson.plugins.gerrit.trigger.PluginImpl start
INFO: Starting Gerrit-Trigger Plugin
Feb 17, 2018 12:53:04 PM com.sonymobile.tools.gerrit.gerritevents.GerritSendCommandQueue startQueue
INFO: SendQueue started! Current pool size: 1
Feb 17, 2018 12:53:04 PM ruby.RubyRuntimePlugin start
INFO: Injecting JRuby into XStream
2018-02-17 12:53:11,291 pool-6-thread-3 ERROR Unable to create file nga/logs/nga.log java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1012)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:421)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:403)
at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:73)
at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:81)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:103)
at org.apache.logging.log4j.core.appender.RollingFileAppender.createAppender(RollingFileAppender.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:132)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:918)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:858)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:850)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:479)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:219)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:231)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:496)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:566)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:582)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:217)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
at com.hpe.application.automation.tools.octane.tests.junit.JUnitExtension.<clinit>(JUnitExtension.java:69)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:669)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:476)
at hudson.ExtensionList.load(ExtensionList.java:366)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:304)
at hudson.ExtensionList.getComponents(ExtensionList.java:169)
at jenkins.model.Jenkins$6.onInitMilestoneAttained(Jenkins.java:1096)
at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:82)
at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
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)
2018-02-17 12:53:11,298 pool-6-thread-3 ERROR Unable to invoke factory method in class class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile. java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:132)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:918)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:858)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:850)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:479)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:219)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:231)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:496)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:566)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:582)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:217)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
at com.hpe.application.automation.tools.octane.tests.junit.JUnitExtension.<clinit>(JUnitExtension.java:69)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:669)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:476)
at hudson.ExtensionList.load(ExtensionList.java:366)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:304)
at hudson.ExtensionList.getComponents(ExtensionList.java:169)
at jenkins.model.Jenkins$6.onInitMilestoneAttained(Jenkins.java:1096)
at jenkins.InitReactorRunner$1.onAttained(InitReactorRunner.java:82)
at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onAttained(ReactorListener.java:104)
at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:176)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
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)
Caused by: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory#774e54e] unable to create manager for [nga/logs/nga.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData#36770e67[pattern=nga/logs/nga-%i.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[SizeBasedTriggeringPolicy(size=2097152)]), strategy=DefaultRolloverStrategy(min=1, max=10), advertiseURI=null, layout=%d{dd/MM/yyyy HH:mm:ss,SSS} %p - %c{1}: %m%n]]
at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:75)
at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:81)
at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:103)
at org.apache.logging.log4j.core.appender.RollingFileAppender.createAppender(RollingFileAppender.java:191)
... 35 more
2018-02-17 12:53:11,302 pool-6-thread-3 INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
2018-02-17 12:53:11,332 pool-6-thread-3 ERROR Null object returned for RollingFile in Appenders.
2018-02-17 12:53:11,341 pool-6-thread-3 ERROR Unable to locate appender "OctaneFileAppender" for logger config "root"
Feb 17, 2018 12:53:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Feb 17, 2018 12:53:16 PM com.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationCache initialize
INFO: initialized replication cache with expiration in MINUTES: 360
Feb 17, 2018 12:53:16 PM com.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationQueueTaskDispatcher <init>
WARNING: No GerritHandler was specified, won't register as event listener, so no function.
Feb 17, 2018 12:53:16 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Feb 17, 2018 12:53:17 PM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
Feb 17, 2018 12:53:17 PM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
INFO: Failed to instantiate optional component org.biouno.unochoice.model.ScriptlerScript$DescriptorImpl; skipping
What resolved this for me with Jenkins 2.150.3 installed was to:
Uninstall ActiveChoices plugin which is the source of the org.biouno.unochoice... in the last line of the log.
Having done that action and restarting Jenkins, the startup log in jenkins.err.log was clean with the last line being Started all plugins.
Yet Jenkins was still stuck on the "Jenkins is starting up" screen.
Uninstall Azure CLI 2.0.59 (at time of writing this is the latest version of Azure CLI).
This fixed it for me. Jenkins login page appeared.
Azure CLI 2.0.59 kills Jenkins 2.150.3!
I suspect unochoice plugin may have nothing to do with it.

InitialAdminPassword file is not created in jenkins folder in windows 10 os

The Jenkins installation seems like it went fine but when I launch the localhost:8080, Jenkins is asking for password. However, I am not able to find the initialAdminPassword file in my system. I checked it multiple times; it seems that this file does not exist. Therefore, what is the issue and how do I get the initial Jenkins login password?
Feb 06, 2018 6:56:46 PM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file C:\WINDOWS\TEMP\winstone\jenkins.war
Feb 06, 2018 6:56:47 PM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized #3166ms to org.eclipse.jetty.util.log.JavaUtilLog
Feb 06, 2018 6:56:48 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Feb 06, 2018 6:57:09 PM org.eclipse.jetty.server.handler.ContextHandler setContextPath
WARNING: Empty contextPath
Feb 06, 2018 6:57:09 PM org.eclipse.jetty.server.Server doStart
INFO: jetty-9.4.z-SNAPSHOT
Feb 06, 2018 6:57:09 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Feb 06, 2018 6:57:09 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: DefaultSessionIdManager workerName=node0
Feb 06, 2018 6:57:09 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: No SessionScavenger set, using defaults
Feb 06, 2018 6:57:09 PM org.eclipse.jetty.server.session.HouseKeeper startScavenging
INFO: Scavenging every 600000ms
Feb 06, 2018 6:57:10 PM org.eclipse.jetty.server.handler.ContextHandler doStart
INFO: Started w.#f27d66{/,file:///C:/Program%20Files%20(x86)/Jenkins/war/,AVAILABLE}{C:\Program Files (x86)\Jenkins\war}
Feb 06, 2018 6:57:10 PM org.eclipse.jetty.server.AbstractConnector doStop
INFO: Stopped ServerConnector#1cd604c{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
Feb 06, 2018 6:57:10 PM org.eclipse.jetty.server.session.HouseKeeper stopScavenging
INFO: Stopped scavenging
Feb 06, 2018 6:57:10 PM hudson.WebAppMain contextDestroyed
INFO: Shutting down a Jenkins instance that was still starting up
java.lang.Throwable: reason
at hudson.WebAppMain.contextDestroyed(WebAppMain.java:388)
at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:898)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:545)
at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:873)
at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:355)
at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1507)
at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1471)
at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:927)
at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:271)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:569)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:142)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:160)
at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:124)
at org.eclipse.jetty.server.Server.doStop(Server.java:523)
at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89)
at winstone.Launcher.shutdown(Launcher.java:307)
at winstone.Launcher.<init>(Launcher.java:167)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:294)
at Main.main(Main.java:132)
Feb 06, 2018 6:57:10 PM org.eclipse.jetty.server.handler.ContextHandler doStop
INFO: Stopped w.#f27d66{/,null,UNAVAILABLE}{C:\Program Files (x86)\Jenkins\war}
Exception in thread "Jenkins initialization thread" java.lang.NoClassDefFoundError: hudson/util/HudsonFailedToLoad
at hudson.WebAppMain$3.run(WebAppMain.java:247)
Caused by: java.lang.ClassNotFoundException: hudson.util.HudsonFailedToLoad
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
Feb 06, 2018 6:57:10 PM winstone.Logger logInternal
INFO: Winstone shutdown successfully
java.io.IOException: Failed to start Jetty
at winstone.Launcher.<init>(Launcher.java:156)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:294)
at Main.main(Main.java:132)
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:298)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:431)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at winstone.Launcher.<init>(Launcher.java:154)
... 7 more
Feb 06, 2018 6:57:10 PM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.IOException: Failed to start Jetty
at winstone.Launcher.<init>(Launcher.java:156)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at Main._main(Main.java:294)
at Main.main(Main.java:132)
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:298)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:431)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at winstone.Launcher.<init>(Launcher.java:154)
... 7 more
I was having a similar problem on windows where the folder was missing.
I went to C:\Program Files\Jenkins and opened jenkins.err.log
It had the key that I needed to proceed.
If you are unable to find the secret file, please uninstall and re-install Jenkins again. Else, delete the .jenkins folder in C:\Users\...\.jenkins\secrets.
===============
Are you using jenkins.war or jenkins.exe to install? If you are using jenkins.exe, try to download jenkins.war from Jenkins war.
Open Command Prompt, run java -jar jenkins.war.
Click on the images to see the oputput
Open browser with URL localhost:8080/
see the file "C:\Program Files\Jenkins\jenkins.err.log"
It has initialpassword before making entry into file.
It seems the issue is that the 8080 port is occupied, so i have used 8081 and its working good.
Check if another service is using port 8080. For me I had to stop the service which i dont really need at the moment and re-run java -jar jenkins.war. with this it created the secret folder where i found the default password
for me did not show the "secret" folder ,and didn't show the "config.xml" file too ,and inside the users folder too was not showing any thing that can help me, so i did the following steps:
i changed the port number from 8080 to 8085 from the "jenkins.xml"
(C:\Program Files (x86)\Jenkins)
restart the computer
after boot up with browser i tried to go "http://localhost:8085/"
then everything solved ,now is showing the starter page of jenkins and the secret folder is created inside the jenkins folder too.
give command sudo su to login as super user
change to secrets folder
cd secrets
cat initialAdminPassword
sometimes it's in C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins\secrets, as I personally experienced.
This is shown as:
In my case, I was selected port which was already in use.
Reinstalling and configuring with different port fixed the issue.
If you're using Jenkins on Docker try using
docker exec -u 0 -it name_of_jenkins_container bash
or
docker exec -u 0 -it name_of_jenkins_container /bin/bash
it will login to this container as root user.

Not able to upgrade jenkins to the latest version

Am running Jenkins 1.6.43 in its own container in Linux. I want to upgrade to latest 2.7 version. The release notes say that all I have to do is download the latest Jenkins, remove the pinned plugins and restart.
I did the same- Stopped current jenkins,downloaded using wget, removed all pinned plugins and then started it. I get "started jenkins - ok", but nothing is happening. I do not see any process running! I tried this with 2.6 and 2.7 version and I see the same result! If I revert to my previous 1.643 war and restart also, I do not see any process running.
The log shows:
SEVERE: Container startup failed
java.io.IOException: Failed to start a listener: winstone.Ajp13ConnectorFactory
at winstone.Launcher.spawnListener(Launcher.java:207)
at winstone.Launcher.<init>(Launcher.java:148)
at winstone.Launcher.main(Launcher.java:352)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at Main._main(Main.java:246)
at Main.main(Main.java:91)
Caused by: java.lang.UnsupportedOperationException: AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP. For reverse proxying, please use HTTP instead of AJP.
at winstone.Ajp13ConnectorFactory.start(Ajp13ConnectorFactory.java:31)
at winstone.Launcher.spawnListener(Launcher.java:205)
... 8 more
Running from: /usr/lib/jenkins/jenkins.war
Jun 05, 2016 3:17:25 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized #930ms
Jun 05, 2016 3:17:25 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jun 05, 2016 3:17:25 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Jun 05, 2016 3:17:25 PM winstone.Logger logInternal
INFO: Winstone shutdown successfully
Jun 05, 2016 3:17:25 PM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.IOException: Failed to start a listener: winstone.Ajp13ConnectorFactory
at winstone.Launcher.spawnListener(Launcher.java:207)
at winstone.Launcher.<init>(Launcher.java:148)
at winstone.Launcher.main(Launcher.java:352)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at Main._main(Main.java:246)
at Main.main(Main.java:91)
Caused by: java.lang.UnsupportedOperationException: AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP. For reverse proxying, please use HTTP instead of AJP.
at winstone.Ajp13ConnectorFactory.start(Ajp13ConnectorFactory.java:31)
at winstone.Launcher.spawnListener(Launcher.java:205)
... 8 more
Can someone please help!!!How to fix this?
This helped me to solve this issue
setting up JENKINS_AJP_PORT="-1" in /etc/sysconfig/jenkins and then I restarted

Exception in GroovyHookScript while starting the Jenkins server

Facing issue with starting the Jenkins instance.. here is the log,
I am using 1.542 (also tried with previous releases but no success)
Anybody is facing this kind of issue?
It looked very similar to https://issues.jenkins-ci.org/browse/JENKINS-20609 but not sure if thats the case
Running from: /home/jenkins/jenkins-latest.war
webroot: $user.home/.jenkins
Dec 04, 2013 11:11:38 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
Dec 04, 2013 11:11:38 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Extract jar:file:/home/jenkins/jenkins-latest.war!/ to /tmp/jetty-0.0.0.0-8080-jenkins-latest.war--any-/webapp
Dec 04, 2013 11:11:41 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /root/.jenkins found at: $user.home/.jenkins
Dec 04, 2013 11:11:41 PM hudson.util.BootFailure publish
SEVERE: Failed to initialize Jenkins
hudson.util.AWTProblem: java.lang.NullPointerException
at hudson.WebAppMain.contextInitialized(WebAppMain.java:182)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:282)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at winstone.Launcher.<init>(Launcher.java:154)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at Main._main(Main.java:293)
at Main.main(Main.java:98)
Caused by: java.lang.NullPointerException
at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)
at sun.font.SunFontManager$2.run(SunFontManager.java:432)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:375)
at sun.awt.X11FontManager.<init>(X11FontManager.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:374)
at java.lang.Class.newInstance(Class.java:327)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at java.awt.Font.getFont2D(Font.java:490)
at java.awt.Font.getFamily(Font.java:1187)
at java.awt.Font.getFamily_NoClientCode(Font.java:1161)
at java.awt.Font.getFamily(Font.java:1153)
at java.awt.Font.toString(Font.java:1650)
at hudson.util.ChartUtil.<clinit>(ChartUtil.java:229)
at hudson.WebAppMain.contextInitialized(WebAppMain.java:181)
... 19 more
Dec 04, 2013 11:11:42 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Failed startup of context w.{,file:/tmp/jetty-0.0.0.0-8080-jenkins-latest.war--any-/webapp/},/home/jenkins/jenkins-latest.war
java.lang.NullPointerException
at jenkins.util.groovy.GroovyHookScript.run(GroovyHookScript.java:63)
at hudson.util.BootFailure.publish(BootFailure.java:43)
at hudson.WebAppMain.contextInitialized(WebAppMain.java:244)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:282)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at winstone.Launcher.<init>(Launcher.java:154)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at Main._main(Main.java:293)
at Main.main(Main.java:98)
Dec 04, 2013 11:11:42 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector#0.0.0.0:8080
Dec 04, 2013 11:11:42 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Running on FreeBSD on OpenJDK7, I was missing package x11-fonts/fontconfig.
Installing it fixed the problem.
This other thread helped:
Headless continuous integration with Jenkins
You should try this java argument on your start:
-Djava.awt.headless=true
Seems similar to the font problem shown at: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+got+java.awt.headless+problem
For me -Djava.awt.headless=true didn't help at all. In fact, it's already specified in the Fedora default config. For me it missed the fontconfig package.
yum install fontconfig
And voila, it worked.
Details: http://vault-tec.info/post/98877792626/jenkins-service-unavailable
I had similar problem on RedHat 6 after upgrading Open JDK. Running the following fixed the problem.
yum install dejavu-fonts dejavu-lgc-sans-mono-fonts dejavu-sans-fonts dejavu-sans-mono-fonts dejavu-serif-fonts

Resources