2017-10-23 1 views
0

현재 SonarQube 버전 6.4를 사용하고 있습니다. 최근에 SonarQube 6.6을 다른 위치에 다운로드하고 6.4에서 사용했던 동일한 DB로 프로젝트를 탐색했습니다. 테스트를 마친 후 최신 서버를 죽이고 오래된 SonarQube (버전 6.4)를 시작하려고했습니다. 그러나 Sonar 서버를 시작했을 때 다음 오류로 시작하지 못했습니다. 오류 로그 아래업그레이드 후 SonarQube의 이전 버전을 시작할 수 없습니다.

"/Users/manoj-3097/SONARQUBE/sonarqube-6.4/bin/macosx-universal-64/./wrapper" "/Users/manoj-3097/SONARQUBE/sonarqube-6.4/bin/macosx-universal-64/../../conf/wrapper.conf" wrapper.syslog.ident=SonarQube wrapper.pidfile="/Users/manoj-3097/SONARQUBE/sonarqube-6.4/bin/macosx-universal-64/./SonarQube.pid" 
wrapper | --> Wrapper Started as Console 
wrapper | Launching a JVM... 
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org 
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. 
jvm 1 | 
jvm 1 | 2017.10.23 14:42:54 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/manoj-3097/SONARQUBE/sonarqube-6.4/temp 
jvm 1 | 2017.10.23 14:42:54 INFO app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[es]: /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/bin/java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/Users/manoj-3097/SONARQUBE/sonarqube-6.4/temp -cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer /Users/manoj-3097/SONARQUBE/sonarqube-6.4/temp/sq-process634164140479096934properties 
jvm 1 | 2017.10.23 14:43:00 INFO app[][o.s.a.SchedulerImpl] Process[es] is up 
jvm 1 | 2017.10.23 14:43:00 INFO app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[web]: /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/Users/manoj-3097/SONARQUBE/sonarqube-6.4/temp -cp ./lib/common/*:./lib/server/*:/Users/manoj-3097/SONARQUBE/sonarqube-6.4/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer /Users/manoj-3097/SONARQUBE/sonarqube-6.4/temp/sq-process2067232188703791668properties 
jvm 1 | 2017.10.23 14:43:01 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped 
jvm 1 | 2017.10.23 14:43:01 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped 
jvm 1 | 2017.10.23 14:43:01 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped 
wrapper | <-- Wrapper Stopped 

는 오래된 데이터베이스와 새로운 SonarQube 버전을 시작하면, 그것은 데이터베이스 (새 테이블을 만들 업그레이드 된 열을 삭제합니다

2017.10.23 14:58:46 ERROR web[][o.s.s.p.Platform] Web server startup failed: Database was upgraded to a more recent of SonarQube. Backup must probably be restored or db settings are incorrect. 

답변

3

web.log 파일에 추가 데이터를 다시 포맷하는 등). 오래된 SonarQube 버전에서는 더 이상 데이터베이스를 사용할 수 없습니다.

데이터베이스 백업이있는 경우 백업 전에 다음을 수행하십시오. 백업이 없다면 쉬운 해결 방법이 없습니다. 이론적으로 데이터베이스를 수동으로 다운 그레이드하는 것이 가능할 수도 있지만 이는 매우 위험하고 힘든 일입니다.

또 다른 옵션은

+0

그래서 이전 서버에 동일한 DB를 사용할 수있는 방법이있다 : 바로 SonarQube의 새 버전으로 전환 할 수 물론입니까? –

+0

@ManojKumar 아니요. 각 SonarQube 버전에는 하나 이상의 (매우 손상 될 가능성이있는) 업그레이드 스크립트가 포함되어 있습니다. 이 스크립트는 처음 사용할 때 실행됩니다. –

관련 문제