Docker-sonarqube: java.nio.file.NoSuchFileException: /opt/sonarqube/temp/README.txt

Created on 14 Dec 2017  Â·  10Comments  Â·  Source: SonarSource/docker-sonarqube

After installing sonarqube:alpine (latest as of 2017-12-13) I visited administration and updated plugins and installed 5 more. As it needed restart, I hit restart button on UI.

The container went down and when I tried to start it again, this appeared in log:

2017.12.14 09:13:21 INFO  web[AWBQImhwuPR20SdcAAEA][o.s.s.p.w.RestartAction] SonarQube restart requested by marian.stranecky
2017.12.14 09:13:21 INFO  ce[][o.s.p.StopWatcher] Stopping process
2017.12.14 09:13:21 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is stopping...
2017.12.14 09:13:21 INFO  ce[][o.s.c.t.CeProcessingSchedulerImpl] Waiting for workers to finish in-progress tasks
2017.12.14 09:13:23 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is stopped
2017.12.14 09:13:24 INFO  app[][o.s.a.SchedulerImpl] Process [ce] is stopped
2017.12.14 09:13:24 INFO  web[][o.s.p.StopWatcher] Stopping process
2017.12.14 09:13:27 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.12.14 09:13:27 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2017.12.14 09:13:27 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
2017.12.14 09:13:27 INFO  app[][o.s.a.SchedulerImpl] SonarQube is restarting
2017.12.14 09:13:27 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2017.12.14 09:13:27 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2017.12.14 09:13:27 ERROR app[][o.s.a.SchedulerImpl] Fail to restart
java.nio.file.NoSuchFileException: /opt/sonarqube/temp/README.txt
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
    at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
    at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
    at java.nio.file.Files.readAttributes(Files.java:1737)
    at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225)
    at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
    at java.nio.file.FileTreeWalker.next(FileTreeWalker.java:372)
    at java.nio.file.Files.walkFileTree(Files.java:2706)
    at org.sonar.application.AppFileSystem.createOrCleanTempDirectory(AppFileSystem.java:96)
    at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:62)
    at org.sonar.application.AppReloaderImpl.reload(AppReloaderImpl.java:60)
    at org.sonar.application.SchedulerImpl$RestarterThread.run(SchedulerImpl.java:295)

I guess this is the same as in #62 ;)

help wanted

Most helpful comment

I found that mounting /opt/sonarqube/temp as a volume fixes this for me. I consistently had the README.txt problem on restart running the following commands (with a linked postgres container):

sudo docker run -d --name sonarqube --link sonar-postgres:pgsonar -p 9000:9000 -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD='secure'  -e SONARQUBE_JDBC_URL=jdbc:postgresql://pgsonar:5432/sonar sonarqube:lts
sudo docker stop sonarqube
sudo docker start sonarqube

Now I do the following with constant success:

sudo docker run -d --name sonarqube --link sonar-postgres:pgsonar -p 9000:9000 -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD='secure'  -e SONARQUBE_JDBC_URL=jdbc:postgresql://pgsonar:5432/sonar -v sonarqube-temp:/opt/sonarqube/temp sonarqube:lts
sudo docker stop sonarqube
sudo docker start sonarqube

All 10 comments

Hi @marmax

$ docker version
Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.9.2
 Git commit:   afdb6d4
 Built:        Fri Dec 15 01:05:31 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.9.2
 Git commit:   afdb6d4
 Built:        Fri Dec 15 01:04:57 2017
 OS/Arch:      linux/amd64
 Experimental: false

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
sonarqube           alpine              e87e0c4b7d1d        9 days ago          314MB

$ docker run -d --name test -p 9000:9000 sonarqube:alpine

After some time docker log test shows that server started:

2017.12.15 01:08:24 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2017.12.15 01:08:24 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2017.12.15 01:08:24 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
2017.12.15 01:08:24 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2017.12.15 01:08:25 INFO  app[][o.e.p.PluginsService] no modules loaded
2017.12.15 01:08:25 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.15 01:08:32 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2017.12.15 01:08:32 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/*:./lib/server/*:/opt/sonarqube/lib/jdbc/h2/h2-1.3.176.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process3517439633746978466properties
2017.12.15 01:08:32 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2017.12.15 01:08:33 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2017.12.15 01:08:34 INFO  web[][o.e.p.PluginsService] no modules loaded
2017.12.15 01:08:34 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
2017.12.15 01:08:34 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2017.12.15 01:08:34 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2017.12.15 01:08:34 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.15 01:08:35 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2017.12.15 01:08:35 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.7.0.33306 / 5d031d9d2ac3f69b4b9bc600d50563b1886c7d8b
2017.12.15 01:08:35 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
2017.12.15 01:08:35 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: /opt/sonarqube/data
2017.12.15 01:08:35 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2017.12.15 01:08:35 WARN  web[][o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2017.12.15 01:08:36 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2017.12.15 01:08:36 INFO  web[][o.s.s.p.d.m.h.MigrationHistoryTableImpl] Creating table schema_migrations
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarJava [java] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarPython [python] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarC# [csharp] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin Flex [flex] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarJS [javascript] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarTS [typescript] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarXML [xml] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarQube :: Plugins :: SCM :: SVN [scmsvn] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarPHP [php] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarQube :: Plugins :: SCM :: Git [scmgit] installed
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Flex / 2.3 / 79167f762219bea1fd181ff5ef6ca4b34abd1675
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 6.5.0.3766 / 6011a1e9fb002edb044ae3092d92bcfb7d9d8a2d
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 3.2.0.5506 / 86da09565f891121df248835665f5d8ed98772b6
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 4.15.0.12310 / 572454b93016ec73a53fe0e07b2ffdc356d21ba9
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.11.0.2485 / 741861a29e5f9a26c6c99c06268facb6c4f4a882
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.8.0.1496 / 3fe3bc4d0273a5721ea2fb368dc45b1bb82fede3
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: Git / 1.3.0.869 / 4da53e3f9e55f4f2e5796625cb0c5768ed152079
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: SVN / 1.6.0.860 / 2111fdbd1dddda4ad6d4ed6486fd0b18c1010d3b
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.1.0.1079 / 042c9e65239a47d92d305f9767f730b3cc1e5ed3
2017.12.15 01:08:36 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.4.3.1027 / 39588245cecf538bb27be4e496ff303b0143d20b
2017.12.15 01:08:37 INFO  web[][o.s.s.p.d.m.AutoDbMigration] Automatically perform DB migration on fresh install
2017.12.15 01:08:37 INFO  web[][o.s.s.p.Platform] Database has been automatically updated
2017.12.15 01:08:37 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@1b797025 [pattern=UrlPattern{inclusions=[/api/system/migrate_db/*, ...], exclusions=[/api/properties*, ...]}]
2017.12.15 01:08:37 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2017.12.15 01:08:38 INFO  web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2017.12.15 01:08:39 INFO  web[][o.s.s.e.IndexCreator] Create index metadatas
2017.12.15 01:08:39 INFO  web[][o.s.s.e.IndexCreator] Create type metadatas/metadata
2017.12.15 01:08:39 INFO  web[][o.s.s.e.IndexCreator] Create index components
2017.12.15 01:08:39 INFO  web[][o.s.s.e.IndexCreator] Create type components/component
2017.12.15 01:08:39 INFO  web[][o.s.s.e.IndexCreator] Create type components/authorization
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create index tests
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create type tests/test
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create index projectmeasures
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create type projectmeasures/projectmeasure
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create type projectmeasures/authorization
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create index rules
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create type rules/activeRule
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create type rules/ruleExtension
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create type rules/rule
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create index issues
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create type issues/issue
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create type issues/authorization
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create index users
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create type users/user
2017.12.15 01:08:40 INFO  web[][o.s.s.e.IndexCreator] Create index views
2017.12.15 01:08:41 INFO  web[][o.s.s.e.IndexCreator] Create type views/view
2017.12.15 01:08:41 INFO  web[][o.s.s.s.LogServerId] Server ID: AWBXt0hIxGE8Iqlt0MDu
2017.12.15 01:08:41 INFO  web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2017.12.15 01:08:41 INFO  web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2017.12.15 01:08:41 INFO  web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2017.12.15 01:08:41 INFO  web[][o.s.s.s.RegisterPlugins] Register plugins
2017.12.15 01:08:41 INFO  web[][o.s.s.s.RegisterMetrics] Register metrics
2017.12.15 01:08:41 INFO  web[][o.s.s.r.RegisterRules] Register rules
2017.12.15 01:08:49 INFO  web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2017.12.15 01:08:49 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2017.12.15 01:08:49 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile cs/Sonar way
2017.12.15 01:08:50 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile java/Sonar way
2017.12.15 01:08:50 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile xml/Sonar way
2017.12.15 01:08:50 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile flex/Sonar way
2017.12.15 01:08:51 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile js/Sonar way Recommended
2017.12.15 01:08:51 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile js/Sonar way
2017.12.15 01:08:51 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile php/Sonar way
2017.12.15 01:08:51 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile php/PSR-2
2017.12.15 01:08:51 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile php/Drupal
2017.12.15 01:08:51 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile py/Sonar way
2017.12.15 01:08:51 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile ts/Sonar way
2017.12.15 01:08:51 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile ts/Sonar way recommended
2017.12.15 01:08:51 INFO  web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
2017.12.15 01:08:51 INFO  web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2017.12.15 01:08:51 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@38de8a9f [pattern=UrlPattern{inclusions=[/api/measures/component/*, ...], exclusions=[/api/properties*, ...]}]
2017.12.15 01:08:51 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.DeprecatedPropertiesWsFilter@312c0362 [pattern=UrlPattern{inclusions=[/api/properties/*], exclusions=[]}]
2017.12.15 01:08:51 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceReroutingFilter@7f51ce1f [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, ...], exclusions=[]}]
2017.12.15 01:08:51 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@5742d043 [pattern=UrlPattern{inclusions=[/sessions/init/*], exclusions=[]}]
2017.12.15 01:08:51 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@24ae6b1a [pattern=UrlPattern{inclusions=[/oauth2/callback/*], exclusions=[]}]
2017.12.15 01:08:51 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@74a52ff1 [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=[]}]
2017.12.15 01:08:51 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@5e82a17 [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=[]}]
2017.12.15 01:08:51 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@4c51aec9 [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=[]}]
2017.12.15 01:08:51 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [rules/activeRule] ...
2017.12.15 01:08:52 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [rules/activeRule] done | time=849ms
2017.12.15 01:08:52 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of types [rules/ruleExtension],[rules/rule] ...
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of types [rules/ruleExtension],[rules/rule] done | time=1868ms
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [users/user] ...
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [users/user] done | time=137ms
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [components/component] ...
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [components/component] done | time=60ms
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [views/view] ...
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [views/view] done | time=69ms
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [issues/issue] ...
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [issues/issue] done | time=56ms
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of types [components/authorization],[issues/authorization],[projectmeasures/authorization] ...
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of types [components/authorization],[issues/authorization],[projectmeasures/authorization] done | time=62ms
2017.12.15 01:08:54 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [tests/test] ...
2017.12.15 01:08:55 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [tests/test] done | time=50ms
2017.12.15 01:08:55 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [projectmeasures/projectmeasure] ...
2017.12.15 01:08:55 INFO  web[][o.s.s.e.IndexerStartupTask] Indexing of type [projectmeasures/projectmeasure] done | time=65ms
2017.12.15 01:08:55 INFO  web[][o.s.s.p.Platform] WebServer is operational
2017.12.15 01:08:55 INFO  app[][o.s.a.SchedulerImpl] Process[web] is up
2017.12.15 01:08:55 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/*:./lib/server/*:./lib/ce/*:/opt/sonarqube/lib/jdbc/h2/h2-1.3.176.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process375154962220453559properties
2017.12.15 01:08:55 INFO  ce[][o.s.p.ProcessEntryPoint] Starting ce
2017.12.15 01:08:55 INFO  ce[][o.s.ce.app.CeServer] Compute Engine starting up...
2017.12.15 01:08:56 INFO  ce[][o.e.p.PluginsService] no modules loaded
2017.12.15 01:08:56 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
2017.12.15 01:08:56 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2017.12.15 01:08:56 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2017.12.15 01:08:56 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.15 01:08:57 INFO  ce[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2017.12.15 01:08:57 INFO  ce[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2017.12.15 01:08:57 WARN  ce[][o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
2017.12.15 01:08:58 INFO  ce[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2017.12.15 01:08:58 INFO  ce[][o.s.c.c.CePluginRepository] Load plugins
2017.12.15 01:08:59 INFO  ce[][o.s.c.q.PurgeCeActivities] Delete the Compute Engine tasks created before Sun Jun 18 01:08:59 GMT 2017
2017.12.15 01:08:59 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is operational
2017.12.15 01:08:59 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
2017.12.15 01:08:59 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up

So I open "http://localhost:9000" , login as user "admin" with password "admin", install 5 random plugins and press button restart:

install

docker log test shows that SonarQube restarted:

2017.12.15 01:11:25 INFO  web[AWBXuCvuON7D4OXjAAAs][o.s.s.p.w.RestartAction] SonarQube restart requested by admin
2017.12.15 01:11:26 INFO  ce[][o.s.p.StopWatcher] Stopping process
2017.12.15 01:11:26 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is stopping...
2017.12.15 01:11:26 INFO  ce[][o.s.c.t.CeProcessingSchedulerImpl] Waiting for workers to finish in-progress tasks
2017.12.15 01:11:27 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is stopped
2017.12.15 01:11:28 INFO  app[][o.s.a.SchedulerImpl] Process [ce] is stopped
2017.12.15 01:11:28 INFO  web[][o.s.p.StopWatcher] Stopping process
2017.12.15 01:11:31 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.12.15 01:11:31 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2017.12.15 01:11:31 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
2017.12.15 01:11:31 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2017.12.15 01:11:31 INFO  app[][o.s.a.SchedulerImpl] SonarQube is restarting
2017.12.15 01:11:31 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2017.12.15 01:11:31 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2017.12.15 01:11:31 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
2017.12.15 01:11:31 INFO  app[][o.e.p.PluginsService] no modules loaded
2017.12.15 01:11:31 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.15 01:11:39 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2017.12.15 01:11:39 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/*:./lib/server/*:/opt/sonarqube/lib/jdbc/h2/h2-1.3.176.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process6919662877222158546properties
2017.12.15 01:11:40 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2017.12.15 01:11:40 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2017.12.15 01:11:41 INFO  web[][o.e.p.PluginsService] no modules loaded
2017.12.15 01:11:41 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
2017.12.15 01:11:41 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2017.12.15 01:11:41 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2017.12.15 01:11:41 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.15 01:11:42 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2017.12.15 01:11:42 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.7.0.33306 / 5d031d9d2ac3f69b4b9bc600d50563b1886c7d8b
2017.12.15 01:11:42 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
2017.12.15 01:11:43 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: /opt/sonarqube/data
2017.12.15 01:11:43 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2017.12.15 01:11:43 WARN  web[][o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2017.12.15 01:11:44 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin SonarJava [java] updated to version 4.15.0.12310
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin AEM Rules for SonarQube [aemrules] installed
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin Android [android] installed
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin Bitbucket Authentication for SonarQube [authbitbucket] installed
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin Azure Active Directory (AAD) Authentication Plug-in for SonarQube [authaad] installed
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Plugin CSS / SCSS / Less [css] installed
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin AEM Rules for SonarQube / 0.9
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Android / 1.1 / 9ab2bbcc83177e67c74d365f009bfe05bf38c7e3
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Azure Active Directory (AAD) Authentication Plug-in for SonarQube / 1.0
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Bitbucket Authentication for SonarQube / 1.0
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin CSS / SCSS / Less / 3.1 / 58a0a86a53f82a8486a5ee93681257e1ae0a10c8
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Flex / 2.3 / 79167f762219bea1fd181ff5ef6ca4b34abd1675
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 6.5.0.3766 / 6011a1e9fb002edb044ae3092d92bcfb7d9d8a2d
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 3.2.0.5506 / 86da09565f891121df248835665f5d8ed98772b6
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 4.15.0.12310 / 572454b93016ec73a53fe0e07b2ffdc356d21ba9
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.11.0.2485 / 741861a29e5f9a26c6c99c06268facb6c4f4a882
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.8.0.1496 / 3fe3bc4d0273a5721ea2fb368dc45b1bb82fede3
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: Git / 1.3.0.869 / 4da53e3f9e55f4f2e5796625cb0c5768ed152079
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: SVN / 1.6.0.860 / 2111fdbd1dddda4ad6d4ed6486fd0b18c1010d3b
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.1.0.1079 / 042c9e65239a47d92d305f9767f730b3cc1e5ed3
2017.12.15 01:11:44 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.4.3.1027 / 39588245cecf538bb27be4e496ff303b0143d20b
2017.12.15 01:11:45 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@46b7d114 [pattern=UrlPattern{inclusions=[/api/system/migrate_db/*, ...], exclusions=[/api/properties*, ...]}]
2017.12.15 01:11:45 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2017.12.15 01:11:46 INFO  web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2017.12.15 01:11:47 INFO  web[][o.s.s.s.LogServerId] Server ID: AWBXt0hIxGE8Iqlt0MDu
2017.12.15 01:11:47 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.
2017.12.15 01:11:47 INFO  web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2017.12.15 01:11:47 INFO  web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2017.12.15 01:11:47 INFO  web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2017.12.15 01:11:47 INFO  web[][o.s.s.s.RegisterPlugins] Register plugins
2017.12.15 01:11:47 INFO  web[][o.s.s.s.RegisterMetrics] Register metrics
2017.12.15 01:11:48 INFO  web[][o.s.s.r.RegisterRules] Register rules
2017.12.15 01:11:57 INFO  web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2017.12.15 01:11:57 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2017.12.15 01:11:57 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile cs/Sonar way
2017.12.15 01:11:58 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile css/SonarQube Way
2017.12.15 01:11:59 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile java/Android Lint
2017.12.15 01:11:59 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile java/Sonar way
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile scss/SonarQube Way
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile xml/Sonar way
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile flex/Sonar way
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Sonar way
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/PSR-2
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Drupal
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way Recommended
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile py/Sonar way
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register profile less/SonarQube Way
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way
2017.12.15 01:12:00 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way recommended
2017.12.15 01:12:01 INFO  web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
2017.12.15 01:12:01 INFO  web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2017.12.15 01:12:01 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@7f42613a [pattern=UrlPattern{inclusions=[/api/measures/component/*, ...], exclusions=[/api/properties*, ...]}]
2017.12.15 01:12:01 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.DeprecatedPropertiesWsFilter@43c5871d [pattern=UrlPattern{inclusions=[/api/properties/*], exclusions=[]}]
2017.12.15 01:12:01 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceReroutingFilter@7d6ad0f4 [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, ...], exclusions=[]}]
2017.12.15 01:12:01 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@5b62b376 [pattern=UrlPattern{inclusions=[/sessions/init/*], exclusions=[]}]
2017.12.15 01:12:01 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@6aa1501b [pattern=UrlPattern{inclusions=[/oauth2/callback/*], exclusions=[]}]
2017.12.15 01:12:01 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@7457b448 [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=[]}]
2017.12.15 01:12:01 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@6ba38543 [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=[]}]
2017.12.15 01:12:01 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@1a0c69cd [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=[]}]
2017.12.15 01:12:01 INFO  web[][o.s.s.p.Platform] WebServer is operational
2017.12.15 01:12:01 INFO  app[][o.s.a.SchedulerImpl] Process[web] is up
2017.12.15 01:12:01 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/*:./lib/server/*:./lib/ce/*:/opt/sonarqube/lib/jdbc/h2/h2-1.3.176.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process1469894335267574778properties
2017.12.15 01:12:01 INFO  ce[][o.s.p.ProcessEntryPoint] Starting ce
2017.12.15 01:12:01 INFO  ce[][o.s.ce.app.CeServer] Compute Engine starting up...
2017.12.15 01:12:02 INFO  ce[][o.e.p.PluginsService] no modules loaded
2017.12.15 01:12:02 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
2017.12.15 01:12:02 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2017.12.15 01:12:02 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2017.12.15 01:12:02 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.15 01:12:03 INFO  ce[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2017.12.15 01:12:03 INFO  ce[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2017.12.15 01:12:03 WARN  ce[][o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
2017.12.15 01:12:04 INFO  ce[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2017.12.15 01:12:04 INFO  ce[][o.s.c.c.CePluginRepository] Load plugins
2017.12.15 01:12:05 INFO  ce[][o.s.c.q.PurgeCeActivities] Delete the Compute Engine tasks created before Sun Jun 18 01:12:05 GMT 2017
2017.12.15 01:12:05 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is operational
2017.12.15 01:12:06 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
2017.12.15 01:12:06 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up

and browser shows login page.

Let's try docker restart test after which docker log test shows:

2017.12.15 01:14:57 INFO  app[][o.s.a.SchedulerImpl] Stopping SonarQube
2017.12.15 01:14:57 INFO  ce[][o.s.p.StopWatcher] Stopping process
2017.12.15 01:14:57 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is stopping...
2017.12.15 01:14:57 INFO  ce[][o.s.c.t.CeProcessingSchedulerImpl] Waiting for workers to finish in-progress tasks
2017.12.15 01:14:59 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is stopped
2017.12.15 01:15:00 INFO  app[][o.s.a.SchedulerImpl] Process [ce] is stopped
2017.12.15 01:15:00 INFO  web[][o.s.p.StopWatcher] Stopping process
2017.12.15 01:15:03 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.12.15 01:15:03 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
2017.12.15 01:15:03 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2017.12.15 01:15:03 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
2017.12.15 01:15:04 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2017.12.15 01:15:04 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2017.12.15 01:15:04 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
2017.12.15 01:15:04 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2017.12.15 01:15:05 INFO  app[][o.e.p.PluginsService] no modules loaded
2017.12.15 01:15:05 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.15 01:15:13 INFO  app[][o.s.a.SchedulerImpl] Process[es] is up
2017.12.15 01:15:13 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/*:./lib/server/*:/opt/sonarqube/lib/jdbc/h2/h2-1.3.176.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process1179149350478647537properties
2017.12.15 01:15:13 INFO  web[][o.s.p.ProcessEntryPoint] Starting web
2017.12.15 01:15:14 INFO  web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2017.12.15 01:15:14 INFO  web[][o.e.p.PluginsService] no modules loaded
2017.12.15 01:15:14 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
2017.12.15 01:15:14 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2017.12.15 01:15:14 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2017.12.15 01:15:14 INFO  web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.15 01:15:16 INFO  web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2017.12.15 01:15:16 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.7.0.33306 / 5d031d9d2ac3f69b4b9bc600d50563b1886c7d8b
2017.12.15 01:15:16 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
2017.12.15 01:15:16 INFO  web[][o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: /opt/sonarqube/data
2017.12.15 01:15:16 INFO  web[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2017.12.15 01:15:16 WARN  web[][o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2017.12.15 01:15:17 INFO  web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin AEM Rules for SonarQube / 0.9
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Android / 1.1 / 9ab2bbcc83177e67c74d365f009bfe05bf38c7e3
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Azure Active Directory (AAD) Authentication Plug-in for SonarQube / 1.0
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Bitbucket Authentication for SonarQube / 1.0
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin CSS / SCSS / Less / 3.1 / 58a0a86a53f82a8486a5ee93681257e1ae0a10c8
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin Flex / 2.3 / 79167f762219bea1fd181ff5ef6ca4b34abd1675
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 6.5.0.3766 / 6011a1e9fb002edb044ae3092d92bcfb7d9d8a2d
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 3.2.0.5506 / 86da09565f891121df248835665f5d8ed98772b6
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 4.15.0.12310 / 572454b93016ec73a53fe0e07b2ffdc356d21ba9
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.11.0.2485 / 741861a29e5f9a26c6c99c06268facb6c4f4a882
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.8.0.1496 / 3fe3bc4d0273a5721ea2fb368dc45b1bb82fede3
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: Git / 1.3.0.869 / 4da53e3f9e55f4f2e5796625cb0c5768ed152079
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: SVN / 1.6.0.860 / 2111fdbd1dddda4ad6d4ed6486fd0b18c1010d3b
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.1.0.1079 / 042c9e65239a47d92d305f9767f730b3cc1e5ed3
2017.12.15 01:15:17 INFO  web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.4.3.1027 / 39588245cecf538bb27be4e496ff303b0143d20b
2017.12.15 01:15:18 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@382a9465 [pattern=UrlPattern{inclusions=[/api/system/migrate_db/*, ...], exclusions=[/api/properties*, ...]}]
2017.12.15 01:15:18 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2017.12.15 01:15:19 INFO  web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2017.12.15 01:15:20 INFO  web[][o.s.s.s.LogServerId] Server ID: AWBXt0hIxGE8Iqlt0MDu
2017.12.15 01:15:20 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.
2017.12.15 01:15:20 INFO  web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
2017.12.15 01:15:20 INFO  web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
2017.12.15 01:15:20 INFO  web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
2017.12.15 01:15:20 INFO  web[][o.s.s.s.RegisterPlugins] Register plugins
2017.12.15 01:15:21 INFO  web[][o.s.s.s.RegisterMetrics] Register metrics
2017.12.15 01:15:21 INFO  web[][o.s.s.r.RegisterRules] Register rules
2017.12.15 01:15:26 INFO  web[][o.s.s.q.BuiltInQProfileRepositoryImpl] Load quality profiles
2017.12.15 01:15:26 INFO  web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles
2017.12.15 01:15:26 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile cs/Sonar way
2017.12.15 01:15:26 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile css/SonarQube Way
2017.12.15 01:15:26 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile java/Android Lint
2017.12.15 01:15:27 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile java/Sonar way
2017.12.15 01:15:27 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile scss/SonarQube Way
2017.12.15 01:15:28 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile xml/Sonar way
2017.12.15 01:15:28 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile flex/Sonar way
2017.12.15 01:15:28 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Sonar way
2017.12.15 01:15:28 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/PSR-2
2017.12.15 01:15:28 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile php/Drupal
2017.12.15 01:15:28 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way Recommended
2017.12.15 01:15:28 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile js/Sonar way
2017.12.15 01:15:28 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile py/Sonar way
2017.12.15 01:15:28 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile less/SonarQube Way
2017.12.15 01:15:29 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way
2017.12.15 01:15:29 INFO  web[][o.s.s.q.RegisterQualityProfiles] Update profile ts/Sonar way recommended
2017.12.15 01:15:29 INFO  web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates
2017.12.15 01:15:29 INFO  web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2017.12.15 01:15:29 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@6294da23 [pattern=UrlPattern{inclusions=[/api/measures/component/*, ...], exclusions=[/api/properties*, ...]}]
2017.12.15 01:15:29 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.DeprecatedPropertiesWsFilter@71eaacdf [pattern=UrlPattern{inclusions=[/api/properties/*], exclusions=[]}]
2017.12.15 01:15:29 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceReroutingFilter@54f7d433 [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, ...], exclusions=[]}]
2017.12.15 01:15:29 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@43e51112 [pattern=UrlPattern{inclusions=[/sessions/init/*], exclusions=[]}]
2017.12.15 01:15:29 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@5241ba84 [pattern=UrlPattern{inclusions=[/oauth2/callback/*], exclusions=[]}]
2017.12.15 01:15:29 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@31210f0b [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=[]}]
2017.12.15 01:15:29 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@3bfcdf44 [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=[]}]
2017.12.15 01:15:29 INFO  web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@6798b4ec [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=[]}]
2017.12.15 01:15:29 INFO  web[][o.s.s.p.Platform] WebServer is operational
2017.12.15 01:15:29 INFO  app[][o.s.a.SchedulerImpl] Process[web] is up
2017.12.15 01:15:29 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/*:./lib/server/*:./lib/ce/*:/opt/sonarqube/lib/jdbc/h2/h2-1.3.176.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process8140060580478499910properties
2017.12.15 01:15:29 INFO  ce[][o.s.p.ProcessEntryPoint] Starting ce
2017.12.15 01:15:29 INFO  ce[][o.s.ce.app.CeServer] Compute Engine starting up...
2017.12.15 01:15:30 INFO  ce[][o.e.p.PluginsService] no modules loaded
2017.12.15 01:15:30 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
2017.12.15 01:15:30 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2017.12.15 01:15:30 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2017.12.15 01:15:30 INFO  ce[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2017.12.15 01:15:31 INFO  ce[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2017.12.15 01:15:31 INFO  ce[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
2017.12.15 01:15:31 WARN  ce[][o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
2017.12.15 01:15:32 INFO  ce[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
2017.12.15 01:15:32 INFO  ce[][o.s.c.c.CePluginRepository] Load plugins
2017.12.15 01:15:33 INFO  ce[][o.s.c.q.PurgeCeActivities] Delete the Compute Engine tasks created before Sun Jun 18 01:15:33 GMT 2017
2017.12.15 01:15:33 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is operational
2017.12.15 01:15:33 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
2017.12.15 01:15:33 INFO  app[][o.s.a.SchedulerImpl] SonarQube is up

and again browser shows login page.

So similarly to #62 can't reproduce.

I don't remember and can't find any case when java.nio.file.NoSuchFileException: /opt/sonarqube/temp/README.txt was observed outside of Docker, so huge chances that issue is not in SonarQube application.

IMO clear that not every user experiences this issue. Or at least not always - can you stably reproduce problem on your side?
If yes, then what is different in your environment from mine and others?
If no, then what is different between cases when it happens and not?
In both cases there is huge chances that problem is not in Dockerfile and not in image, but in environment. In Docker? In Docker filesystem? In host? In host filesystem? and etc ... In these cases it actually has not that much to do with this issue tracker / git repository - maybe you'd better seek help outside in a wider community of Docker experts?

Will be glad to fix or suggest something, but what?

I guess this is the same as in #62, which was closed (imho improperly) as invalid

It has been open for about 8 months without any progress, without anyone who was able to debug, understand, express, find root problem, suggest fix, etc... I can leave this one open for another 8 months or years or forever, but what's the point?

Hi @Godin,
please, don't take it personally, but:

  • you don't have to convince me that it works on your box (using simple scenario)
  • it's easy to get rid of any problem without investigating the root cause
  • and it's still better to keep the issue open, at least until being resolved.
    :)

Besides, I do understand that there might be many possible causes to this.

Further information:
I ran the setup using docker-compose with some volume binding - see gist: docker-compose.yml

As the error happened I was not able to start the container at all (instant exit with given error) and had to recreate it with some new binding for /opt/sonarqube/temp to host folder in order to inspect whats going on.

I will try to investigate further, but have to say I don't have much more time for it :(

@marmax you got me wrong, because I'm not saying "works on my machine":

it works on your box (using simple scenario)

First - there are many users who do not have this problem.

And only then I personally tried many different boxes (linux, mac), many different Docker and docker-compose versions, many different scenarios (with/without installation of plugins, with/without docker-compose, with/without volumes, with/without database, etc)

for every new comment tried maximally as it is possible the same scenario like

I ran the setup using docker-compose with some volume binding - see gist: docker-compose.yml

right now tried this one - still can't reproduce

it's easy to get rid of any problem without investigating the root cause

and spend literally days trying to investigate root cause, search for similar problems, etc.

Don't take it personally, but I can say that it is easy to add comment without any useful additional details or open new and go away forever 😉

and it's still better to keep the issue open, at least until being resolved

That's your opinion, mine is that inactive non-actionable tickets that are not progressing for a long time can be removed from backlog and there is no problem to reopen again later. Especially given that issue is not necessarily in Dockerfile that is (and mainly only it) maintained in this repository. There is not much active watchers/contributors/maintainers of this repository. BTW that's why I suggested to seek help outside in some wider community of Docker users/experts. Thank you for your understanding.

I will try to investigate further, but have to say I don't have much more time for it :(

Will keep this open for you for some time.

I had the same problem. Everything was working just well, but once I restarted the server, the trouble started for me. SonarQube installation guide, unfortunately, doesn’t say a thing about configuring the user for the analysis server. People that are installing it can later forget about it, leaving SonarQube running with root rights for a while.

It is, however pretty simple and straightforward. Prepare sonar system user and change installation directory rights:

1. groupadd sonar
2. useradd -c "Sonar System User" -d /opt/sonarqube -g sonar -s /bin/bash sonar
3. chown -R sonar:sonar /opt/sonarqube

And edit /opt/sonarqube/bin/sonar.sh – find RUN_AS_USER entry, uncomment it and assign your SonarQube system username:

RUN_AS_USER=sonar

@marmax hope this helps you.

@vighneshpai-yml why/how this is related to the problem discussed here? Note that latest versions of container provided here already execute SonarQube under non-root user:
https://github.com/SonarSource/docker-sonarqube/blob/4ea09231a5a1ce4af97dd62c9c9bf30588324f57/6.7/Dockerfile#L14
https://github.com/SonarSource/docker-sonarqube/blob/4ea09231a5a1ce4af97dd62c9c9bf30588324f57/6.7/run.sh#L9-L10

I found that mounting /opt/sonarqube/temp as a volume fixes this for me. I consistently had the README.txt problem on restart running the following commands (with a linked postgres container):

sudo docker run -d --name sonarqube --link sonar-postgres:pgsonar -p 9000:9000 -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD='secure'  -e SONARQUBE_JDBC_URL=jdbc:postgresql://pgsonar:5432/sonar sonarqube:lts
sudo docker stop sonarqube
sudo docker start sonarqube

Now I do the following with constant success:

sudo docker run -d --name sonarqube --link sonar-postgres:pgsonar -p 9000:9000 -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD='secure'  -e SONARQUBE_JDBC_URL=jdbc:postgresql://pgsonar:5432/sonar -v sonarqube-temp:/opt/sonarqube/temp sonarqube:lts
sudo docker stop sonarqube
sudo docker start sonarqube

I solved the issue with deleting the sonarqube container only (Wanted to keep my DB), and re-creating it.

docker ps -a

Get the container ID of sonarqube (I wanted to keep my DB)
docker rm be232b3ae259
docker-compose up --no-recreate

Hope this could helps anyone.

docker installed in centos 7 linux on a vmware wrokstation 14 player ,

[root@master ~]# docker version Client: Version: 1.13.1 API version: 1.26 Package version: docker-1.13.1-88.git07f3374.el7.centos.x86_64 Go version: go1.9.4 Git commit: 07f3374/1.13.1 Built: Fri Dec 7 16:13:51 2018 OS/Arch: linux/amd64 Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Package version: docker-1.13.1-88.git07f3374.el7.centos.x86_64 Go version: go1.9.4 Git commit: 07f3374/1.13.1 Built: Fri Dec 7 16:13:51 2018 OS/Arch: linux/amd64 Experimental: false

steps:
1.install the sonarqube:
docker run --name db -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -d postgres
docker run -d --name sq --link db -e SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar -p 9000:9000 sonarqube

the current sonarqube image is v7.5

2.login with admin,go to administrator - marketplace,uninstall the plugin "SonarFlex",the docker logs:
2019.01.11 08:56:41 INFO web[AWg8HR2k1sF53lwNAAAZ][o.s.s.p.ServerPluginRepository] Uninstalling plugin SonarFlex [flex] 2019.01.11 08:57:02 ERROR web[AWg8HR2k1sF53lwNAAAa][o.s.s.p.UpdateCenterClient] Fail to connect to update center org.sonar.api.utils.SonarException: Fail to download: https://update.sonarsource.org/update-center.properties (no proxy) at org.sonar.core.util.DefaultHttpDownloader.failToDownload(DefaultHttpDownloader.java:155) at org.sonar.core.util.DefaultHttpDownloader.readString(DefaultHttpDownloader.java:113) at org.sonar.api.utils.UriReader.readString(UriReader.java:70) at org.sonar.server.plugins.UpdateCenterClient.init(UpdateCenterClient.java:99) at org.sonar.server.plugins.UpdateCenterClient.getUpdateCenter(UpdateCenterClient.java:82) at org.sonar.server.plugins.UpdateCenterMatrixFactory.getUpdateCenter(UpdateCenterMatrixFactory.java:44) at org.sonar.server.plugins.ws.PluginWSCommons.compatiblePlugins(PluginWSCommons.java:244) at org.sonar.server.plugins.ws.PluginWSCommons.compatiblePluginsByKey(PluginWSCommons.java:249) at org.sonar.server.plugins.ws.PendingAction.handle(PendingAction.java:88) at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:110) at org.sonar.server.ws.WebServiceFilter.doFilter(WebServiceFilter.java:88) at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:126) at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:95) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:87) at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:71) 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: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.requestid.RequestIdFilter.doFilter(RequestIdFilter.java:63) 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:108) 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:96) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at ch.qos.logback.access.tomcat.LogbackValve.invoke(LogbackValve.java:256) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.net.SocketTimeoutException: connect timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:162) at org.sonar.core.util.DefaultHttpDownloader$BaseHttpDownloader$HttpInputSupplier.getInput(DefaultHttpDownloader.java:272) at org.sonar.core.util.DefaultHttpDownloader.readString(DefaultHttpDownloader.java:111) ... 52 common frames omitted
3.click restart button when promoted,and the docker logs:
2019.01.11 08:59:16 INFO ce[][o.s.p.StopWatcher] Stopping process 2019.01.11 08:59:16 INFO ce[][o.s.ce.app.CeServer] Compute Engine is stopping... 2019.01.11 08:59:16 INFO ce[][o.s.c.t.CeProcessingSchedulerImpl] Waiting for workers to finish in-progress tasks 2019.01.11 08:59:18 INFO ce[][o.s.ce.app.CeServer] Compute Engine is stopped 2019.01.11 08:59:19 INFO app[][o.s.a.SchedulerImpl] Process [ce] is stopped 2019.01.11 08:59:19 INFO web[][o.s.p.StopWatcher] Stopping process 2019.01.11 08:59:23 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped 2019.01.11 08:59:23 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143 2019.01.11 08:59:23 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped 2019.01.11 08:59:23 INFO app[][o.s.a.SchedulerImpl] SonarQube is restarting 2019.01.11 08:59:23 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143 2019.01.11 08:59:23 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp 2019.01.11 08:59:23 ERROR app[][o.s.a.SchedulerImpl] Fail to restart java.nio.file.NoSuchFileException: /opt/sonarqube/temp/README.txt at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144) at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) at java.nio.file.Files.readAttributes(Files.java:1737) at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225) at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276) at java.nio.file.FileTreeWalker.next(FileTreeWalker.java:372) at java.nio.file.Files.walkFileTree(Files.java:2706) at org.sonar.application.AppFileSystem.createOrCleanTempDirectory(AppFileSystem.java:96) at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:62) at org.sonar.application.AppReloaderImpl.reload(AppReloaderImpl.java:60) at org.sonar.application.SchedulerImpl$RestarterThread.run(SchedulerImpl.java:295)

so you can not start the docker instance again.

I'm closing this since there has been no update for a while. Please retry with the latest SQ version and create a new issue if needed, with more details and logs.

I got the same issue and resolved with the solution provided by @jeubank12 .. :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rschlick picture rschlick  Â·  10Comments

valeriimars picture valeriimars  Â·  8Comments

michal-duda-sonarsource picture michal-duda-sonarsource  Â·  6Comments

vishalsvayam picture vishalsvayam  Â·  6Comments

Juancarlosmartin10 picture Juancarlosmartin10  Â·  5Comments