The process cannot access the file because it is being used by another process

We are trying to analyze Angular-typescript project on SonarQube: 9.9 version using Command Line with Sonar Scanner version : 4.6.
We are able to see analysis getting successful on CLI but at the time of publishing it onto the SonarQube we are getting error in the background task please refer attachment.

error.txt (6.3 KB)

To resolve this issue we have tried:

  1. Upgraded SonarQube version from 8.9 to 9.9 as their also we were getting same error.
  2. Tried upgrading and downgrading Sonar Scanner versions.
  3. Tried cleaning temp folder.
  4. Restarted machine.
  5. Closed Visual Studio Code IDE.
  6. Also tried maximizing compute engine memory.

Kindly help us to resolve this issue as soon as possible.

That’s pretty unusual that you’re facing the same issue on multiple versions.

  • Is it possible you accidentally have multiple SonarQube instances started on your server at once? You can try running jps to see if any processes are duplicated.
  • This could also be caused by some “helpful” security software of your machine quarantining files. Your system administrators would know more about this.

I have checked this. Only one SonarQube instance is running on my machine.

Hi Colin,

After updating Security packages I’m now able to to SCA.

Thank you.

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