A problem in building the DataCenter version

Hi experts,

There was a problem when building a cluster based on documents.
For some reasons, I can only build three servers to test its high availability and load balancing ability now, one search es server and two application server.
In order, I start the search server first and then the application server. When I try to start the second application server, the StartSonar.bat window flashes back, and the contents of “CP Subsystem is not enabled.CP data structures will operate in UNSAFE mode!Please note that UNSAFE mode will not provide strong consistency guarantees.” appear in it.

The content of sonar.log in the logs folder is:

2023.02.17 11:25:41 WARN  sonarqube-faa586e4-bf72-4a8e-b14c-6ef6d70ab502 app[][c.h.cp.CPSubsystem] [192.168.1.112]:9003 [SonarQube] [5.2.1] CP Subsystem is not enabled. CP data structures will operate in UNSAFE mode! Please note that UNSAFE mode will not provide strong consistency guarantees.
2023.02.17 11:25:48 ERROR sonarqube-faa586e4-bf72-4a8e-b14c-6ef6d70ab502 app[][o.s.application.App] Startup failure
org.sonar.process.MessageException: This node has a cluster name [app2], which does not match [app1] from the cluster
2023.02.17 11:37:16 WARN  sonarqube-e9c1447a-8bda-469d-9359-dc90d903bcc9 app[][c.h.cp.CPSubsystem] [192.168.1.112]:9003 [SonarQube] [5.2.1] CP Subsystem is not enabled. CP data structures will operate in UNSAFE mode! Please note that UNSAFE mode will not provide strong consistency guarantees.
2023.02.17 11:37:23 ERROR sonarqube-e9c1447a-8bda-469d-9359-dc90d903bcc9 app[][o.s.application.App] Startup failure
org.sonar.process.MessageException: This node has a cluster name [sonarqube], which does not match [app1] from the cluster

The following is the content added in conf/sonar. properties:

sonar.cluster.enabled=true
sonar.cluster.node.type=application
#sonar.cluster.name=app2
sonar.cluster.node.host=192.168.1.112
sonar.cluster.node.port=9003
sonar.cluster.hosts=192.168.1.105,192.168.1.112
sonar.cluster.search.hosts=192.168.1.121:9001
sonar.auth.jwtBase64Hs256Secret=iM0hCLU0fZc885zfkFPX3UJwSHbYyam9ji0WglnT3fc=

Please help me find out what caused the startup failure and let me know if there is any necessary information.

Best,
Kevin

Hey there.

If you have a Data Center Edition of SonarQube, you surely have access to SonarSource’s commercial support offering. Please get in touch with your sales representative if you don’t know how to access it.