[๋ฌธ์ ์ ๋ฆฌ] SonarQube ๊ธฐ๋ ๋ถ๊ฐ ๋ฌธ์
2022. 9. 26. 20:40ใ๊ฐ๋ ์ ๋ฆฌ ์์ ์ค/๋ฌธ์ ์ ๋ฆฌ
728x90
๋ฐ์ํ
๐ทโ๏ธ ์์ ์ค์ธ ๋ด์ฉ
์ฃผ๋ํ๋์ ํ์ฌ ์์ Ubuntu Docker Container์ SonarQube๋ฅผ ์ค์นํ๊ณ ๊ธฐ๋์ ์์ผ ๋ณด๋ ค ํ๊ณ ์์์ด์.
โ ๏ธ ๋ฌธ์ ๋ฐ์!
ํ์ง๋ง, SonarQube๋ฅผ sonaradmin์ด๋ผ๋ ๊ณ์ ์ ๋ง๋ค๊ณ ์คํํ๋ ค๊ณ ํ์์ง๋ง, ์์ ๊ฐ์ด ๊ธฐ๋ํ์ง ์์์ด์.
๐ค ์์ธ ๋ถ์
wrapper.log๋ฅผ ํ์ธํด ๋ณด๋ ์์ ๊ฐ์ด ๊ถํ์ด ์๋ค๋ ๊ฒ์ด ์์ธ์ด๋ผ๋ ๊ฒ์ ํ์ธํ ์ ์์์ด์.
sonaradmin@JunyHarang_SonarQube:/opt/sonarqube/sonarqube-7.6/bin/linux-x86-64$ cat wrapper.log
๋ฐ์ํ
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2022.09.26 04:52:57 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/sonarqube-7.6/temp
WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedException: /opt/sonarqube/sonarqube-7.6/temp/conf/es/elasticsearch.yml
java.nio.file.AccessDeniedException: /opt/sonarqube/sonarqube-7.6/temp/conf/es/elasticsearch.yml
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:249)
at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
at java.base/java.nio.file.Files.delete(Files.java:1142)
at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:186)
at org.sonar.process.FileUtils2$DeleteRecursivelyFileVisitor.visitFile(FileUtils2.java:181)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2725)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2797)
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.base/java.nio.file.Files.walkFileTree(Files.java:2725)
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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
at java.base/java.lang.Thread.run(Thread.java:829)
<-- Wrapper Stopped
--> Wrapper Started as Daemon
728x90
๐ป ๋ฌธ์ ํด๊ฒฐ!
๋ฌธ์ ํด๊ฒฐ์ ์ํด ๊ถํ์ด ์๋ค๊ณ ๋์จ ๊ณณ์ ์์ ์์ ๊ทธ๋ฃน์ sonaradmin์ผ๋ก ๋ณ๊ฒฝํด ์ฃผ๊ณ , 755 ๊ถํ์ ์ค์ ํด ์ฃผ์์ด์.
๊ทธ๋ฐ ๋ค ์์ ๊ฐ์ด ์ ์์ ์ผ๋ก SonarQube๊ฐ ์๋ํ์์ด์.
728x90
๋ฐ์ํ