GET 404 https://sonarcloud.io/api/project_pull_requests/list?project

  • ALM used (GitHub)
  • CI system used (Jenkins)
  • Scanner command used when applicable (private details masked)
  • Languages of the repository
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • Used the same token in Jenkins with different ID
13:31:33.841 DEBUG: Plugins loaded:
13:31:33.842 DEBUG:   * Text Code Quality and Security 2.17.0.4070 (textenterprise)
13:31:33.842 DEBUG:   * JaCoCo 1.3.0.1538 (jacoco)
13:31:33.842 DEBUG:   * License for SonarLint 8.0.0.57101 (license)
13:31:33.842 DEBUG:   * IaC Code Quality and Security 1.37.0.12742 (iac)
13:31:33.842 DEBUG:   * Text Code Quality and Security 2.17.0.4070 (text)
13:31:33.842 DEBUG: --> GET https://sonarcloud.io/api/server/version
13:31:33.942 DEBUG: <-- 200 https://sonarcloud.io/api/server/version (99ms, 11-byte body)
13:31:33.944 DEBUG: Updated analysis started with a difference of -49 milliseconds
13:31:33.949 DEBUG: Started at Wed Oct 23 13:31:32 UTC 2024
13:31:34.100 DEBUG: register org.eclipse.jgit.util.FS$FileStoreAttributes$$Lambda$290/0x00000008003a4b38@26221bad with shutdown hook
13:31:34.119 INFO: Found an active CI vendor: 'Jenkins'
13:31:34.127 INFO: Load project settings for component key: '<project_key>'
13:31:34.127 DEBUG: --> GET https://sonarcloud.io/api/settings/values.protobuf?component='<project_key>'
13:31:34.234 DEBUG: <-- 404 https://sonarcloud.io/api/settings/values.protobuf?component='<project_key>' (106ms, unknown-length body)
13:31:34.239 INFO: Process project properties
13:31:34.246 DEBUG: Process project properties (done) | time=7ms
13:31:34.248 INFO: Project key: '<project_key>'
13:31:34.248 INFO: Base dir: /builds/<project_path>
13:31:34.248 INFO: Working dir: /builds/<project_path>/.scannerwork
13:31:34.248 DEBUG: Project global encoding: UTF-8, default locale: en
13:31:34.249 DEBUG: Creating module hierarchy
13:31:34.249 DEBUG:   Init module '#####'
13:31:34.249 DEBUG:     Base dir: /builds/<project_path>
13:31:34.249 DEBUG:     Working dir: /builds/<project_path>/.scannerwork
13:31:34.250 DEBUG:     Module global encoding: UTF-8, default locale: en
13:31:34.252 INFO: Load project branches
13:31:34.253 DEBUG: --> GET https://sonarcloud.io/api/project_branches/list?project='<project_key>'
13:31:34.379 DEBUG: <-- 404 https://sonarcloud.io/api/project_branches/list?project='<project_key>' (126ms, unknown-length body)
13:31:34.380 DEBUG: Could not process project branches - continuing without it
13:31:34.381 INFO: Load project branches (done) | time=129ms
13:31:34.383 INFO: Check ALM binding of project '<project_key>'
13:31:34.385 DEBUG: --> GET https://sonarcloud.io/api/alm_integration/is_project_bound?project='<project_key>'
13:31:34.486 DEBUG: <-- 404 https://sonarcloud.io/api/alm_integration/is_project_bound?project='<project_key>' (101ms, unknown-length body)
13:31:34.487 INFO: Detected project binding: NONEXISTENT
13:31:34.487 INFO: Check ALM binding of project '<project_key>' (done) | time=104ms
13:31:34.489 INFO: Load project pull requests
13:31:34.490 DEBUG: --> GET https://sonarcloud.io/api/project_pull_requests/list?project='<project_key>'
13:31:34.588 DEBUG: <-- 404 https://sonarcloud.io/api/project_pull_requests/list?project='<project_key>' (98ms, unknown-length body)
13:31:34.589 DEBUG: Could not process project pull requests - continuing without it
13:31:34.591 INFO: Load project pull requests (done) | time=102ms
13:31:34.593 INFO: Load branch configuration
13:31:34.594 DEBUG: Found manual configuration of branch/PR analysis. Skipping automatic configuration.
13:31:34.599 INFO: ------------------------------------------------------------------------
13:31:34.599 INFO: EXECUTION FAILURE
13:31:34.599 INFO: ------------------------------------------------------------------------
13:31:34.600 INFO: Total time: 4.824s
13:31:34.619 INFO: Final Memory: 10M/40M
13:31:34.619 INFO: ------------------------------------------------------------------------
13:31:34.619 ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.scan.filesystem.InputComponentStore
	at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:52)
	at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
	at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
	at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
	at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
	at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
	at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
	at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
	at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
	at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
	at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
	at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1034)
	at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1026)
	at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1003)
	at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:122)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
Caused by: java.lang.IllegalStateException: Unable to load component interface org.sonar.scanner.scan.branch.BranchConfiguration
	at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:52)
	at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
	at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
	at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
	at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
	at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
	at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
	at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
	at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
	at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
	at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
	at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
	at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
	at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:50)
	... 34 more
Caused by: Could not find a default branch for project with key '<project_key>'. Make sure project exists.
13:31:34.621 ERROR: 
13:31:34.621 ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
13:31:34.624 DEBUG: Cleanup org.eclipse.jgit.util.FS$FileStoreAttributes$$Lambda$290/0x00000008003a4b38@26221bad during JVM shutdown
[Pipeline] }
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeed?

Hi,

Welcome to the community!

I see a lot of 404s in this log. It looks like all the calls are made with only a project ID and not also an org ID. They’re both required.

 
HTH,
Ann