El Capitan更新后无法运行Jenkins



出于原因,我一直任务将Mac Box升级到El Capitan。El Capitan与最新版本的Xcode一起运行。

我遵循以下步骤处理新的sip:

如何在Mac OS X El Capitan中安装自制

如何在OS X El Capitan中的Homebrew上解决权限问题?

我将所有这些东西都恢复了顺序(或者至少似乎是这样),但是由于无法访问config.xml文件,盒子的詹金斯似乎已经关闭。认为这是更多的许可问题(这就是为什么我在两个引用的链接中执行了步骤),我发现此帖子重置Jenkins配置命令行,我确认了Jenkins Wiki上的步骤,我执行了所需的步骤:

1)Stop Jenkins (the easiest way to do this is to kill the servlet container.)
2)Go to $JENKINS_HOME in the file system and find config.xml file.
3)Open this file in the editor.
4)Look for the <useSecurity>true</useSecurity> element in this file.
5)Replace true with false
6)Remove the elements authorizationStrategy and securityRealm
7)Start Jenkins

但是当我去詹金斯时,我仍然无法访问/.../config.xml

正如我所说的,我是整个过程的新手(实际上与Mac打交道),所以有人比我对发生的事情更有经验吗?

这是参考的堆叠:

org.jvnet.hudson.reactor.ReactorException: hudson.util.IOException2: Unable to read /Users/Shared/Jenkins/Home/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:899)
    at jenkins.model.Jenkins.<init>(Jenkins.java:801)
    at hudson.model.Hudson.<init>(Hudson.java:81)
    at hudson.model.Hudson.<init>(Hudson.java:77)
    at hudson.WebAppMain$2.run(WebAppMain.java:214)
Caused by: hudson.util.IOException2: Unable to read /Users/Shared/Jenkins/Home/config.xml
    at hudson.XmlFile.unmarshal(XmlFile.java:170)
    at jenkins.model.Jenkins$16.run(Jenkins.java:2527)
    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:888)
    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:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.thoughtworks.xstream.converters.ConversionException: -1 : -1
---- Debugging information ----
message             : -1
cause-exception     : java.lang.ArrayIndexOutOfBoundsException
cause-message       : -1
class               : hudson.model.Hudson
required-type       : hudson.model.Hudson
converter-type      : hudson.util.RobustReflectionConverter
path                : /hudson/disabledAdministrativeMonitors
line number         : 3
version             : null
-------------------------------
    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 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: java.lang.ArrayIndexOutOfBoundsException: -1
    at com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77)
    at java.util.HashMap.putMapEntries(HashMap.java:511)
    at java.util.HashMap.putAll(HashMap.java:784)
    at com.thoughtworks.xstream.core.util.OrderRetainingMap.<init>(OrderRetainingMap.java:36)
    at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:135)
    at com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldOrNull(FieldDictionary.java:113)
    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFieldOrNull(PureJavaReflectionProvider.java:186)
    at hudson.util.RobustReflectionConverter.fieldDefinedInClass(RobustReflectionConverter.java:328)
    at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:269)
    at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    ... 18 more

我还尝试了此jira的解决方案:https://issues.jenkins-ci.org/browse/jenkins-9774仍然没有运气。

事实证明这是一个Java版本管理问题。El Capitan更新后,它促使我重新安装Java,默认安装当然是Java 8.返回Java 7并安装了Maven 3.0.2,所有内容都启动并运行。

最新更新