Errors while installing SonarQube

I'm trying to run sonarQube

Installation via cmd as administrator: InstallNTService.bat

StartSonar.bat

--> Wrapper Started as Console Launching a JVM... Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. 2016.03.25 21:09:40 INFO app[osaAppFileSystem] Cleaning or creating temp directory C:\sonarqube-5.4\temp WrapperSimpleApp: Encountered an error running main:java.lang.RuntimeException: Failed to reset file system java.lang.RuntimeException: Failed to reset file system at org.sonar.process.monitor.Monitor.resetFileSystem(Monitor.java:125) at org.sonar.process.monitor.Monitor.startProcesses(Monitor.java:105) at org.sonar.process.monitor.Monitor.start(Monitor.java:99) at org.sonar.application.App.start(App.java:51) at org.sonar.application.App.main(App.java:110) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) at java.lang.Thread.run(Unknown Source) Caused by: java.nio.file.AccessDeniedException: C:\sonarqube-5.4\temp\jffi837955644087697080.tmp at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) at java.nio.file.Files.delete(Unknown Source) at org.sonar.process.FileUtils$CleanDirectoryFileVisitor.visitFile(FileUtils.java:151) at org.sonar.process.FileUtils$CleanDirectoryFileVisitor.visitFile(FileUtils.java:135) at java.nio.file.Files.walkFileTree(Unknown Source) at org.sonar.process.FileUtils.cleanDirectoryImpl(FileUtils.java:123) at org.sonar.process.FileUtils.cleanDirectory(FileUtils.java:60) at org.sonar.application.AppFileSystem.createOrCleanDirectory(AppFileSystem.java:116) at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:73) at org.sonar.process.monitor.Monitor.resetFileSystem(Monitor.java:122) ... 10 more <-- Wrapper Stopped 

I get the following errors:

  • WrapperSimpleApp: error starting main: java.lang.RuntimeException: could not create a file system reset java.lang.RuntimeException: Error reset file system

  • Called: java.nio.file.AccessDeniedException: C: \ sonarqube-5.4 \ temp \ jffi837955644087697080.tmp

Help.

+5
source share
3 answers

Kill the Java process and try to delete the contents of the temp folder again. Worked for me.

+7
source

The user who starts SonarQube (see user data on the Windows services screen) must have R / W rights in several subdirectories in C: \ Sonarqube-6.X. We assigned R / W rights to the entire C: \ Sonarqube-6.X directory tree. Before retrying, you can safely remove the temp directory. It is also important that you unlock the SonarQube zip file after downloading and before unpacking.

+6
source

I had the same problem, but I was unable to delete the temp directory because it was locked. I restarted my computer and released sonarQube and it started without problems. I assume that the last time I closed the SonarQube session, some resource was still in the temp folder and did not exit, but I could not find the sonarquist process to kill it in the task manager.

0
source

Source: https://habr.com/ru/post/1245799/


All Articles