Sonarqubedocker版本更新

我正在尝试更新在Docker堆栈中运行的Sonarqube实例。 在我sonarqube.ymldocker文件我onlu改变了我想要使用的docker图像的版本从6.4到6.7(它发生在中间所有其他版本,6.5和6.6)。

当我部署新的堆栈时,一切正常,似乎Sonarqube开始运行,但它不。 docker logs命令显示了这一点:

08:06:58.145 [main] WARN org.sonar.application.config.JdbcSettings - JDBC URL is recommended to have the property 'useConfigs=maxPerformance' 2017.11.28 08:06:58 INFO app[][osaAppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp 2017.11.28 08:06:58 INFO app[][osaes.EsSettings] Elasticsearch listening on /127.0.0.1:9001 2017.11.28 08:06:58 INFO app[][osapProcessLauncherImpl] 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.11.28 08:06:58 INFO app[][osaSchedulerImpl] Waiting for Elasticsearch to be up and running 2017.11.28 08:06:58 INFO app[][oepPluginsService] no modules loaded 2017.11.28 08:06:58 INFO app[][oepPluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 2017.11.28 08:07:05 INFO app[][osaSchedulerImpl] Process[es] is up 2017.11.28 08:07:05 INFO app[][osapProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/lib/jvm/java-8-openjdk-amd64/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/mysql/mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process649036789962348778properties 2017.11.28 08:07:05 INFO web[][ospProcessEntryPoint] Starting web 2017.11.28 08:07:05 INFO web[][oatunNioSelectorPool] Using a shared selector for servlet write/read 2017.11.28 08:07:06 INFO web[][oepPluginsService] no modules loaded 2017.11.28 08:07:06 INFO web[][oepPluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin] 2017.11.28 08:07:06 INFO web[][oepPluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin] 2017.11.28 08:07:06 INFO web[][oepPluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin] 2017.11.28 08:07:06 INFO web[][oepPluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 2017.11.28 08:07:07 INFO web[][osseEsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001] 2017.11.28 08:07:07 INFO web[][osspLogServerVersion] SonarQube Server / 6.7.0.33306 / 5d031d9d2ac3f69b4b9bc600d50563b1886c7d8b 2017.11.28 08:07:07 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:mysql://sonar_mysql:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useSSL=false 2017.11.28 08:07:08 INFO web[][osspServerFileSystemImpl] SonarQube home: /opt/sonarqube 2017.11.28 08:07:08 INFO web[][ossuSystemPasscodeImpl] System authentication by passcode is disabled 2017.11.28 08:07:08 WARN web[][osspDatabaseServerCompatibility] Database must be upgraded. Please backup database and browse /setup 2017.11.28 08:07:08 WARN app[][startup] 

################################################## ##############################数据库必须升级。 请备份数据库并浏览/设置

################################################## ##############################

 2017.11.28 08:07:08 INFO web[][osspServerPluginRepository] Deploy plugin GitHub / 1.4.1.822 / ddb7ba908c1203b1f0ebc0c29d9badc725bfb3ba 2017.11.28 08:07:08 INFO web[][osspServerPluginRepository] Deploy plugin GitHub Authentication for SonarQube / 1.3 / a9c1cc29a9af9ca89aed1d266e793ea1ab41bc33 2017.11.28 08:07:08 INFO web[][osspServerPluginRepository] Deploy plugin SonarPHP / 2.10.0.2087 / b24a8fcb16d37cae2f8c6741141f4136c444851f 2017.11.28 08:07:08 INFO web[][osspPlatform] Database needs migration 2017.11.28 08:07:08 INFO web[][osspwMasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@c0579c2 [pattern=UrlPattern{inclusions=[/api/system/migrate_db/*, ...], exclusions=[/api/properties*, ...]}] 2017.11.28 08:07:08 INFO web[][ossaEmbeddedTomcat] HTTP connector enabled on port 9000 

最后它卡在这里,而无需启动Web服务器。 我的Sonarqube数据库大小是673M。 这是一个Mysql。 消息“数据库必须升级,请备份数据库和浏览/设置”是可疑的,但我已经做了备份,我不知道如何继续,因为没有任何错误信息。 你可以帮我吗? 谢谢。

如日志消息所示,您需要转到<host>:<port>/setup并完成所需的数据库升级。

一旦你这样做,并升级数据库,去http://host:port/setup将显示数据库是最新的