Issues with starting jenkins

990 views
Skip to first unread message

Boris Kurktchiev

unread,
Sep 25, 2013, 1:00:55 PM9/25/13
to jenkins...@googlegroups.com

i keep getting org.jvnet.hudson.reactor.ReactorException: hudson.util.IOException2: Unable to read /opt/local/jenkins/config.xml when i try to start up Jenkins, but the directory and file is owned by jenkins user, i can su to jenkins user and view/edit the file… i am getting stumped. Here is a full dump of the error I am seeing:

org.jvnet.hudson.reactor.ReactorException: hudson.util.IOException2: Unable to read /opt/local/jenkins/config.xml

at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)

at jenkins.InitReactorRunner.run(InitReactorRunner.java:43)

at jenkins.model.Jenkins.executeReactor(Jenkins.java:910)

at jenkins.model.Jenkins.<init>(Jenkins.java:806)

at hudson.model.Hudson.<init>(Hudson.java:81)

at hudson.model.Hudson.<init>(Hudson.java:77)

at hudson.WebAppMain$3.run(WebAppMain.java:221)

Caused by: hudson.util.IOException2: Unable to read /opt/local/jenkins/config.xml

at hudson.XmlFile.unmarshal(XmlFile.java:170)

at jenkins.model.Jenkins$17.run(Jenkins.java:2530)

at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)

at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)

at jenkins.model.Jenkins$7.runTask(Jenkins.java:899)

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.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)

Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null : Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null

---- Debugging information ----

message             : Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null

cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException

cause-message       : Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null

class               : hudson.security.csrf.DefaultCrumbIssuer

required-type       : hudson.security.csrf.DefaultCrumbIssuer

converter-type      : hudson.util.RobustReflectionConverter

path                : /hudson/crumbIssuer/PROXY_HEADER

line number         : 38

class[1]            : hudson.model.Hudson

version             : not available

-------------------------------

at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)

at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)

at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)

at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:333)

at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:275)

at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)

at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)

at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)

at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)

at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)

at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)

at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)

at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061)

at hudson.util.XStream2.unmarshal(XStream2.java:109)

at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)

at hudson.XmlFile.unmarshal(XmlFile.java:166)

... 9 more

Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null

at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.write(Sun14ReflectionProvider.java:141)

at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.writeField(Sun14ReflectionProvider.java:104)

at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:290)

at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)

at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)

... 24 more

Caused by: java.lang.IllegalArgumentException

at sun.misc.Unsafe.objectFieldOffset(Native Method)

at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getFieldOffset(Sun14ReflectionProvider.java:150)

at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.write(Sun14ReflectionProvider.java:112)

... 28 more

Ulli Hafner

unread,
Sep 25, 2013, 1:11:56 PM9/25/13
to jenkins...@googlegroups.com
Jenkins can read the file but the contents are broken:

hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER

This field cannot be set from the XML file (is missing, etc.) 

Which plug-in are you using for security?

Ulli


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

signature.asc

Boris Kurktchiev

unread,
Sep 25, 2013, 1:16:23 PM9/25/13
to jenkins...@googlegroups.com
I am just using the internal auth single user at the moment. This is my config.xml

<?xml version='1.0' encoding='UTF-8'?>
<hudson>
  <disabledAdministrativeMonitors>
    <string>OldData</string>
    <string>hudson.diagnosis.TooManyJobsButNoView</string>
  </disabledAdministrativeMonitors>
  <version>1.522</version>
  <numExecutors>2</numExecutors>
  <mode>NORMAL</mode>
  <useSecurity>true</useSecurity>
  <authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"/>
  <securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
    <disableSignup>true</disableSignup>
    <enableCaptcha>false</enableCaptcha>
  </securityRealm>
  <projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
  <workspaceDir>${ITEM_ROOTDIR}/workspace</workspaceDir>
  <buildsDir>${ITEM_ROOTDIR}/builds</buildsDir>
  <markupFormatter class="hudson.markup.RawHtmlMarkupFormatter">
    <disableSyntaxHighlighting>false</disableSyntaxHighlighting>
  </markupFormatter>
  <jdks/>
  <viewsTabBar class="hudson.views.DefaultViewsTabBar"/>
  <myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/>
  <clouds/>
  <slaves/>
  <quietPeriod>5</quietPeriod>
  <scmCheckoutRetryCount>0</scmCheckoutRetryCount>
  <views>
    <hudson.model.AllView>
      <owner class="hudson" reference="../../.."/>
      <name>All</name>
      <filterExecutors>false</filterExecutors>
      <filterQueue>false</filterQueue>
      <properties class="hudson.model.View$PropertyList"/>
    </hudson.model.AllView>
  </views>
  <primaryView>All</primaryView>
  <slaveAgentPort>0</slaveAgentPort>
  <label></label>
  <crumbIssuer class="hudson.security.csrf.DefaultCrumbIssuer">
    <excludeClientIPFromCrumb>false</excludeClientIPFromCrumb>
    <PROXY__HEADER>X-Forwarded-For</PROXY__HEADER>
  </crumbIssuer>
  <nodeProperties/>
  <globalNodeProperties/>
  <noUsageStatistics>true</noUsageStatistics>
</hudson>

Boris Kurktchiev

unread,
Sep 25, 2013, 1:18:50 PM9/25/13
to jenkins...@googlegroups.com
The only other auth related plugin i have enabled is Credentials that I can think of. But just to be sure here is a dump of the plugins directory, i dont see anything in there that should be affecting this: http://pastebin.com/Y1WrBgGs (its a bunch so i figured better off using pastebin than here)

Ulli Hafner

unread,
Sep 25, 2013, 1:37:33 PM9/25/13
to jenkins...@googlegroups.com
Ok, I see. The conflicting part is in Jenkins core.

Please remove the following block and restart:

<crumbIssuer class="hudson.security.csrf.DefaultCrumbIssuer">
    <excludeClientIPFromCrumb>false</excludeClientIPFromCrumb>
    <PROXY__HEADER>X-Forwarded-For</PROXY__HEADER>
  </crumbIssuer>

Did you upgrade Jenkins? Or is this a new installation? Which Jenkins version?
signature.asc

Boris Kurktchiev

unread,
Sep 25, 2013, 2:05:51 PM9/25/13
to jenkins...@googlegroups.com
I am running the latest version on RHEL6 using the jenkins repo I think I just upgraded to 1.532

Boris Kurktchiev

unread,
Sep 25, 2013, 2:09:55 PM9/25/13
to jenkins...@googlegroups.com
So that fixed the startup issue, but now I am not able to log in with my account. The log is showing/saying nothing and I have it cranked up to 9.

Sean Harlow

unread,
Oct 2, 2013, 11:24:33 AM10/2/13
to jenkins...@googlegroups.com
I experienced the same issue on Ubuntu 12.04.3 after upgrading to 1.533 from the official repository.  I do not know what my previous version was, but it had been updated at some point since mid-August so it was a relatively recent version.

Commenting out the PROXY__HEADER line allowed Jenkins to launch as expected and everything seems to work normally at this point.

I am just using the internal authentication, config options selected under Global Security are "Jenkins’s own user database", "Logged-in users can do anything", and "Default Crumb Issuer" with proxy compatibility disabled.

Unfortunately this doesn't seem like it'll help Boris, but it might be useful for anyone looking in to why the upgrade leaves the system broken.
Reply all
Reply to author
Forward
0 new messages