Errors in migrating sonarqube from one server to other server

I am in process of migrating sonarqube from one centos server to other centos server and migrate the database as well
So far,

  1. I have migrated the sonarqube_home directory to new server using rsync
  2. Also, took dump from previous server and restored on new database server

But I when I start the sonarqube I get following errors:

INFO  localhost-startStop-1 web[sql]  2ms Executed SQL: select * from schema_migrations

2019.10.29 15:05:11 ERROR localhost-startStop-1 web[o.a.c.c.C.[.[.[/sonar]]  Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener

org.sonar.api.utils.MessageException: Database relates to a more recent version of sonar. Please check your settings.

I am not sure why I get the above error as I am neither upgrading nor changing any data


It looks like someone connected a more recent version of SonarQube to your database and ran the upgrade. The easiest thing to do will be to simply upgrade to 8.0, the latest version.