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
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.
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.