SonarQube启动报错:WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedExcepti
生活随笔
收集整理的這篇文章主要介紹了
SonarQube启动报错:WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedExcepti
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
SonarQube啟動報錯
可以查看日志,一般日志會記錄錯誤的詳細內容
執行以下命令,查看日志:
定位到問題的詳細信息:
WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedException: /opt/sonarqube-6.7.6/temp/conf/es/elasticsearch.ymljava.nio.file.AccessDeniedException: /opt/sonarqube-6.7.6/temp/conf/es/elasticsearch.ymlat sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)at java.nio.file.Files.delete(Files.java:1126)at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:186)at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:181)at java.nio.file.Files.walkFileTree(Files.java:2670)at java.nio.file.Files.walkFileTree(Files.java:2742)at org.sonar.process.FileUtils2.deleteDirectoryImpl(FileUtils2.java:143)at org.sonar.process.FileUtils2.deleteDirectory(FileUtils2.java:112)at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:117)at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:101)at java.nio.file.Files.walkFileTree(Files.java:2670)at org.sonar.application.AppFileSystem.createOrCleanTempDirectory(AppFileSystem.java:96)at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:62)at org.sonar.application.App.start(App.java:55)at org.sonar.application.App.main(App.java:78)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)at java.lang.Thread.run(Thread.java:748)<-- Wrapper Stopped--> Wrapper Started as DaemonLaunching a JVM...Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.orgCopyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.解決方法:
刪除sonarqube temp目錄下的所有文件即可
命令解釋
-f 刪除當前目錄下的所有類型的文件
總結
以上是生活随笔為你收集整理的SonarQube启动报错:WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedExcepti的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: idea 个性化定制快捷键
- 下一篇: 计算属性的setter和getter