Hi Nicholas
I did not find the solution on the documentation url which you have send me. However, I am getting following error output while checking sonar status
root@storage:/opt/sonar/sonar-runner-2.4/conf# /opt/sonar/sonar-runner-2.4/bin/sonar-runner status -X
SonarQube Runner 2.4
Java 1.8.0_151 Oracle Corporation (64-bit)
Linux 4.4.0-104-generic amd64
INFO: Error stacktraces are turned on.
INFO: Runner configuration file: /opt/sonar/sonar-runner-2.4/conf/sonar-runner.properties
INFO: Project configuration file: NONE
ERROR: Sonar server 'http://192.168.0.227:9000' can not be reached
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 0.056s
Final Memory: 2M/240M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
org.sonar.runner.kevinsawicki.HttpRequest$HttpRequestException: java.net.ConnectException: Connection refused (Connection refused)
at org.sonar.runner.kevinsawicki.HttpRequest.code(HttpRequest.java:1392)
at org.sonar.runner.kevinsawicki.HttpRequest.ok(HttpRequest.java:1417)
at org.sonar.runner.impl.ServerConnection.downloadString(ServerConnection.java:93)
at org.sonar.runner.impl.ServerVersion.downloadVersion(ServerVersion.java:47)
at org.sonar.runner.impl.ServerVersion.version(ServerVersion.java:38)
at org.sonar.runner.impl.ServerVersion.is37Compatible(ServerVersion.java:58)
at org.sonar.runner.impl.JarDownloader.checkVersionAndDownload(JarDownloader.java:36)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:71)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1944)
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1939)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1938)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at org.sonar.runner.kevinsawicki.HttpRequest.code(HttpRequest.java:1390)
... 15 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:357)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3000)
at org.sonar.runner.kevinsawicki.HttpRequest.header(HttpRequest.java:1903)
at org.sonar.runner.kevinsawicki.HttpRequest.contentType(HttpRequest.java:2308)
at org.sonar.runner.impl.ServerConnection.downloadString(ServerConnection.java:89)
... 13 more
root@storage:/opt/sonar/sonar-runner-2.4/conf#
Nicolas Bontoux | SonarSource
Support Engineer
root@storage:/opt/sonar/logs# ls -ltr total 116 -rw-r--r-- 1 root root 42640 Jan 7 18:12 es.2018-01-07.log -rw-r--r-- 1 root root 5330 Jan 8 16:39 es.2018-01-08.log -rw-r--r-- 1 root root 21320 Jan 9 16:42 es.log -rw-r--r-- 1 root root 30319 Jan 9 16:42 sonar.log root@storage:/opt/sonar/logs#
https://drive.google.com/file/d/1dh60U8z5NZNBxU6U2hAoEZ9sjsSsdpFm/view?usp=sharing
https://drive.google.com/file/d/1iFc5ibZRtAe8TtggI0gb87oJxv_Wtqpo/view?usp=sharing
NMAP Output
root@storage:/opt/sonar/logs# nmap -v -p 9000 192.168.0.227
Starting Nmap 7.01 ( https://nmap.org ) at 2018-01-09 16:54 +0545 Initiating SYN Stealth Scan at 16:54 Scanning storage.bsaitechnosales.com (192.168.0.227) [1 port] Completed SYN Stealth Scan at 16:54, 0.22s elapsed (1 total ports) Nmap scan report for storage.example.com (192.168.0.227) Host is up (0.000041s latency). PORT STATE SERVICE 9000/tcp closed cslistener
Read data files from: /usr/bin/../share/nmap Nmap done: 1 IP address (1 host up) scanned in 0.32 seconds Raw packets sent: 1 (44B) | Rcvd: 2 (84B)
ES LOG OUTPUT 2018.01.09 09:21:25 ERROR es[][o.e.b.Bootstrap] Exception java.lang.RuntimeException: can not run elasticsearch as root at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) ~[ elasticsearch-5.6.3.jar:5.6.3] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:195) ~[elasticsearc h-5.6.3.jar:5.6.3] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) [elasticsearch- 5.6.3.jar:5.6.3]
SONAR.LOG Output
root@storage:/opt/sonar/logs# more 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.
2018.01.07 15:23:08 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/temp 2018.01.07 15:23:08 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0. 1:9001 2018.01.07 15:23:08 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ip cIndex=1, logFilenamePrefix=es]] from [/opt/sonar/elasticsearch]: /opt/sonar/elasticsearc h/bin/elasticsearch -Epath.conf=/opt/sonar/temp/conf/es 2018.01.07 15:23:08 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up a nd running 2018.01.07 15:23:08 INFO app[][o.e.p.PluginsService] no modules loaded 2018.01.07 15:23:08 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.tr ansport.Netty4Plugin] 2018.01.07 15:23:08 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1 2018.01.07 15:23:08 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped 2018.01.07 15:23:08 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped Wrapper Stopped
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/6988313c-7879-4b76-8cce-05089bf23dfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Brandhof | SonarSource
Co-Founder & Tech Lead
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/6988313c-7879-4b76-8cce-05089bf23dfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/6988313c-7879-4b76-8cce-05089bf23dfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Simon Brandhof | SonarSource
Co-Founder & Tech Lead
http://sonarsource.com
You should not run /opt/sonar/bin/linux-x86-64/sonar.sh with sudo.
On Wed, 10 Jan 2018 at 08:24 BSAI Techno Sales Pvt. Ltd. <bsaitec...@gmail.com> wrote:
Hi SimonThanks for the response. So what is the solution ? As i am begineers in this. It will be great help if you can guide me to make sonarqube make work.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/6988313c-7879-4b76-8cce-05089bf23dfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Simon Brandhof | SonarSource
Co-Founder & Tech Lead
http://sonarsource.com