2016-05-20 7 views
7

Ich installiere SN5.5 mit PostgreSQL9.5 unter Windows. Leider treffe ich Fehler "Webapp nicht gestartet".Sonarqube Webapp nicht gestartet

Unten ist die vollständige Stapelspur. Ich denke, dass ich den Fehler bekam zuerst in Zeile „Exception Kontext initialisiert Ereignis Senden Instanz der Klasse org.sonar.server.platform.PlatformServletContextListener zum Hörer“

2016.05.19 18:10:59 INFO web[o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9000"] 
2016.05.19 18:10:59 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read 
2016.05.19 18:11:00 INFO web[o.s.s.p.ServerImpl] SonarQube Server/5.5/5773a4aab0ef6c0de79d3038e82f8a051049d6d0 
2016.05.19 18:11:00 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://localhost/sonar 
2016.05.19 18:11:01 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener 
org.sonar.api.utils.MessageException: Current version is too old. Please upgrade to Long Term Support version firstly. 
2016.05.19 18:11:01 ERROR web[o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file 
2016.05.19 18:11:01 ERROR web[o.a.c.c.StandardContext] Context [] startup failed due to previous errors 
2016.05.19 18:11:01 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: 
java.lang.Object.wait(Native Method) 
java.util.TimerThread.mainLoop(Timer.java:552) 
java.util.TimerThread.run(Timer.java:505) 
2016.05.19 18:11:01 INFO web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9000"] 
2016.05.19 18:11:01 INFO web[o.s.s.a.TomcatAccessLog] Web server is started 
2016.05.19 18:11:01 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000 
2016.05.19 18:11:01 WARN web[o.s.p.ProcessEntryPoint] Fail to start web 
java.lang.IllegalStateException: Webapp did not start 
    at org.sonar.server.app.EmbeddedTomcat.isUp(EmbeddedTomcat.java:84) ~[sonar-server-5.5.jar:na] 
    at org.sonar.server.app.WebServer.isUp(WebServer.java:48) [sonar-server-5.5.jar:na] 
    at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:105) ~[sonar-process-5.5.jar:na] 
    at org.sonar.server.app.WebServer.main(WebServer.java:69) [sonar-server-5.5.jar:na] 
2016.05.19 18:11:01 INFO web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9000"] 
2016.05.19 18:11:02 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9000"] 
2016.05.19 18:11:02 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9000"] 
2016.05.19 18:11:02 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped 
2016.05.19 18:11:03 INFO app[o.s.p.m.Monitor] Process[es] is stopping 
2016.05.19 18:11:03 INFO es[o.s.p.StopWatcher] Stopping process 
2016.05.19 18:11:03 INFO es[o.elasticsearch.node] [sonar-1463652653150] stopping ... 
2016.05.19 18:11:03 INFO es[o.elasticsearch.node] [sonar-1463652653150] stopped 
2016.05.19 18:11:03 INFO es[o.elasticsearch.node] [sonar-1463652653150] closing ... 
2016.05.19 18:11:03 INFO es[o.elasticsearch.node] [sonar-1463652653150] closed 
2016.05.19 18:11:04 INFO app[o.s.p.m.Monitor] Process[es] is stopped 
<-- Wrapper Stopped 
+1

'org.sonar.api.utils.MessageException: Aktuelle Version ist zu alt. Bitte aktualisieren Sie zuerst die Long Term Support-Version. " –

+0

Welche SonarQube-Version haben Sie zuvor mit dieser Datenbank verwendet? –

Antwort

4
org.sonar.api.utils.MessageException: Current version is too old. Please upgrade to Long Term Support version firstly. 

Dieses Protokoll bedeutet, als Sie versuchen, zu aktualisieren zu einer zu neuen Version. Sie sollten zuerst auf die nächste LTS-Version (wahrscheinlich 4.5.X) upgraden, dann können Sie auf 5.5 upgraden.

Weitere Informationen zur Upgrade-Strategie finden Sie unter http://docs.sonarqube.org/display/SONAR/Upgrading.

0

Sie können versuchen, unten in der wrapper.conf-Datei Eigenschaften hinzuzufügen. Es hat den Trick für mich getan.

# Java Additional Parameter 
wrapper.java.additional.1=-Djava.awt.headless=true 
wrapper.java.additional.2=-XX:MaxPermSize=160m 
wrapper.java.additional.3=-XX:+HeapDumpOnOutOfMemoryError 
wrapper.java.additional.4=-Dfile.encoding=UTF-8 
wrapper.java.additional.5=-Djruby.management.enabled=false 
# Maximum amount of memory of Java VM 
wrapper.java.additional.6=-Xmx2048M