Avatar of SunnyX
SunnyX
 asked on

Re-running SolarQube failed. “Unable to create root temp directory”

I successfully run the demo project with SolarQube + SonarLint( eclipse ). Then I add to this project java classes to analyze and try to re-run but Solar keeps to throw the error - "Unable to create root temp directory. " The LocalHost is up. Once again, the first demo run was successful. For more information, please, take a look on print-screen.

The successful demo run : https://gyazo.com/770ac87cd20cd2729c96ec5518244d47

Error from Eclipse ( I also install sonarLint plug-in ) : https://gyazo.com/3002ef55d3e306fc7a73683156c69d66

Error from CMD ( I'm using Windows 10 ) : https://gyazo.com/e56480776778d649d4ad029392d1e35d
JavaWindows OSEditors IDEs

Avatar of undefined
Last Comment
SunnyX

8/22/2022 - Mon
sarabande

i don't have knowledge of your programs but perhaps the solution is a simple Windows permission issue:

at Windows 10 you need admin rights to create a temp directory at c drive.

try to start the program 'as administrator' or create the temp directory manually.

Sara
SunnyX

ASKER
Unfortunately, I run CMD as administrator at the first place. So I double check, run again - make no difference.
ASKER CERTIFIED SOLUTION
sarabande

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SunnyX

ASKER
This is folders inside my java project :
https://gyazo.com/d002820df68694e8901673da7965d4b5

When I'm deleting ".sonar " folder everything works fine. The server create new one and localhost gives me new report and even track changes compare to old one.
I feel that the problem related not with matter that you mentioned but to the fact that my repository is created inside the google drive so it automatically update every change and probably there is some mess with with permission to overwrite this folder ( .sonar ) by such entity as "sonar process " ( hope you get my point ). In aforementioned regards, what could you advice me ?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
SunnyX

ASKER
i found  a forum entry for installation of an nvidia card at ubuntu where they could add the option

I use windows 10
SunnyX

ASKER
I think that solution in indeed was change sonar-runner to sonar-scanner.bat in CMD
However, I'm not sure but now it work without ever deletion of the .sonar folder.
Thx !