Question about moving Sonarqube to New server

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) 8.9.6
  • what are you trying to achieve: Trying to move SonarQube from one Linux server to another Linux server.
  • what have you tried so far to achieve this: haven’t tried yet

Hello Team,

we have a requirement to move our SonarQube application from one Linux server to another server, there is no change in DB server.

we will be migrating SonarQube from server1 to server2 by following below steps:
1: Take the back of DB and application file system.
2: Shut down application services at server 1.
3: Place same version binaries in server 2.
4: point to existing DB.
5: start SonarQube services at server 2.

1: above steps are correct ?
2: will this process make any change in DB ?
3: if this fails, we can simply restart services at server 1 and all good ?



yes, if 3: also involves copying the $SONARQUBE_HOME/conf/ from server 1 to server 2.

Don’t know your configuration, maybe you need to copy also:
a secret key for encrypted values in
additional community plugins if any
your settings for reverse proxy if you are using Apache httpd or nginx

Also you may have firewall rules or other network related settings that need to be adusted.

No, as it’s the same Sonarqube version. And if you’re using a commcercial edition the server id won’t change as the jdbc connection doesn’t change, so no new license needed.



1 Like