部署SonarQube 报错

2018.09.04 05:39:29 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2018.09.04 05:39:29 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2018.09.04 05:39:29 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonarqube/temp/conf/es
2018.09.04 05:39:29 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2018.09.04 05:39:29 INFO app[][o.e.p.PluginsService] no modules loaded
2018.09.04 05:39:29 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
[root@node1 ~]# kubectl logs sonarqube-6dcd8dd6-w2wb8 -n tools -f
2018.09.04 05:39:29 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2018.09.04 05:39:29 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2018.09.04 05:39:29 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonarqube/temp/conf/es
2018.09.04 05:39:29 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2018.09.04 05:39:29 INFO app[][o.e.p.PluginsService] no modules loaded
2018.09.04 05:39:29 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.09.04 05:39:42 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2018.09.04 05:39:42 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/lib/jvm/java-1.8-openjdk/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.security.egd=file:/dev/./urandom -cp ./lib/common/:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.1.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process3660365277603708337properties
2018.09.04 05:39:43 INFO web[][o.s.p.ProcessEntryPoint] Starting web
2018.09.04 05:39:44 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2018.09.04 05:39:45 INFO web[][o.e.p.PluginsService] no modules loaded
2018.09.04 05:39:45 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2018.09.04 05:39:45 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2018.09.04 05:39:45 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.09.04 05:39:46 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2018.09.04 05:39:46 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 7.1.0.11001 / 9f47ce9daecebb16fc777249a418252625ae774a
2018.09.04 05:39:46 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://sonarqube-postgresql/sonar
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2018.09.04 05:39:48 INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.4.0.1037 / 05703ae67364e0cc41c6d49f495e0e6977abfb52
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 7.0.1.4822 / 6d8cd4ef8c80476eba86efa4d0a1a9416065c304
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarFlex / 2.4.0.1222 / 68d9cb3b7daccbc4869c4f2b89d09218d26a0829
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 4.1.0.6085 / 0a33c1a749126986ce73dd749f64f14ff4c91e33
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 5.2.0.13398 / 3e712400303a4017c13b87b7194d3d630c8ff6f3
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.13.0.3107 / 9592e5feedc752eddc8f4c15763e80d2bd07ade7
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.9.1.2080 / 0354ec882b62a15fa818ba426a2f8793ba84f135
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.6.0.2388 / 5ae76d80572942e9a286a67656f68c983290ce69
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.5.0.1373 / 9f316f07ccad2687bd45715aa034353d6a7a4a4a
2018.09.04 05:39:48 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Svn / 1.7.0.1017 / 49f31dd1fa72844fb25a98937e76b1469b39d135
2018.09.04 05:39:49 INFO web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
2018.09.04 05:39:50 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@43cc0d23 [pattern=UrlPattern{inclusions=[/api/system/migrate_db.
, …], exclusions=[/api/properties*, …]}]
2018.09.04 05:39:50 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2018.09.04 05:39:51 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2018.09.04 05:39:52 INFO web[][o.s.s.e.IndexCreator] Create index metadatas
2018.09.04 05:39:53 INFO web[][o.s.s.e.IndexCreator] Create type metadatas/metadata
2018.09.04 05:39:53 INFO web[][o.s.s.e.IndexCreator] Create index components
2018.09.04 05:39:54 INFO web[][o.s.s.e.IndexCreator] Create type components/component
2018.09.04 05:39:54 INFO web[][o.s.s.e.IndexCreator] Create type components/authorization
2018.09.04 05:39:54 INFO web[][o.s.s.e.IndexCreator] Create index tests
2018.09.04 05:39:54 INFO web[][o.s.s.e.IndexCreator] Create type tests/test
2018.09.04 05:39:54 INFO web[][o.s.s.e.IndexCreator] Create index projectmeasures
2018.09.04 05:39:55 INFO web[][o.s.s.e.IndexCreator] Create type projectmeasures/projectmeasure
2018.09.04 05:39:55 INFO web[][o.s.s.e.IndexCreator] Create type projectmeasures/authorization
2018.09.04 05:39:55 INFO web[][o.s.s.e.IndexCreator] Create index rules
2018.09.04 05:39:56 INFO web[][o.s.s.e.IndexCreator] Create type rules/activeRule
2018.09.04 05:39:56 INFO web[][o.s.s.e.IndexCreator] Create type rules/ruleExtension
2018.09.04 05:39:56 INFO web[][o.s.s.e.IndexCreator] Create type rules/rule
2018.09.04 05:39:56 INFO web[][o.s.s.e.IndexCreator] Create index issues
2018.09.04 05:39:56 INFO web[][o.s.s.e.IndexCreator] Create type issues/issue
2018.09.04 05:39:56 INFO web[][o.s.s.e.IndexCreator] Create type issues/authorization
2018.09.04 05:39:57 INFO web[][o.s.s.e.IndexCreator] Create index users
2018.09.04 05:39:57 INFO web[][o.s.s.e.IndexCreator] Create type users/user
2018.09.04 05:39:57 INFO web[][o.s.s.e.IndexCreator] Create index views
2018.09.04 05:39:57 INFO web[][o.s.s.e.IndexCreator] Create type views/view
2018.09.04 05:39:57 INFO web[][o.s.s.s.LogServerId] Server ID: AWWjF7Xi_WzHFu9xA3gD
2018.09.04 05:39:58 INFO web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2018.09.04 05:39:58 INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2018.09.04 05:39:58 INFO web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2018.09.04 05:39:58 INFO web[][o.s.s.s.RegisterPlugins] Register plugins
2018.09.04 05:39:58 INFO web[][o.s.s.s.RegisterMetrics] Register metrics
2018.09.04 05:39:58 INFO web[][o.s.s.q.RegisterQualityGates] Built-in quality gate’s conditions of [Sonar way] has been updated
2018.09.04 05:39:58 INFO web[][o.s.s.r.RegisterRules] Register rules
2018.09.04 05:40:08 INFO web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2018.09.04 05:40:08 INFO web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2018.09.04 05:40:09 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile cs/Sonar way
2018.09.04 05:40:09 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile java/Sonar way
2018.09.04 05:40:10 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile flex/Sonar way
2018.09.04 05:40:10 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile xml/Sonar way
2018.09.04 05:40:11 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile js/Sonar way Recommended
2018.09.04 05:40:11 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile js/Sonar way
2018.09.04 05:40:12 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile php/Sonar way
2018.09.04 05:40:12 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile php/PSR-2
2018.09.04 05:40:12 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile php/Drupal
2018.09.04 05:40:12 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile py/Sonar way
2018.09.04 05:40:13 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile ts/Sonar way
2018.09.04 05:40:14 INFO web[][o.s.s.q.RegisterQualityProfiles] Register profile ts/Sonar way recommended
2018.09.04 05:40:14 INFO web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
2018.09.04 05:40:14 INFO web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2018.09.04 05:40:14 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@52c103a [pattern=UrlPattern{inclusions=[/api/issues/delete_comment., …], exclusions=[/api/properties, …]}]
2018.09.04 05:40:14 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.DeprecatedPropertiesWsFilter@49f485b7 [pattern=UrlPattern{inclusions=[/api/properties/], exclusions=[]}]
2018.09.04 05:40:14 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceReroutingFilter@68896f84 [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, …], exclusions=[]}]
2018.09.04 05:40:14 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@be771f7 [pattern=UrlPattern{inclusions=[/sessions/init/
], exclusions=[]}]
2018.09.04 05:40:14 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@3a31ee [pattern=UrlPattern{inclusions=[/oauth2/callback/], exclusions=[]}]
2018.09.04 05:40:14 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@5986ee9d [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=[]}]
2018.09.04 05:40:14 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@4fb34b4f [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=[]}]
2018.09.04 05:40:14 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@3afe64b4 [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=[]}]
2018.09.04 05:40:14 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [rules/activeRule] …
2018.09.04 05:40:16 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [rules/activeRule] done | time=1674ms
2018.09.04 05:40:16 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of types [rules/ruleExtension],[rules/rule] …
2018.09.04 05:40:19 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of types [rules/ruleExtension],[rules/rule] done | time=2932ms
2018.09.04 05:40:19 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [users/user] …
2018.09.04 05:40:19 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [users/user] done | time=460ms
2018.09.04 05:40:19 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [components/component] …
2018.09.04 05:40:20 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [components/component] done | time=209ms
2018.09.04 05:40:20 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [views/view] …
2018.09.04 05:40:20 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [views/view] done | time=268ms
2018.09.04 05:40:20 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [issues/issue] …
2018.09.04 05:40:20 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [issues/issue] done | time=208ms
2018.09.04 05:40:20 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of types [components/authorization],[issues/authorization],[projectmeasures/authorization] …
2018.09.04 05:40:21 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of types [components/authorization],[issues/authorization],[projectmeasures/authorization] done | time=398ms
2018.09.04 05:40:21 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [tests/test] …
2018.09.04 05:40:21 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [tests/test] done | time=169ms
2018.09.04 05:40:21 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [projectmeasures/projectmeasure] …
2018.09.04 05:40:21 INFO web[][o.s.s.e.IndexerStartupTask] Indexing of type [projectmeasures/projectmeasure] done | time=153ms
2018.09.04 05:40:21 INFO web[][o.s.s.p.Platform] WebServer is operational
2018.09.04 05:40:21 INFO app[][o.s.a.SchedulerImpl] Process[web] is up
2018.09.04 05:40:21 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key=‘ce’, ipcIndex=3, logFilenamePrefix=ce]] from [/opt/sonarqube]: /usr/lib/jvm/java-1.8-openjdk/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/
:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.1.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process7495328116669902316properties
2018.09.04 05:40:22 INFO ce[][o.s.p.ProcessEntryPoint] Starting ce
2018.09.04 05:40:22 INFO ce[][o.s.ce.app.CeServer] Compute Engine starting up…
2018.09.04 05:40:23 INFO ce[][o.e.p.PluginsService] no modules loaded
2018.09.04 05:40:23 INFO ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2018.09.04 05:40:23 INFO ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2018.09.04 05:40:23 INFO ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.09.04 05:40:24 INFO ce[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2018.09.04 05:40:24 INFO ce[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://sonarqube-postgresql/sonar
2018.09.04 05:40:27 INFO ce[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2018.09.04 05:40:27 INFO ce[][o.s.c.c.CePluginRepository] Load plugins
2018.09.04 05:40:28 INFO ce[][o.s.c.q.PurgeCeActivities] Delete the Compute Engine tasks created before 1520487628989
2018.09.04 05:40:29 INFO ce[][o.s.c.q.PurgeCeActivities] Delete the Scanner contexts tasks created before 1533620429002
2018.09.04 05:40:29 INFO ce[][o.s.ce.app.CeServer] Compute Engine is operational
2018.09.04 05:40:29 INFO app[][o.s.a.SchedulerImpl] Process[ce] is up
2018.09.04 05:40:29 INFO app[][o.s.a.SchedulerImpl] SonarQube is up
2018.09.04 05:46:33 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 137
2018.09.04 05:46:33 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.09.04 05:46:33 INFO ce[][o.s.p.StopWatcher] Stopping process
2018.09.04 05:46:33 INFO ce[][o.s.ce.app.CeServer] Compute Engine is stopping…
2018.09.04 05:46:33 INFO ce[][o.s.c.t.CeProcessingSchedulerImpl] Waiting for workers to finish in-progress tasks
2018.09.04 05:46:34 INFO ce[][o.s.ce.app.CeServer] Compute Engine is stopped
2018.09.04 05:46:35 INFO app[][o.s.a.SchedulerImpl] Process [ce] is stopped
2018.09.04 05:46:36 INFO web[][o.s.p.StopWatcher] Stopping process
2018.09.04 05:46:39 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped
2018.09.04 05:46:39 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

我也出现同样的问题,sonarqube服务是可以web访问的,但是会不停的重启(频率不是很高)。请问这个问题解决了吗?

你们的问题并不一样 可以参考
https://stackoverflow.com/questions/47835125/sonarqube-process-exited-with-exit-value-es-137