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

Can't start jenkins after upgrade from 1.441 to 1.450

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • ssh-slaves-plugin
    • None
    • FreeBSD 8.2, jvm version 1.6.0_24-b07, tomcat 7.0.22

      After deploy the new version of jenkins, I got an error while jenkins was starting, looking at catalina.out I got this:

      INFO: Deploying web application archive jenkins.war
      Jenkins home directory: /usr/home/jenkins found at: System.getProperty("JENKINS_HOME")
      Feb 7, 2012 9:43:56 AM org.apache.catalina.core.ApplicationContext log
      INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
      Feb 7, 2012 9:43:57 AM jenkins.InitReactorRunner$1 onAttained
      INFO: Started initialization
      Feb 7, 2012 9:43:57 AM jenkins.InitReactorRunner$1 onAttained
      INFO: Listed all plugins
      Feb 7, 2012 9:43:57 AM jenkins.InitReactorRunner$1 onAttained
      INFO: Prepared all plugins
      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
      Feb 7, 2012 9:44:02 AM jenkins.InitReactorRunner$1 onAttained
      INFO: Started all plugins
      Feb 7, 2012 9:44:02 AM jenkins.InitReactorRunner$1 onAttained
      INFO: Augmented all extensions
      Feb 7, 2012 9:44:02 AM jenkins.InitReactorRunner$1 onAttained
      INFO: Loaded all jobs
      Feb 7, 2012 9:44:02 AM jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed SSHD.init
      java.lang.Error: java.lang.reflect.InvocationTargetException
      at hudson.init.InitializerFinder.invoke(InitializerFinder.java:124)
      at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at jenkins.model.Jenkins$5.runTask(Jenkins.java:812)
      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:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.reflect.InvocationTargetException
      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:597)
      at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
      ... 8 more
      Caused by: java.lang.NullPointerException
      at org.apache.mina.core.service.SimpleIoProcessorPool.dispose(SimpleIoProcessorPool.java:289)
      at org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:229)
      at org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:123)
      at org.apache.mina.core.polling.AbstractPollingIoAcceptor.<init>(AbstractPollingIoAcceptor.java:125)
      at org.apache.mina.transport.socket.nio.NioSocketAcceptor.<init>(NioSocketAcceptor.java:78)
      at org.apache.sshd.SshServer.createAcceptor(SshServer.java:392)
      at org.apache.sshd.SshServer.start(SshServer.java:338)
      at org.jenkinsci.main.modules.sshd.SSHD.start(SSHD.java:102)
      at org.jenkinsci.main.modules.sshd.SSHD.init(SSHD.java:133)
      ... 13 more
      Feb 7, 2012 9:44:02 AM hudson.WebAppMain$2 run
      SEVERE: Failed to initialize Jenkins
      org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
      at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
      at jenkins.InitReactorRunner.run(InitReactorRunner.java:43)
      at jenkins.model.Jenkins.executeReactor(Jenkins.java:823)
      at jenkins.model.Jenkins.<init>(Jenkins.java:735)
      at hudson.model.Hudson.<init>(Hudson.java:81)
      at hudson.model.Hudson.<init>(Hudson.java:77)
      at hudson.WebAppMain$2.run(WebAppMain.java:217)
      Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException
      at hudson.init.InitializerFinder.invoke(InitializerFinder.java:124)
      at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at jenkins.model.Jenkins$5.runTask(Jenkins.java:812)
      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:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.reflect.InvocationTargetException
      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:597)
      at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
      ... 8 more
      Caused by: java.lang.NullPointerException
      at org.apache.mina.core.service.SimpleIoProcessorPool.dispose(SimpleIoProcessorPool.java:289)
      at org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:229)
      at org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:123)
      at org.apache.mina.core.polling.AbstractPollingIoAcceptor.<init>(AbstractPollingIoAcceptor.java:125)
      at org.apache.mina.transport.socket.nio.NioSocketAcceptor.<init>(NioSocketAcceptor.java:78)
      at org.apache.sshd.SshServer.createAcceptor(SshServer.java:392)
      at org.apache.sshd.SshServer.start(SshServer.java:338)
      at org.jenkinsci.main.modules.sshd.SSHD.start(SSHD.java:102)
      at org.jenkinsci.main.modules.sshd.SSHD.init(SSHD.java:133)
      ... 13 more
      Feb 7, 2012 9:44:02 AM org.jenkinsci.main.modules.sshd.ItemListenerImpl onBeforeShutdown
      WARNING: Failed to shutdown SSHD
      java.lang.NullPointerException
      at org.apache.sshd.SshServer.stop(SshServer.java:362)
      at org.jenkinsci.main.modules.sshd.SSHD.stop(SSHD.java:116)
      at org.jenkinsci.main.modules.sshd.ItemListenerImpl.onBeforeShutdown(ItemListenerImpl.java:20)
      at jenkins.model.Jenkins.cleanUp(Jenkins.java:2449)
      at hudson.WebAppMain$2.run(WebAppMain.java:242)
      Feb 7, 2012 9:44:02 AM hudson.PluginWrapper stop
      INFO: Stopping ant
      Feb 7, 2012 9:44:02 AM hudson.PluginWrapper stop
      INFO: Stopping javadoc
      Feb 7, 2012 9:44:02 AM hudson.PluginWrapper stop
      INFO: Stopping git
      Feb 7, 2012 9:44:02 AM hudson.PluginWrapper stop
      INFO: Stopping xunit
      Feb 7, 2012 9:44:02 AM hudson.PluginWrapper stop
      INFO: Stopping translation
      Feb 7, 2012 9:44:02 AM hudson.PluginWrapper stop
      INFO: Stopping ssh-slaves
      Feb 7, 2012 9:44:02 AM hudson.PluginWrapper stop
      INFO: Stopping cvs
      Feb 7, 2012 9:44:02 AM hudson.PluginWrapper stop
      INFO: Stopping maven-plugin
      Feb 7, 2012 9:44:02 AM hudson.PluginWrapper stop
      INFO: Stopping subversion
      Exception in thread "pool-9-thread-2" java.lang.NullPointerException
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:191)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      Now I can't get into my jenkins.

      Any help would be appreciated!

      Thanks!

          [JENKINS-12664] Can't start jenkins after upgrade from 1.441 to 1.450

          Note to myself: Looking at the code, SSHD SimpleIoProcessorPool is failing to boot up, and while it propagates an exception it gets into the finally block that does the dispose(), which fails in NPE, masking the original problem.

          We need to patch the original problem first to see the real cause.

          Kohsuke Kawaguchi added a comment - Note to myself: Looking at the code, SSHD SimpleIoProcessorPool is failing to boot up, and while it propagates an exception it gets into the finally block that does the dispose(), which fails in NPE, masking the original problem. We need to patch the original problem first to see the real cause.

          ng at added a comment -

          I have similar problem when i install a new plugin
          Here how i solved the problem
          1. goto jenkins home
          cd /var/lib/jenkins

          2. move all the files into tmp directory
          mkdir tmp
          mv plugins *.xml *.key tmp

          3. start jenkins

          4. after that move one by one xml from tmp see which causing the problem

          ng at added a comment - I have similar problem when i install a new plugin Here how i solved the problem 1. goto jenkins home cd /var/lib/jenkins 2. move all the files into tmp directory mkdir tmp mv plugins *.xml *.key tmp 3. start jenkins 4. after that move one by one xml from tmp see which causing the problem

          edmund_wagner added a comment -

          duplicate ticket?: JENKINS-12338

          edmund_wagner added a comment - duplicate ticket?: JENKINS-12338

          Hendy Irawan added a comment -

          For me, upgrading from Jenkins 1.475 to Jenkins 1.495 solved the problem

          My environment:

          • Linux Mint 14 KDE (based on Ubuntu quantal 12.10), 64-bit

          ceefour@annafi:~$ uname -a
          Linux annafi.dev 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
          ceefour@annafi:~$ java -version
          java version "1.7.0_09"
          OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.10.1)
          OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

          Hendy Irawan added a comment - For me, upgrading from Jenkins 1.475 to Jenkins 1.495 solved the problem My environment: Linux Mint 14 KDE (based on Ubuntu quantal 12.10), 64-bit ceefour@annafi:~$ uname -a Linux annafi.dev 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux ceefour@annafi:~$ java -version java version "1.7.0_09" OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.10.1) OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

          I am closing this as inactive.

          Oliver Gondža added a comment - I am closing this as inactive.

            Unassigned Unassigned
            loop0 Bruno Ribeiro da Silva
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: