19:51:43 11:51:43.598 ERROR You’re not authorized to analyze this project or the project doesn’t exist on SonarQube and you’re not authorized to create it. Please contact an administrator.
I using aws lightsail and cloudflare. this is issue, i using jenkins
If you’re already providing a token and still getting that error, then you should double-check that the user the token is from has permissions on the project, and potentially generate a new token.
18:53:55 + /home/ubuntu/jenkins-agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarQubeScanner/bin/sonar-scanner -Dsonar.projectKey=cicdsonar -Dsonar.projectName=cicdsonar -Dsonar.sources=. -Dsonar.host.url=https://sonar.jobseeker.software -Dsonar.token=****
18:53:56 10:53:56.189 WARN Ignoring property 'sonar.token' from env variable 'SONARQUBE_SCANNER_PARAMS' because it is already defined
18:53:56 10:53:56.195 INFO Scanner configuration file: /home/ubuntu/jenkins-agent/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarQubeScanner/conf/sonar-scanner.properties
18:53:56 10:53:56.201 WARN Ignoring property 'sonar.token' from env variable 'SONARQUBE_SCANNER_PARAMS' because it is already defined
18:53:56 10:53:56.202 INFO Project root configuration file: /home/ubuntu/jenkins-agent/workspace/Riset/cicd_test/sonar-project.properties
18:53:56 10:53:56.203 WARN Ignoring property 'sonar.token' from env variable 'SONARQUBE_SCANNER_PARAMS' because it is already defined
18:53:56 10:53:56.225 INFO SonarScanner CLI 6.2.1.4610
18:53:56 10:53:56.228 INFO Java 21.0.5 Amazon.com Inc. (64-bit)
18:53:56 10:53:56.233 INFO Linux 6.8.0-1017-aws amd64
18:53:56 10:53:56.279 INFO User cache: /root/.sonar/cache
18:53:57 10:53:57.523 INFO JRE provisioning: os[linux], arch[x86_64]
18:53:57 10:53:57.638 INFO Communicating with SonarQube Server 24.12.0.100206
18:53:58 10:53:58.191 INFO Starting SonarScanner Engine...
18:53:58 10:53:58.192 INFO Java 17.0.11 Eclipse Adoptium (64-bit)
18:53:58 10:53:58.250 WARN Ignoring property 'sonar.token' from env variable 'SONARQUBE_SCANNER_PARAMS' because it is already defined
18:53:59 10:53:59.377 INFO Load global settings
18:53:59 10:53:59.798 INFO Load global settings (done) | time=419ms
18:53:59 10:53:59.800 INFO Server id: 243B8A4D-AZO5ugohXCxRQrQ2_x4D
18:54:00 10:53:59.813 INFO Loading required plugins
18:54:00 10:53:59.814 INFO Load plugins index
18:54:00 10:53:59.842 INFO Load plugins index (done) | time=28ms
18:54:00 10:53:59.843 INFO Load/download plugins
18:54:00 10:53:59.894 INFO Load/download plugins (done) | time=50ms
18:54:00 10:54:00.344 INFO Process project properties
18:54:00 10:54:00.361 INFO Process project properties (done) | time=15ms
18:54:00 10:54:00.377 INFO Project key: cicdsonar
18:54:00 10:54:00.378 INFO Base dir: /home/ubuntu/jenkins-agent/workspace/Riset/cicd_test
18:54:00 10:54:00.379 INFO Working dir: /home/ubuntu/jenkins-agent/workspace/Riset/cicd_test/.scannerwork
18:54:00 10:54:00.394 INFO Load project settings for component key: 'cicdsonar'
18:54:00 10:54:00.429 INFO Load project settings for component key: 'cicdsonar' (done) | time=35ms
18:54:00 10:54:00.474 INFO Load quality profiles
18:54:00 10:54:00.565 INFO Load quality profiles (done) | time=90ms
18:54:00 10:54:00.588 INFO Auto-configuring with CI 'Jenkins'
18:54:00 10:54:00.650 INFO Load active rules
18:54:04 10:54:03.957 INFO Load active rules (done) | time=3305ms
18:54:04 10:54:03.962 INFO Load analysis cache
18:54:04 10:54:03.983 INFO Load analysis cache (404) | time=21ms
18:54:04 10:54:04.073 INFO Preprocessing files...
18:54:04 10:54:04.512 INFO 5 languages detected in 471 preprocessed files
18:54:04 10:54:04.516 INFO 0 files ignored because of scm ignore settings
18:54:04 10:54:04.519 INFO Loading plugins for detected languages
18:54:04 10:54:04.520 INFO Load/download plugins
18:54:04 10:54:04.533 INFO Load/download plugins (done) | time=16ms
18:54:04 10:54:04.558 ERROR You're not authorized to analyze this project or the project doesn't exist on SonarQube and you're not authorized to create it. Please contact an administrator.
18:54:05 10:54:04.899 INFO EXECUTION FAILURE
18:54:05 10:54:04.900 INFO Total time: 8.764s