启动sonar的时候一直启动不了,报错如下:
- WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedException: /usr/local/sonarqube/temp/conf/es/jvm.options
- java.nio.file.AccessDeniedException: /usr/local/sonarqube/temp/conf/es/jvm.options
- at 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:170)
- at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:165)
- 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:127)
- 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)
复制代码问题定位: java.nio.file.AccessDeniedException: /usr/local/sonarqube/temp/conf/es/jvm.options 解决方案: 各种尝试无果,原来一直是好好的, 后来看到网上有一篇其他问题的,删除了temp后解决。 删除重启sonar后,temp文件会重新生成。 于是,备份temp,删除temp.重启,问题解决
|