gpt4 book ai didi

java - 更新几个jenkins插件后服务无法工作

转载 作者:行者123 更新时间:2023-12-02 09:38:08 26 4
gpt4 key购买 nike

Jenkins 请求更新几个插件,我更新了它们,但是当我重新启动它时,出现以下错误:

java.lang.NullPointerException
at hudson.plugins.sonar.GlobalCredentialMigrator.lambda$migrate$0(GlobalCredentialMigrator.java:56)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1359)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findAny(ReferencePipeline.java:469)
at hudson.plugins.sonar.GlobalCredentialMigrator.migrate(GlobalCredentialMigrator.java:57)
at hudson.plugins.sonar.SonarInstallation.migrateTokenToCredential(SonarInstallation.java:250)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at hudson.plugins.sonar.SonarGlobalConfiguration.migrateCredentials(SonarGlobalConfiguration.java:122)
Caused: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
Caused: java.lang.Error
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1095)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused: org.jvnet.hudson.reactor.ReactorException
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:48)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1129)
at jenkins.model.Jenkins.<init>(Jenkins.java:936)
at hudson.model.Hudson.<init>(Hudson.java:85)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.WebAppMain$3.run(WebAppMain.java:233)
Caused: hudson.util.HudsonFailedToLoad
at hudson.WebAppMain$3.run(WebAppMain.java:250)

我正在阅读有关此问题的信息,解决方案是删除位于以下位置的更新插件:/var/lib/jenkins/plugins

最初我删除了声纳插件(它是显示错误的插件),我重新启动了服务器,但问题仍然存在。

最佳答案

我已经设法修复它。

每次更新插件时,系统都会自动将以前的版本重命名为 plugin.bak,所以我所做的就是删除 plugin.jpi 文件并恢复 .bak 将其扩展名更改为 .jpi

关于java - 更新几个jenkins插件后服务无法工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57327774/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com