hudson.util.IOException2: Unable to read /home/hudson/config.xml

Jenkins JIRA | malachid | 7 years ago
  1. 0

    This is the second time I have seen the error below. This time was after upgrading Hudson (pfexec pkg install hudson). I don't remember if the last time was also. The solution to get it to start working was to remove the following line: <permission>hudson.model.Item.Release:malachi</permission> Once that was removed, Hudson started fine and I just had to re-enable "release job" for myself. Here's the stack trace: [!] Error hudson.util.IOException2: Unable to read /home/hudson/config.xml at hudson.XmlFile.unmarshal(XmlFile.java:150) at hudson.model.Hudson.load(Hudson.java:1975) at hudson.model.Hudson.(Hudson.java:557) at hudson.WebAppMain$2.run(WebAppMain.java:190) Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null ---- Debugging information ---- cause-exception : java.lang.IllegalArgumentException cause-message : null class : hudson.model.Hudson required-type : hudson.security.ProjectMatrixAuthorizationStrategy path : /hudson/authorizationStrategy/permission[6] line number : 13 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923) at hudson.util.XStream2.unmarshal(XStream2.java:65) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909) at hudson.XmlFile.unmarshal(XmlFile.java:146) ... 3 more Caused by: java.lang.IllegalArgumentException at hudson.security.GlobalMatrixAuthorizationStrategy.add(GlobalMatrixAuthorizationStrategy.java:85) at hudson.security.GlobalMatrixAuthorizationStrategy.add(GlobalMatrixAuthorizationStrategy.java:99) at hudson.security.GlobalMatrixAuthorizationStrategy.access$200(GlobalMatrixAuthorizationStrategy.java:65) at hudson.security.GlobalMatrixAuthorizationStrategy$ConverterImpl.unmarshal(GlobalMatrixAuthorizationStrategy.java:215) at hudson.security.ProjectMatrixAuthorizationStrategy$ConverterImpl.unmarshal(ProjectMatrixAuthorizationStrategy.java:82) at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:141) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) ... 19 more Hudson ver. 1.318 (private-07/31/2009 06:09-kohsuke)

    Jenkins JIRA | 7 years ago | malachid
    hudson.util.IOException2: Unable to read /home/hudson/config.xml
  2. 0

    This is the second time I have seen the error below. This time was after upgrading Hudson (pfexec pkg install hudson). I don't remember if the last time was also. The solution to get it to start working was to remove the following line: <permission>hudson.model.Item.Release:malachi</permission> Once that was removed, Hudson started fine and I just had to re-enable "release job" for myself. Here's the stack trace: [!] Error hudson.util.IOException2: Unable to read /home/hudson/config.xml at hudson.XmlFile.unmarshal(XmlFile.java:150) at hudson.model.Hudson.load(Hudson.java:1975) at hudson.model.Hudson.(Hudson.java:557) at hudson.WebAppMain$2.run(WebAppMain.java:190) Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null ---- Debugging information ---- cause-exception : java.lang.IllegalArgumentException cause-message : null class : hudson.model.Hudson required-type : hudson.security.ProjectMatrixAuthorizationStrategy path : /hudson/authorizationStrategy/permission[6] line number : 13 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923) at hudson.util.XStream2.unmarshal(XStream2.java:65) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909) at hudson.XmlFile.unmarshal(XmlFile.java:146) ... 3 more Caused by: java.lang.IllegalArgumentException at hudson.security.GlobalMatrixAuthorizationStrategy.add(GlobalMatrixAuthorizationStrategy.java:85) at hudson.security.GlobalMatrixAuthorizationStrategy.add(GlobalMatrixAuthorizationStrategy.java:99) at hudson.security.GlobalMatrixAuthorizationStrategy.access$200(GlobalMatrixAuthorizationStrategy.java:65) at hudson.security.GlobalMatrixAuthorizationStrategy$ConverterImpl.unmarshal(GlobalMatrixAuthorizationStrategy.java:215) at hudson.security.ProjectMatrixAuthorizationStrategy$ConverterImpl.unmarshal(ProjectMatrixAuthorizationStrategy.java:82) at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:141) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) ... 19 more Hudson ver. 1.318 (private-07/31/2009 06:09-kohsuke)

    Jenkins JIRA | 7 years ago | malachid
    hudson.util.IOException2: Unable to read /home/hudson/config.xml
  3. 0

    Vraptor + Rest + LocalDateTime[RESOLVIDO]

    com.br | 1 year ago
    com.thoughtworks.xstream.converters.ConversionException: Not supported yet. : Not supported yet. ---- Debugging information ---- message : Not supported yet. cause-exception : java.lang.UnsupportedOperationException cause-message : Not supported yet. class : br.com.coliseu.model.Versaotabelas required-type : org.joda.time.LocalDateTime path : /versaotabelas/dttimealter -------------------------------
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-4172] Unable to read /home/hudson/config.xml - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    hudson.util.IOException2: Unable to read /home/hudson/config.xml
  6. 0

    => Manage Hudson => Configure System => Access Control (LDAP-Config !!!) => Authorization => Check: Project-based Matrix Authorization Strategy => User/group to add: "m500488" => Klick "add" => Configure Matrix: Check all permissions fpr m500488 => Tomcat: Reload Hudson-Webapplication => Reenter Hudson-Webapplication => The following Exception occurs: hudson.util.IOException2: Unable to read /usr/share/tomcat5/.hudson/config.xml at hudson.XmlFile.unmarshal(XmlFile.java:152) at hudson.model.Hudson.load(Hudson.java:1967) at hudson.model.Hudson.(Hudson.java:560) at hudson.WebAppMain$2.run(WebAppMain.java:191) Caused by: com.thoughtworks.xstream.converters.ConversionException: Failed to parse 'hudson.model.Item.Release:m500488' --- no such permission : Failed to parse 'hudson.model.Item.Release:m500488' --- no such permission ---- Debugging information ---- message : Failed to parse 'hudson.model.Item.Release:m500488' --- no such permission cause-exception : java.lang.IllegalArgumentException cause-message : Failed to parse 'hudson.model.Item.Release:m500488' --- no such permission class : hudson.model.Hudson required-type : hudson.security.ProjectMatrixAuthorizationStrategy path : /hudson/authorizationStrategy/permission[2] line number : 9 ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923) at hudson.util.XStream2.unmarshal(XStream2.java:67) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909) at hudson.XmlFile.unmarshal(XmlFile.java:148) ... 3 more Caused by: java.lang.IllegalArgumentException: Failed to parse 'hudson.model.Item.Release:m500488' --- no such permission at hudson.security.GlobalMatrixAuthorizationStrategy.add(GlobalMatrixAuthorizationStrategy.java:101) at hudson.security.GlobalMatrixAuthorizationStrategy.access$200(GlobalMatrixAuthorizationStrategy.java:65) at hudson.security.GlobalMatrixAuthorizationStrategy$ConverterImpl.unmarshal(GlobalMatrixAuthorizationStrategy.java:218) at hudson.security.ProjectMatrixAuthorizationStrategy$ConverterImpl.unmarshal(ProjectMatrixAuthorizationStrategy.java:84) at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:151) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82) ... 19 more

    Jenkins JIRA | 7 years ago | chrisabit
    hudson.util.IOException2: Unable to read /usr/share/tomcat5/.hudson/config.xml

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.thoughtworks.xstream.converters.ConversionException

      null : null ---- Debugging information ---- cause-exception : java.lang.IllegalArgumentException cause-message : null class : hudson.model.Hudson required-type : hudson.security.ProjectMatrixAuthorizationStrategy path : /hudson/authorizationStrategy/permission[6] line number : 13 -------------------------------

      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert()
    2. XStream Core
      TreeUnmarshaller.convert
      1. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
      1 frame