Using GitLab we are getting scan fails for multiple merge requests
the command used is:
sonar-scanner -X -Dsonar.pullrequest.key=${CI_MERGE_REQUEST_IID} -Dsonar.pullrequest.base=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME} -Dsonar.pullrequest.branch=${CI_COMMIT_REF_NAME}
and the docker image that is runnning the command is: sonarsource/sonar-scanner-cli:5.0.1
and inside the source code there is sonar-project.properties file that specify the sonar.projectKey and sonar.organization values
i am adding parts of the log of the failing task:
06:45:47.321 ERROR: Error during SonarScanner execution
[192](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L192)java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.scan.filesystem.InputComponentStore
[193](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L193) at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:52)
[194](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L194) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
[195](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L195) at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
[196](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L196) at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
[197](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L197) at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
[198](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L198) at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
[199](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L199) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
[200](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L200) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
[201](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L201) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
[202](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L202) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
[203](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L203) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
[204](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L204) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
[205](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L205) at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1034)
[206](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L206) at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1026)
[207](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L207) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1003)
[208](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L208) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
[209](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L209) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:122)
[210](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L210) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
[211](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L211) at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
[212](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L212) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
[213](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L213) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
[214](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L214) at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
[215](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L215) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
[216](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L216) at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
[217](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L217) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[218](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L218) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[219](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L219) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[220](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L220) at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[221](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L221) at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
[222](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L222) at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
[223](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L223) at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
[224](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L224) at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
[225](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L225) at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
[226](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L226) at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
[227](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L227) at org.sonarsource.scanner.cli.Main.main(Main.java:62)
[228](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L228)Caused by: java.lang.IllegalStateException: Unable to load component interface org.sonar.scanner.scan.branch.BranchConfiguration
[229](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L229) at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:52)
[230](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L230) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
[231](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L231) at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
[232](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L232) at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
[233](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L233) at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
[234](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L234) at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
[235](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L235) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
[236](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L236) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
[237](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L237) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
[238](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L238) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
[239](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L239) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
[240](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L240) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
[241](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L241) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
[242](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L242) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
[243](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L243) at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:50)
[244](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L244) ... 34 more
[245](https://gitlab.com/cybellum/psa/-/jobs/5257893625#L245)Caused by: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator