# SonarQube is not starting, the database must be manually upgraded

**URL:** <https://community.sonarsource.com/t/sonarqube-is-not-starting-the-database-must-be-manually-upgraded/12016>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [July 18, 2019, 5:55am UTC](https://community.sonarsource.com/t/sonarqube-is-not-starting-the-database-must-be-manually-upgraded/12016 "2019-07-18T05:55:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashank\_Gupta](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/shashank_gupta/32/5230_2.png) [@Shashank\_Gupta](https://community.sonarsource.com/u/Shashank_Gupta)\
**Post date:** [July 18, 2019, 5:55am UTC](https://community.sonarsource.com/t/sonarqube-is-not-starting-the-database-must-be-manually-upgraded/12016/1 "2019-07-18T05:55:41Z")

</div>

Must-share information (formatted with [Markdown](https://commonmark.org/help/)):

- 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](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](https://docs.sonarqube.org/latest/setup/upgrading)  
> ################################################################################

---

<div class="post-metadata">

**Author:** ![pierreguillot](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/pierreguillot/32/46022_2.png) [@pierreguillot](https://community.sonarsource.com/u/pierreguillot)\
**Post date:** [July 18, 2019, 6:58am UTC](https://community.sonarsource.com/t/sonarqube-is-not-starting-the-database-must-be-manually-upgraded/12016/2 "2019-07-18T06:58:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DamienLGD](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@DamienLGD](https://community.sonarsource.com/u/DamienLGD)\
**Post date:** [July 18, 2019, 9:59am UTC](https://community.sonarsource.com/t/sonarqube-is-not-starting-the-database-must-be-manually-upgraded/12016/3 "2019-07-18T09:59:54Z")

</div>

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](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,

---

<div class="post-metadata">

**Author:** ![DamienLGD](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@DamienLGD](https://community.sonarsource.com/u/DamienLGD)\
**Post date:** [July 18, 2019, 10:20am UTC](https://community.sonarsource.com/t/sonarqube-is-not-starting-the-database-must-be-manually-upgraded/12016/4 "2019-07-18T10:20:05Z")

</div>

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