Sonarqube container stopping when running scan

sonarqube:8.4.1-developer docker image
sonar-scanner-cli-4.4.0.2170

Sonarqube docker container stops running when running a scan against an application. I’m running the scan from one docker container against a seperate sonarqube docker container.

The sonarqube and development image are joined via a docker network, which is why the sonarqube application is referenced via “http://sonarqube:9000”.

Command output

INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=2733ms
INFO: SCM Publisher SCM provider for this project is: git
INFO: SCM Publisher 898 source files to be analyzedThis text will be hidden
INFO: 117/898 source files have been analyzed
INFO: 260/898 source files have been analyzed
INFO: 418/898 source files have been analyzed
INFO: 581/898 source files have been analyzed
INFO: 722/898 source files have been analyzed
INFO: 877/898 source files have been analyzed
INFO: SCM Publisher 898/898 source files have been analyzed (done) | time=61487ms
INFO: CPD Executor 79 files had no CPD blocks
INFO: CPD Executor Calculating CPD for 779 files
INFO: CPD Executor CPD calculation finished (done) | time=2392ms
INFO: Load New Code definition
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 10:49.807s
INFO: Final Memory: 22M/80M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Fail to request http://sonarqube:9000/api/new_code_periods/show.protobuf?project=STL&branch=master
at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:200)
at org.sonarqube.ws.client.HttpConnector.get(HttpConnector.java:124)
at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:111)
at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:73)
at org.sonar.scanner.repository.DefaultNewCodePeriodLoader.call(DefaultNewCodePeriodLoader.java:51)
at org.sonar.scanner.repository.DefaultNewCodePeriodLoader.load(DefaultNewCodePeriodLoader.java:43)
at org.sonar.scanner.repository.ForkDateSupplier.get(ForkDateSupplier.java:65)
at org.sonar.scanner.report.MetadataPublisher.addForkPoint(MetadataPublisher.java:126)
at org.sonar.scanner.report.MetadataPublisher.publish(MetadataPublisher.java:105)
at org.sonar.scanner.report.ReportPublisher.generateReportFile(ReportPublisher.java:163)
at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:137)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:361)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:144)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.net.UnknownHostException: sonarqube: Name or service not known
at java.base/java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(Unknown Source)
at java.base/java.net.InetAddress.getAddressesFromNameService(Unknown Source)
at java.base/java.net.InetAddress$NameServiceAddresses.get(Unknown Source)
at java.base/java.net.InetAddress.getAllByName0(Unknown Source)
at java.base/java.net.InetAddress.getAllByName(Unknown Source)
at java.base/java.net.InetAddress.getAllByName(Unknown Source)
at okhttp3.Dns.lambda$static$0(Dns.java:39)
at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:171)
at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.java:135)
at okhttp3.internal.connection.RouteSelector.next(RouteSelector.java:84)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:187)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
at okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:229)
at okhttp3.RealCall.execute(RealCall.java:81)
at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:198)
… 30 more
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

Calling URL prior to running scan results in:
[1] 2609

Hi @liam ,

welcome to the community :wave:

how do you deploy this stack? is there a docker compose file that you could share? this is definitely infrastructure related

I’m currently in the process of evaluating the product.

This is currently just deployed on my local machine, the sonarqube image was pulled in via docker pull sonarqube:8.4.1-developer and started via docker run -d --name sonarqube -p 9000:9000 sonarqube

I then have a basic development image running on Ubuntu which contains the application that I am scanning.

These two containers are networked together via docker using docker network connect sonarqube sonar and similar for my development container, this allows sonarqube:9000 to be visable within the development docker image.

Upon running the scan using the unzip sonarscanner the sonarqube docker container stops running, which then causes the error due to the sonarqube network location no longer existing.

I run the command from the development container using /opt/sonar-scanner/bin/sonar-scanner -Dsonar.projectKey=STL -Dsonar.sources=/var/www/websites/stl2 -Dsonar.projectBaseDir=/var/www/websites/stl2 -Dsonar.host.url=http://sonarqube:9000 -Dsonar.login=<<login hash>>

okay so the sq container is just terminating before the scan is finished. do you have access to the logs (/opt/sonarqube/logs within the container) and share them? maybe the reason for this can be found there

Logs below, it appears that the database connection is being broken:

ce.log

2020.08.23 21:52:02 INFO ce[o.s.p.ProcessEntryPoint] Starting ce
2020.08.23 21:52:02 INFO ce[o.s.ce.app.CeServer] Compute Engine starting up…
2020.08.23 21:52:02 INFO ce[o.s.c.e.CoreExtensionsLoader] Loaded core extensions: developer-edition, developer-scanner, developer-server, license
2020.08.23 21:52:03 INFO ce[o.e.p.PluginsService] no modules loaded
2020.08.23 21:52:03 INFO ce[o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2020.08.23 21:52:03 INFO ce[o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2020.08.23 21:52:03 INFO ce[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.08.23 21:52:06 INFO ce[o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2020.08.23 21:52:06 INFO ce[o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2020.08.23 21:52:08 WARN ce[o.s.db.dialect.H2] H2 database should be used for evaluation purpose only.
2020.08.23 21:52:11 INFO ce[o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2020.08.23 21:52:11 INFO ce[o.s.c.c.CePluginRepository] Load plugins
2020.08.23 21:52:16 INFO ce[o.s.c.c.ComputeEngineContainerImpl] Running Developer edition
2020.08.23 21:52:16 INFO ce[o.s.ce.app.CeServer] Compute Engine is operational
2020.08.23 21:52:18 INFO ce[o.s.c.t.CeWorkerImpl] worker AXQdTskaaQbNGJvcSI00 found no pending task (including indexation task). Disabling indexation task lookup for this worker until next SonarQube restart.
2020.08.23 21:58:25 WARN ce[o.a.c.d.BasicDataSource] An internal object pool swallowed an Exception.
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Connection is broken: “java.net.SocketTimeoutException: 127.0.0.1:9092” [90067-199]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:617)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:427)
at org.h2.message.DbException.get(DbException.java:194)
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:435)
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:317)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:169)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:148)
at org.h2.Driver.connect(Driver.java:69)
at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:55)
at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:355)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:889)
at org.apache.commons.pool2.impl.GenericObjectPool.ensureIdle(GenericObjectPool.java:968)
at org.apache.commons.pool2.impl.GenericObjectPool.ensureMinIdle(GenericObjectPool.java:946)
at org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1148)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.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.net.SocketTimeoutException: null
at java.base/java.net.SocksSocketImpl.remainingMillis(Unknown Source)
at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
at java.base/java.net.Socket.connect(Unknown Source)
at org.h2.util.NetUtils.createSocket(NetUtils.java:103)
at org.h2.util.NetUtils.createSocket(NetUtils.java:83)
at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:115)
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:431)
… 16 common frames omitted
2020.08.23 22:05:01 INFO ce[o.s.p.ProcessEntryPoint] Hard stopping process
2020.08.23 22:05:01 INFO ce[o.s.ce.app.CeServer] Compute Engine is stopping…
2020.08.23 22:05:01 INFO ce[o.s.c.t.CeProcessingSchedulerImpl] Hard stopping workers…
2020.08.23 22:05:01 INFO ce[o.s.ce.app.CeServer] Compute Engine is stopped

es.log

2020.08.23 21:50:47 INFO es[o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (overlay)]], net usable_space [46.2gb], net total_space [58.4gb], types [overlay]
2020.08.23 21:50:47 INFO es[o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2020.08.23 21:50:47 INFO es[o.e.n.Node] node name [sonarqube], node ID [sfZbU3S1RzKPezqxx5mijA]
2020.08.23 21:50:47 INFO es[o.e.n.Node] version[6.8.4], pid[36], build[default/tar/bca0c8d/2019-10-16T06:19:49.319352Z], OS[Linux/4.9.184-linuxkit/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/11.0.6/11.0.6+10]
2020.08.23 21:50:47 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, -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.23 21:50:48 INFO es[o.e.p.PluginsService] loaded module [analysis-common]
2020.08.23 21:50:48 INFO es[o.e.p.PluginsService] loaded module [lang-painless]
2020.08.23 21:50:48 INFO es[o.e.p.PluginsService] loaded module [mapper-extras]
2020.08.23 21:50:48 INFO es[o.e.p.PluginsService] loaded module [parent-join]
2020.08.23 21:50:48 INFO es[o.e.p.PluginsService] loaded module [percolator]
2020.08.23 21:50:48 INFO es[o.e.p.PluginsService] loaded module [reindex]
2020.08.23 21:50:48 INFO es[o.e.p.PluginsService] loaded module [repository-url]
2020.08.23 21:50:48 INFO es[o.e.p.PluginsService] loaded module [transport-netty4]
2020.08.23 21:50:48 INFO es[o.e.p.PluginsService] no plugins loaded
2020.08.23 21:50:53 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.23 21:50:56 INFO es[o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2020.08.23 21:50:58 INFO es[o.e.n.Node] initialized
2020.08.23 21:50:58 INFO es[o.e.n.Node] starting …
2020.08.23 21:50:59 INFO es[o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2020.08.23 21:51:02 INFO es[o.e.c.s.MasterService] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {sonarqube}{sfZbU3S1RzKPezqxx5mijA}{cTTZuiMhQbeWGTei8IoRxQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}
2020.08.23 21:51:02 INFO es[o.e.c.s.ClusterApplierService] new_master {sonarqube}{sfZbU3S1RzKPezqxx5mijA}{cTTZuiMhQbeWGTei8IoRxQ}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube}, reason: apply cluster state (from master [master {sonarqube}{sfZbU3S1RzKPezqxx5mijA}{cTTZuiMhQbeWGTei8IoRxQ}{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.23 21:51:02 INFO es[o.e.n.Node] started
2020.08.23 21:51:03 INFO es[o.e.g.GatewayService] recovered [7] indices into cluster_state
2020.08.23 21:51:05 INFO es[o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[metadatas][0]] …]).
2020.08.23 21:53:43 WARN es[o.e.m.j.JvmGcMonitorService] [gc][young][162][7] duration [2.4s], collections [1]/[2.7s], total [2.4s]/[2.7s], memory [215.4mb]->[124.2mb]/[495.3mb], all_pools {[young] [132mb]->[1.9mb]/[133.1mb]}{[survivor] [10.9mb]->[14.1mb]/[16.6mb]}{[old] [72.3mb]->[110mb]/[345.6mb]}
2020.08.23 21:53:43 WARN es[o.e.m.j.JvmGcMonitorService] [gc][162] overhead, spent [2.4s] collecting in the last [2.7s]
2020.08.23 21:58:25 WARN es[o.e.c.InternalClusterInfoService] Failed to update shard information for ClusterInfoUpdateJob within 15s timeout

sonar.log

2020.08.23 21:50:40 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2020.08.23 21:50:40 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.08.23 21:50:40 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.23 21:50:40 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2020.08.23 21:50:41 INFO app[o.e.p.PluginsService] no modules loaded
2020.08.23 21:50:41 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.08.23 21:51:05 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2020.08.23 21:51:05 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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/common/:/opt/sonarqube/lib/jdbc/h2/h2-1.4.199.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process10910369736414581572properties
2020.08.23 21:52:00 INFO app[o.s.a.SchedulerImpl] Process[web] is up
2020.08.23 21:52:00 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘ce’, ipcIndex=3, logFilenamePrefix=ce]] 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 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/common/:/opt/sonarqube/lib/jdbc/h2/h2-1.4.199.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process8200410136313997068properties
2020.08.23 21:52:17 INFO app[o.s.a.SchedulerImpl] Process[ce] is up
2020.08.23 21:52:17 INFO app[o.s.a.SchedulerImpl] SonarQube is up
2020.08.23 22:05:00 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 137
2020.08.23 22:05:00 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2020.08.23 22:05:01 WARN app[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53902, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN app[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53900, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN app[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53906, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN app[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53914, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN app[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53898, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:02 INFO app[o.s.a.SchedulerImpl] Process[ce] is stopped
2020.08.23 22:05:09 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2020.08.23 22:05:09 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

web.log

2020.08.23 21:51:06 INFO web[o.s.p.ProcessEntryPoint] Starting web
2020.08.23 21:51:08 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2020.08.23 21:51:09 INFO web[o.s.c.e.CoreExtensionsLoader] Loaded core extensions: developer-edition, developer-scanner, developer-server, license
2020.08.23 21:51:09 INFO web[o.e.p.PluginsService] no modules loaded
2020.08.23 21:51:09 INFO web[o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2020.08.23 21:51:09 INFO web[o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2020.08.23 21:51:09 INFO web[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2020.08.23 21:51:13 INFO web[o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2020.08.23 21:51:13 INFO web[o.s.s.p.LogServerVersion] SonarQube Server / 8.4.1.35646 / 7267e37dda923d9336125657aa6d0878af14af53
2020.08.23 21:51:15 INFO web[o.s.s.p.d.EmbeddedDatabase] Starting embedded database on port 9092 with url jdbc:h2:tcp://127.0.0.1:9092/sonar
2020.08.23 21:51:15 INFO web[o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: /opt/sonarqube/data
2020.08.23 21:51:15 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2020.08.23 21:51:16 WARN web[o.s.db.dialect.H2] H2 database should be used for evaluation purpose only.
2020.08.23 21:51:19 INFO web[o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2020.08.23 21:51:19 INFO web[o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin C# Code Quality and Security / 8.9.0.19135 / 804f945fb3e4a3534eb903ffec2b6bff24124741
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin CFamily Code Quality and Security / 6.11.0.19130 / 402cc096f9ab42d13bdfe2bdaf17e07a2ca357be
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.12.0.2034 / 8002ffb45020fe70f56ebb22075fc5462f64ba7f
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin JaCoCo / 1.1.0.898 / f65b288e6c2888393bd7fb72ad7ac1425f88eebf
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Java Code Quality and Security / 6.5.1.22586 / 83734b1bf28e9f7c0cbcb723ee261a3d4acd7ce3
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin PHP Code Quality and Security / 3.5.0.5655 / 01929a7f1f25848f25b6aa60a857a2033bd6dbbc
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Python Code Quality and Security / 2.13.0.7236 / 474d91318dddaab6c1f8a4108f131bca05ac9238
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarABAP / 3.8.0.2034 / 2904652c6ef4863eaace62c40fec0512724430e4
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarCSS / 1.2.0.1325 / 8dc9fe17b6230c20715d3b4cb34e0b6d02151afd
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarFlex / 2.5.1.1831 / a0c44437f6abb0feec76edd073f91fec64db2a6c
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarGo / 1.6.0.719 / edcc6a9e42fcdd30bb6f84a779c6cd7009ec72fd
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarHTML / 3.2.0.2082 / 997a51b39c4d0a5399c73a8fb729030a69eb392b
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 6.2.1.12157 / 3444def97744d3b811822b3a4bca74798de3ded1
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarKotlin / 1.5.0.315 / 4ff3a145a58f3f84f1b39846a205a129d742e993
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarPLSQL / 3.4.1.2576 / a27e6384088454d7160dd39ea5ba54a9929c15f4
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarRuby / 1.5.0.315 / 4ff3a145a58f3f84f1b39846a205a129d742e993
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarScala / 1.5.0.315 / 4ff3a145a58f3f84f1b39846a205a129d742e993
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarSwift / 4.2.2.77 / ad3e52bad0857bc89efe0503a420fac67d809398
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 2.1.0.4359 / 268ba9581b700c4fb2bc194d4069d283da915213
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarTSQL / 1.4.0.3334 / 7b4dc9eeb6301765e09583a3d570b5941223e0b4
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 2.0.1.2020 / c5b84004face582d56f110e24c29bf9c6a679e69
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Svn / 1.10.0.1917 / 91ccef5aac1f4dd90a7edc2ee3e677fcf4be72bf
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin VB.NET Code Quality and Security / 8.9.0.19135 / 804f945fb3e4a3534eb903ffec2b6bff24124741
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Vulnerability Analysis / 8.4.0.2759 / deee03c4499371c85690629803e7a2530bcfa099
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Vulnerability Rules for C# / 8.4.0.2759 / deee03c4499371c85690629803e7a2530bcfa099
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Vulnerability Rules for Java / 8.4.0.2759 / deee03c4499371c85690629803e7a2530bcfa099
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Vulnerability Rules for PHP / 8.4.0.2759 / deee03c4499371c85690629803e7a2530bcfa099
2020.08.23 21:51:21 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Vulnerability Rules for Python / 8.4.0.2759 / deee03c4499371c85690629803e7a2530bcfa099
2020.08.23 21:51:26 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@f5309ed [pattern=UrlPattern{inclusions=[/api/system/migrate_db., …], exclusions=[/api/components/update_key, …]}]
2020.08.23 21:51:26 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2020.08.23 21:51:31 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2020.08.23 21:51:34 INFO web[][o.s.s.s.LogServerId] Server ID: BF41A1F2-AXQdNITwCzLY4YT8ZcLI
2020.08.23 21:51:34 WARN web[][o.s.s.a.LogOAuthWarning] For security reasons, OAuth authentication should use HTTPS. You should set the property ‘Administration > Configuration > Server base URL’ to a HTTPS URL.
2020.08.23 21:51:35 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/plugins/download
2020.08.23 21:51:35 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/permissions/search_templates
2020.08.23 21:51:35 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_bitbucketserver_projects
2020.08.23 21:51:35 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/search_bitbucketserver_repos
2020.08.23 21:51:35 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_github_organizations
2020.08.23 21:51:35 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/list_github_repositories
2020.08.23 21:51:35 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/check_pat
2020.08.23 21:51:35 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/alm_integrations/get_github_client_id
2020.08.23 21:51:35 WARN web[][o.s.a.s.w.WebService$Action] The response example is not set on action api/support/info
2020.08.23 21:51:35 INFO web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2020.08.23 21:51:35 INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2020.08.23 21:51:35 INFO web[][com.sonarsource.D.H] Loaded virtual plugin License for SonarLint
2020.08.23 21:51:35 INFO web[][o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired session tokens has removed 0 elements
2020.08.23 21:51:35 INFO web[][o.s.s.a.p.ExpiredSessionsCleaner] Purge of expired SAML message ids has removed 0 elements
2020.08.23 21:51:35 INFO web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2020.08.23 21:51:35 INFO web[][o.s.s.s.RegisterPlugins] Register plugins
2020.08.23 21:51:35 INFO web[][o.s.s.s.RegisterMetrics] Register metrics
2020.08.23 21:51:35 INFO web[][o.s.s.r.RegisterRules] Register rules
2020.08.23 21:51:54 INFO web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2020.08.23 21:51:56 INFO web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2020.08.23 21:51:56 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile cpp/Sonar way
2020.08.23 21:51:57 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile css/Sonar way
2020.08.23 21:51:57 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile c/Sonar way
2020.08.23 21:51:57 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile scala/Sonar way
2020.08.23 21:51:57 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile jsp/Sonar way
2020.08.23 21:51:57 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile go/Sonar way
2020.08.23 21:51:57 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile kotlin/Sonar way
2020.08.23 21:51:57 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way
2020.08.23 21:51:57 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way Recommended
2020.08.23 21:51:58 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile py/Sonar way
2020.08.23 21:51:58 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile tsql/Sonar way
2020.08.23 21:51:58 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ruby/Sonar way
2020.08.23 21:51:58 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile plsql/Sonar way
2020.08.23 21:51:58 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile cs/Sonar way
2020.08.23 21:51:58 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile java/Sonar way
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile web/Sonar way
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile xml/Sonar way
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile flex/Sonar way
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Sonar way
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/PSR-2
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Drupal
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile vbnet/Sonar way
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile abap/Sonar way
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way recommended
2020.08.23 21:51:59 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile objc/Sonar way
2020.08.23 21:52:00 INFO web[][o.s.s.q.RegisterQualityProfiles] Update profile swift/Sonar way
2020.08.23 21:52:00 INFO web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
2020.08.23 21:52:00 INFO web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2020.08.23 21:52:00 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceFilter@3b585ddd [pattern=UrlPattern{inclusions=[/api/issues/delete_comment.
, …], exclusions=[/api/authentication/login., …]}]
2020.08.23 21:52:00 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.platform.web.WebServiceReroutingFilter@1b105126 [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, …], exclusions=[]}]
2020.08.23 21:52:00 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@7ede842f [pattern=UrlPattern{inclusions=[/sessions/init/
], exclusions=}]
2020.08.23 21:52:00 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@7073327c [pattern=UrlPattern{inclusions=[/oauth2/callback/*], exclusions=}]
2020.08.23 21:52:00 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@62c855bb [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=}]
2020.08.23 21:52:00 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@7cfd5d18 [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=}]
2020.08.23 21:52:00 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@5e5ce0be [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=}]
2020.08.23 21:52:00 INFO web[o.s.s.q.ProjectsInWarningDaemon] Counting number of projects in warning is not started as there are no projects in this situation.
2020.08.23 21:52:00 INFO web[o.s.s.p.p.PlatformLevelStartup] Running Developer Edition
2020.08.23 21:52:00 INFO web[o.s.s.p.Platform] WebServer is operational
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53954, remoteAddress=/127.0.0.1:9001}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53932, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53942, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53938, remoteAddress=/127.0.0.1:9001}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53952, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53950, remoteAddress=/127.0.0.1:9001}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53940, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53948, remoteAddress=/127.0.0.1:9001}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53946, remoteAddress=/127.0.0.1:9001}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:01 WARN web[o.e.t.OutboundHandler] send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:53934, remoteAddress=null}]
java.nio.channels.ClosedChannelException: null
at io.netty.channel.AbstractChannel$AbstractUnsafe.write(…)(Unknown Source)
2020.08.23 22:05:02 INFO web[o.s.p.ProcessEntryPoint] Hard stopping process
2020.08.23 22:05:02 INFO web[o.s.s.n.NotificationDaemon] Notification service stopped
2020.08.23 22:05:03 WARN web[o.s.p.ProcessEntryPoint$HardStopperThread] Can not stop in 1000ms
2020.08.23 22:05:05 WARN web[o.s.s.a.EmbeddedTomcat] Failed to stop web server
org.apache.catalina.LifecycleException: A child container failed during stop
at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:997)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:486)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:787)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
at org.apache.catalina.startup.Tomcat.stop(Tomcat.java:450)
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)
2020.08.23 22:05:08 INFO web[o.s.s.p.d.EmbeddedDatabase] Embedded database stopped

Hmm and you are using the embedded database right?
what is your docker configuration (specially the filesystem), the docker and ubuntu version as well as the local filesystem?

I’m running Docker Desktop (2.1.0.5 build 40693) on Windows 10.

Docker configuration of storage/fs:

Storage Driver: overlay2
Backing Filesystem: extfs

My development docker image is running on Ubuntu 16.04.6 LTS.

I may have missed something in the es.log

could it be that the system you are working on is a little overloaded during the scan causing a timeout within elasticsearch?

I increased the ram on docker from 2GB to 4GB and cleared down any processes that I could. The scan completed succesfully. Thanks for the help!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.