Jenkins update (from Hudson) on Debian broke my installation

61 views
Skip to first unread message

Fabio

unread,
Mar 28, 2011, 4:58:08 PM3/28/11
to Jenkins Users
I made an hudson installation some months ago on a clean Debian system
using the provided package. Today I upgraded to the latest jenkins
version and now I can't use this tool anymore. I still have all the
old files, workspaces, etc, but when I access the home page I obtain
an exception. I have no idea on how to solve this.

Any help.

P.s. If I run jenkins from command line with java -jar /usr/share/
jenkins/jenkins.war it works but I have no data inside it.

This is the transcript of the upgrade

host6:/home/fabio# aptitude install jenkins
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
(Reading database ... 55313 files and directories currently
installed.)
Removing hudson ...
Stopping Hudson Continuous Integration Server: hudson.
Selecting previously deselected package jenkins.
(Reading database ... 55309 files and directories currently
installed.)
Unpacking jenkins (from .../archives/jenkins_1.404_all.deb) ...
Setting up jenkins (1.404) ...
Adding system user `jenkins' (UID 117) ...
Adding new user `jenkins' (UID 117) with group `nogroup' ...
Not creating home directory `/var/lib/jenkins'.
Starting Jenkins Continuous Integration Server: jenkinsSetting up max
open files limit to 8192
Press return to continue.

This is the jenkins stack trace that I have in every page:

Running from: /usr/share/jenkins/jenkins.war[Winstone 2011/03/28
16:52:46] - Beginning extraction from war file
hudson home directory: /var/lib/jenkins found at:
EnvVars.masterEnvVars.get("JENKINS_HOME")
Mar 28, 2011 4:52:47 PM hudson.util.CharacterEncodingFilter init
INFO: CharacterEncodingFilter initialized. DISABLE_FILTER: false
FORCE_ENCODING: false
[Winstone 2011/03/28 16:52:47] - HTTP Listener started: port=8081
Using one-time self-signed certificate
Mar 28, 2011 4:52:48 PM hudson.model.Hudson$5 onAttained
INFO: Started initialization
Mar 28, 2011 4:52:48 PM hudson.model.Hudson$5 onAttained
INFO: Listed all plugins
[Winstone 2011/03/28 16:52:49] - Winstone Servlet Engine v0.9.10
running: controlPort=disabled
Mar 28, 2011 4:52:57 PM hudson.plugins.greenballs.PluginImpl start
INFO: Green Balls!
Mar 28, 2011 4:52:57 PM hudson.model.Hudson$5 onAttained
INFO: Prepared all plugins
Mar 28, 2011 4:53:05 PM hudson.model.Hudson$5 onAttained
INFO: Started all plugins
Mar 28, 2011 4:53:05 PM hudson.model.Hudson$5 onAttained
INFO: Augmented all extensions
Mar 28, 2011 4:53:05 PM hudson.model.Hudson$5 onTaskFailed
SEVERE: Failed NullIdDescriptorMonitor.verifyId
java.lang.Error: java.lang.reflect.InvocationTargetException
at hudson.init.InitializerFinder.invoke(InitializerFinder.java:
114)
at hudson.init.InitializerFinder
$TaskImpl.run(InitializerFinder.java:174)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at hudson.model.Hudson$4.runTask(Hudson.java:734)
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:
110)
... 8 more
Caused by: java.lang.UnsupportedOperationException: The descriptor
registry with the called getId() method is not used. The descri
ptor redefines its own getInputMetric() method.
at com.thalesgroup.hudson.plugins.xunit.types.CustomType
$CustomInputMetricDescriptor.getId(CustomType.java:66)
at
hudson.diagnosis.NullIdDescriptorMonitor.verify(NullIdDescriptorMonitor.java:
65)
at
hudson.diagnosis.NullIdDescriptorMonitor.verifyId(NullIdDescriptorMonitor.java:
76)
... 13 more
Mar 28, 2011 4:53:05 PM hudson.WebAppMain$2 run
SEVERE: Failed to initialize Hudson
org.jvnet.hudson.reactor.ReactorException: java.lang.Error:
java.lang.reflect.InvocationTargetException
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
at hudson.model.Hudson.executeReactor(Hudson.java:752)
at hudson.model.Hudson.<init>(Hudson.java:666)
at hudson.model.Hudson.<init>(Hudson.java:606)
at hudson.WebAppMain$2.run(WebAppMain.java:215)
Caused by: java.lang.Error:
java.lang.reflect.InvocationTargetException
at hudson.init.InitializerFinder.invoke(InitializerFinder.java:
114)
at hudson.init.InitializerFinder
$TaskImpl.run(InitializerFinder.java:174)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at hudson.model.Hudson$4.runTask(Hudson.java:734)
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:
110)
... 8 more
Caused by: java.lang.UnsupportedOperationException: The descriptor
registry with the called getId() method is not used. The descriptor
redefines its own getInputMetric() method.
at com.thalesgroup.hudson.plugins.xunit.types.CustomType
$CustomInputMetricDescriptor.getId(CustomType.java:66)
at
hudson.diagnosis.NullIdDescriptorMonitor.verify(NullIdDescriptorMonitor.java:
65)
at
hudson.diagnosis.NullIdDescriptorMonitor.verifyId(NullIdDescriptorMonitor.java:
76)
... 13 more
Exception in thread "pool-2-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)
Exception in thread "pool-2-thread-4" 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)

vhardion

unread,
Mar 29, 2011, 6:02:10 AM3/29/11
to Jenkins Users
Hi Fabio,

Maybe your plugin com.thalesgroup.hudson.plugins.xunit is no more
compatible with the new version
Try to manually upgrade or disable this plugin.

Regards,

Vincent

Fabio

unread,
Mar 29, 2011, 8:56:06 AM3/29/11
to Jenkins Users
On 29 Mar, 12:02, vhardion <vincent.hard...@gmail.com> wrote:
> Hi Fabio,
>
> Maybe your plugin com.thalesgroup.hudson.plugins.xunit is no more
> compatible with the new version
> Try to manually upgrade or disable this plugin.
>
> Regards,
>
> Vincent

Thanks for your answer, with that hint I solved in this way:

- I removed the xunit plugin with
cd /var/lib/jenkins/plugins && mv xunit* /tmp

- I restarted jenkins and this time it starts with just some warnings
about old format data
- Updatated all the plugin with the jenkins web gui
- Reinstalled the new version of the xunit plugin using the web gui

Now I have a working jenkins installation with all my old data (jobs,
builds, configurations)

Thank you.

Kohsuke Kawaguchi

unread,
Mar 29, 2011, 1:03:44 PM3/29/11
to jenkins...@googlegroups.com, Fabio

There was a method we added in the base class that unfortunately
collided with xUnit.

I've improved the error diagnosis in 1.406 to detect this more gracefully.


--
Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/

Reply all
Reply to author
Forward
0 new messages