title: Sonar installed & started but not accessible
body: <p>Summary:</p>
  
  <ul>
  <li>Installed standalone sonar </li>
  <li>Started through /etc/init.d/sonar start</li>
  <li>sonar.log doesn't show any error </li>
  <li><p>unable to open <a href="http://mymachine.ipaddress:9000/sonar" rel="nofollow noreferrer">http://mymachine.ipaddress:9000/sonar</a></p>
  
  <p>GET <a href="http://mymachine.ipaddress:9000/sonar" rel="nofollow noreferrer">http://mymachine.ipaddress:9000/sonar</a> net::ERR_CONNECTION_TIMED_OUT </p></li>
  </ul>
  
  <hr>
  
  <p>I am trying to run a standalone sonar on a remote machine running CentOS 6.5.</p>
  
  <p>Following: <a href="http://sonar-pkg.sourceforge.net/" rel="nofollow noreferrer">http://sonar-pkg.sourceforge.net/</a> - installed through:</p>
  
  <pre><code>yum install sonar
  </code></pre>
  
  <p>I've set up a remote database connection to MySQL instance, already set up with the 'sonar' database and user as described in: <a href="http://docs.sonarqube.org/display/SONAR/Installing" rel="nofollow noreferrer">http://docs.sonarqube.org/display/SONAR/Installing</a></p>
  
  <p>Modified <code>sonar.properties</code> configuration:</p>
  
  <pre><code>sonar.jdbc.url=jdbc:mysql://&lt;mysql.ipaddress&gt;:3306/sonar?useUnicode=true&amp;characterEncoding=utf8&amp;rewriteBatchedStatements=true&amp;useConfigs=maxPerformance
  </code></pre>
  
  <p>Initially - I only changed the jdbc connection, sonar started fine but I am unable to open sonar web <a href="http://mymachine.ipaddress:9000/" rel="nofollow noreferrer">http://mymachine.ipaddress:9000/</a></p>
  
  <p>Based on:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/10896750/sonar-can-be-accessed-locally-but-not-accessed-elsewhere">Sonar can be accessed locally but not accessed elsewhere</a></li>
  <li><a href="https://stackoverflow.com/questions/19114259/unable-to-open-remotely-installed-sonar-on-a-browser">Unable to open remotely installed sonar on a browser</a> </li>
  </ul>
  
  <p>I updated more properties:</p>
  
  <pre><code>sonar.web.host=&lt;mymachine.ipaddress&gt;
  sonar.web.context=/sonar
  sonar.web.port=9000
  </code></pre>
  
  <p>and run sonar again</p>
  
  <pre><code>/etc/init.d/sonar start
  </code></pre>
  
  <p>Sonar started fine, but still unable to access it through browser.<br>
  Going to <a href="http://mymachine.ipaddress:9000/sonar" rel="nofollow noreferrer">http://mymachine.ipaddress:9000/sonar</a> gives: "This webpage is not available"</p>
  
  <pre><code>GET http://mymachine.ipaddress:9000/sonar net::ERR_CONNECTION_TIMED_OUT 
  </code></pre>
  
  <p>sonar.log:</p>
  
  <blockquote>
    <p>--> Wrapper Started as Daemon Launching a JVM... Wrapper (Version 3.2.3) <a href="http://wrapper.tanukisoftware.org" rel="nofollow noreferrer">http://wrapper.tanukisoftware.org</a>   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.</p>
    
    <p>2014.10.01 14:30:18 INFO  app[o.s.p.m.JavaProcessLauncher] Launch process[search]:
    /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/<em>:./lib/search/</em> org.sonar.search.SearchServer
    /tmp/sq-process2719628111769939329properties
    2014.10.01 14:30:18 WARN  sea[o.s.p.ProcessEntryPoint]  Starting search
    2014.10.01 14:30:18 INFO  sea[o.s.s.SearchServer]  Starting ES[sonarqube] on port: 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] initializing ...
    2014.10.01 14:30:18 INFO  sea[o.e.plugins]  [sonar-1412188217506] loaded [], sites []
    2014.10.01 14:30:20 INFO  sea[o.elasticsearch.node]  [sonar-1412188217506] initialized
    2014.10.01 14:30:20 INFO  sea[o.elasticsearch.node]  [sonar-1412188217506] starting ...
    2014.10.01 14:30:20 INFO  sea[o.e.transport]  [sonar-1412188217506] bound_address {inet[/0.0.0.0:9001]}, publish_address
    {inet[/:9001]}
    2014.10.01 14:30:23 INFO  sea[o.e.cluster.service]  [sonar-1412188217506] new_master
    [sonar-1412188217506][k85f1MFxQgSy_aXegApX1g][CORPSTGCI01][inet[/:9001]]{rack_id=sonar-1412188217506},
    reason: zen-disco-join (elected_as_master)
    2014.10.01 14:30:23 INFO  sea[o.e.discovery]  [sonar-1412188217506] sonarqube/k85f1MFxQgSy_aXegApX1g
    2014.10.01 14:30:25 INFO  sea[o.e.gateway]  [sonar-1412188217506] recovered [2] indices into cluster_state
    2014.10.01 14:30:25 INFO  sea[o.elasticsearch.node]  [sonar-1412188217506] started
    2014.10.01 14:30:31 INFO  app[o.s.p.m.Monitor] Process[search] is up
    2014.10.01 14:30:31 INFO  app[o.s.p.m.JavaProcessLauncher] Launch process[web]:
    /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/jre/bin/java -Xmx768m
    -XX:MaxPermSize=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/<em>:./lib/server/</em>:/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[o.s.p.ProcessEntryPoint]  Starting web
    2014.10.01 14:30:32 INFO  web[o.s.s.app.Connectors]  HTTP connector is enabled on port 9000
    2014.10.01 14:30:32 INFO  web[o.s.s.app.Webapp]  Webapp directory: /opt/sonar/web
    2014.10.01 14:30:33 INFO  web[o.e.plugins]  [sonar-1412188217506] loaded [], sites []
    2014.10.01 14:30:34 INFO  web[o.s.s.p.ServerImpl]  SonarQube Server / 4.5 / c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7
    2014.10.01 14:30:34 INFO  web[o.s.c.p.Database]  Create JDBC datasource for
    jdbc:mysql://10.0.30.204:3306/sonar?useUnicode=true&amp;characterEncoding=utf8&amp;rewriteBatchedStatements=true&amp;useConfigs=maxPerformance
    2014.10.01 14:30:36 INFO  web[o.s.s.p.DefaultServerFileSystem]  SonarQube home: /opt/sonar
    2014.10.01 14:30:36 INFO  web[org.sonar.INFO]  Install plugins...
    2014.10.01 14:30:36 INFO  web[o.s.s.p.ServerPluginJarsInstaller]  Deploy plugin Findbugs / 2.4 /
    a334be36ba4374bb779255272c53fb08675ac2c2
    2014.10.01 14:30:36 INFO  web[o.s.s.p.ServerPluginJarsInstaller]  Deploy plugin Duplications / 4.5 /
    c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7
    2014.10.01 14:30:36 INFO  web[o.s.s.p.ServerPluginJarsInstaller]  Deploy plugin Core / 4.5 / c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7
    2014.10.01 14:30:36 INFO  web[o.s.s.p.ServerPluginJarsInstaller]  Deploy plugin Java / 2.4 / 7e7e6335211bb9c0ff9727065f43e7010cc3df91
    2014.10.01 14:30:36 INFO  web[o.s.s.p.ServerPluginJarsInstaller]  Deploy plugin Database Cleaner / 4.5 /
    c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7
    2014.10.01 14:30:36 INFO  web[o.s.s.p.ServerPluginJarsInstaller]  Deploy plugin English Pack / 4.5 /
    c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7
    2014.10.01 14:30:36 INFO  web[o.s.s.p.ServerPluginJarsInstaller]  Deploy plugin Email notifications / 4.5 /
    c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7
    2014.10.01 14:30:36 INFO  web[o.s.s.p.ServerPluginJarsInstaller]  Deploy plugin Design / 4.5 / c8bb686cbee8e1dce3312ef253db76e7c0e3c0c7
    2014.10.01 14:30:36 INFO  web[org.sonar.INFO]  Install plugins done: 88 ms
    2014.10.01 14:30:36 INFO  web[o.s.s.p.RailsAppsDeployer]  Deploy Ruby on Rails applications
    2014.10.01 14:30:36 INFO  web[o.s.j.s.AbstractDatabaseConnector]  Initializing Hibernate
    2014.10.01 14:30:38 INFO  web[o.s.s.p.UpdateCenterClient]  Update center: <a href="http://update.sonarsource.org/update-center.properties" rel="nofollow noreferrer">http://update.sonarsource.org/update-center.properties</a> (no
    proxy)
    2014.10.01 14:30:38 INFO  web[org.sonar.INFO]  Code colorizer, supported languages: java
    2014.10.01 14:30:39 INFO  web[o.s.s.n.NotificationService]  Notification service started (delay 60 sec.)
    2014.10.01 14:30:39 INFO  web[o.s.s.s.IndexSynchronizer]  Starting DB to Index synchronization
    2014.10.01 14:30:39 INFO  web[o.s.s.s.BaseIndex]  Index rules:rules has last update of Wed Oct 01 13:39:50 EDT 2014
    2014.10.01 14:30:42 INFO  web[o.s.s.s.BaseIndex]  Index rules:activeRules has last update of Wed Oct 01 13:40:01 EDT 2014
    2014.10.01 14:30:42 INFO  web[o.s.s.s.BaseIndex]  Index logs:sonarLogs has last update of Wed Dec 31 19:00:00 EST 1969
    2014.10.01 14:30:44 INFO  web[o.s.s.s.IndexSynchronizer]  Synchronization done in 5413ms...
    2014.10.01 14:30:44 INFO  web[org.sonar.INFO]  Deploy GWT plugins...
    2014.10.01 14:30:44 INFO  web[org.sonar.INFO]  Deploy GWT plugins done: 0 ms
    2014.10.01 14:30:44 INFO  web[org.sonar.INFO]  Load metrics...
    2014.10.01 14:30:45 INFO  web[o.s.s.s.RegisterMetrics]  Cleaning quality gate conditions
    2014.10.01 14:30:45 INFO  web[org.sonar.INFO]  Load metrics done: 441 ms
    2014.10.01 14:30:45 INFO  web[o.s.s.s.RegisterDebtModel]  Register technical debt model...
    2014.10.01 14:30:45 INFO  web[o.s.s.s.RegisterDebtModel]  Register technical debt model done: 31 ms
    2014.10.01 14:30:45 INFO  web[org.sonar.INFO]  Register rules...
    2014.10.01 14:30:47 INFO  web[org.sonar.INFO]  Register rules done: 2256 ms
    2014.10.01 14:30:47 INFO  web[o.s.s.q.RegisterQualityProfiles]  Register Quality Profiles...
    2014.10.01 14:30:49 INFO  web[o.s.s.q.RegisterQualityProfiles]  Register Quality Profiles done: 2235 ms
    2014.10.01 14:30:49 INFO  web[o.s.s.s.RegisterNewMeasureFilters]  Register measure filters...
    2014.10.01 14:30:49 INFO  web[o.s.s.s.RegisterNewMeasureFilters]  Register measure filters done: 4 ms
    2014.10.01 14:30:49 INFO  web[o.s.s.s.RegisterDashboards]  Register dashboards...
    2014.10.01 14:30:49 INFO  web[o.s.s.s.RegisterDashboards]  Register dashboards done: 9 ms
    2014.10.01 14:30:49 INFO  web[o.s.s.s.RegisterPermissionTemplates]  Register permission templates...
    2014.10.01 14:30:49 INFO  web[o.s.s.s.RegisterPermissionTemplates]  Register permission templates done: 2 ms
    2014.10.01 14:30:49 INFO  web[o.s.s.s.RenameDeprecatedPropertyKeys]  Rename deprecated property keys
    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]  using a shared (threadsafe!) runtime
    2014.10.01 14:31:09 INFO  web[jruby.rack]  keeping custom (config.logger) Rails logger instance
    2014.10.01 14:31:32 INFO  web[o.a.c.u.SessionIdGenerator]  Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took
    [22,433] milliseconds.
    2014.10.01 14:31:32 INFO  web[o.s.s.app.Logging]  Web server is started
    2014.10.01 14:31:32 INFO  app[o.s.p.m.Monitor] Process[web] is up</p>
  </blockquote>