Integrate SonarQube with your AI agent, scan for secrets and dependency risks, and explore and manage issues—all from the command line.
Start using SonarQube CLI
This is happening on multiple projects since a few hours ago. We are seeing this on our CI systems:
15:39:39 ERROR: Error during SonarScanner execution
15:39:39 INFO: Final Memory: 38M/134M
15:39:39 java.lang.IllegalStateException: Failed to find all committed files
15:39:39 INFO: ------------------------------------------------------------------------
15:39:39 at org.sonar.scm.git.CompositeBlameCommand.collectAllCommittedFiles(CompositeBlameCommand.java:114)
15:39:39 at org.sonar.scm.git.CompositeBlameCommand.blame(CompositeBlameCommand.java:72)
15:39:39 at org.sonar.scanner.scm.ScmPublisher.publish(ScmPublisher.java:84)
15:39:39 at org.sonar.scanner.scan.SpringProjectScanContainer.doAfterStart(SpringProjectScanContainer.java:362)
15:39:39 at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
15:39:39 at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
15:39:39 at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:135)
15:39:39 at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
15:39:39 at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
15:39:39 at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
15:39:39 at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
15:39:39 at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
15:39:39 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:39:39 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:39:39 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:39:39 at java.base/java.lang.reflect.Method.invoke(Unknown Source)
15:39:39 at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
15:39:39 at com.sun.proxy.$Proxy0.execute(Unknown Source)
15:39:39 at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
15:39:39 at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
15:39:39 at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
15:39:39 at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
15:39:39 at org.sonarsource.scanner.cli.Main.main(Main.java:61)
15:39:39 Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing unknown 4c78c69da8b74c0d2b955f0e4b2e6c3e5a5353a6
15:39:39 at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:135)
15:39:39 at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:214)
15:39:39 at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:1075)
15:39:39 at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:985)
15:39:39 at org.sonar.scm.git.CompositeBlameCommand.collectAllCommittedFiles(CompositeBlameCommand.java:101)
15:39:39 ... 22 more
Please also note that we’re performing the scan inside a docker container (using FROM node:latest). Edit: Same issue appears with FROM mcr.microsoft.com/dotnet/sdk:6.0 and then apt -qq install default-jre & dotnet tool install --global dotnet-sonarscanner
Any help is much appreciated.