- 报错
- Wrapper: Error - Unable to execute Java command
- jvm 1 | WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.UnsupportedClassVersionError: org/sonar/application/App : Unsupported major.minor version 52.0
- WrapperSimpleApp: Encountered an error running main: org.sonar.process.MessageException: Unsupported JDBC driver provider: mysql
- jvm 1 | WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11 to runjvm 1
- WARN app[][o.e.t.n.Netty4Transport] exception caught on transport layer [[id: 0x146de8cb, L:/127.0.0.1:57099 – R:/127.0.0.1:9001]], closing connection
- Sat May 15 20:00:19 CST 2021 WARN: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
- Web server startup failed: Current version is too old. Please upgrade to Long Term Support version firstly.
软件下载地址: https://www.sonarqube.org/downloads/
文档地址:https://docs.sonarqube.org/latest/
安装版本 8.9 ~ 9.0
wapper.properties配置:
wrapper.java.command=%JAVA_HOME%/bin/java
sonar.properties 配置:
sonar.jdbc.username=d_sonar
sonar.jdbc.password=UoWcNEk0X%ed1xyf2y1h
#sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
sonar.jdbc.url=jdbc:postgresql://192.168.32.81/sonar?currentSchema=public
报错
Wrapper: Error - Unable to execute Java command
conf/wrapper.conf 文件 属性配置如下:
wrapper.java.command=%JAVA_HOME%/bin/java
jvm 1 | WrapperSimpleApp: Unable to locate the class org.sonar.application.App: java.lang.UnsupportedClassVersionError: org/sonar/application/App : Unsupported major.minor version 52.0
jdk 版本过低
WrapperSimpleApp: Encountered an error running main: org.sonar.process.MessageException: Unsupported JDBC driver provider: mysql
jvm 1 | WrapperSimpleApp: Encountered an error running main: org.sonar.process.MessageException: Unsupported JDBC driver provider: mysqljvm 1
| org.sonar.process.MessageException: Unsupported JDBC driver provider: mysql
原因是SonarQube 7.9以上版本已不再支持mysql
jvm 1 | WrapperSimpleApp: Encountered an error running main: java.lang.IllegalStateException: SonarQube requires Java 11 to runjvm 1
需要jdk 11
WARN app[][o.e.t.n.Netty4Transport] exception caught on transport layer [[id: 0x146de8cb, L:/127.0.0.1:57099 – R:/127.0.0.1:9001]], closing connection
根据sonar.properties里面的注释,mysql版本不能低于5.6
Sat May 15 20:00:19 CST 2021 WARN: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
[
](https://blog.csdn.net/qq_43663493/article/details/116861327)
需要在连接数据库的url上设置:useSSL=false就可以了。
Web server startup failed: Current version is too old. Please upgrade to Long Term Support version firstly.
升级 SonarQube的版本