Solved

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

Posted on 2016-08-03
6
96 Views
Last Modified: 2016-08-06
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
0
Comment
Question by:SunnyX
  • 4
  • 2
6 Comments
 
LVL 33

Expert Comment

by:sarabande
ID: 41740879
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
1
 

Author Comment

by:SunnyX
ID: 41740890
Unfortunately, I run CMD as administrator at the first place. So I double check, run again - make no difference.
0
 
LVL 33

Accepted Solution

by:
sarabande earned 500 total points
ID: 41741871
in your output is a warning that you should use sonar-scanner.bat rather than deprecated sonar-runner.bat

did you try?

also the script seems to have options like the -X switch for to getting verbose info. you may check whether the script also offers to provide a tmpdir. i found  a forum entry for installation of an nvidia card at ubuntu where they could add the option

--tmpdir=TMPDIR

when calling  the script and doing so solved a Problem with exact the same error message than the one you posted.

Sara
1
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:SunnyX
ID: 41745197
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 ?
0
 

Author Comment

by:SunnyX
ID: 41745201
i found  a forum entry for installation of an nvidia card at ubuntu where they could add the option

I use windows 10
0
 

Author Comment

by:SunnyX
ID: 41745513
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 !
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question