Sonarlint: StorageExceptionFailed to read file: \.sonarlint\storage\projects\x\configuration.pb

Hi,

This is the same issue of Failed to read file: \.sonarlint\storage\projects\x\configuration.pb .

We thought that issue was fixed already after fixing the permission issue in SonarQube server. However, my colleague cleaned up his workspace and use new/fresh eclipse and did encounter the issue again… I checked that permission in Server is still setup correctly. Any other thoughts? Thank You.

  • versions used
    • Sonarqube - Enterprise Edition -Version 7.9.1 (build 27448)
    • Sonarlint - 4.3.0

=> Note: The folder “…\projects\61646f703a465344” does not exists.

  • Error observed:
Error during execution of SonarLint analysis
org.sonarsource.sonarlint.core.client.api.exceptions.StorageException: Failed to read file: E:\Workspace\FSD111\.sonarlint\storage\66736f667364736f6e6172\projects\61646f703a465344\configuration.pb
at org.sonarsource.sonarlint.core.container.storage.ProtobufUtil.readFile(ProtobufUtil.java:46)
at org.sonarsource.sonarlint.core.container.storage.StorageReader.readProjectConfig(StorageReader.java:98)
at org.sonarsource.sonarlint.core.container.storage.StorageFileExclusions.getExcludedFiles(StorageFileExclusions.java:47)
at org.sonarsource.sonarlint.core.container.storage.StorageContainerHandler.getExcludedFiles(StorageContainerHandler.java:109)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$getExcludedFiles$12(ConnectedSonarLintEngineImpl.java:231)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:344)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:334)
at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.getExcludedFiles(ConnectedSonarLintEngineImpl.java:231)
at org.sonarlint.eclipse.core.internal.server.Server.getServerFileExclusions(Server.java:541)
at org.sonarlint.eclipse.core.internal.utils.FileExclusionsChecker.lambda$2(FileExclusionsChecker.java:72)
at java.util.Optional.ifPresent(Unknown Source)

Hi,

Could you please share the logs when you update all projects binding. This is the operation that should create this folder.

Also, can you please share with me your SonarQube project key? We are encoding it to avoid file system issues, and that should produce a folder named 61646f703a465344. But maybe there are some special characters in your project key that are causing the issue.

Hi,

Sonar Project Key: “adop:FSD”

When he run “Update project binding”, he gets the following error (I also attached the eclipse log):
error ATT11351.log (37.3 KB)

Thanks,
Lea

Can you open the SonarLint console, and provide the output when you run “Update project binding”?

Hi,

Sorry, we couldn’t recreate the issue. Our dev played with the sonar and after a while sonar did create 61646f703a465344 folder and now it works. I’ll update this ticket with sonarlint console logs once we get the error again.

=================================================================
Starting SonarLint for Eclipse 4.3.0.12432
SonarLint processing file /somepath/FcpServerUtility.java…
Found 11 issue(s)
Check for updates from server ‘xxxxxsonar’
Check for binding data updates on ‘xxxxxsonar’ for project ‘adop:FSD’
Check for binding data updates on ‘xxxxxsonar’ for project ‘adop:MDD’
Check for binding data updates on ‘xxxxxsonar’ for project ‘adop:Tools’

SonarLint processing file /somepath/FcpServerUtility.java…

Found 11 issue(s)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.