2016-11-14 47 views
0

我想将SonarQube 5.3实例更新到5.6.3 LTS。要更新数据库模式,我浏览到“http://mysonarqube/setup”,但是当我点击“升级”按钮时,我刚刚重定向到“http://mysonarqube/maintanance”页面,根据服务器日志没有太多事情发生。 我预计会在浏览器中获得某种进度指示。SonarQube更新5.3到5.6.3不起作用

当我点击“升级”时,服务器上的日志(sonar.log)根本没有显示任何活动。所以我猜测它根本不会触发实际的模式迁移。

有没有人知道发生了什么事情,或者我如何进一步调试为什么没有发生?

更新2016-11-15: 以下是启动SonarQube服务器时的日志。当我点击设置页面上的“升级”,而不是一个单一的行被添加到该日志

 
--> Wrapper Started as Service 
Launching a JVM... 
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org 
    Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. 

2016.11.15 08:41:34 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\tools\sonarqube_playground\temp 
2016.11.15 08:41:35 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[es]: c:\tools\java\jdk1.8.0_66\jre\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\tools\sonarqube_playground\temp -javaagent:c:\tools\java\jdk1.8.0_66\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer C:\tools\sonarqube_playground\temp\sq-process934155640727080349properties 
2016.11.15 08:41:37 INFO es[o.s.p.ProcessEntryPoint] Starting es 
2016.11.15 08:41:37 INFO es[o.s.s.EsSettings] Elasticsearch listening on 127.0.0.1:9003 
2016.11.15 08:41:38 INFO es[o.elasticsearch.node] [sonar-1479195694200] version[1.7.5], pid[4920], build[00f95f4/2016-02-02T09:55:30Z] 
2016.11.15 08:41:38 INFO es[o.elasticsearch.node] [sonar-1479195694200] initializing ... 
2016.11.15 08:41:38 INFO es[o.e.plugins] [sonar-1479195694200] loaded [], sites [] 
2016.11.15 08:41:38 INFO es[o.elasticsearch.env] [sonar-1479195694200] using [1] data paths, mounts [[(C:)]], net usable_space [47.6gb], net total_space [69.4gb], types [NTFS] 
2016.11.15 08:41:42 WARN es[o.e.bootstrap] JNA not found. native methods will be disabled. 
2016.11.15 08:41:43 INFO es[o.elasticsearch.node] [sonar-1479195694200] initialized 
2016.11.15 08:41:43 INFO es[o.elasticsearch.node] [sonar-1479195694200] starting ... 
2016.11.15 08:41:43 INFO es[o.e.transport] [sonar-1479195694200] bound_address {inet[/127.0.0.1:9003]}, publish_address {inet[/127.0.0.1:9003]} 
2016.11.15 08:41:43 INFO es[o.e.discovery] [sonar-1479195694200] sonarqube/uESU6pKmQN2-u4e3ITgQRQ 
2016.11.15 08:41:46 INFO es[o.e.cluster.service] [sonar-1479195694200] new_master [sonar-1479195694200][uESU6pKmQN2-u4e3ITgQRQ][sonarqube][inet[/127.0.0.1:9003]]{rack_id=sonar-1479195694200}, reason: zen-disco-join (elected_as_master) 
2016.11.15 08:41:46 INFO es[o.elasticsearch.node] [sonar-1479195694200] started 
2016.11.15 08:41:47 INFO es[o.e.gateway] [sonar-1479195694200] recovered [0] indices into cluster_state 
2016.11.15 08:41:47 INFO app[o.s.p.m.Monitor] Process[es] is up 
2016.11.15 08:41:47 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[web]: c:\tools\java\jdk1.8.0_66\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx2G -Xms512m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -server -Djava.io.tmpdir=C:\tools\sonarqube_playground\temp -javaagent:c:\tools\java\jdk1.8.0_66\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;C:\tools\sonarqube_playground\extensions\jdbc-driver\oracle\ojdbc7.jar org.sonar.server.app.WebServer C:\tools\sonarqube_playground\temp\sq-process4855516278340356405properties 
2016.11.15 08:41:48 INFO web[o.s.p.ProcessEntryPoint] Starting web 
2016.11.15 08:41:49 INFO web[o.s.s.a.TomcatContexts] Webapp directory: C:\tools\sonarqube_playground\web 
2016.11.15 08:41:50 INFO web[o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9001"] 
2016.11.15 08:41:50 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read 
2016.11.15 08:41:55 INFO web[o.s.s.p.ServerImpl] SonarQube Server/5.6.3/3fcc98a73d6afb99388e39f46272909a6d6600b2 
2016.11.15 08:41:55 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:oracle:thin:[dbconnectionargumentsommittedforsecurity] 
2016.11.15 08:41:59 WARN web[o.s.s.p.DatabaseServerCompatibility] Database must be upgraded. Please backup database and browse /setup 
2016.11.15 08:41:59 INFO web[o.s.s.p.DefaultServerFileSystem] SonarQube home: C:\tools\sonarqube_playground 
2016.11.15 08:42:00 INFO web[o.e.plugins] [sonar-1479195694200] loaded [], sites [] 
2016.11.15 08:42:01 INFO web[o.s.s.p.RailsAppsDeployer] Deploying Ruby on Rails applications 
2016.11.15 08:42:02 INFO web[o.s.s.p.Platform] DB needs migration, entering safe mode 
2016.11.15 08:42:02 INFO web[jruby.rack] jruby 1.7.9 (ruby-1.8.7p370) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_66-b17 [Windows Server 2012 R2-amd64] 
2016.11.15 08:42:02 INFO web[jruby.rack] using a shared (threadsafe!) runtime 
2016.11.15 08:42:25 INFO web[jruby.rack] keeping custom (config.logger) Rails logger instance 
2016.11.15 08:42:25 INFO web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9001"] 
2016.11.15 08:42:25 INFO web[o.s.s.a.TomcatAccessLog] Web server is started 
2016.11.15 08:42:25 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9001 
2016.11.15 08:42:25 INFO app[o.s.p.m.Monitor] Process[web] is up 
2016.11.15 08:42:25 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[ce]: c:\tools\java\jdk1.8.0_66\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx2G -Xms512m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -server -Djava.io.tmpdir=C:\tools\sonarqube_playground\temp -javaagent:c:\tools\java\jdk1.8.0_66\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;./lib/ce/*;C:\tools\sonarqube_playground\extensions\jdbc-driver\oracle\ojdbc7.jar org.sonar.ce.app.CeServer C:\tools\sonarqube_playground\temp\sq-process8088446918777658625properties 
2016.11.15 08:42:27 INFO ce[o.s.p.ProcessEntryPoint] Starting ce 
2016.11.15 08:42:27 INFO ce[o.s.c.a.WebServerWatcherImpl] Waiting for Web Server to be operational... 
2016.11.15 08:42:28 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer... 
2016.11.15 08:42:30 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer... 
2016.11.15 08:42:35 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer... 
2016.11.15 08:42:48 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer... 
2016.11.15 08:43:23 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer... 
2016.11.15 08:44:58 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer... 
2016.11.15 08:49:17 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer... 
2016.11.15 09:01:01 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer... 
2016.11.15 09:32:55 INFO ce[o.s.c.a.WebServerWatcherImpl] Still waiting for WebServer... 
+0

你能发送完整的日志/ sonar.lo gs好吗? –

+0

根据请求在我的描述中添加了日志 –

+0

一种选择是数据库连接可以访问SonarQube的多个Oracle模式。您应该限制用户的权限仅限一个模式。 –

回答

0

我检查了设置页面的HTML,提取该按钮将调用的URL,并试图手动使用。我收到了“未经授权”的回复。这让我想到授权。

长话短说:我sonar.properties文件的选项sonar.forceAuthentication”被设置为‘真’,因为我不希望匿名访问做每个人都应该使用Sonarqube时登录但安装。页面没有任何“登录”选项,因此很明显,开始我需要登录后的架构更新,但网页不支持登录。

设置sonar.forceAuthentication后“假“sonar.properties文件并重新启动服务我终于能够开始架构更新。

+0

不能在sonar.properties中设置属性sonar.forceAuthentication。该文件应该只包含注释掉的属性,否则可能会引发失败。 –