sonarqube插件下载报错信息

2020.08.18 08:15:25 INFO  web[AXQAoiZgUTXnoX6BAABQ][o.s.s.p.w.RestartAction] SonarQube restart requested by admin
2020.08.18 08:15:26 INFO  app[][o.s.a.SchedulerImpl] SQ restart requested by Process[web]
2020.08.18 08:15:26 INFO  ce[][o.s.p.ProcessEntryPoint] Gracefully stopping process
2020.08.18 08:15:26 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is stopping...
2020.08.18 08:15:26 INFO  ce[][o.s.c.t.CeProcessingSchedulerImpl] Gracefully stopping workers...
2020.08.18 08:15:26 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is stopped
2020.08.18 08:15:26 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is stopped
2020.08.18 08:15:26 INFO  web[][o.s.p.ProcessEntryPoint] Gracefully stopping process
2020.08.18 08:15:27 INFO  web[][o.s.s.n.NotificationDaemon] Notification service stopped
2020.08.18 08:15:27 INFO  web[][o.s.s.app.WebServer] WebServer stopped
2020.08.18 08:15:27 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2020.08.18 08:15:27 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.08.18 08:15:27 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2020.08.18 08:15:27 INFO  app[][o.s.a.SchedulerImpl] SonarQube is restarting
2020.08.18 08:15:27 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2020.08.18 08:15:27 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.08.18 08:15:27 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2020.08.18 08:15:27 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2020.08.18 08:15:27 INFO  app[][o.e.p.PluginsService] no modules loaded
2020.08.18 08:15:27 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.08.18 08:15:28 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (osxfs)]], net usable_space [1.3tb], net total_space [1.8tb], types [fuse.osxfs]
2020.08.18 08:15:28 INFO  es[][o.e.e.NodeEnvironment] heap size [494.9mb], compressed ordinary object pointers [true]
2020.08.18 08:15:29 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [pA8CIJ79QxanR-cNN5O_Pg]
2020.08.18 08:15:29 INFO  es[][o.e.n.Node] version[6.8.4], pid[354], build[default/tar/bca0c8d/2019-10-16T06:19:49.319352Z], OS[Linux/4.19.76-linuxkit/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/11.0.7/11.0.7+10]
2020.08.18 08:15:29 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar]
2020.08.18 08:15:29 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2020.08.18 08:15:29 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2020.08.18 08:15:29 INFO  es[][o.e.p.PluginsService] loaded module [mapper-extras]
2020.08.18 08:15:29 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2020.08.18 08:15:29 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2020.08.18 08:15:29 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2020.08.18 08:15:29 INFO  es[][o.e.p.PluginsService] loaded module [repository-url]
2020.08.18 08:15:29 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2020.08.18 08:15:29 INFO  es[][o.e.p.PluginsService] no plugins loaded
2020.08.18 08:15:30 WARN  es[][o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
2020.08.18 08:15:32 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2020.08.18 08:15:32 INFO  es[][o.e.n.Node] initialized
2020.08.18 08:15:32 INFO  es[][o.e.n.Node] starting ...
2020.08.18 08:15:32 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.08.18 08:15:32 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2020.08.18 08:15:35 INFO  es[][o.e.c.s.MasterService] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {sonarqube}{pA8CIJ79QxanR-cNN5O_Pg}{_BgRXpa6STGD-q6ayYIOAw}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}
2020.08.18 08:15:35 INFO  es[][o.e.c.s.ClusterApplierService] new_master {sonarqube}{pA8CIJ79QxanR-cNN5O_Pg}{_BgRXpa6STGD-q6ayYIOAw}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: apply cluster state (from master [master {sonarqube}{pA8CIJ79QxanR-cNN5O_Pg}{_BgRXpa6STGD-q6ayYIOAw}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]])
2020.08.18 08:15:35 INFO  es[][o.e.n.Node] started
2020.08.18 08:15:36 INFO  es[][o.e.g.GatewayService] recovered [7] indices into cluster_state
2020.08.18 08:15:38 INFO  es[][o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[metadatas][0]] ...]).
2020.08.18 08:15:38 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2020.08.18 08:15:38 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/local/openjdk-11/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.8.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process18013941656234504946properties
2020.08.18 08:15:38 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2020.08.18 08:15:39 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2020.08.18 08:15:39 INFO  web[][o.e.p.PluginsService] no modules loaded
2020.08.18 08:15:39 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2020.08.18 08:15:39 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2020.08.18 08:15:39 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.08.18 08:15:40 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2020.08.18 08:15:40 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 8.2.0.32929 / ffde725e701a0acdc2bfac653743c4d91063cd45
2020.08.18 08:15:40 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://db/sonarqube
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2020.08.18 08:15:41 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin PMD [pmd] installed
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin Java I18n Rules [javai18n] installed
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin Java Code Quality and Security [java] installed
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin Checkstyle [checkstyle] installed
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin Findbugs [findbugs] installed
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarJS [javascript] installed
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin AEM Rules for SonarQube [aemrules] installed
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarTS [typescript] installed
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin Codehawk Java [codehawk] installed
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin AEM Rules for SonarQube / 1.2
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Checkstyle / 4.34 /
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Codehawk Java / 1.4
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Findbugs / 4.0.0 /
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Java Code Quality and Security / 6.3.2.22818 / 5bbf3112d1ac8287fd3681482f2502072d0e1a4f
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Java I18n Rules / 1.0-SNAPSHOT
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin PMD / 3.2.1 / 781bc9e240c06c1ae06908a1ab0c0d27e01c2083
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 6.2.1.12157 / 3444def97744d3b811822b3a4bca74798de3ded1
2020.08.18 08:15:41 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 2.1.0.4359 / 268ba9581b700c4fb2bc194d4069d283da915213
2020.08.18 08:15:50 INFO  web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2020.08.18 08:15:50 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@4a2e3c7c [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/components/update_key, ...]}]
2020.08.18 08:15:50 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2020.08.18 08:15:50 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
java.lang.IllegalStateException: Fail to load plugin Java Code Quality and Security [java]
	at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:88)
	at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:553)
	at org.sonar.server.platform.PlatformImpl.start(PlatformImpl.java:213)
	at org.sonar.server.platform.PlatformImpl.startLevel34Containers(PlatformImpl.java:187)
	at org.sonar.server.platform.PlatformImpl.access$500(PlatformImpl.java:46)
	at org.sonar.server.platform.PlatformImpl$1.lambda$doRun$0(PlatformImpl.java:120)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:370)
	at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:120)
	at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:354)
	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/sonar/java/JavaClasspath
	at org.sonar.plugins.java.JavaPlugin.define(JavaPlugin.java:53)
	at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:78)
	... 9 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.sonar.java.JavaClasspath
	at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87)
	at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76)
	... 11 common frames omitted
2020.08.18 08:15:51 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
2020.08.18 08:15:51 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2020.08.18 08:15:51 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2020.08.18 08:15:51 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.08.18 08:15:51 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
java.lang.IllegalStateException: Unable to load installed plugins
	at org.sonar.server.plugins.InstalledPluginReferentialFactory.start(InstalledPluginReferentialFactory.java:40)
	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:135)
	at org.sonar.ce.container.ComputeEngineContainerImpl.startLevel2(ComputeEngineContainerImpl.java:215)
	at org.sonar.ce.container.ComputeEngineContainerImpl.start(ComputeEngineContainerImpl.java:185)
	at org.sonar.ce.ComputeEngineImpl.startup(ComputeEngineImpl.java:45)
	at org.sonar.ce.app.CeServer$CeMainThread.attemptStartup(CeServer.java:163)
	at org.sonar.ce.app.CeServer$CeMainThread.run(CeServer.java:141)
Caused by: org.sonar.updatecenter.common.exception.PluginNotFoundException: The plugin 'java' required by 'aemrules' is missing.
	at org.sonar.updatecenter.common.PluginReferential.addOutgoingDependency(PluginReferential.java:120)
	at org.sonar.updatecenter.common.PluginReferentialManifestConverter.lambda$fromPluginManifests$0(PluginReferentialManifestConverter.java:55)
	at java.base/java.lang.Iterable.forEach(Unknown Source)
	at org.sonar.updatecenter.common.PluginReferentialManifestConverter.fromPluginManifests(PluginReferentialManifestConverter.java:51)
	at org.sonar.server.plugins.PluginReferentialMetadataConverter.getInstalledPluginReferential(PluginReferentialMetadataConverter.java:45)
	at org.sonar.server.plugins.InstalledPluginReferentialFactory.init(InstalledPluginReferentialFactory.java:54)
	at org.sonar.server.plugins.InstalledPluginReferentialFactory.start(InstalledPluginReferentialFactory.java:38)
	... 14 common frames omitted
Caused by: java.util.NoSuchElementException: Unable to find plugin with key java
	at org.sonar.updatecenter.common.PluginReferential.lambda$findPlugin$2(PluginReferential.java:72)
	at java.base/java.util.Optional.orElseThrow(Unknown Source)
	at org.sonar.updatecenter.common.PluginReferential.findPlugin(PluginReferential.java:72)
	at org.sonar.updatecenter.common.PluginReferential.addOutgoingDependency(PluginReferential.java:106)
	... 20 common frames omitted
2020.08.18 08:35:49 INFO  ce[][o.s.p.ProcessEntryPoint] Hard stopping process
2020.08.18 08:35:49 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is stopped
2020.08.18 08:35:49 INFO  web[][o.s.p.ProcessEntryPoint] Hard stopping process
2020.08.18 08:35:49 INFO  web[][o.s.s.n.NotificationDaemon] Notification service stopped
2020.08.18 08:35:50 WARN  web[][o.s.p.ProcessEntryPoint$HardStopperThread] Can not stop in 1000ms
2020.08.18 08:35:50 WARN  web[][o.s.s.a.EmbeddedTomcat] Failed to stop web server
org.apache.catalina.LifecycleException: Failed to stop component [StandardServer[-1]]
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:238)
	at org.apache.catalina.startup.Tomcat.stop(Tomcat.java:437)
	at org.sonar.server.app.EmbeddedTomcat.terminate(EmbeddedTomcat.java:104)
	at org.sonar.server.app.WebServer.hardStop(WebServer.java:83)
	at org.sonar.process.ProcessEntryPoint$HardStopperThread.lambda$new$0(ProcessEntryPoint.java:219)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	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: org.apache.catalina.LifecycleException: Failed to stop component [StandardService[Tomcat]]
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:238)
	at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:814)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
	... 9 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Tomcat]]
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:238)
	at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:486)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
	... 11 common frames omitted
Caused by: org.apache.catalina.LifecycleException: A child container failed during stop
	at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:1008)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
	... 13 common frames omitted
2020.08.18 08:35:51 INFO  app[][o.s.a.SchedulerImpl] Process[web] is stopped
2020.08.18 08:35:51 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.08.18 08:35:51 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2020.08.18 08:35:51 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
max virtual memory areas vm.max_map_count [65530] is too low

遇到这类的问题的解决办法

# vim /etc/sysctl.conf 追加以下内容:
vm.max_map_count=655360
#验证
sysctl -p
#校验内容 vm.max_map_count = 655360 

请问这个要追加在哪个地方?

已解决:直接在服务器上执行 1. grep vm.max_map_count /etc/sysctl.conf
2. vm.max_map_count=655360
3.sysctl -w vm.max_map_count=655360
即可