创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。如果未按模板创建问题,管理员有权关闭问题。
确保帖子格式清晰易读,用 markdown code block 语法格式化代码块。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G
Kubernetes版本信息
将 kubectl version
命令执行结果贴在下方
Kustomize Version: v4.5.7
Server Version: version.Info{Major:“1”, Minor:“26”, GitVersion:“v1.26.0”, GitCommit:“b46a3f887ca979b1a5d14fd39cb1af43e7e5d12d”, GitTreeState:“clean”, BuildDate:“2022-12-08T19:51:45Z”, GoVersion:“go1.19.4”, Compiler:“gc”, Platform:“linux/amd64”}
容器运行时
将 docker version
/ crictl version
/ nerdctl version
结果贴在下方
[root@k8s-master01 ~]# docker version
Client: Docker Engine - Community
Version: 26.1.3
API version: 1.45
Go version: go1.21.10
Git commit: b72abbb
Built: Thu May 16 08:34:39 2024
OS/Arch: linux/amd64
Context: default
KubeSphere版本信息
例如:v3.4.1。在线安装。在已有K8s上安装
问题是什么
在jenkins中安装插件重启后,启动失败,就重新将ks-install中的devops改为false,重启后再改为true;
再次开启devops后,devops-jenkins和devops-jenkins-agent 启动异常
启动报错日志:
Caused: jenkins.util.xstream.CriticalXStreamException:
---- Debugging information —-
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : hudson.security.LDAPSecurityRealm
class : hudson.model.Hudson
required-type : hudson.model.Hudson
converter-type : hudson.util.RobustReflectionConverter
path : /hudson/securityRealm
line number : 60
version : not available
---—————————-
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:377)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:285)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421)
at hudson.util.XStream2.unmarshal(XStream2.java:188)
at hudson.util.XStream2.unmarshal(XStream2.java:159)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399)
at hudson.XmlFile.unmarshal(XmlFile.java:194)
Caused: java.io.IOException: Unable to read /var/jenkins_home/config.xml
at hudson.XmlFile.unmarshal(XmlFile.java:197)
at hudson.XmlFile.unmarshal(XmlFile.java:177)
at jenkins.model.Jenkins.loadConfig(Jenkins.java:3272)
at jenkins.model.Jenkins.access$1200(Jenkins.java:336)
at jenkins.model.Jenkins$12.run(Jenkins.java:3374)
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:1151)
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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused: org.jvnet.hudson.reactor.ReactorException
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:49)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1184)
at jenkins.model.Jenkins.<init>(Jenkins.java:976)
at hudson.model.Hudson.<init>(Hudson.java:85)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.WebAppMain$3.run(WebAppMain.java:298)
Caused: hudson.util.HudsonFailedToLoad
at hudson.WebAppMain$3.run(WebAppMain.java:315)
2024-11-05 01:56:49.688+0000 [id=22] INFO jenkins.model.Jenkins#cleanUp: Stopping Jenkins
2024-11-05 01:56:49.975+0000 [id=22] INFO jenkins.model.Jenkins$16#onAttained: Started termination
2024-11-05 01:56:49.985+0000 [id=22] INFO jenkins.model.Jenkins$16#onAttained: Completed termination
2024-11-05 01:56:49.985+0000 [id=22] INFO jenkins.model.Jenkins#_cleanUpDisconnectComputers: Starting node disconnection
2024-11-05 01:56:49.988+0000 [id=22] INFO jenkins.model.Jenkins#_cleanUpShutdownPluginManager: Stopping plugin manager
2024-11-05 01:56:50.005+0000 [id=22] INFO jenkins.model.Jenkins#_cleanUpPersistQueue: Persisting build queue
2024-11-05 01:56:50.066+0000 [id=22] INFO jenkins.model.Jenkins#cleanUp: Jenkins stopped