SonarQube execution failed on Windows


(Valeriy Khisaev) #1

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.


(G Ann Campbell) #2

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


(Valeriy Khisaev) #3

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.


(G Ann Campbell) #4

Hi,

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

Ann


(Valeriy Khisaev) #5

Hi,

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

Val


(Valeriy Khisaev) #8

Hi,

The issue is not resolved yet. Any idea?

BR
Val