fcexporter 2021-04-07 19:49 采纳率: 0%
浏览 243
已结题

ks-jenkins 的pod启动不了报CrashLoopBackOff

KubeSphere安装 DevOps 系统,ks-jenkins 的pod启动不了报CrashLoopBackOff,删除后还是这样,查看log日志,报错信息如下,不知道如何解决

[root@k8s-node1 ~]# kubectl logs -n kubesphere-devops-system ks-jenkins-55c6dbdbc-r4ndn


Picked up JAVA_TOOL_OPTIONS: -Xms512m -Xmx512m -XX:MaxRAM=2g -Dhudson.slaves.NodeProvisioner.initialDelay=20 -Dhudson.slaves.NodeProvisioner.MARGIN=50 -Dhudson.slaves.NodeProvisioner.MARGIN0=0.85 -Dhudson.model.LoadStatistics.clock=5000 -Dhudson.model.LoadStatistics.decay=0.2 -Dhudson.slaves.NodeProvisioner.recurrencePeriod=5000 -Dio.jenkins.plugins.casc.ConfigurationAsCode.initialDelay=10000 -verbose:gc -Xloggc:/var/jenkins_home/gc-%t.log -XX:NumberOfGCLogFiles=2 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=100m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:+DisableExplicitGC -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 


Running from: /usr/share/jenkins/jenkins.war


webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")


Apr 04, 2021 4:09:02 AM org.eclipse.jetty.util.log.Log initialized


INFO: Logging initialized @782ms to org.eclipse.jetty.util.log.JavaUtilLog


Apr 04, 2021 4:09:03 AM winstone.Logger logInternal


INFO: Beginning extraction from war file


Apr 04, 2021 4:09:03 AM org.eclipse.jetty.server.handler.ContextHandler setContextPath


WARNING: Empty contextPath


Apr 04, 2021 4:09:03 AM org.eclipse.jetty.server.Server doStart


INFO: jetty-9.4.z-SNAPSHOT; built: 2019-02-15T16:53:49.381Z; git: eb70b240169fcf1abbd86af36482d1c49826fa0b; jvm 1.8.0_212-b04


Apr 04, 2021 4:09:03 AM org.eclipse.jetty.xml.XmlParser$Handler fatalError


WARNING: FATAL@null line:1 col:1 : org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.


Apr 04, 2021 4:09:03 AM org.eclipse.jetty.webapp.WebAppContext doStart


WARNING: Failed startup of context w.@cc285f4{/,file:///var/jenkins_home/war/,UNAVAILABLE}{/var/jenkins_home/war}


org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.


        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)


        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)


        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)


        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)


        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)


        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1014)


        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)


        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)


        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)


        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)


        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)


        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)


        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)


        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)


        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)


        at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:255)


        at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:55)


        at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:212)


        at org.eclipse.jetty.webapp.MetaData.setWebXml(MetaData.java:194)


        at org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:60)


        at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:506)


        at winstone.HostConfiguration$1.preConfigure(HostConfiguration.java:164)


        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:544)


        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)


        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)


        at org.eclipse.jetty.server.Server.start(Server.java:415)


        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)


        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)


        at org.eclipse.jetty.server.Server.doStart(Server.java:382)


        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)


        at winstone.Launcher.<init>(Launcher.java:184)


        at winstone.Launcher.main(Launcher.java:354)


        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 Main._main(Main.java:375)


        at Main.main(Main.java:151)


 


Apr 04, 2021 4:09:03 AM org.eclipse.jetty.server.AbstractConnector doStart


INFO: Started ServerConnector@5e3a8624{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}


Apr 04, 2021 4:09:03 AM org.eclipse.jetty.server.AbstractConnector doStop


INFO: Stopped ServerConnector@5e3a8624{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}


Apr 04, 2021 4:09:03 AM org.eclipse.jetty.server.handler.ContextHandler doStop


INFO: Stopped w.@cc285f4{/,null,UNAVAILABLE}{/var/jenkins_home/war}


Apr 04, 2021 4:09:03 AM winstone.Logger logInternal


INFO: Jetty shutdown successfully


java.io.IOException: Failed to start Jetty


        at winstone.Launcher.<init>(Launcher.java:186)


        at winstone.Launcher.main(Launcher.java:354)


        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 Main._main(Main.java:375)


        at Main.main(Main.java:151)


Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.


        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)


        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)


        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)


        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)


        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)


        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1014)


        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)


        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)


        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)


        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)


        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)


        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)


        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)


        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)


        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)


        at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:255)


        at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:55)


        at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:212)


        at org.eclipse.jetty.webapp.MetaData.setWebXml(MetaData.java:194)


        at org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:60)


        at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:506)


        at winstone.HostConfiguration$1.preConfigure(HostConfiguration.java:164)


        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:544)


        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)


        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)


        at org.eclipse.jetty.server.Server.start(Server.java:415)


        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)


        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)


        at org.eclipse.jetty.server.Server.doStart(Server.java:382)


        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)


        at winstone.Launcher.<init>(Launcher.java:184)


        ... 7 more


Apr 04, 2021 4:09:03 AM winstone.Logger logInternal


SEVERE: Container startup failed


java.io.IOException: Failed to start Jetty


        at winstone.Launcher.<init>(Launcher.java:186)


        at winstone.Launcher.main(Launcher.java:354)


        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 Main._main(Main.java:375)


        at Main.main(Main.java:151)


Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.


        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)


        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)


        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)


        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)


        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)


        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1014)


        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)


        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)


        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)


        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)


        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)


        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)


        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)


        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)


        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)


        at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:255)


        at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:55)


        at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:212)


        at org.eclipse.jetty.webapp.MetaData.setWebXml(MetaData.java:194)


        at org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:60)


        at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:506)


        at winstone.HostConfiguration$1.preConfigure(HostConfiguration.java:164)


        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:544)


        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)


        at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)


        at org.eclipse.jetty.server.Server.start(Server.java:415)


        at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)


        at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)


        at org.eclipse.jetty.server.Server.doStart(Server.java:382)


        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)


        at winstone.Launcher.<init>(Launcher.java:184)


        ... 7 more

  • 写回答

1条回答 默认 最新

  • fcexporter 2021-04-08 05:04
    关注

    问题已经解决了,jenkins镜像版本升级到最新OK

    这里说明一下我的kuberShpere版本是2.2.1的。我是在win10系统用virtualbox虚拟机装的k8s集群。

    具体解决方法如下:

    1.拉取最新jenkins镜像

    docker pull jenkins/jenkins

    最新版本有721MB

    DevOps自动拉取的版本2.176.2是567MB

    2‘’拉取最新镜像后修改tag,将最新的镜像tag修改为2.176.2

    3、删除 ks-jenkins的pod重新启动pod,OK!

    这里有一个疑问,官方提供的版本为什么我的不行。

    评论

报告相同问题?

悬赏问题

  • ¥30 STM32 INMP441无法读取数据
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥500 把面具戴到人脸上,请大家贡献智慧
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
  • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急
  • ¥30 c#打开word开启修订并实时显示批注
  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境