Jenkins错误:无法读取/home/jenkins/.jenkins/config.xml

时间:2019-01-11 21:26:20

标签: jenkins jenkins-plugins

詹金斯问题陈述-

在詹金斯重启过程中出现以下错误

hudson.util.HudsonFailedToLoad:org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read /home/jenkins/.jenkins/config.xml
    at hudson.WebAppMain$3.run(WebAppMain.java:248)
    Caused by: org.jvnet.hudson.reactor.ReactorException:java.io.IOException: Unable to read /home/jenkins/.jenkins/config.xml

    Caused by: jenkins.util.xstream.CriticalXStreamException:   
    hudson.plugins.active_directory.ActiveDirectorySecurityRealm : 
    hudson.plugins.active_directory.ActiveDirectorySecurityRealm

 ---- Debugging information ----

 message:  hudson.plugins.active_directory.ActiveDirectorySecurityRealm
 cause-exception     :      
 com.thoughtworks.xstream.mapper.CannotResolveClassException

 cause-message       : 
 hudson.plugins.active_directory.ActiveDirectorySecurityRealm
 class               : hudson.model.Hudson
 required-type       : hudson.model.Hudson
 converter-type      : hudson.util.RobustReflectionConverter
 path                : /hudson/securityRealm
 line number         : 550
 version             : not available
 ------------------------------- 

重要提示:调试信息重点介绍了有关问题-Active Directory / LDAP插件

注意:禁用Jenkins UP后(在config.xml上注释行号550),但无法登录到Jenkins。

提到了与在线论坛相关的问题,但没有运气

  1. https://groups.google.com/forum/#!topic/jenkinsci-users/iQ3iMvfOxQk
  2. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764711

    Here an screenshot of the Jenkins error

2 个答案:

答案 0 :(得分:0)

当插件存在周期性依赖关系且版本不受支持时,通常会发生此问题

由于它与LDAP有关,请尝试将安全性标签修改为false而不是true,然后重新启动Jenkins

答案 1 :(得分:0)

我遇到了类似的问题,而我所做的只是设置了env变量JENKINS_HOME=C:\jenkins,这为我解决了这个问题。