Re: getting runtime error, while running the sonar cube

1,785 views
Skip to first unread message

Eric Hartmann

unread,
Oct 5, 2017, 12:29:30 PM10/5/17
to Sahil Singh, SonarQube
Hi,

Please be aware that the standard courtesies (Hi, Thanks, ...) are appreciated in this group.
It looks like the user that run SonarQube does not have the rights to delete file in D:\sonarqube-6.5\temp, can you check the permission on this folder ?

Cheers,

On Thu, Oct 5, 2017 at 6:17 PM Sahil Singh <singh...@gmail.com> wrote:
getting runtime error, while running the sonar cube

It was working fine before, I restarted my machine. I have cleared all the temp files and tried to run again, but the same error throws up.

Please let me know if any step that I am missing.


wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2017.10.05 21:38:37 INFO  app[][o.s.a.AppFileSystem] Cleaning or crea
ting temp directory D:\sonarqube-6.5\temp
jvm 1    |
jvm 1    | WrapperSimpleApp: Encountered an error running main: java.nio.file.Ac
cessDeniedException: D:\sonarqube-6.5\temp\jna--1833998801\jna484676358536908361
4.dll
jvm 1    | java.nio.file.AccessDeniedException: D:\sonarqube-6.5\temp\jna--18339
98801\jna4846763585369083614.dll
jvm 1    |      at sun.nio.fs.WindowsException.translateToIOException(Unknown So
urce)
jvm 1    |      at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Sour
ce)
jvm 1    |      at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Sour
ce)
jvm 1    |      at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Sourc
e)
jvm 1    |      at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
jvm 1    |      at java.nio.file.Files.delete(Unknown Source)
jvm 1    |      at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.vis
itFile(FileUtils2.java:170)
jvm 1    |      at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.vis
itFile(FileUtils2.java:165)
jvm 1    |      at java.nio.file.Files.walkFileTree(Unknown Source)
jvm 1    |      at java.nio.file.Files.walkFileTree(Unknown Source)
jvm 1    |      at org.sonar.process.FileUtils2.deleteDirectoryImpl(FileUtils2.j
ava:127)
jvm 1    |      at org.sonar.process.FileUtils2.deleteDirectory(FileUtils2.java:
112)
jvm 1    |      at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.v
isitFile(AppFileSystem.java:117)
jvm 1    |      at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.v
isitFile(AppFileSystem.java:101)
jvm 1    |      at java.nio.file.Files.walkFileTree(Unknown Source)
jvm 1    |      at org.sonar.application.AppFileSystem.createOrCleanTempDirector
y(AppFileSystem.java:96)
jvm 1    |      at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:
62)
jvm 1    |      at org.sonar.application.App.start(App.java:53)
jvm 1    |      at org.sonar.application.App.main(App.java:75)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
App.java:240)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
wrapper  | <-- Wrapper Stopped
Press any key to continue . . .

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/7cbd9e58-c4a3-4223-8790-9da75d703321%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Eric HARTMANN | SonarSource

Sahil Singh

unread,
Oct 5, 2017, 12:31:03 PM10/5/17
to SonarQube
Hi,

I will check and update, thanks for replying.

Sahil Singh

unread,
Oct 5, 2017, 12:36:30 PM10/5/17
to SonarQube
Hello Eric ,

Checked, the user has permission to delete files in the folder D:\sonarqube-6.5\temp

Is there any specific file, which needs to be deleted before restarting sonar?

Regards,
Sahil

Eric Hartmann

unread,
Oct 6, 2017, 3:38:32 AM10/6/17
to Sahil Singh, SonarQube
Hi Sahil,

No there is no specific file that need to be deleted before restarting SonarQube.
If the SonarQube user has the right to delete but it's not able to do so, there must be some lock on the file that SonarQube is trying to delete.
The other reason for not being able to delete the file is that another process still hold a lock on this file.
You can try using https://docs.microsoft.com/en-us/sysinternals/downloads/handle to determine which process is still having a lock on the file.

Cheers,


For more options, visit https://groups.google.com/d/optout.

Sahil Singh

unread,
Oct 9, 2017, 6:41:23 AM10/9/17
to SonarQube
Hello Eric,

I was able to resolve the issue, I was running sonar cube wrong way.

I was running installNTservice.bat, startNTservice.bat and then startsonar.bat.

In order to run is properly, I deleted all the temp files, stopped the Java process in Task manger and I just ran startsonar.bat

Thanks for your help.

Regards,
Sahil

Eric Hartmann

unread,
Oct 9, 2017, 7:41:05 AM10/9/17
to Sahil Singh, SonarQube
Hi Sahil,

Thanks for the follow-up.

Cheers,


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages