首页 > 编程语言> > Jenkins升级后无法正常启动(java.lang.IllegalStateException: An attempt to save the global configuration ......
Jenkins升级后无法正常启动(java.lang.IllegalStateException: An attempt to save the global configuration ......
作者:互联网
1、linux升级jenkins,升级以后无法启动报以下错误
java.lang.IllegalStateException: An attempt to save the global configuration was made before it was loaded at jenkins.model.Jenkins.save(Jenkins.java:3379) at jenkins.model.Jenkins.saveQuietly(Jenkins.java:3398) at jenkins.model.Jenkins.setSecurityRealm(Jenkins.java:2637) at jenkins.model.Jenkins$16.run(Jenkins.java:3342) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) 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: org.jvnet.hudson.reactor.ReactorException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282) at jenkins.InitReactorRunner.run(InitReactorRunner.java:50) at jenkins.model.Jenkins.executeReactor(Jenkins.java:1162) at jenkins.model.Jenkins.<init>(Jenkins.java:962) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:295) Caused: hudson.util.HudsonFailedToLoad at hudson.WebAppMain$3.run(WebAppMain.java:312)
2、解决方法
下载hpi文件,并将其放到JENKINS_HOME/plugins文件夹。jenkins plugin文件夹一般在下面位置:/var/lib/jenkins/plugins/。 Role strategy hpi plugin的下载链接为 https://updates.jenkins.io/latest/role-strategy.hpi
3、重启服务
文件放置妥当以后重启jenkins服务 systemctl restart jenkins
本文转自:
https://blog.csdn.net/lovewinner/article/details/117605656
标签:lang,java,hudson,run,jenkins,Jenkins,model,configuration 来源: https://www.cnblogs.com/faithH/p/15441200.html