Sonarqube Webapp did not start - sonarqube

I am installing SN5.5 using PostgreSQL9.5 under Windows. Unfortunately, I am hitting error "Webapp did not start".
Below is the full stack trace. I think I got the error first at line "Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener"
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

org.sonar.api.utils.MessageException: Current version is too old. Please upgrade to Long Term Support version firstly.
This log means than you're trying to upgrade to a too recent version. You should first upgrade to the nearest LTS version (probably 4.5.X), then you'll be able to upgrade to 5.5.
See http://docs.sonarqube.org/display/SONAR/Upgrading for more information about the upgrade strategy.

You can try adding below properties in wrapper.conf file. It did the trick for me.
# 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

Related

Sonar server is not coming up

I have installed Sonar on a windows machine and when I am trying to run it am getting the below error and the sonar is not coming up.
Could someone help on this.
Sonar start up log (below) -
*Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
D:\Agile\NewSonarQube\sonarqube-5.6.6\bin\windows-x86-64>StartSonar.bat
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2019.06.24 16:30:05 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory D:\Agile\NewSonarQube\sonarqube-5.6.6\temp
jvm 1 | 2019.06.24 16:30:26 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[es]: D:\Agile\Java\jdk1.8.0_65\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=D:\Agile\NewSonarQube\sonarqube-5.6.6\temp -javaagent:D:\Agile\Java\jdk1.8.0_65\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer D:\Agile\NewSonarQube\sonarqube-5.6.6\temp\
sq-process5784289335367032457properties
jvm 1 | 2019.06.24 16:32:29 INFO app[o.s.p.m.Monitor] Process[es] is up
jvm 1 | 2019.06.24 16:32:29 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[web]: D:\Agile\Java\jdk1.8.0_65\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError
-Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=D:\Agile\NewSonarQube\sonarqube-5.6.6\temp -javaagent:D:\Agile\Java\jdk1.8.0_65\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;D:\Agile\NewSonarQube\sonarqube-5.6.6\lib\jdbc\postgresql\postgresql-9.3-1102-jdbc41.jar org.sonar.ser
ver.app.WebServer D:\Agile\NewSonarQube\sonarqube-5.6.6\temp\sq-process7712868170609596655properties
jvm 1 | 2019.06.24 16:34:52 INFO app[o.s.p.m.Monitor] Process[web] is up
jvm 1 | 2019.06.24 16:34:52 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[ce]: D:\Agile\Java\jdk1.8.0_65\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=D:\Agile\NewSonarQub
e\sonarqube-5.6.6\temp -javaagent:D:\Agile\Java\jdk1.8.0_65\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;./lib/ce/*;D:\Agile\NewSonarQube\sonarqube-5.6.6\lib\jdbc\postgresql\postgresql-9.3-1102-jdbc41.jar org.sonar.ce.app.CeServer D:\Agile\NewSonarQube\sonarqube-5.6.6\temp\sq-
process6453747015728432890properties
jvm 1 | 2019.06.24 16:35:21 INFO app[o.s.p.m.Monitor] Process[ce] is up
jvm 1 | 2019.06.24 16:35:21 INFO app[o.s.p.m.Monitor] Process[web] is stopping
jvm 1 | 2019.06.24 16:35:30 INFO app[o.s.p.m.Monitor] Process[web] is stopped
jvm 1 | 2019.06.24 16:35:30 INFO app[o.s.p.m.Monitor] Process[es] is stopping
jvm 1 | 2019.06.24 16:35:33 INFO app[o.s.p.m.Monitor] Process[es] is stopped
wrapper | <-- Wrapper Stopped*
Also attaching the 'sonar.log' here below -
--> Wrapper Started as Console
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2019.07.03 11:24:28 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory D:\Agile\NewSonarQube\sonarqube-5.6.6\temp
2019.07.03 11:24:30 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[es]: D:\Agile\Java\jdk1.8.0_65\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=D:\Agile\NewSonarQube\sonarqube-5.6.6\temp -javaagent:D:\Agile\Java\jdk1.8.0_65\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer D:\Agile\NewSonarQube\sonarqube-5.6.6\temp\sq-process7809422627146396746properties
2019.07.03 11:24:30 INFO es[o.s.p.ProcessEntryPoint] Starting es
2019.07.03 11:24:30 INFO es[o.s.s.EsSettings] Elasticsearch listening on 127.0.0.1:9001
2019.07.03 11:24:31 INFO es[o.elasticsearch.node] [sonar-1562133268619] version[1.7.5], pid[8484], build[00f95f4/2016-02-02T09:55:30Z]
2019.07.03 11:24:31 INFO es[o.elasticsearch.node] [sonar-1562133268619] initializing ...
2019.07.03 11:24:31 INFO es[o.e.plugins] [sonar-1562133268619] loaded [], sites []
2019.07.03 11:24:31 INFO es[o.elasticsearch.env] [sonar-1562133268619] using [1] data paths, mounts [[(D:)]], net usable_space [79.6gb], net total_space [131.9gb], types [NTFS]
2019.07.03 11:24:32 WARN es[o.e.bootstrap] JNA not found. native methods will be disabled.
2019.07.03 11:24:33 INFO es[o.elasticsearch.node] [sonar-1562133268619] initialized
2019.07.03 11:24:33 INFO es[o.elasticsearch.node] [sonar-1562133268619] starting ...
2019.07.03 11:24:33 INFO es[o.e.transport] [sonar-1562133268619] bound_address {inet[/127.0.0.1:9001]}, publish_address {inet[/127.0.0.1:9001]}
2019.07.03 11:24:33 INFO es[o.e.discovery] [sonar-1562133268619] sonarqube/XGZJsELLSXuNlBZ4G449tw
2019.07.03 11:24:36 INFO es[o.e.cluster.service] [sonar-1562133268619] new_master [sonar-1562133268619][XGZJsELLSXuNlBZ4G449tw][CLBBLR-5070][inet[/127.0.0.1:9001]]{rack_id=sonar-1562133268619}, reason: zen-disco-join (elected_as_master)
2019.07.03 11:24:36 INFO es[o.elasticsearch.node] [sonar-1562133268619] started
2019.07.03 11:24:36 INFO es[o.e.gateway] [sonar-1562133268619] recovered [6] indices into cluster_state
2019.07.03 11:24:39 INFO app[o.s.p.m.Monitor] Process[es] is up
2019.07.03 11:24:39 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[web]: D:\Agile\Java\jdk1.8.0_65\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=D:\Agile\NewSonarQube\sonarqube-5.6.6\temp -javaagent:D:\Agile\Java\jdk1.8.0_65\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;D:\Agile\NewSonarQube\sonarqube-5.6.6\lib\jdbc\postgresql\postgresql-9.3-1102-jdbc41.jar org.sonar.server.app.WebServer D:\Agile\NewSonarQube\sonarqube-5.6.6\temp\sq-process6230173931576405711properties
2019.07.03 11:24:40 INFO web[o.s.p.ProcessEntryPoint] Starting web
2019.07.03 11:24:41 INFO web[o.s.s.a.TomcatContexts] Webapp directory: D:\Agile\NewSonarQube\sonarqube-5.6.6\web
2019.07.03 11:24:41 INFO web[o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9000"]
2019.07.03 11:24:41 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2019.07.03 11:24:42 INFO web[o.s.s.p.ServerImpl] SonarQube Server / 5.6.6 / e8e13145497bb920921ae4fe11b09f0903f1d298
2019.07.03 11:24:42 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://localhost/sonar
2019.07.03 11:24:43 INFO web[o.s.s.p.DefaultServerFileSystem] SonarQube home: D:\Agile\NewSonarQube\sonarqube-5.6.6
2019.07.03 11:24:43 INFO web[o.e.plugins] [sonar-1562133268619] loaded [], sites []
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Android / 1.1 / 9ab2bbcc83177e67c74d365f009bfe05bf38c7e3
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin C# / 6.3.0.2862 / 1600df4ea68defd03b270da8e2935cfbf342cd8e
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin CSS / SCSS / Less / 3.1 / 58a0a86a53f82a8486a5ee93681257e1ae0a10c8
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Checkstyle / 3.7 /
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Cobertura / 1.7 / d14b7978322d19a2795286ebfed225a57b13c3af
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin CodeCracker for C# / 1.0.1
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin ESLint / 0.1.1
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.2 / a713dd64daf8719ba4e7f551f9a1966c62690c17
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin PL/SQL (Community) / 2.0.0-SNAPSHOT /
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin PMD / 2.6 / f419f834b4bea51f9b6da33517b7f6186db5c066
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SVN / 1.3 / aff503d48bc77b07c2b62abf93249d0a20bd355c
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 3.1.1.5128 / 564d130c281685fde03e85964417158e32a17b2b
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 4.12.0.11033 / fa9fe66b0cb1b6ab8d7f341cc1f7908897a9cf33
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.11.0.2485 / 741861a29e5f9a26c6c99c06268facb6c4f4a882
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.4.3.1027 / 39588245cecf538bb27be4e496ff303b0143d20b
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Sonargraph / 3.5
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Timeline / 1.5 / a9cae1328fd455a128b5d7d603381f47398c6e2a
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin TypeScript / 1.2.0-rc1
2019.07.03 11:24:44 INFO web[o.s.s.p.ServerPluginRepository] Deploy plugin Web / 2.5.0.476 / 636872f5d37fa7a440fe07d08d504e1a881225e5
2019.07.03 11:24:47 INFO web[o.s.s.p.RailsAppsDeployer] Deploying Ruby on Rails applications
2019.07.03 11:24:49 INFO web[o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
2019.07.03 11:24:49 INFO web[o.s.s.n.NotificationService] Notification service started (delay 60 sec.)
2019.07.03 11:24:49 INFO web[o.s.s.s.RegisterMetrics] Register metrics
2019.07.03 11:24:50 INFO web[o.s.s.r.RegisterRules] Register rules
2019.07.03 11:24:53 INFO web[o.s.s.q.RegisterQualityProfiles] Register quality profiles
2019.07.03 11:24:56 INFO web[o.s.s.s.RegisterNewMeasureFilters] Register measure filters
2019.07.03 11:24:56 INFO web[o.s.s.s.RegisterDashboards] Register dashboards
2019.07.03 11:24:56 INFO web[o.s.s.s.RegisterPermissionTemplates] Register permission templates
2019.07.03 11:24:56 INFO web[o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys
2019.07.03 11:24:56 INFO web[o.s.s.e.IndexerStartupTask] Index activities
2019.07.03 11:24:56 INFO web[o.s.s.e.IndexerStartupTask] Index issues
2019.07.03 11:24:57 INFO web[o.s.s.e.IndexerStartupTask] Index tests
2019.07.03 11:24:57 INFO web[o.s.s.e.IndexerStartupTask] Index users
2019.07.03 11:24:57 INFO web[o.s.s.e.IndexerStartupTask] Index views
2019.07.03 11:24:57 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_65-b17 [Windows 7-amd64]
2019.07.03 11:24:57 INFO web[jruby.rack] using a shared (threadsafe!) runtime
2019.07.03 11:25:09 INFO web[jruby.rack] keeping custom (config.logger) Rails logger instance
2019.07.03 11:25:09 INFO web[o.s.s.p.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter#649f4774 [pattern=/sessions/init/*]
2019.07.03 11:25:09 INFO web[o.s.s.p.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter#18a75007 [pattern=/oauth2/callback/*]
2019.07.03 11:25:09 INFO web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9000"]
2019.07.03 11:25:09 INFO web[o.s.s.a.TomcatAccessLog] Web server is started
2019.07.03 11:25:09 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2019.07.03 11:25:09 INFO app[o.s.p.m.Monitor] Process[web] is up
2019.07.03 11:25:09 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[ce]: D:\Agile\Java\jdk1.8.0_65\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=D:\Agile\NewSonarQube\sonarqube-5.6.6\temp -javaagent:D:\Agile\Java\jdk1.8.0_65\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;./lib/ce/*;D:\Agile\NewSonarQube\sonarqube-5.6.6\lib\jdbc\postgresql\postgresql-9.3-1102-jdbc41.jar org.sonar.ce.app.CeServer D:\Agile\NewSonarQube\sonarqube-5.6.6\temp\sq-process9172021716354276652properties
2019.07.03 11:25:10 INFO ce[o.s.p.ProcessEntryPoint] Starting ce
2019.07.03 11:25:10 INFO ce[o.s.ce.app.CeServer] Compute Engine starting up...
2019.07.03 11:25:10 INFO ce[o.s.s.p.ServerImpl] SonarQube Server / 5.6.6 / e8e13145497bb920921ae4fe11b09f0903f1d298
2019.07.03 11:25:10 INFO ce[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://localhost/sonar
2019.07.03 11:25:11 INFO ce[o.s.s.p.DefaultServerFileSystem] SonarQube home: D:\Agile\NewSonarQube\sonarqube-5.6.6
2019.07.03 11:25:11 INFO ce[o.e.plugins] [sonar-1562133268619] loaded [], sites []
2019.07.03 11:25:12 INFO ce[o.s.c.c.CePluginRepository] Load plugins
2019.07.03 11:25:17 ERROR ce[o.s.ce.app.CeServer] Compute Engine startup failed
org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "ce_activity_uuid"
Detail: Key (uuid)=(AWpKhMdKhBAmaVnZ4vza) already exists.
### The error may involve org.sonar.db.ce.CeActivityMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into ce_activity (uuid, component_uuid, snapshot_id, status, task_type, is_last, is_last_key, submitter_login, submitted_at, started_at, executed_at, created_at, updated_at, execution_time_ms) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
### Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "ce_activity_uuid"
Detail: Key (uuid)=(AWpKhMdKhBAmaVnZ4vza) already exists.
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:154) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:141) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:51) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52) ~[mybatis-3.2.7.jar:3.2.7]
at com.sun.proxy.$Proxy39.insert(Unknown Source) ~[na:na]
at org.sonar.db.ce.CeActivityDao.insert(CeActivityDao.java:51) ~[sonar-db-5.6.6.jar:na]
at org.sonar.ce.queue.CeQueueImpl.remove(CeQueueImpl.java:181) ~[sonar-server-5.6.6.jar:na]
at org.sonar.ce.queue.CeQueueImpl.cancelImpl(CeQueueImpl.java:156) ~[sonar-server-5.6.6.jar:na]
at org.sonar.server.computation.queue.InternalCeQueueImpl.cancel(InternalCeQueueImpl.java:128) ~[sonar-server-5.6.6.jar:na]
at org.sonar.server.computation.queue.CeQueueCleaner.verifyConsistency(CeQueueCleaner.java:81) ~[sonar-server-5.6.6.jar:na]
at org.sonar.server.computation.queue.CeQueueCleaner.clean(CeQueueCleaner.java:59) ~[sonar-server-5.6.6.jar:na]
at org.sonar.server.computation.queue.CeQueueInitializer.initCe(CeQueueInitializer.java:59) ~[sonar-server-5.6.6.jar:na]
at org.sonar.server.computation.queue.CeQueueInitializer.onServerStart(CeQueueInitializer.java:51) ~[sonar-server-5.6.6.jar:na]
at org.sonar.server.platform.ServerLifecycleNotifier.notifyStart(ServerLifecycleNotifier.java:67) ~[sonar-server-5.6.6.jar:na]
at org.sonar.ce.container.ComputeEngineContainerImpl.startupTasks(ComputeEngineContainerImpl.java:631) ~[sonar-ce-5.6.6.jar:na]
at org.sonar.ce.container.ComputeEngineContainerImpl.start(ComputeEngineContainerImpl.java:619) ~[sonar-ce-5.6.6.jar:na]
at org.sonar.ce.ComputeEngineImpl.startup(ComputeEngineImpl.java:43) ~[sonar-ce-5.6.6.jar:na]
at org.sonar.ce.app.CeServer$CeMainThread.startup(CeServer.java:175) [sonar-ce-5.6.6.jar:na]
at org.sonar.ce.app.CeServer$CeMainThread.attemptStartup(CeServer.java:165) [sonar-ce-5.6.6.jar:na]
at org.sonar.ce.app.CeServer$CeMainThread.run(CeServer.java:153) [sonar-ce-5.6.6.jar:na]
Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "ce_activity_uuid"
Detail: Key (uuid)=(AWpKhMdKhBAmaVnZ4vza) already exists.
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2198) ~[postgresql-9.3-1102-jdbc41.jar:na]
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1927) ~[postgresql-9.3-1102-jdbc41.jar:na]
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255) ~[postgresql-9.3-1102-jdbc41.jar:na]
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:561) ~[postgresql-9.3-1102-jdbc41.jar:na]
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:419) ~[postgresql-9.3-1102-jdbc41.jar:na]
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:412) ~[postgresql-9.3-1102-jdbc41.jar:na]
at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) ~[commons-dbcp-1.4.jar:1.4]
at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) ~[commons-dbcp-1.4.jar:1.4]
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:44) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:69) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.ReuseExecutor.doUpdate(ReuseExecutor.java:50) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:105) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:71) ~[mybatis-3.2.7.jar:3.2.7]
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:152) ~[mybatis-3.2.7.jar:3.2.7]
... 19 common frames omitted
2019.07.03 11:25:17 INFO app[o.s.p.m.Monitor] Process[ce] is up
2019.07.03 11:25:17 INFO app[o.s.p.m.Monitor] Process[web] is stopping
2019.07.03 11:25:17 INFO web[o.s.p.StopWatcher] Stopping process
2019.07.03 11:25:17 INFO web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9000"]
2019.07.03 11:25:18 INFO web[o.s.s.n.NotificationService] Notification service stopped
2019.07.03 11:25:18 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9000"]
2019.07.03 11:25:19 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9000"]
2019.07.03 11:25:19 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped
2019.07.03 11:25:20 INFO app[o.s.p.m.Monitor] Process[web] is stopped
2019.07.03 11:25:20 INFO app[o.s.p.m.Monitor] Process[es] is stopping
2019.07.03 11:25:20 INFO es[o.s.p.StopWatcher] Stopping process
2019.07.03 11:25:20 INFO es[o.elasticsearch.node] [sonar-1562133268619] stopping ...
2019.07.03 11:25:20 INFO es[o.elasticsearch.node] [sonar-1562133268619] stopped
2019.07.03 11:25:20 INFO es[o.elasticsearch.node] [sonar-1562133268619] closing ...
2019.07.03 11:25:20 INFO es[o.elasticsearch.node] [sonar-1562133268619] closed
2019.07.03 11:25:21 INFO app[o.s.p.m.Monitor] Process[es] is stopped
<-- Wrapper Stopped
From the above log ERROR is
ERROR: duplicate key value violates unique constraint "ce_activity_uuid".
Any leads for the error..??

Failing to deploy war file to tomcat server from manager portal

I am trying to deploy my .war file to tomcat server using the manager/html portal. However, when hitting the deploy button, the upload won't start and an error page comes in at the browser window. I am in need of clarification about what is actually creating the issue.
I tried changing the port address manually, and tried out with multiple .war files. The problem still persists.
17-Feb-2019 17:18:59.396 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
17-Feb-2019 17:18:59.396 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
17-Feb-2019 17:18:59.396 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
17-Feb-2019 17:18:59.426 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
17-Feb-2019 17:18:59.426 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
17-Feb-2019 17:18:59.426 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
17-Feb-2019 17:18:59.427 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
I am getting the above server trace when the upload fails. Any help will be much appreciated.

SonarQube not starting on Ubuntu 16.04

I have followed these steps http://www.voyalab.com/2016/10/06/install-sonarqube-ubuntu/and install sonarqube on ubuntu 16.04
But i am not able to start it on my machine.
log file :-
2017.02.15 07:33:40 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
2017.02.15 07:33:40 ERROR web[o.a.c.c.StandardContext] Context [/sonar] startup failed due to previous errors
2017.02.15 07:33:40 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ sonar] 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)
2017.02.15 07:33:40 INFO web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-127.0.0.1-6000"]
2017.02.15 07:33:40 INFO web[o.s.s.a.TomcatAccessLog] Web server is started
2017.02.15 07:33:40 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 6000
2017.02.15 07:33:40 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- 6.0.jar:na]
at org.sonar.server.app.WebServer.isUp(WebServer.java:47) [sonar-server-6.0.jar:na]
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:105) ~[sonar-process- 6.0.jar:na]
at org.sonar.server.app.WebServer.main(WebServer.java:68) [sonar-server-6.0.jar:na]
2017.02.15 07:33:40 INFO web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-127.0.0.1-6000"]
2017.02.15 07:33:41 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-127.0.0.1-6000"]
2017.02.15 07:33:42 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-127.0.0.1-6000"]
2017.02.15 07:33:42 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped
2017.02.15 07:33:42 INFO app[o.s.p.m.Monitor] Process[es] is stopping
2017.02.15 07:33:42 INFO es[o.s.p.StopWatcher] Stopping process
2017.02.15 07:33:42 INFO es[o.elasticsearch.node] [sonar-1487124198721] stopping ...
2017.02.15 07:33:42 INFO es[o.elasticsearch.node] [sonar-1487124198721] stopped
2017.02.15 07:33:42 INFO es[o.elasticsearch.node] [sonar-1487124198721] closing ...
2017.02.15 07:33:42 INFO es[o.elasticsearch.node] [sonar-1487124198721] closed
2017.02.15 07:33:43 INFO app[o.s.p.m.Monitor] Process[es] is stopped
<-- Wrapper Stopped
I guess this is our main problem :-
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused (Connection refused). Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:191) ~[sqljdbc42.jar:na]
at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:242) ~[sqljdbc42.jar:na]
at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2280) ~[sqljdbc42.jar:na]
at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:493) ~[sqljdbc42.jar:na]
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1387) ~[sqljdbc42.jar:na]
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1068) ~[sqljdbc42.jar:na]
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:904) ~[sqljdbc42.jar:na]
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:451) ~[sqljdbc42.jar:na]
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1014) ~[sqljdbc42.jar:na]
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38) ~[commons-dbcp-1.4.jar:1.4]
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582) ~[commons-dbcp-1.4.jar:1.4]
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556) ~[commons-dbcp-1.4.jar:1.4]
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545) ~[commons-dbcp-1.4.jar:1.4]
... 35 common frames omitted
Logs are reporting :
Connection refused (Connection refused). Verify the connection
properties. Make sure that an instance of SQL Server is running on the
host and accepting TCP/IP connections at the port. Make sure that TCP
connections to the port are not blocked by a firewall.
Please verify your database configuration

SonarQube update 5.3 to 5.6.3 not working

I'm trying to update a SonarQube 5.3 instance to 5.6.3 LTS. To update the database schema I browse to "http://mysonarqube/setup", but when I click on the "Upgrade" button I get just redirected to the "http://mysonarqube/maintanance" page and according to the server log not much is happening.
I would have expected to get some sort of progress indication in the browser.
When I click "Upgrade" the log on the server (sonar.log) doesn't show any activity at all. So I'm guessing it simply doesn't trigger the actual schema migration.
Has anyone an idea what's going on or how I can further debug why nothing is happening?
Update 2016-11-15:
Here's the log when starting the SonarQube server. When I click on "Upgrade" on the setup page, not one single line is added to this log
--> 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...
I inspected the HTML of the setup page, extracted the URL the button would call and tried to use it manually. I got a "Not authorized" response. This got me thinking about authorization.
Long story short: in my sonar.properties file the option sonar.forceAuthentication" was set to "true" because I don't want anonymous access. Everybody should be logged-in when using Sonarqube. But the setup page doesn't have any "login" option. So apparently to start the schema update I needed to be logged-in, but the page did not support to log-in.
After setting sonar.forceAuthentication to "false" in the sonar.properties file and restarting the service I was finally able to start the schema update.

Exception sending context in Sonarqube

my sonar log says
-> Wrapper Started as Console
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2016.05.24 16:32:58 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory D:\sonarqube-5.5\temp
2016.05.24 16:32:58 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[es]: C:\Program Files\Java\jdk8\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=D:\sonarqube-5.5\temp -javaagent:C:\Program Files\Java\jdk8\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer C:\Users\ic071101\AppData\Local\Temp\sq-process1086195450403413700properties
2016.05.24 16:32:59 INFO es[o.s.p.ProcessEntryPoint] Starting es
2016.05.24 16:32:59 INFO es[o.s.s.EsSettings] Elasticsearch listening on 127.0.0.1:9001
2016.05.24 16:32:59 INFO es[o.elasticsearch.node] [sonar-1464087778712] version[1.7.5], pid[6628], build[00f95f4/2016-02-02T09:55:30Z]
2016.05.24 16:32:59 INFO es[o.elasticsearch.node] [sonar-1464087778712] initializing ...
2016.05.24 16:32:59 INFO es[o.e.plugins] [sonar-1464087778712] loaded [], sites []
2016.05.24 16:32:59 INFO es[o.elasticsearch.env] [sonar-1464087778712] using [1] data paths, mounts [[New Volume (D:)]], net usable_space [127.5gb], net total_space [132.3gb], types [NTFS]
2016.05.24 16:33:00 WARN es[o.e.bootstrap] JNA not found. native methods will be disabled.
2016.05.24 16:33:01 INFO es[o.elasticsearch.node] [sonar-1464087778712] initialized
2016.05.24 16:33:01 INFO es[o.elasticsearch.node] [sonar-1464087778712] starting ...
2016.05.24 16:33:01 INFO es[o.e.transport] [sonar-1464087778712] bound_address {inet[/127.0.0.1:9001]}, publish_address {inet[/127.0.0.1:9001]}
2016.05.24 16:33:01 INFO es[o.e.discovery] [sonar-1464087778712] sonarqube/WZbgeizBRSO_7pWIRoDmyg
2016.05.24 16:33:04 INFO es[o.e.cluster.service] [sonar-1464087778712] new_master [sonar-1464087778712][WZbgeizBRSO_7pWIRoDmyg][AAEINBR139986L][inet[/127.0.0.1:9001]]{rack_id=sonar-1464087778712}, reason: zen-disco-join (elected_as_master)
2016.05.24 16:33:04 INFO es[o.elasticsearch.node] [sonar-1464087778712] started
2016.05.24 16:33:04 INFO es[o.e.gateway] [sonar-1464087778712] recovered [6] indices into cluster_state
2016.05.24 16:33:06 INFO app[o.s.p.m.Monitor] Process[es] is up
2016.05.24 16:33:06 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[web]: C:\Program Files\Java\jdk8\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx512m -Xms128m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=D:\sonarqube-5.5\temp -javaagent:C:\Program Files\Java\jdk8\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;D:\sonarqube-5.5\lib\jdbc\h2\h2-1.3.176.jar org.sonar.server.app.WebServer C:\Users\ic071101\AppData\Local\Temp\sq-process2036280226267501007properties
2016.05.24 16:33:07 INFO web[o.s.p.ProcessEntryPoint] Starting web
2016.05.24 16:33:07 INFO web[o.s.s.a.TomcatContexts] Webapp directory: D:\sonarqube-5.5\web
2016.05.24 16:33:07 INFO web[o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.05.24 16:33:07 INFO web[o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
2016.05.24 16:33:08 INFO web[o.s.s.p.ServerImpl] SonarQube Server / 5.5 / 5773a4aab0ef6c0de79d3038e82f8a051049d6d0
2016.05.24 16:33:10 INFO web[o.s.s.d.EmbeddedDatabase] Starting embedded database on port 9092 with url jdbc:h2:tcp://localhost:9092/sonar
2016.05.24 16:33:10 INFO web[o.s.s.d.EmbeddedDatabase] Embedded database started. Data stored in: D:\sonarqube-5.5\data
2016.05.24 16:33:10 INFO web[o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://localhost:9092/sonar
2016.05.24 16:33:10 WARN web[o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
2016.05.24 16:33:11 INFO web[o.s.s.p.DefaultServerFileSystem] SonarQube home: D:\sonarqube-5.5
2016.05.24 16:33:11 INFO web[o.e.plugins] [sonar-1464087778712] loaded [], sites []
2016.05.24 16:33:12 INFO web[o.s.s.d.EmbeddedDatabase] Embedded database stopped
2016.05.24 16:33:12 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: File is not a plugin. Please delete it and restart: D:\sonarqube-5.5\extensions\plugins\siemens.plugins.sonarqube-0.0.1-SNAPSHOT.jar
2016.05.24 16:33:12 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.24 16:33:12 ERROR web[o.a.c.c.StandardContext] Context [] startup failed due to previous errors
2016.05.24 16:33:12 INFO web[o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.05.24 16:33:12 INFO web[o.s.s.a.TomcatAccessLog] Web server is started
2016.05.24 16:33:12 INFO web[o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2016.05.24 16:33:12 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.24 16:33:12 INFO web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.05.24 16:33:14 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.05.24 16:33:14 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9000"]
2016.05.24 16:33:14 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0
2016.05.24 16:33:14 INFO app[o.s.p.m.Monitor] Process[es] is stopping
2016.05.24 16:33:14 INFO es[o.s.p.StopWatcher] Stopping process
2016.05.24 16:33:14 INFO es[o.elasticsearch.node] [sonar-1464087778712] stopping ...
2016.05.24 16:33:14 INFO es[o.elasticsearch.node] [sonar-1464087778712] stopped
2016.05.24 16:33:14 INFO es[o.elasticsearch.node] [sonar-1464087778712] closing ...
2016.05.24 16:33:14 INFO es[o.elasticsearch.node] [sonar-1464087778712] closed
2016.05.24 16:33:15 INFO app[o.s.p.m.Monitor] Process[es] is stopped
<-- Wrapper Stopped
The message is pretty clear:
2016.05.24 16:33:12 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: File is not a plugin. Please delete it and restart: D:\sonarqube-5.5\extensions\plugins\siemens.plugins.sonarqube-0.0.1-SNAPSHOT.jar
Please delete the siemens.plugins.sonarqube-0.0.1-SNAPSHOT.jar file that is not a plugin.

Resources