You might see this error message when starting the Sonar client, for example via Maven (mvn sonar:sonar):
The current batch process and the configured remote server do not share the same DB configuration - Batch side: jdbc:... - Server side: check the configuration at http://.../system
The message is a bit misleading. Sonar doesn’t actually compare the database URL, it compares the ID which you can find in the database table properties under prop_key = sonar.core.id and this isn’t an ID, it’s the start time of the Sonar web server:
select * from properties where prop_key = 'sonar.core.id'
There are two reasons why there could be a mismatch:
- The database URL on the batch and the server side don’t match (just check it via the URL which the Sonar client gives you)
- There are two Sonar servers using this database. This can happen, for example, when you migrated the service from one host to another and forgot to shut down the old version properly.
Tagged: Maven, Sonar