测试人社区

腾讯云服务器(centos),docker启动sonarqube,自动停止,哪位大佬解答一下

Mac 系统

很有可能是因为你的Linux硬件设备不行,如果用的虚拟机,建议调大内存一些参数。

上面有段报错,因为你截图的,我不好截取错误,大概解释一下

web应用程序已经开启了一个线程叫做SQ starter,但是停止这个线程停止失败了,他似乎出现了内存泄漏,下面是线程的堆栈:xxxxxx…
进程停止
sonarqube停止

所以报错很明显了

下载插件报这个错是不支持当前版本吗?Error while downloading plugin ‘cobertura’ with version ‘2.0.0’. No compatible plugin found.

两个可能:

  • 第一个是没有这个插件
  • 第二个是没有这个插件版本是2.0.0的

把完整的log贴出来,别简单截图

老师,这个:

贴完整的文字log,别贴图。如果你是docker启动的话,大概率是内存不足导致的。

2020.08.06 13:53:37 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed
java.lang.IllegalStateException: Unable to read plugin manifest from jar : /opt/sonarqube/extensions/plugins/sonar-findbugs-plugin-3.4.4.jar
at org.sonar.updatecenter.common.PluginManifest.(PluginManifest.java:125)
at org.sonar.core.platform.PluginInfo.create(PluginInfo.java:412)
at org.sonar.server.plugins.ServerPluginRepository.loadPreInstalledPlugins(ServerPluginRepository.java:135)
at org.sonar.server.plugins.ServerPluginRepository.start(ServerPluginRepository.java:103)
at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(StartableCloseableSafeLifecyleStrategy.java:40)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
at org.picocontainer.behaviors.Stored.start(Stored.java:110)
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90)
at org.sonar.server.platform.platformlevel.PlatformLevel2.start(PlatformLevel2.java:107)
at org.sonar.server.platform.PlatformImpl.start(PlatformImpl.java:213)
at org.sonar.server.platform.PlatformImpl.startLevel2Container(PlatformImpl.java:179)
at org.sonar.server.platform.PlatformImpl.init(PlatformImpl.java:87)
at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:43)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4689)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5155)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.zip.ZipException: zip END header not found
at java.base/java.util.zip.ZipFile$Source.zerror(Unknown Source)
at java.base/java.util.zip.ZipFile$Source.findEND(Unknown Source)
at java.base/java.util.zip.ZipFile$Source.initCEN(Unknown Source)
at java.base/java.util.zip.ZipFile$Source.(Unknown Source)
at java.base/java.util.zip.ZipFile$Source.get(Unknown Source)
at java.base/java.util.zip.ZipFile$CleanableResource.(Unknown Source)
at java.base/java.util.zip.ZipFile$CleanableResource.get(Unknown Source)
at java.base/java.util.zip.ZipFile.(Unknown Source)
at java.base/java.util.zip.ZipFile.(Unknown Source)
at java.base/java.util.jar.JarFile.(Unknown Source)
at java.base/java.util.jar.JarFile.(Unknown Source)
at java.base/java.util.jar.JarFile.(Unknown Source)
at org.sonar.updatecenter.common.PluginManifest.(PluginManifest.java:120)
… 27 common frames omitted
2020.08.06 13:53:38 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2020.08.06 13:53:38 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process
2020.08.06 13:53:38 INFO app[][o.s.a.SchedulerImpl] Process[web] is stopped
2020.08.06 13:53:38 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2020.08.06 13:53:38 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.08.06 13:53:38 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

先删除findbugs的插件,也就是log中提示的jar包。看起来是下载的时候出错了,导致文件不完整。