[๋ฌธ์ œ ์ •๋ฆฌ] 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
๋ฐ˜์‘ํ˜•