SonarQube execution failed on Windows

Hi,

I got the following error wher running sonar-scanner.bat from Windows Command Line. It runs on Windows 10 Pro.

Unable to rename C:\Users\[user_name]\.sonar\_tmp\fileCache6868673108347493867.tmp to C:\Users\[user_name]\.sonar\cache\9a181b23d57481dd59d022849a9f2a4d\sonar-authbitbucket-plugin.jar

Fail to move C:\Users\[user_name]\\.sonar\_tmp\fileCache6868673108347493867.tmp to C:\Users\[user_name]\\.sonar\cache\9a181b23d57481dd59d022849a9f2a4d\sonar-authbitbucket-plugin.jar
ERROR: Caused by: C:\Users\[user_name]\\.sonar\_tmp\fileCache6868673108347493867.tmp -> C:\Users\[user_name]\\.sonar\cache\9a181b23d57481dd59d022849a9f2a4d\sonar-authbitbucket-plugin.jar

What I’m doing wrong?

Thanks.

Hi,

This sounds like either a permissions issue or a file lock (possibly caused by a virus scanner). I’d try deleting those files manually, and then making sure the user that runs analysis has full permissions to C:\Users\[user_name\.sonar.

Also, we recommend you not run a virus scanner on an analysis machine; doing so can cause problems.

 
Ann

I stopped the antivirus but it did not solve the issue. I’m an administrator on the PC. The “.sonar” folder is writable. By the way, the “.sonar” folder is empty.

Hi,

Is there any more of that failure log, or is that it?

Ann

Hi,

That’s all I have. The errors I chatted above were taken from CMD console. Where can I find more detailed log?

Val

Hi,

The issue is not resolved yet. Any idea?

BR
Val