i have installed sonar on remote linux cent os server. have configured database on same server. when start server, don't see errors in logs , sonar seems running. message: [sonar]$ ./bin/linux-x86-64/sonar.sh status sonar running (13429).
but, when try access sonar windows pc through browser, gives me connection timed out error. tried access via chrome , firefox browser following url. http://:9000/sonar right way it? there else missing here? haven't set else maven/jenkins/tomcat integration or such. appreciated.
following values had given: sonar.web.host: 127.0.0.1 sonar.web.port: 9000 sonar.web.context: /sonar
logs:
status | wrapper | 2013/10/01 11:08:57 | --> wrapper started daemon status | wrapper | 2013/10/01 11:08:58 | launching jvm... info | jvm 1 | 2013/10/01 11:08:58 | wrapper (version 3.2.3) http://wrapper.tanukisoftware.org info | jvm 1 | 2013/10/01 11:08:58 | copyright 1999-2006 tanuki software, inc. rights reserved. info | jvm 1 | 2013/10/01 11:08:58 | info | jvm 1 | 2013/10/01 11:08:58 | 2013-10-01 11:08:58.578:info:oejs.server:jetty-7.6.11.v20130520 2013.10.01 11:09:01 info o.s.s.p.serverimpl sonarqube server / 3.7.1 / 7f8f4d0f0b0044f178d587b8680032734d4fb578 2013.10.01 11:09:01 info o.s.c.p.database create jdbc datasource jdbc:mysql://localhost:3306/sonarqube?useunicode=true&characterencoding=utf8&rewritebatchedstatem ents=true 2013.10.01 11:09:02 info o.s.s.p.defaultserverfilesystem sonarqube home: /apps/sonar 2013.10.01 11:09:02 info o.s.s.p.defaultserverfilesystem deploy dir: /apps/sonar/war/sonar-server/deploy 2013.10.01 11:09:02 info org.sonar.info install plugins... 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin findbugs / 1.3 / 4d7d78e9340e39f53bbf202ed16d1253e6507c36 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin jacoco / 1.3 / 4d7d78e9340e39f53bbf202ed16d1253e6507c36 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin english pack / 3.7.1 / 7f8f4d0f0b0044f178d587b8680032734d4fb578 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin maven batch plugin / 3.7.1 / 7f8f4d0f0b0044f178d587b8680032734d4fb578 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin surefire / 1.3 / 4d7d78e9340e39f53bbf202ed16d1253e6507c36 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin duplications / 3.7.1 / 7f8f4d0f0b0044f178d587b8680032734d4fb578 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin checkstyle / 1.3 / 4d7d78e9340e39f53bbf202ed16d1253e6507c36 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin pmd / 1.3 / 4d7d78e9340e39f53bbf202ed16d1253e6507c36 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin java / 1.3 / 4d7d78e9340e39f53bbf202ed16d1253e6507c36 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin core / 3.7.1 / 7f8f4d0f0b0044f178d587b8680032734d4fb578 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin database cleaner / 3.7.1 / 7f8f4d0f0b0044f178d587b8680032734d4fb578 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin squid java / 1.3 / 4d7d78e9340e39f53bbf202ed16d1253e6507c36 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin email notifications / 3.7.1 / 7f8f4d0f0b0044f178d587b8680032734d4fb578 2013.10.01 11:09:03 info o.s.s.p.plugindeployer deploy plugin design / 3.7.1 / 7f8f4d0f0b0044f178d587b8680032734d4fb578 2013.10.01 11:09:03 info org.sonar.info install plugins done: 241 ms 2013.10.01 11:09:03 info o.s.s.p.applicationdeployer deploy ruby on rails applications 2013.10.01 11:09:03 info org.sonar.info start components... 2013.10.01 11:09:03 info o.s.j.s.abstractdatabaseconnector initializing hibernate 2013.10.01 11:09:05 info o.s.s.p.updatecenterclient update center: http://update.sonarsource.org/update-center.properties (no proxy) 2013.10.01 11:09:05 info o.s.s.n.notificationservice notification service started (delay 60 sec.) 2013.10.01 11:09:05 info org.sonar.info deploy gwt plugins... 2013.10.01 11:09:05 info org.sonar.info deploy org.sonar.plugins.design.ui.libraries.librariespage /apps/sonar/war/sonar-server/deploy/gwt 2013.10.01 11:09:05 info org.sonar.info deploy org.sonar.plugins.design.ui.page.designpage /apps/sonar/war/sonar-server/deploy/gwt 2013.10.01 11:09:05 info org.sonar.info deploy gwt plugins done: 32 ms 2013.10.01 11:09:05 info org.sonar.info load metrics... 2013.10.01 11:09:06 info o.s.s.s.registermetrics cleaning alert thresholds... 2013.10.01 11:09:06 info org.sonar.info load metrics done: 498 ms 2013.10.01 11:09:06 info org.sonar.info register rules [findbugs/java]... 2013.10.01 11:09:07 info org.sonar.info register rules [findbugs/java] done: 611 ms 2013.10.01 11:09:07 info org.sonar.info register rules [checkstyle/java]... 2013.10.01 11:09:07 info org.sonar.info register rules [checkstyle/java] done: 543 ms 2013.10.01 11:09:07 info org.sonar.info register rules [pmd/java]... 2013.10.01 11:09:08 info org.sonar.info register rules [pmd/java] done: 841 ms 2013.10.01 11:09:08 info org.sonar.info register rules [pmd-unit-tests/java]... 2013.10.01 11:09:08 info org.sonar.info register rules [pmd-unit-tests/java] done: 38 ms 2013.10.01 11:09:08 info org.sonar.info register rules [squid/java]... 2013.10.01 11:09:08 info org.sonar.info register rules [squid/java] done: 220 ms 2013.10.01 11:09:08 info org.sonar.info register rules [common-java/java]... 2013.10.01 11:09:08 info org.sonar.info register rules [common-java/java] done: 6 ms 2013.10.01 11:09:08 info o.s.s.s.registerrules removing deprecated rules 2013.10.01 11:09:09 info o.s.s.s.registernewprofiles register quality profiles... 2013.10.01 11:09:11 info o.s.s.s.registernewprofiles register quality profiles done: 2401 ms 2013.10.01 11:09:11 info o.s.s.s.registerqualitymodels register quality models... 2013.10.01 11:09:11 info o.s.s.s.registerqualitymodels register quality models done: 0 ms 2013.10.01 11:09:12 info o.s.s.s.registernewmeasurefilters register measure filters... 2013.10.01 11:09:12 info o.s.s.s.registernewmeasurefilters register measure filters done: 6 ms 2013.10.01 11:09:12 info o.s.s.s.registernewdashboards register dashboards... 2013.10.01 11:09:12 info o.s.s.s.registernewdashboards register dashboards done: 18 ms 2013.10.01 11:09:12 info o.s.s.s.registerpermissiontemplates register permission templates... 2013.10.01 11:09:12 info o.s.s.s.registerpermissiontemplates register permission templates done: 2 ms 2013.10.01 11:09:12 info o.s.s.s.renamedeprecatedpropertykeys rename deprecated property keys 2013.10.01 11:09:12 info org.sonar.info start components done: 8602 ms 2013.10.01 11:09:12 info jruby.rack jruby 1.6.8 (ruby-1.8.7-p357) (2012-09-18 1772b40) (java hotspot(tm) 64-bit server vm 1.6.0_22) [linux-amd64-java] 2013.10.01 11:09:12 info jruby.rack using shared (threadsafe!) runtime info | jvm 1 | 2013/10/01 11:09:18 | jruby limited openssl loaded. http://jruby.org/openssl info | jvm 1 | 2013/10/01 11:09:18 | gem install jruby-openssl full support. info | jvm 1 | 2013/10/01 11:09:26 | 2013-10-01 11:09:26.032:info:oejsh.contexthandler:started o.e.j.w.webappcontext{/sonar,file:/apps/sonar/war/sonar-server/},file:/apps/sonar/war/sonar-server info | jvm 1 | 2013/10/01 11:09:26 | 2013-10-01 11:09:26.107:info:oejs.abstractconnector:started selectchannelconnector@127.0.0.1:9000
the permissions of folders in sonar directory:
drwxrwxrwx 13 usr grp 4096 sep 30 15:53 bin drwxrwxrwx 2 usr grp 4096 oct 1 12:36 conf -rwxrwxrwx 1 usr grp 7651 sep 30 15:53 copying drwxrwxrwx 2 usr grp 4096 sep 30 15:53 data drwxrwxrwx 7 usr grp 4096 sep 30 16:02 extensions drwxrwxrwx 3 usr grp 4096 sep 30 15:53 lib drwxrwxrwx 2 usr grp 4096 oct 1 10:23 logs -rwxrwxrwx 1 usr grp 74135040 sep 30 15:17 sonar.tar drwxrwxrwx 3 usr grp 4096 oct 1 12:58 temp drwxrwxrwx 4 usr grp 4096 sep 30 15:53 war
thanks, n
in server's sonar.properties file, you'll need set host information in order access server remotely.
specifically, need set following values:
sonar.web.host: 192.168.1.1 #use server ip here sonar.web.port: 80 #set if want different port 9000
also, in web ui's settings area, under "general" section, set "server base url" value links in generate emails, etc, point right location. can set in sonar.properties file sonar.core.serverbaseurl
don't forget restart sonar service changes take effect.
Comments
Post a Comment