SonarQube Failure and Data Loss Concerns After Deleting the sonar.mv.db File

Since I purchased the Developer Edition around November of last year, I have been using it without any issues. However, I have recently encountered the following error. The error is recorded in the web.log, and SonarQube continues to fail to operate. I would appreciate your assistance. I read that deleting the sonar.mv.db file could resolve the issue. If I delete this file, will all existing data be lost? Will I need to register the license again?

ERROR web[][o.s.s.p.w.PlatformServletContextListener] Web server startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@6d06d69c-org.sonar.server.platform.db.EmbeddedDatabaseFactory': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Unable to start database

Hi,

Welcome to the community!

From this, I gather that you’re using the embedded, H2 database?

That’s provided for evaluation only. Because of its limitations, it’s not supported for production, and there is no support for migrating away from it. If I’m correct, and you are using H2, then unfortunately, you’ll have to start over with an empty DB.

 
Ann

Hi Ann,

Thank you for the welcome!

In that case, a new server ID will be generated. Can I then request a new license key from SonarQube?

Hi,

Talk to your sales contacts. They should be happy to help you.

 
Ann

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.