Project root configuration file: NONE

17:33:02.653 INFO Scanner configuration file: /var/lib/jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonarqube/conf/sonar-scanner.properties
17:33:02.657 INFO Project root configuration file: NONE
17:33:02.678 INFO SonarScanner CLI 6.0.0.4432
17:33:02.680 INFO Java 17.0.11 Ubuntu (64-bit)
17:33:02.681 INFO Linux 6.5.0-35-generic amd64
17:33:02.713 INFO User cache: /var/lib/jenkins/.sonar/cache
17:33:03.418 INFO Communicating with SonarQube Server 10.5.1.90531
17:33:03.857 INFO Load global settings
17:33:03.925 INFO Load global settings (done) | time=69ms
17:33:03.942 INFO Server id: 147B411E-AY_ODFJBVCeWxiAvnlJr
17:33:03.945 INFO User cache: /var/lib/jenkins/.sonar/cache
17:33:03.953 INFO Loading required plugins
17:33:03.953 INFO Load plugins index
17:33:03.993 INFO Load plugins index (done) | time=40ms
17:33:03.993 INFO Load/download plugins
17:33:04.055 INFO Load/download plugins (done) | time=62ms
17:33:04.470 INFO Process project properties
17:33:04.480 INFO Process project properties (done) | time=9ms
17:33:04.491 INFO Project key: mws-dconag-api
17:33:04.491 INFO Base dir: /var/lib/jenkins/workspace/mws-dconag-api
17:33:04.492 INFO Working dir: /var/lib/jenkins/workspace/mws-dconag-api/.scannerwork
17:33:04.505 INFO Load project settings for component key: ‘mws-dconag-api’
17:33:04.518 INFO EXECUTION FAILURE
17:33:04.519 INFO Total time: 1.903s
17:33:04.519 ERROR Error during SonarScanner CLI execution
17:33:04.520 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.
17:33:04.520 ERROR
17:33:04.520 ERROR Re-run SonarScanner CLI using the -X switch to enable full debug logging.
Exception in thread “Thread-0” java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy
at ch.qos.logback.classic.spi.LoggingEvent.(LoggingEvent.java:145)
at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:424)
at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:386)
at ch.qos.logback.classic.Logger.error(Logger.java:543)
at org.eclipse.jgit.internal.util.ShutdownHook.cleanup(ShutdownHook.java:87)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at org.sonarsource.scanner.lib.internal.IsolatedClassloader.loadClass(IsolatedClassloader.java:82)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
… 6 more
[Pipeline] }

Hi,

It will be easier for community members to assist you if you provide additional context info, for example:

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve?
  • what have you tried so far to achieve this?

Regarding the log output you included, I’d recommend focusing on the error logs highlighted below rather than the log message you highlighted in the topic title.

I have deployed sonarqube using docker
I have using sonarqube scanner

Have you looked into the permissions of the user (aka the user whose token is being used) that’s executing this scan? Based on the error message, that’s the root of your issue.