Summary:
I am trying to run standalone sonar on a remote machine running CentOS 6.5.
The following: http://sonar-pkg.sourceforge.net/ - installed via:
yum install sonar
I established a remote database connection to a MySQL instance, already configured with the sonar database and the user, as described in: http://docs.sonarqube.org/display/SONAR/Install
Modified Configuration sonar.properties:
sonar.jdbc.url=jdbc:mysql://<mysql.ipaddress>:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
- jdbc, , http://mymachine.ipaddress: 9000/
:
:
sonar.web.host=<mymachine.ipaddress>
sonar.web.context=/sonar
sonar.web.port=9000
/etc/init.d/sonar start
, .
http://mymachine.ipaddress: 9000/sonar : " - "
GET http://mymachine.ipaddress:9000/sonar net::ERR_CONNECTION_TIMED_OUT
sonar.log:
→ Wrapper , JVM... Wrapper ( 3.2.3) http://wrapper.tanukisoftware.org Copyright 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 [CN01 ] -Xss256k -Djava.net.preferIPv4Stack = true -XX: + UseParNewGC -XX: + UseConcMarkSweepGC -XX: CMSInitiatingOccupancyFraction = 75 -XX: + UseCMSInitiatingOccupancyOnly -XX: . = 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] [1.1.2], pid [329], [e511f7b/2014-05-22T12: 27: 39Z] 2014.10.01 14:30:18 sea [o.elasticsearch.node] [sonar- 1412188217506] initializing... 2014.10.01 14:30:18 INFO sea [oeplugins] [sonar-1412188217506] [], [] 2014.10.01 14:30:20 sea [o.elasticsearch.node] [sonar-1412188217506] 2014.10.01 14:30:20 sea [o.elasticsearch.node] [sonar-1412188217506] ... 2014.10.01 14:30:20 sea [oetransport] [sonar-1412188217506] bound_address {inet [/0.0.0.0:9001]}, publish_address {inet [/: 9001]} 2014.10.01 14:30:23 sea [oecluster.service] [sonar-1412188217506 ] new_master [sonar-1412188217506] [k85f1MFxQgSy_aXegApX1g] [CORPSTGCI01] [inet [/: 9001]] {rack_id = sonar-1412188217506}, : - (selected_as_master): 2014.10 14:30 oediscovery] [sonar-1412188217506] sonarqube/k85f1MFxQgSy_aXegApX1g 2014.10.01 14:30:25 INFO [oegateway] [sonar-1412188217506] [2] cluster_state 2014.10.01 14:30:25 INFO ] [sonar-1412188217506] 2014.10.01 14:30:31 INFO [ospmMonitor] [search] 2014.10.01 14:30:31 INFO [ospmJavaProcessLauncher] [web]: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/jre/bin/java -Xmx768m -XX: MaxPermSize = 160 -XX: + HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack = true -Djava.awt.headless = true -Dfile.encoding = UTF-8 -Djruby.management.enabled = false [ CN02].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] Starting web 2014.10.01 14:30:32 INFO web [ossapp.Connectors] HTTP 9000 2014.10.01 14:30:32 INFO web [ossapp.Webapp] -: /opt/sonar/web 2014.10.01 14:30:33 INFO web [oeplugins] [sonar-1412188217506] [], sites [] 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: 33: 0: 0: 20: 20: 20: 20: 20: /sonar? useUnicode = true & characterEncoding = utf8 & rewriteBatchedStatements = true & useConfigs = maxPerformance 201 4.10.01 14:30:36 INFO web [osspDefaultServerFileSystem] SonarQube home: /opt/sonar 2014.10.01 14:30:36 INFO web [org.sonar.INFO] ... 2014.10.01 14:30:36 [osspServerPluginJarsInstaller] FindBugs/2.4/a334be36ba4374bb779255272c53fb08675ac2c2 2014.10.01 14:30:36 [osspServerPluginJarsInstaller] /4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014.10.01 14:30:36 [osspServerPluginJarsInstaller] /4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014.10.01 14:30:36 [osspServerPluginJarsInstaller] Java/2.4/7e7e6335211bb9c0ff9727065f43e7010cc3df91 2014.10.01 14:30:36 [osspServerPluginJarsInstaller] /4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014.10.01 14:30: 36 INFO web [osspServerPluginJarsInstaller] /4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014.10.01 14:30:36 INFO web [osspServerPluginJarsInsta ller] /4.5/c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7 2014.10.01 14:30:36 INFO web [osspServerPluginJarsInstaller] Design/4.5/c8bb686cbee8e1d0.00e0e0e0.30e0e0e0e0e0e0e0e0.: 88 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] center: http://update.sonarsource.org/update-center.properties (no proxy) 2014.10.01 14:30:38 INFO web [org.sonar.INFO] Colorizer , : 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] : 01 13:39:50 2014 2014.01.01 14:30:42 INFO web [osssBaseIndex] : activeRules: , 01 13:40:01 EDT 2014 2014.10.01 14:30:42 INFO web [osssBaseIndex] : sonarLogs : , 31 19:00: 00 EST 1969 2014.10.01 14:30:44 INFO web [osssIndexSynchronizer] 5413 ... 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 2014.10.01 14:30:44 INFO web [org.sonar.INFO] ... 2014.10.01 14:30: 45 INFO web [osssRegisterMetrics] 2014.10.01 14:30:45 INFO web [org.sonar.INFO] : 441 2014.10.01 14:30:45 INFO web [osssRegisterDebtModel] ... 2014.10.01 14:30:45 INFO web [osssRegisterDebtModel] : 31 2014.10.01 14:30:45 INFO web [org.sonar.INFO] ... 2014.10.01 14: 30: 47 INFO web [org.sonar.INFO] : 2256 2014.10.01 14:30:47 INFO web [oss qRegisterQualityProfiles] ... 2014.10.01 14:30:49 INFO [ossqRegisterQualityProfiles] : 2235 2014.10.01 14:30:49 INFO [osssRegisterNewMeasureFilters] ... 2014.10.01 14:30:49 INFO web [osssRegisterNewMeasureFilters] : 4 2014.10.01 14:30:49 INFO web [osssRegisterDashboards] ... 2014.10.01 14:30:49 INFO web [osssRegisterDashboards] : 9 2014.10.01 14:30:49 INFO web [osssRegisterPermissionTemplates] ... 2014.10.01 14:30:49 INFO web [osssRegisterPermissionTemplates] : 2 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 64- OpenJDK VM 1.7.0_55-mockbuild_2014_04_16_12_11-b00 [linux-amd64] 2014.10.01 14:30:50 [jruby.rack ] (threadsafe!) 2014.10.01 14:31:09 INFO web [jruby.rack] (config.logger) Rails 2014.10.01 14:31:32 INFO web [oacuSessionIdGenerator] SecureRandom [SHA1PRNG] [22,433] . 2014.10.01 14:31:32 INFO web [ossapp.Logging] - 2014.10.01 14:31:32 INFO app [ospmMonitor] [web]