SonarQube is not starting, the database must be manually upgraded

Must-share information (formatted with Markdown):

  • versions are you using
    SonarQube 7.9 , postgresql96
  • what are you trying to achieve
    sonarqube installation on RHEL 7.6

tail -f /opt/sonarqube/logs/sonar.log
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

2019.07.18 01:48:25 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2019.07.18 01:48:25 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2019.07.18 01:48:26 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2019.07.18 01:48:26 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2019.07.18 01:48:28 INFO app[o.e.p.PluginsService] no modules loaded
2019.07.18 01:48:28 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2019.07.18 01:49:36 INFO app[o.s.a.SchedulerImpl] Process[es] is up
2019.07.18 01:49:36 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘web’, ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/lib/jvm/java-11-openjdk-11.0.3.7-0.el7_6.x86_64/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -server -Xmx768m -Dhttp.nonProxyHosts=localhost|127.|[::1] -cp ./lib/common/:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.5.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process34849999569187989properties
2019.07.18 01:50:07 WARN app[startup]
################################################################################
The database must be manually upgraded. Please backup the database and browse /setup. For more information: Upgrade guide
################################################################################

Welcome to the community. Have you tried to upgrade the database, as suggested by the logs ?

1 Like

Hi,

I have the same issue (migrate from 6.7.7 to 7.9.1 on a centos 7.6 with postgre)
I have to upgrade the database by http://sonarque_ip/setup, but the service always restart after database error… so i can’t access to http…
Is there an another way to upgrade the database?

2019.07.18 11:58:19 WARN app[startup]
################################################################################
The database must be manually upgraded. Please backup the database and browse /setup. For more information: https://docs.sonarqube.org/latest/setup/upgrading
################################################################################
2019.07.18 11:58:20 INFO app[o.s.a.SchedulerImpl] Process[web] is stopped
2019.07.18 11:58:20 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 143
2019.07.18 11:58:20 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2019.07.18 11:58:20 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

Regards,

Ok it was an extension… found this in logs/web.log
It is ok !