摘要:
无法打开http://mymachine.ipaddress:9000 /声纳
获取http://mymachine.ipaddress:9000/sonar net :: ERR_CONNECTION_TIMED_OUT
我想在运行CentOS 6.5的远程机器上运行一个独立的声纳.
以下:http://sonar-pkg.sourceforge.net/ - 通过以下方式安装:
yum install sonar
Run Code Online (Sandbox Code Playgroud)
我已经建立了一个与MySQL实例的远程数据库连接,已经设置了'sonar'数据库和用户,如下所述:http://docs.sonarqube.org/display/SONAR/Installing
修改sonar.properties配置:
sonar.jdbc.url=jdbc:mysql://<mysql.ipaddress>:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
Run Code Online (Sandbox Code Playgroud)
最初 - 我只改变了jdbc连接,声纳开始很好,但我无法打开声纳网页http://mymachine.ipaddress:9000 /
基于:
我更新了更多属性:
sonar.web.host=<mymachine.ipaddress>
sonar.web.context=/sonar
sonar.web.port=9000
Run Code Online (Sandbox Code Playgroud)
并再次运行声纳
/etc/init.d/sonar start
Run Code Online (Sandbox Code Playgroud)
Sonar很好,但仍然无法通过浏览器访问它.
转到http://mymachine.ipaddress:9000 /声纳给出:"此网页不可用"
GET http://mymachine.ipaddress:9000/sonar net::ERR_CONNECTION_TIMED_OUT
Run Code Online (Sandbox Code Playgroud)
sonar.log:
- > Wrapper开始作为守护进程启动JVM ... Wrapper(版本3.2.3)http://wrapper.tanukisoftware.org 版权所有1999-2006 Tanuki Software,Inc.保留所有权利.
2014.10.01 14:30:18 INFO app [ospmJavaProcessLauncher]启动流程[搜索]:/ usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/jre/bin/java -Xmx256m -Xms256m - Xss256k -Djava.net.preferIPv4Stack = true -XX:+ UseParNewGC -XX:+ UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction = 75 -XX:+ UseCMSInitiatingOccupancyOnly -XX:+ HeapDumpOnOutOfMemoryError -Djava.awt.headless = true -Djava.io.tmpdir =/opt/sonar/temp -cp ./lib/common/:./ lib/search / org.sonar.search.SearchServer/tmp/sq-process2719628111769939329properties 2014.10.01 14:30:18 WARN sea [ospProcessEntryPoint]开始搜索2014.10 .01 14:30:18 INFO sea [ossSearchServer]在港口启动ES [sonarqube]:9001 2014.10.01 14:30:18 INFO sea [o.elasticsearch.node] [sonar-1412188217506] version [1.1.2], pid [329],build [e511f7b/2014-05-22T12:27:39Z] 2014.10.01 14:30:18 INFO sea [o.elasticsearch.node] [sonar-1412188217506]初始化... 2014.10.01 14: 30:18 INFO海[oeplugins] [声纳1412188217506]加载[],点[] 2014年10月1日14时30分二十秒INFO海[o.el asticsearch.node] [sonar-1412188217506]初始化2014.10.01 14:30:20 INFO sea [o.elasticsearch.node] [sonar-1412188217506]首发... 2014.10.01 14:30:20 INFO sea [oetransport] [ sonar-1412188217506] bound_address {inet [/0.0.0.0:9001]},publish_address {inet [/:9001]} 2014.10.01 14:30:23 INFO sea [oecluster.service] [sonar-1412188217506] new_master [sonar- 1412188217506] [k85f1MFxQgSy_aXegApX1g] [CORPSTGCI01] [inet [/:9001]] {rack_id = sonar-1412188217506},原因:zen-disco-join(elections_as_master)2014.10.01 14:30:23 INFO sea [oediscovery] [声纳 - 1412188217506] sonarqube/k85f1MFxQgSy_aXegApX1g 2014.10.01 14:30:25 INFO sea [oegateway] [sonar-1412188217506]将[2]指数恢复到cluster_state 2014.10.01 14:30:25 INFO sea [o.elasticsearch.node] [声纳 - 1412188217506]开始2014.10.01 14:30:31 INFO app [ospmMonitor]进程[搜索]上升2014.10.01 14:30:31 INFO app [ospmJavaProcessLauncher]启动进程[web]:/ usr/lib/jvm/java- 1.7.0-openjdk-1.7.0.55.x86_64/jre/bin/java -Xmx768m -XX:MaxPermSi ze = 160m -XX:+ HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack = true -Djava.awt.headless = true -Dfile.encoding = UTF-8 -Djruby.management.enabled = false -Djava.io.tmpdir =/opt/sonar/temp -cp ./lib/common/:./ lib/server /:/opt/sonar/lib/jdbc/mysql/mysql-connector-java-5.1.27.jar org.sonar.server.app.WebServer/tmp/sq-process7956510077635803069properties 2014.10.01 14:30:32 WARN web [ospProcessEntryPoint]启动web 2014.10.01 14:30:32 INFO web [ossapp.Connectors] HTTP连接器在端口9000上启用2014.10.01 14:30: 32 INFO web [ossapp.Webapp] Webapp目录:/ opt/sonar/web 2014.10.01 14:30:33 INFO web [oeplugins] [sonar-1412188217506]载[],网站[] 2014.10.01 14:30:34 INFO web [osspServerImpl] SonarQube Server/4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014.10.01 14:30:34 INFO web [oscpDatabase]为jdbc创建JDBC数据源:mysql://10.0.30.204:3306/sonar?useUnicode = true&characterEncoding = utf8&rewriteBatchedStatements = true&useConfigs = maxPerformance 2014.10.01 14:30:36 INFO web [osspDefaultServerFileSystem] SonarQube主页:/ opt/sonar 2014.10.01 14:30:36 INFO web [org.sonar.INFO]安装插件... 2014.10.01 14:30:36 INFO web [osspServerPluginJarsInstaller]部署插件Findbugs/2.4/a334be36ba4374bb779255272c53fb08675ac2c2 2014年10月1日14点30分三十六秒INFO网站[osspServerPluginJarsInstaller]部署插件重复/ 4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014年10月1日14点30分三十六秒INFO网站[osspServerPluginJarsInstaller]部署插件核心/ 4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014年10月1日14:30: 36 INFO网站[osspServerPluginJarsInstaller]部署插件的Java/2.4/7e7e6335211bb9c0ff9727065f43e7010cc3df91 2014年10月1日14时30分36秒INFO网站[osspServerPluginJarsInstaller]部署插件数据库清洁/ 9/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014年10月1日14时30分36秒INFO网站[osspServerPluginJarsInstaller]部署插件英Pack/4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014.10.01 14:30:36 INFO web [osspServerPluginJarsInstaller]部署插件Em 所有通知/ 4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014.10.01 14:30:36 INFO web [osspServerPluginJarsInstaller]部署插件Design/4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014.10.01 14:30:36 INFO web [org.sonar.INFO]安装插件完成:88 ms 2014.10 .01 14:30:36 INFO web [osspRailsAppsDeployer]部署Ruby on Rails应用程序2014.10.01 14:30:36 INFO web [osjsAbstractDatabaseConnector]初始化Hibernate 2014.10.01 14:30:38 INFO web [osspUpdateCenterClient]更新中心:http: //update.sonarsource.org/update-center.properties(无代理)2014.10.01 14:30:38 INFO web [org.sonar.INFO]代码着色器,支持的语言:java 2014.10.01 14:30:39 INFO web [ossnNotificationService]通知服务启动(延迟60秒) 2014.10.01 14:30:39 INFO web [osssIndexSynchronizer]启动数据库到索引同步2014.10.01 14:30:39 INFO web [osssBaseIndex]索引规则:规则最后更新于Wed Oct 01 13:39:50 EDT 2014 2014.10 .01 14:30:42 INFO web [osssBaseIndex]索引规则:activeRules上次更新于Wed Oct 01 13:40:01 EDT 2014 2014.10.01 14:30:42 INFO web [osssBaseIndex]索引日志:sonarLogs上次更新Wed Dec 31 19:00:00 EST 1969 2014.10.01 14:30:44 INFO web [osssIndexSynchronizer]同步完成5413ms ... 2014.10.01 14:30:44 INFO web [org.sonar.INFO]部署GWT插件... 2014.10.01 14:30:44 INFO web [org.sonar.INFO]部署GWT插件完成:0 ms 2014.10.01 14:30:44 INFO web [org.sonar.INFO]加载指标... 2014.10.01 14:30:45 INFO web [osssRegisterMetrics]清洁质量门限201 4.10.01 14:30:45 INFO web [org.sonar.INFO]负载指标已完成:441 ms 2014.10.01 14:30:45 INFO web [osssRegisterDebtModel]注册技术债务模型... 2014.10.01 14:30: 45 INFO web [osssRegisterDebtModel]注册技术债务模型完成:31 ms 2014.10.01 14:30:45 INFO web [org.sonar.INFO]注册规则... 2014.10.01 14:30:47 INFO web [org.sonar .INFO]注册规则完成:2256 ms 2014.10.01 14:30:47 INFO web [ossqRegisterQualityProfiles]注册质量配置文件... 2014.10.01 14:30:49 INFO web [ossqRegisterQualityProfiles]注册质量配置文件:2235 ms 2014.10. 01 14:30:49 INFO web [osssRegisterNewMeasureFilters]注册度量过滤器... 2014.10.01 14:30:49 INFO web [osssRegisterNewMeasureFilters]注册度量过滤器完成:4 ms 2014.10.01 14:30:49 INFO web [osssRegisterDashboards]注册仪表板... 2014.10.01 14:30:49 INFO web [osssRegisterDashboards]注册仪表板完成:9 ms 2014.10.01 14:30:49 INFO web [osssRegisterPermissionTemplates]注册权限templ ates ... 2014.10.01 14:30:49 INFO web [osssRegisterPermissionTemplates]注册权限模板完成:2 ms 2014.10.01 14:30:49 INFO web [osssRenameDeprecatedPropertyKeys]重命名不推荐使用的属性键2014.10.01 14:30:50 INFO web [jruby.rack] jruby 1.7.9(ruby-1.8.7p370)2013-12-06 87b108a on OpenJDK 64-bit Server VM 1.7.0_55-mockbuild_2014_04_16_12_11-b00 [linux-amd64] 2014.10.01 14:30:50 INFO web [jruby.rack]使用共享(threadsafe!)运行时2014.10.01 14:31:09 INFO web [jruby.rack] keep custom(config.logger)Rails logger instance 2014.10.01 14:31:32 INFO web [oacuSessionIdGenerator]使用[SHA1PRNG]创建用于会话ID生成的SecureRandom实例花了[22,433]毫秒.2014.10.01 14:31:32 INFO web [ossapp.Logging] Web服务器启动2014.10.01 14:31:32 INFO app [ospmMonitor]进程[web]启动
我遇到了完全相同的问题4.5。我什至降级4.4并遇到了同样的问题。据我所知,较新的版本使用弹性搜索,而该部分完全损坏了。
我降级到版本4.3.3并且开始正常(并且我不必做任何特殊的事情就不会丢失 mysql 数据库中的现有数据 - from 4.3.2)
| 归档时间: |
|
| 查看次数: |
10795 次 |
| 最近记录: |