Get Sonarqube logs in kubernetes

Hello,

In your : Deploy SonarQube on Kubernetes | SonarQube Docs

I can read :

No Log Complete Collection

As previously mentioned, there’s currently no support for a log collection to make SonarQube observable. Logs are printed to separate file streams as plaintext. If you still want to scrape these logs, you will need to manually alter the deployment to read these 4 file streams and send them to your log collection solution manually.

How can i manually alter the deployment to read these 4 file streams and send them to your log collection solution manually ?

Where can i find a doc to do this ?

Thanks for your help because actually i’m stuck here “cannot exec into or attach to a privileged container” to read the intern log of the sonar container.

Hi @vcullard and welcome to the community :wave:

you can edit the sonarqube sts (kubectl edit statefulset <sonarqube sts>) to add a log collector of your choice like filebeat for example.
as for the error you are facing this one is not related to sonarqube but rather to your cluster configuration. ask your cluster admin to check your RBAC role to grant you the required permissions on this namespace.

1 Like

Hello Tobias,

Before trying to edit my sonarqube sts, i will check my RBAC role as you mentionned.

Thanks for your fast answer !

We got the RBAC authorization on this namespace but we still got the error, so let’s try to add filebeat :wink:

vincent@:~/source/other/helm-chart-sonarqube/charts/sonarqube-lts$ kubectl api-versions -n namespace-sonarqube

rbac.authorization.k8s.io/v1
rbac.authorization.k8s.io/v1beta1
rbac.istio.io/v1alpha1

Now i’m here : )

2021.08.23 07:42:53 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@62935cc0 [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, …], exclusions=[/api/components/update_key, …]}]
2021.08.23 07:42:53 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2021.08.23 07:43:19 ERROR web[o.s.s.h.EsStatusCheck] Failed to query ES status
org.sonar.server.es.ElasticsearchException: Fail to execute es requestES cluster health request
at org.sonar.server.es.EsClient.execute(EsClient.java:313)
at org.sonar.server.es.EsClient.clusterHealth(EsClient.java:207)
at org.sonar.server.health.EsStatusCheck.checkEsStatus(EsStatusCheck.java:54)
at org.sonar.server.health.EsStatusNodeCheck.check(EsStatusNodeCheck.java:35)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.reduce(Unknown Source)
at org.sonar.server.health.HealthCheckerImpl.checkNode(HealthCheckerImpl.java:66)
at org.sonar.server.platform.ws.HealthActionSupport.checkNodeHealth(HealthActionSupport.java:62)
at org.sonar.server.platform.ws.SafeModeHealthAction.handle(SafeModeHealthAction.java:49)
at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:110)
at org.sonar.server.platform.web.WebServiceFilter.doFilter(WebServiceFilter.java:84)
at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:139)
at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.UserSessionFilter.doFilter(UserSessionFilter.java:81)
at org.sonar.server.platform.web.UserSessionFilter.doFilter(UserSessionFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.CacheControlFilter.doFilter(CacheControlFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.SecurityServletFilter.doHttpFilter(SecurityServletFilter.java:76)
at org.sonar.server.platform.web.SecurityServletFilter.doFilter(SecurityServletFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.RedirectFilter.doFilter(RedirectFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.RequestIdFilter.doFilter(RequestIdFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sonar.server.platform.web.RootFilter.doFilter(RootFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:544)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
at ch.qos.logback.access.tomcat.LogbackValve.invoke(LogbackValve.java:256)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:353)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:616)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1629)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:880)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:283)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1654)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1624)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1594)
at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:119)
at org.sonar.server.es.EsClient.lambda$clusterHealth$27(EsClient.java:207)
at org.sonar.server.es.EsClient.execute(EsClient.java:311)
… 59 common frames omitted
Caused by: java.net.ConnectException: Connection refused
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174)
at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351)
at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221)
at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
… 1 common frames omitted

That is great :slight_smile:
well except for the error, but at least there are logs now. And said logs seem to relate to a problem with ES. What you are currently looking at are the web logs. can you check the es logs to see why the bundled es is not starting up?

I got this log with k9s, i’m still stuck to add filebeat, first time using this app, i will provide my es.log asap.

But maybe with the es.log i will find the solution alone :wink:

Thanks again Tobias!

Tobias,

What is the format of the es.log in Sonarqube ? I need to configure my filebeat.inputs to correctly read the Sonarqube log.

I’m close to read this es.log :wink: thanks for your help !

2021-08-25T09:32:51.619Z        INFO    [input.harvester]       log/harvester.go:309    Harvester started for file.     {"input_id": "bf983e17-14c2-4946-b7fa-9b4e2c7c205f", "source": "/opt/sonarqube/logs/temp/sharedmemory", "state_id": "native::5727-64775", "finished": false, "os_id": "5727-64775", "harvester_id": "bf5ae88a-dc64-4a82-a74a-b262a7fb99c0"}
2021-08-25T09:32:51.620Z        INFO    [input.harvester]       log/harvester.go:309    Harvester started for file.     {"input_id": "bf983e17-14c2-4946-b7fa-9b4e2c7c205f", "source": "/opt/sonarqube/logs/logs/es.log", "state_id": "native::8432867-64775", "finished": false, "os_id": "8432867-64775", "harvester_id": "44c5dde4-8f60-404f-9f55-34300ae15771"}
2021-08-25T09:32:51.620Z        INFO    [input.harvester]       log/harvester.go:309    Harvester started for file.     {"input_id": "bf983e17-14c2-4946-b7fa-9b4e2c7c205f", "source": "/opt/sonarqube/logs/logs/sonar.log", "state_id": "native::8432866-64775", "finished": false, "os_id": "8432866-64775", "harvester_id": "ea77e174-670f-48f8-a0b7-87343c843077"}
2021-08-25T09:32:51.620Z        ERROR   [reader_docker_json]    readjson/docker_json.go:231     Parse line error: parsing CRI timestamp: parsing time "2021.08.25" as "2006-01-02T15:04:05.999999999Z07:00": cannot parse ".08.25" as "-"

that should be type log as these are simple log4j logs

Ok i made it, but i don’t see any error log:

I got this last log :

filebeat-sidecar   "message": "2021.08.25 13:58:26 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000",  

And 5 minutes after, Sonar stops with this last log:

filebeat-sidecar   "message": "10.240.9.114 - - [25/Aug/2021:14:02:12 +0000] \"GET /api/system/health HTTP/1.1\" 200 71 \"-\" \"Wget\" \"-\"", 

I have two question please.

I’m running behind a proxy, so it is possible to add a variable with my proxy info into the yaml file ?
And is it possible to modify the log level in the yaml file ?

Thanks for your help !

and you still have the same exception that the ES status can not be retrieved? 5 minutes is too long for ES to not start up. SQ should terminate earlier.

Yes you can configure it via env vars or sonar.properties but this is only needed for the marketplace as documented here: Marketplace | SonarQube Docs

Yes you can configure it via env vars or sonar.properties. for the env vars have a look here and for the properties here

Okey, thanks Tobias !

Wit the DEBUG level i got this new log, i don’t know what to do with it :wink:

2021.08.26 08:00:31 DEBUG app[][o.e.c.RestClient] updated [[host=http://127.0.0.1:9001]] already in blacklist
2021.08.26 08:00:31 DEBUG es[][o.e.g.PersistedClusterStateService] writing cluster state took [0ms]; wrote full state with [0] indices
2021.08.26 08:00:31 DEBUG es[][o.e.c.s.ClusterApplierService] processing [Publication{term=7, version=13}]: execute
2021.08.26 08:00:31 DEBUG es[][o.e.c.s.ClusterApplierService] cluster state updated, version [13], source [Publication{term=7, version=13}]
2021.08.26 08:00:31 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{KvpAIlg_T9SoqCe_Z_Gxjw}{yJqCRRqXSfOBOycwvPlvyg}{127.0.0.1}{127.0.0.1:44813}{dimr}{rack_id=sonarqube}]}, term: 7, version: 13, reason: Publication{term=7, version=13}
2021.08.26 08:00:31 DEBUG es[][o.e.c.s.ClusterApplierService] apply cluster state with version 13
2021.08.26 08:00:31 DEBUG es[][o.e.c.s.ClusterApplierService] set locally applied cluster state to version 13
2021.08.26 08:00:31 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 197] start execution
2021.08.26 08:00:31 DEBUG app[][o.a.h.c.p.RequestAddCookies] CookieSpec selected: default
2021.08.26 08:00:31 DEBUG app[][o.a.h.c.p.RequestAuthCache] Re-using cached 'basic' auth scheme for http://127.0.0.1:9001
2021.08.26 08:00:31 DEBUG app[][o.a.h.c.p.RequestAuthCache] No credentials for preemptive authentication
2021.08.26 08:00:31 DEBUG app[][o.a.h.i.n.c.InternalHttpAsyncClient] [exchange: 197] Request connection for {}->http://127.0.0.1:9001
2021.08.26 08:00:31 DEBUG app[][o.a.h.i.n.c.PoolingNHttpClientConnectionManager] Connection request: [route: {}->http://127.0.0.1:9001][total kept alive: 0; route allocated: 0 of 10; total allocated: 0 of 30]
2021.08.26 08:00:31 DEBUG app[][o.a.h.i.n.c.PoolingNHttpClientConnectionManager] Connection request failed
java.net.ConnectException: Connection refused
        at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174)
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148)
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351)
        at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221)
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
        at java.base/java.lang.Thread.run(Unknown Source)
2021.08.26 08:00:31 DEBUG app[][o.a.h.i.n.c.InternalHttpAsyncClient] [exchange: 197] connection request failed
2021.08.26 08:00:31 DEBUG app[][o.e.c.RestClient] request [GET http://127.0.0.1:9001/_cluster/health?master_timeout=30s&level=cluster&timeout=30s&wait_for_status=yellow] failed
java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused
        at org.apache.http.concurrent.BasicFuture.getResult(BasicFuture.java:71)
        at org.apache.http.concurrent.BasicFuture.get(BasicFuture.java:84)
        at org.apache.http.impl.nio.client.FutureWrapper.get(FutureWrapper.java:70)
        at org.elasticsearch.client.RestClient.performRequest(RestClient.java:279)
        at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270)
        at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1654)
        at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1624)
        at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1594)
        at org.elasticsearch.client.ClusterClient.health(ClusterClient.java:119)
        at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:64)
        at org.sonar.application.process.EsManagedProcess.checkStatus(EsManagedProcess.java:89)
        at org.sonar.application.process.EsManagedProcess.checkOperational(EsManagedProcess.java:81)
        at org.sonar.application.process.EsManagedProcess.isOperational(EsManagedProcess.java:59)
        at org.sonar.application.process.ManagedProcessHandler.refreshState(ManagedProcessHandler.java:220)
        at org.sonar.application.process.ManagedProcessHandler$EventWatcher.run(ManagedProcessHandler.java:285)
Caused by: java.net.ConnectException: Connection refused
        at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:174)
        at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:148)
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:351)
        at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221)
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
        at java.base/java.lang.Thread.run(Unknown Source)

But sometimes the connection is OK and i got this now, but the container keep restarting :


> 
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 208] start execution
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.c.p.RequestAddCookies] CookieSpec selected: default
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.c.p.RequestAuthCache] Re-using cached 'basic' auth scheme for http://127.0.0.1:9001
> 2021.08.26 08:06:01 DEBUG es[][o.e.c.c.PublicationTransportHandler] received full cluster state version [16] with size [253]
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.c.p.RequestAuthCache] No credentials for preemptive authentication
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.i.n.c.InternalHttpAsyncClient] [exchange: 208] Request connection for {}->http://127.0.0.1:9001
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.i.n.c.PoolingNHttpClientConnectionManager] Connection request: [route: {}->http://127.0.0.1:9001][total kept alive: 0; route allocated: 0 of 10; total allocated: 0 of 30]
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.i.n.c.PoolingNHttpClientConnectionManager] Connection leased: [id: http-outgoing-0][route: {}->http://127.0.0.1:9001][total kept alive: 0; route allocated: 1 of 10; total allocated: 0 of 30]
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.i.n.c.InternalHttpAsyncClient] [exchange: 208] Connection allocated: CPoolProxy{http-outgoing-0 [ACTIVE]}
> 2021.08.26 08:06:01 DEBUG es[][o.e.g.PersistedClusterStateService] writing cluster state took [0ms]; wrote global metadata [false] and metadata for [0] indices and skipped [0] unchanged indices
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][r:]: Set attribute http.nio.exchange-handler
> 2021.08.26 08:06:01 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][rw:]: Event set [w]
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][rw:]: Set timeout 0
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalIODispatch] http-outgoing-0 [ACTIVE]: Connected
> 2021.08.26 08:06:01 DEBUG es[][o.e.c.c.ElectionSchedulerFactory] scheduleNextElection{gracePeriod=500ms, thisAttempt=1, maxDelayMillis=200, delayMillis=697, ElectionScheduler{attempt=2, ElectionSchedulerFactory{initialTimeout=100ms, backoffTime=100ms, maxTimeout=10s}}} not starting election
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][rw:]: Set attribute http.nio.http-exchange-state
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalHttpAsyncClient] [exchange: 208] Start connection routing
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalHttpAsyncClient] [exchange: 208] route completed
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 208] Connection route established
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 208] Attempt 1 to execute request
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 208] Target auth state: UNCHALLENGED
> 2021.08.26 08:06:02 DEBUG es[][o.e.c.s.ClusterApplierService] processing [Publication{term=8, version=16}]: execute
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 208] Proxy auth state: UNCHALLENGED
> 2021.08.26 08:06:02 DEBUG es[][o.e.c.s.ClusterApplierService] cluster state updated, version [16], source [Publication{term=8, version=16}]
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][rw:]: Set timeout 30000
> 2021.08.26 08:06:02 DEBUG app[][o.a.http.headers] http-outgoing-0 >> GET /_cluster/health?master_timeout=30s&level=cluster&timeout=30s&wait_for_status=yellow HTTP/1.1
> 2021.08.26 08:06:02 DEBUG app[][o.a.http.headers] http-outgoing-0 >> Content-Length: 0
> 2021.08.26 08:06:02 DEBUG app[][o.a.http.headers] http-outgoing-0 >> Host: 127.0.0.1:9001
> 2021.08.26 08:06:02 DEBUG app[][o.a.http.headers] http-outgoing-0 >> Connection: Keep-Alive
> 2021.08.26 08:06:02 DEBUG app[][o.a.http.headers] http-outgoing-0 >> User-Agent: elasticsearch-java/7.12.1-SNAPSHOT (Java/11.0.11)
> 2021.08.26 08:06:02 DEBUG app[][o.a.http.headers] http-outgoing-0 >> X-Elastic-Client-Meta: es=7.12.1-SNAPSHOT,jv=11,t=7.12.1-SNAPSHOT,hc=4.1.4,kt=1.4
> 2021.08.26 08:06:02 DEBUG es[][o.e.c.s.ClusterApplierService] applying settings from cluster state with version 16
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][rw:]: Event set [w]
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 208] Request completed
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][rw:w]: 312 bytes written
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 >> "GET /_cluster/health?master_timeout=30s&level=cluster&timeout=30s&wait_for_status=yellow HTTP/1.1[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 >> "Content-Length: 0[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 >> "Host: 127.0.0.1:9001[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 >> "User-Agent: elasticsearch-java/7.12.1-SNAPSHOT (Java/11.0.11)[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 >> "X-Elastic-Client-Meta: es=7.12.1-SNAPSHOT,jv=11,t=7.12.1-SNAPSHOT,hc=4.1.4,kt=1.4[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 >> "[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalIODispatch] http-outgoing-0 [ACTIVE] Request ready
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][r:w]: Event cleared [w]
> 2021.08.26 08:06:02 DEBUG es[][o.e.c.s.ClusterApplierService] apply cluster state with version 16
> 2021.08.26 08:06:02 DEBUG es[][o.e.c.s.ClusterApplierService] set locally applied cluster state to version 16
> 2021.08.26 08:06:02 DEBUG es[][o.e.c.s.ClusterApplierService] processing [Publication{term=8, version=16}]: took [0s] done applying updated cluster state (version: 16, uuid: 0__63SdHScSp1kC8dHC70w)
> 2021.08.26 08:06:02 DEBUG es[][o.e.c.c.C.CoordinatorPublication] publication ended successfully: Publication{term=8, version=16}
> 2021.08.26 08:06:02 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
> 2021.08.26 08:06:02 DEBUG es[][o.e.c.s.MasterService] took [0s] to notify listeners on successful publication of cluster state (version: 16, uuid: 0__63SdHScSp1kC8dHC70w) for [local-gateway-elected-state]
> 2021.08.26 08:06:02 DEBUG es[][i.n.b.AbstractByteBuf] -Dio.netty.buffer.checkAccessible: true
> 2021.08.26 08:06:02 DEBUG es[][i.n.b.AbstractByteBuf] -Dio.netty.buffer.checkBounds: true
> 2021.08.26 08:06:02 DEBUG es[][i.n.u.ResourceLeakDetectorFactory] Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@6cbca52e
> 2021.08.26 08:06:02 DEBUG es[][i.n.u.Recycler] -Dio.netty.recycler.maxCapacityPerThread: disabled
> 2021.08.26 08:06:02 DEBUG es[][i.n.u.Recycler] -Dio.netty.recycler.maxSharedCapacityFactor: disabled
> 2021.08.26 08:06:02 DEBUG es[][i.n.u.Recycler] -Dio.netty.recycler.linkCapacity: disabled
> 2021.08.26 08:06:02 DEBUG es[][i.n.u.Recycler] -Dio.netty.recycler.ratio: disabled
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][r:r]: 472 bytes read
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 << "content-type: application/json; charset=UTF-8[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 << "content-length: 385[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 << "[\r][\n]"
> 2021.08.26 08:06:02 DEBUG app[][org.apache.http.wire] http-outgoing-0 << "{"cluster_name":"sonarqube","status":"green","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":0,"active_shards":0,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":100.0}"
> 2021.08.26 08:06:02 DEBUG app[][o.a.http.headers] http-outgoing-0 << HTTP/1.1 200 OK
> 2021.08.26 08:06:02 DEBUG app[][o.a.http.headers] http-outgoing-0 << content-type: application/json; charset=UTF-8
> 2021.08.26 08:06:02 DEBUG app[][o.a.http.headers] http-outgoing-0 << content-length: 385
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalIODispatch] http-outgoing-0 [ACTIVE(385)] Response received
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 208] Response received HTTP/1.1 200 OK
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalIODispatch] http-outgoing-0 [ACTIVE(385)] Input ready
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 208] Consume content
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalHttpAsyncClient] [exchange: 208] Connection can be kept alive indefinitely
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.MainClientExec] [exchange: 208] Response processed
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalHttpAsyncClient] [exchange: 208] releasing connection
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][r:r]: Remove attribute http.nio.exchange-handler
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.PoolingNHttpClientConnectionManager] Releasing connection: [id: http-outgoing-0][route: {}->http://127.0.0.1:9001][total kept alive: 0; route allocated: 1 of 10; total allocated: 1 of 30]
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.PoolingNHttpClientConnectionManager] Connection [id: http-outgoing-0][route: {}->http://127.0.0.1:9001] can be kept alive indefinitely
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][r:r]: Set timeout 0
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.PoolingNHttpClientConnectionManager] Connection released: [id: http-outgoing-0][route: {}->http://127.0.0.1:9001][total kept alive: 1; route allocated: 1 of 10; total allocated: 1 of 30]
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalIODispatch] http-outgoing-0 [ACTIVE] [content length: 385; pos: 385; completed: true]
> 2021.08.26 08:06:02 DEBUG app[][o.e.c.RestClient] request [GET http://127.0.0.1:9001/_cluster/health?master_timeout=30s&level=cluster&timeout=30s&wait_for_status=yellow] returned [HTTP/1.1 200 OK]
> 2021.08.26 08:06:02 DEBUG app[][o.e.c.RestClient] removed [[host=http://127.0.0.1:9001]] from blacklist
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.PoolingNHttpClientConnectionManager] Connection manager is shutting down
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.ManagedNHttpClientConnectionImpl] http-outgoing-0 127.0.0.1:43522<->127.0.0.1:9001[ACTIVE][r:r]: Close
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.InternalIODispatch] http-outgoing-0 [CLOSED]: Disconnected
> 2021.08.26 08:06:02 DEBUG app[][o.a.h.i.n.c.PoolingNHttpClientConnectionManager] Connection manager shut down
> 2021.08.26 08:06:02 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
> 2021.08.26 08:06:02 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] EventWatcher[es] tryToMoveTo es from STARTED to STARTING => false
> 2021.08.26 08:06:02 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] EventWatcher[es] tryToMoveTo web from INIT to STARTING => true
> 2021.08.26 08:06:02 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /opt/java/openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --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 -Xmx1G -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-8.9.1.44547.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.19.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process5413975547699738413properties
> 2021.08.26 08:06:02 DEBUG app[][o.s.a.p.ManagedProcessLifecycle] EventWatcher[es] tryToMoveTo web from STARTING to STARTED => true
> 2021.08.26 08:06:02 DEBUG es[][o.e.m.j.JvmGcMonitorService] [gc][2] overhead, spent [116ms] collecting in the last [1s]
> 2021.08.26 08:06:03 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
> 2021.08.26 08:06:04 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
> 2021.08.26 08:06:06 INFO  web[][o.s.c.e.CoreExtensionsLoader] Loaded core extensions: enterprise-edition, ce-workers, developer-scanner, developer-server, governance, license, securityreport
> 2021.08.26 08:06:06 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: enterprise-edition
> 2021.08.26 08:06:06 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: ce-workers
> 2021.08.26 08:06:06 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: developer-scanner
> 2021.08.26 08:06:06 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: developer-server
> 2021.08.26 08:06:06 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: governance
> 2021.08.26 08:06:06 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: license
> 2021.08.26 08:06:06 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: securityreport
> 2021.08.26 08:06:06 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [http://localhost:9001]

And at the end, i got this final log before the container restart :

> 2021.08.26 08:17:08 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 8.9.1.44547 / d46c8de9adbb223e48c5bca3a7d1de7875d7ec12
> 2021.08.26 08:17:08 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://vip-bdd-sonindp.dc1lan.local:5501/SONINDP
> 2021.08.26 08:17:09 DEBUG web[][o.postgresql.Driver] Loading driver configuration via classloader jdk.internal.loader.ClassLoaders$AppClassLoader@7e6140a9
> 2021.08.26 08:17:09 DEBUG web[][o.postgresql.Driver] Connecting with URL: jdbc:postgresql://vip-bdd-sonindp.dc1lan.local:5501/SONINDP
> 2021.08.26 08:17:09 DEBUG web[][o.p.c.v.ConnectionFactoryImpl] Trying to establish a protocol version 3 connection to vip-bdd-sonindp.dc1lan.local:5501
> 2021.08.26 08:17:09 DEBUG web[][o.p.c.v.ConnectionFactoryImpl] Receive Buffer Size is 179,680
> 2021.08.26 08:17:09 DEBUG web[][o.p.c.v.ConnectionFactoryImpl] Send Buffer Size is 43,520
> 2021.08.26 08:17:09 DEBUG web[][o.p.ssl.MakeSSL] converting regular socket connection to ssl
> 2021.08.26 08:17:09 DEBUG web[][jdk.event.security] X509Certificate: Alg:SHA256withRSA, Serial:56d5c16085912d6deee064e190f0bdbe2b919632, Subject:CN=openb1p1.dc1lan.local, O=Monext, L=Aix-en-Provence, ST=Bouches du Rhone, C=FR, Issuer:CN=Monext - Intermediaire - sha256 - 2021, O=Monext, L=Aix-en-Provence, ST=Bouches du Rhone, C=FR, Key type:RSA, Length:2048, Cert Id:1584802987, Valid from:7/27/21, 1:51 PM, Valid until:7/25/28, 1:51 PM
> 2021.08.26 08:17:09 DEBUG web[][jdk.event.security]  TLSHandshake: vip-bdd-sonindp.dc1lan.local:5501, TLSv1.2, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, 1584802987
> 2021.08.26 08:17:10 DEBUG web[][o.postgresql.Driver] Connecting with URL: jdbc:postgresql://vip-bdd-sonindp.dc1lan.local:5501/SONINDP
> 2021.08.26 08:17:10 DEBUG web[][o.p.c.v.ConnectionFactoryImpl] Trying to establish a protocol version 3 connection to vip-bdd-sonindp.dc1lan.local:5501
> 2021.08.26 08:17:10 DEBUG web[][o.p.c.v.ConnectionFactoryImpl] Receive Buffer Size is 179,680
> 2021.08.26 08:17:10 DEBUG web[][o.p.c.v.ConnectionFactoryImpl] Send Buffer Size is 43,520
> 2021.08.26 08:17:10 DEBUG web[][o.p.ssl.MakeSSL] converting regular socket connection to ssl
> 2021.08.26 08:17:10 DEBUG web[][jdk.event.security]  TLSHandshake: vip-bdd-sonindp.dc1lan.local:5501, TLSv1.2, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, 1584802987
> 2021.08.26 08:17:12 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
> 2021.08.26 08:17:12 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is enabled
> 2021.08.26 08:17:12 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: enterprise-edition
> 2021.08.26 08:17:12 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: ce-workers
> 2021.08.26 08:17:12 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: developer-scanner
> 2021.08.26 08:17:12 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: developer-server
> 2021.08.26 08:17:12 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: governance
> 2021.08.26 08:17:12 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: license
> 2021.08.26 08:17:12 DEBUG web[][o.s.c.e.CoreExtensionsInstaller] Installed core extension: securityreport
> 2021.08.26 08:17:12 DEBUG web[][o.postgresql.Driver] Connecting with URL: jdbc:postgresql://vip-bdd-sonindp.dc1lan.local:5501/SONINDP
> 2021.08.26 08:17:12 DEBUG web[][o.p.c.v.ConnectionFactoryImpl] Trying to establish a protocol version 3 connection to vip-bdd-sonindp.dc1lan.local:5501
> 2021.08.26 08:17:12 DEBUG web[][o.p.c.v.ConnectionFactoryImpl] Receive Buffer Size is 179,680
> 2021.08.26 08:17:12 DEBUG web[][o.p.c.v.ConnectionFactoryImpl] Send Buffer Size is 43,520
> 2021.08.26 08:17:12 DEBUG web[][o.p.ssl.MakeSSL] converting regular socket connection to ssl
> 2021.08.26 08:17:13 DEBUG web[][jdk.event.security]  TLSHandshake: vip-bdd-sonindp.dc1lan.local:5501, TLSv1.2, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, 1584802987
> 2021.08.26 08:17:13 WARN  web[][o.s.s.p.DatabaseServerCompatibility] The database must be manually upgraded. Please backup the database and browse /setup. For more information: https://docs.sonarqube.org/latest/setup/upgrading
> 2021.08.26 08:17:13 WARN  app[][startup] ################################################################################
> 2021.08.26 08:17:13 WARN  app[][startup] The database must be manually upgraded. Please backup the database and browse /setup. For more information: https://docs.sonarqube.org/latest/setup/upgrading
> 2021.08.26 08:17:13 WARN  app[][startup] ################################################################################
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin ABAP Code Quality and Security / 3.9.1.3127 / a62ddf6ddd7379d398a58d32c9931a2feef61e24
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Apex Code Quality and Security / 1.8.3.2219 / d6ad7a5a47fc4785d2e80918fb7424be46e38a7f
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin C# Code Quality and Security / 8.22.0.31243 / e3cee7838d992e31dcdd90cf4f7406bb20535e8e
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin CFamily Code Quality and Security / 6.20.1.32841 / cfe20794a83197d63a97c7310114b0bf8ba0a548
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin COBOL Code Quality / 4.6.2.4876 / 314414101278f77b354b02acd8808fdbff700d3f
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin CSS Code Quality and Security / 1.4.2.2002 / faa7d4f1407df67df7ada53caf677ab783721173
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Flex Code Quality and Security / 2.6.1.2564 / bb723840701bda72510b7a47742811d20daad331
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Go Code Quality and Security / 1.8.3.2219 / d6ad7a5a47fc4785d2e80918fb7424be46e38a7f
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin HTML Code Quality and Security / 3.4.0.2754 / 38f7ff864ae15152c9f1efc3014594f7e7ca7b6e
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin JaCoCo / 1.1.1.1157 / 83478572b9f23efac29de15e30c7758bbb0c0e47
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Java Code Quality and Security / 6.15.1.26025 / 1b1e96715bfa9f6a4ae24e95cc5b91f0edce609f
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin JavaScript/TypeScript Code Quality and Security / 7.4.4.15624 / 481b2e69339b016b5d7d1eb27f0abf20dd6bd961
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Kotlin Code Quality and Security / 1.8.3.2219 / d6ad7a5a47fc4785d2e80918fb7424be46e38a7f
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin PHP Code Quality and Security / 3.17.0.7439 / 44c7760147080c157fa0ff579772f92d3c8e1ebf
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin PL/I Code Quality and Security / 1.11.1.2727 / 6976734b43f9247c20529879eca3495cfa89f47a
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin PL/SQL Code Quality and Security / 3.6.1.3873 / 342f7fcf17ecb7fbf827a2aacf630be1f4157625
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Python Code Quality and Security / 3.4.1.8066 / 22139ec73fb2f32044f66477ea52734415683668
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin RPG Code Quality / 2.5.1.2575 / 7ec2910da67ffcebf5d5944244c641d9de4b2a8a
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Ruby Code Quality and Security / 1.8.3.2219 / d6ad7a5a47fc4785d2e80918fb7424be46e38a7f
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Scala Code Quality and Security / 1.8.3.2219 / d6ad7a5a47fc4785d2e80918fb7424be46e38a7f
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Swift Code Quality and Security / 4.3.1.4892 / 2b249272bc4430519bdab769886b12c9a82084b5
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin T-SQL Code Quality and Security / 1.5.1.4340 / 11f3de5739b539749d6c2848bda8fc90135d91b6
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin VB.NET Code Quality and Security / 8.22.0.31243 / e3cee7838d992e31dcdd90cf4f7406bb20535e8e
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin VB6 Code Quality and Security / 2.7.1.2721 / b1d1c140bb9ec432799c480e2245a63d947fbef9
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Vulnerability Analysis / 8.9.0.11439 / 04498e7b336a73db9508145d1e8cc44b9330528d
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Vulnerability Rules for C# / 8.9.0.11439 / 04498e7b336a73db9508145d1e8cc44b9330528d
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Vulnerability Rules for JS / 8.9.0.11439 / 04498e7b336a73db9508145d1e8cc44b9330528d
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Vulnerability Rules for Java / 8.9.0.11439 / 04498e7b336a73db9508145d1e8cc44b9330528d
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Vulnerability Rules for PHP / 8.9.0.11439 / 04498e7b336a73db9508145d1e8cc44b9330528d
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin Vulnerability Rules for Python / 8.9.0.11439 / 04498e7b336a73db9508145d1e8cc44b9330528d
> 2021.08.26 08:17:13 INFO  web[][o.s.s.p.ServerPluginManager] Deploy plugin XML Code Quality and Security / 2.2.0.2973 / 16002945f0725643a7b42f090572795dd8b72a0f
> 2021.08.26 08:17:16 DEBUG web[][o.s.c.i.DefaultI18n] Loaded 3810 properties from l10n bundles
> 2021.08.26 08:17:16 INFO  web[][o.s.s.p.d.m.c.PostgresCharsetHandler] Verify that database charset supports UTF8
> 2021.08.26 08:17:16 INFO  web[][o.s.s.p.Platform] Database needs to be migrated. Please refer to https://docs.sonarqube.org/latest/setup/upgrading
> 2021.08.26 08:17:16 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@31b58dca [pattern=UrlPattern{inclusions=[/api/system/migrate_db.*, ...], exclusions=[/api/components/update_key, ...]}]
> 2021.08.26 08:17:16 DEBUG web[][o.s.s.a.TomcatAccessLog] Tomcat is started
> 2021.08.26 08:17:16 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000

Hmmm i find a memory error like -XX:+HeapDumpOnOutOfMemoryError

Is this a problem ?

2021.08.26 07:38:31 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /opt/java/openjdk/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -XX:-OmitStackTraceInFastThrow --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 -Xmx1G -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-8.9.1.44547.jar:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.19.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process87493155663716562properties

this looks like a normal startup. did you ever start the db migration?

this is not an error but a jvm parameter and this is intentional

Okey it’s a param :wink:

No i never updated the database as mentionned, for the moment, as the container keep restarting and restarting, i never launched the IHM of Sonarqube.

okay i am getting a bit lost where you currently stand. SQ is starting up and get’s restarted right? could it be that the kube scheduler is restarting the pod because of a probe failure? can you check this and try to adjust the thresholds if this is really the cause of the restart? because i can not see anything that would indicate a stop on the last log that you shared

This is the last event :

Warning  Unhealthy  48s (x169 over 5h8m)  kubelet  Liveness probe failed:

I will try to adjust the thresholds, thanks again for your help !