7.9.1 database upgrade never completes

  • which versions are you using: SonarQube LTS 6.7.3
  • what are you trying to achieve: upgrade to LTS 7.9.1
  • what have you tried so far to achieve this:
    I am able to ‘sonar.sh start’ the new 7.9.1, in sonar.log I get the prompt to “go to URL/setup and click database upgrade”. When I do eventually the page changes to:
    Database connection cannot be established. Please check database status and JDBC settings

In sonar.log I get:
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid6956.hprof …
Heap dump file created [425995768 bytes in 1.079 secs]

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “http-nio-”
Exception in thread “main” java.lang.OutOfMemoryError: Java heap space
at org.sonar.process.sharedmemoryfile.DefaultProcessCommands.secondary(DefaultProcessCommands.java:52)
at org.sonar.server.app.WebServer.isOperational(WebServer.java:69)
at org.sonar.server.app.WebServer.getStatus(WebServer.java:61)
at org.sonar.process.ProcessEntryPoint.waitForStatus(ProcessEntryPoint.java:121)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:104)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)
at org.sonar.server.app.WebServer.main(WebServer.java:99)

Running on a postgres db, Centos 7 server. Can someone suggest a course of action?


Welcome to the community!

You need to grant more memory to the web process. Details in the docs


1 Like

That link had what I needed, I’m up and running. Thank you!

1 Like