java.lang.IllegalStateException: Unable to start database on SonarQube Server /

Hello Team,

We are using SonarQube Server / on Windows since more than a year.
Now we are unable to start the sonarqube with the below error:

2021.11.12 11:39:33 INFO  web[][o.s.s.p.LogServerVersion] SonarQube Server / / ffde725e701a0acdc2bfac653743c4d91063cd45
2021.11.12 11:39:33 ERROR web[][o.s.s.p.PlatformImpl] Web server startup failed
java.lang.IllegalStateException: Unable to start database
	at org.sonar.server.platform.db.EmbeddedDatabase.startServer(
	at org.sonar.server.platform.db.EmbeddedDatabase.start(
	at org.sonar.server.platform.db.EmbeddedDatabaseFactory.start(
	at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(
	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(

Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: null. Possible solution: use the recovery tool [90030-199]
	at org.h2.message.DbException.getJdbcSQLException(
	at org.h2.message.DbException.getJdbcSQLException(
	at org.h2.message.DbException.get(
	at org.h2.mvstore.db.MVTableEngine$Store.convertIllegalStateException(
	at org.h2.mvstore.db.MVTableEngine$
	at org.h2.mvstore.db.MVTableEngine.init(
	at org.h2.engine.Database.getPageStore(
	at org.h2.engine.Database.openDatabase(
	at org.h2.engine.Database.<init>(
	at org.h2.engine.Engine.openSession(

Tried to use the recovery tool also, still no luck
C:\SonarQube\sonarqube-\data>java -cp ..\lib\jdbc\h2\h2-1.4.199.jar
Exception in thread "main" java.lang.IllegalStateException: File corrupted in chunk 92691, expected page length 4..768, got 1882862387 [1.4.199/6]
        at org.h2.mvstore.DataUtils.newIllegalStateException(
        at org.h2.mvstore.MVStore.readBufferForPage(
        at org.h2.mvstore.MVStore.readPage(
        at org.h2.mvstore.MVMap.readPage(
        at org.h2.mvstore.Page$NonLeaf.getChildPage(
        at org.h2.mvstore.Cursor.hasNext(
        at org.h2.mvstore.MVStore.readStoreHeader(
        at org.h2.mvstore.MVStore.<init>(
        at org.h2.mvstore.MVStore$


Please help us to recover the data and start the sonarqube.


Can some one please help me on this.


Welcome to the community!

First, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience.

Second, it appears that you’ve been using the embedded H2 database in production for the last year. Unfortunately for you, we don’t support H2 as a production database. It’s only there to make initial evaluation easy. Didn’t you wonder about the banner across the bottom of every page?

I’m afraid you’re just going to have to start over with a supported database. PostgreSQL is free. And while your’e starting over, you might as well upgrade to a current version; 9.2 was released yesterday.