sonarqube - 声纳 | 包装停止 | 7.1
问题描述
我在 sonar.log 中遇到错误。我已经在 AWS Other Linux OS 中安装了 Sonarqube 7.1 版本。Java 版本是 openjdk 版本“1.8.0_201”。而 nginx.repo 配置是:-
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/rhel/7/x86_64/
gpgcheck=0
enabled=1
错误日志:- sonar.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.
2019.09.27 13:13:26 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/efs/sonar/temp
2019.09.27 13:13:26 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2019.09.27 13:13:26 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/efs/sonar/elasticsearch]: /opt/efs/sonar/elasticsearch/bin/elasticsearch -Epath.conf=/opt/efs/sonar/temp/conf/es
2019.09.27 13:13:26 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2019.09.27 13:13:27 INFO app[][o.e.p.PluginsService] no modules loaded
2019.09.27 13:13:27 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2019.09.27 13:13:52 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2019.09.27 13:13:52 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/efs/sonar]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-0.amzn2.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/efs/sonar/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:/opt/efs/sonar/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer /opt/efs/sonar/temp/sq-process3612618067556786670properties
Fri Sep 27 13:13:55 UTC 2019 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.
Fri Sep 27 13:13:56 UTC 2019 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.
2019.09.27 13:13:59 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped
2019.09.27 13:13:59 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2019.09.27 13:13:59 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 143
2019.09.27 13:13:59 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
添加 wrapper.conf
wrapper.java.command=java
wrapper.java.additional.1=-Dsonar.wrapped=true
wrapper.java.additional.2=-Djava.awt.headless=true
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.java.classpath.1=../../lib/jsw/*.jar
wrapper.java.classpath.2=../../lib/common/*.jar
wrapper.java.classpath.3=../../lib/*.jar
wrapper.java.library.path.1=./lib
wrapper.app.parameter.1=org.sonar.application.App
wrapper.java.initmemory=8
wrapper.java.maxmemory=32
wrapper.console.format=PM
wrapper.console.loglevel=INFO
wrapper.logfile=../../logs/sonar.log
wrapper.logfile.format=M
wrapper.logfile.loglevel=INFO
wrapper.syslog.loglevel=NONE
wrapper.console.title=SonarQube
wrapper.single_invocation=true
wrapper.ntservice.name=SonarQube
wrapper.ntservice.displayname=SonarQube
wrapper.ntservice.description=SonarQube
wrapper.ntservice.dependency.1=
wrapper.ntservice.starttype=AUTO_START
wrapper.ntservice.interactive=false
wrapper.disable_restarts=TRUE
wrapper.ping.timeout=0
wrapper.shutdown.timeout=300
wrapper.jvm_exit.timeout=300
到目前为止在 /opt/efs/sonar/extension/plugins 文件夹下安装的插件列表:-
sonar-apigee-plugin-2.0.0.jar
sonar-auth-bitbucket-plugin-1.0.jar
sonar-csharp-plugin-7.0.1.4822.jar
sonar-flex-plugin-2.4.0.1222.jar
sonar-java-plugin-5.2.0.13398.jar
sonar-javascript-plugin-4.1.0.6085.jar
sonar-php-plugin-2.13.0.3107.jar
sonar-python-plugin-1.9.1.2080.jar
sonar-scm-git-plugin-1.4.0.1037.jar
sonar-scm-svn-plugin-1.7.0.1017.jar
sonar-typescript-plugin-1.6.0.2388.jar
sonar-xml-plugin-2.0.1.2020.jar
解决方案
在授予 *.jar 插件 644 权限后,它开始工作
推荐阅读
- xamarin.forms - 添加 MVVM Light 后未添加解决方案脚手架或文件
- php - 是否有任何可能的方法在另一个 wordpress 页面中调用 wordpress 中的外部 php 页面
- php - 页面没有重定向到 URL?
- node.js - docker 上的 Nodejs 用于 create-react-app 占用 >100% 的 cpu
- php - 如何使用会话在页面之间导航
- elasticsearch - 在 kibana 6.3 中启用 https?
- reactjs - ReactJS:Pngquant 构建失败,请确保已安装 libpng-dev
- windows-services - 如何将 WebLogic AdminServer 和 NodeManager 安装为 Windows 服务?
- html - 如何为行标题和列标题创建单元格
- python - CKAN:从基本控制器继承时视图为空