Sonar-scanner provides wrong URL in report link

I see a strange behavior, when running new sonar-scanner

The results are reported to the SonarQube server new-sonar-system
Where is this URL with the wrong-server-url coming from ?

10:10:35 + /opt/sonar-scanner-4/bin/sonar-scanner -Dsonar.projectKey=commons-graph-schema -Dsonar.projectName=commons-graph-schema -Dsonar.projectVersion=1.0.350 -Dsonar.sourceEncoding=UTF-8 -Dsonar.host.url=http://new-sonar-system:9000 -Dsonar.projectBaseDir=/home/jenkins-master/workspace/commons-graph-schema_master
10:10:35 INFO: Scanner configuration file: /opt/sonar-scanner-4/conf/sonar-scanner.properties
10:10:35 INFO: Project root configuration file: /home/jenkins-master/workspace/commons-graph-schema_master/sonar-project.properties
10:10:35 INFO: SonarQube Scanner 4.0.0.1744
10:10:35 INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
10:10:35 INFO: Linux 3.10.0-957.12.2.el7.x86_64 amd64
10:10:35 INFO: User cache: /home/wpci/.sonar/cache
10:10:36 INFO: SonarQube server 7.9.1
10:10:36 INFO: Default locale: “en_US”, source code encoding: “UTF-8”
10:10:36 INFO: Load global settings
10:10:36 INFO: Load global settings (done) | time=178ms
10:10:36 INFO: Server id: F84CB647-AWu3Aklk3UFLAErgEdEt
10:10:36 INFO: User cache: /home/wpci/.sonar/cache
10:10:36 INFO: Load/download plugins
10:10:36 INFO: Load plugins index
10:10:37 INFO: Load plugins index (done) | time=139ms
10:10:37 INFO: Load/download plugins (done) | time=264ms
10:10:38 INFO: Process project properties
10:10:38 INFO: Execute project builders
10:10:38 INFO: Execute project builders (done) | time=8ms
10:10:38 INFO: Project key: prod-authoring-commons-graph-schema
10:10:38 INFO: Base dir: /home/jenkins-master/workspace/commons-graph-schema_master
10:10:38 INFO: Working dir: /home/jenkins-master/workspace/commons-graph-schema_master/.scannerwork
10:10:38 INFO: Load project settings for component key: ‘commons-graph-schema’
10:10:38 INFO: Load project settings for component key: ‘commons-graph-schema’ (done) | time=50ms
10:10:38 INFO: Load quality profiles
10:10:38 INFO: Load quality profiles (done) | time=103ms
10:10:38 INFO: Detected Jenkins
10:10:38 INFO: Load active rules
10:10:39 INFO: Load active rules (done) | time=1326ms
10:10:40 INFO: Indexing files…
10:10:40 INFO: Project configuration:
10:10:40 INFO: 22 files indexed
10:10:40 INFO: 0 files ignored because of scm ignore settings
10:10:40 INFO: Quality profile for scala: DX_QP_Scala_Default
10:10:40 INFO: ------------- Run sensors on module commons-graph-schema
10:10:40 INFO: Load metrics repository
10:10:40 INFO: Load metrics repository (done) | time=58ms
10:10:40 WARNING: An illegal reflective access operation has occurred
10:10:40 WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/home/wpci/.sonar/cache/35f6ffefefc4e175f8bb38b468748ed0/sonar-JSON-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain)
10:10:40 WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
10:10:40 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
10:10:40 WARNING: All illegal access operations will be denied in a future release
10:10:43 INFO: Sensor Scala Sensor [sonarscala]
10:10:43 INFO: 15 source files to be analyzed
10:10:43 INFO: Load project repositories
10:10:43 INFO: Load project repositories (done) | time=51ms
10:10:45 INFO: Sensor Scala Sensor [sonarscala] (done) | time=2959ms
10:10:45 INFO: Sensor JavaXmlSensor [java]
10:10:45 INFO: Sensor JavaXmlSensor [java] (done) | time=2ms
10:10:45 INFO: Sensor HTML [web]
10:10:45 INFO: 15/15 source files have been analyzed
10:10:45 INFO: Sensor HTML [web] (done) | time=18ms
10:10:45 INFO: Sensor JaCoCo XML Report Importer [jacoco]
10:10:45 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=4ms
10:10:45 INFO: ------------- Run sensors on project
10:10:45 INFO: Sensor Zero Coverage Sensor
10:10:45 INFO: Sensor Zero Coverage Sensor (done) | time=17ms
10:10:45 INFO: 7 files had no CPD blocks
10:10:45 INFO: Calculating CPD for 8 files
10:10:45 INFO: CPD calculation finished
10:10:46 INFO: Analysis report generated in 95ms, dir size=144 KB
10:10:46 INFO: Analysis report compressed in 81ms, zip size=53 KB
10:10:46 INFO: Analysis report uploaded in 117ms
10:10:46 INFO: ANALYSIS SUCCESSFUL, you can browse https://wrong-server-url/dashboard?id=prod-authoring-commons-graph-schema
10:10:46 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
10:10:46 INFO: More about the report processing at https://wrong-server-url/api/ce/task?id=AWv--9hUNvxFD0mC_dXw
10:10:46 INFO: Analysis total time: 8.957 s
10:10:46 INFO: ------------------------------------------------------------------------
10:10:46 INFO: EXECUTION SUCCESS
10:10:46 INFO: ------------------------------------------------------------------------
10:10:46 INFO: Total time: 11.226s
10:10:46 INFO: Final Memory: 14M/50M
10:10:46 INFO: ------------------------------------------------------------------------

Check sonar.core.serverBaseUrl in your instance administration settings.

Hi Colin, thank’s so much. That’s the place I missed.

Forgive me for adding to old question, but seems relevant …

Where is sonar.core.serverBaseUrl set ? Is that only available via the UI or is there a section in sonar.properties for it?

sonar.properties has:
sonar.web.host=
sonar.web.port=
sonar.web.context=

Is sonar.core.serverBaseUrl default construction : sonar.web.host+sonar.web.port+sonar.web.context

If so, why override in UI rather than accept properties?

Hi Ian,
have a look at the Administration menu on your sonarQube instance. https://sonarqube-url/admin/settings
There you will find a textfield with the label “Server base URL”.