Wrapper stopped again and again when i tried to start sonarqube.LINUX MACHINE


(Rajaneesh K) #1

Getting this error while starting sonar

--> 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.

 [o.s.a.AppFileSystem] Cleaning or creating temp directory /root/sonarqube-7.6/temp
[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001

[o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/root/sonarqube-7.6/elasticsearch]: /root/sonarqube-7.6/elasticsearch/bin/elasticsearch -Epath.conf=/root/sonarqube-7.6/temp/conf/es

[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N

[o.e.p.PluginsService] no modules loaded
[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]

 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1

 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped

 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

<-- Wrapper Stopped

(G Ann Campbell) #2

Hi,

What shows up in your other logs?

 
Ann


(Rajaneesh K) #3

Cleaning or creating temp directory /root/sonarqube-7.6/temp
Elasticsearch listening on /127.0.0.1:9001
Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/root/sonarqube-7.6/elasticsearch]: /root/sonarqube-7.6/elasticsearch/bin/elasticsearch -Epath.conf=/root/sonarqube-7.6/temp/conf/es
Waiting for Elasticsearch to be up and running

OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N

no modules loaded
loaded plugin [org.elasticsearch.transport.Netty4Plugin]
Process exited with exit value [es]: 1
Process [es] is stopped
SonarQube is stopped
<-- Wrapper Stopped


(Rajaneesh K) #4

1)java.lang.RuntimeException: can not run elasticsearch as root.
2) java.lang.RuntimeException: can not run elasticsearch as root


(G Ann Campbell) #5

Hi,

I’ve code-formatted the logs in two of your posts in this thread (one of which you’ve since edited to boil down the logs to the essential error messages). It would be nice if you would handle that in the future, since code formatting makes logs much easier to read. :slight_smile:

What, if anything, do you take from these logs, especially the second one?

 
Ann


(Rajaneesh K) #6

Hi ann,

Sorry for the inconvenience caused it was a result of hurry on work.I have edited the Logs and pasted it with the errors.


(G Ann Campbell) #7

Hi,

You’ve pulled out into a separate thread the relevant parts of the error message. Elasticsearch can’t run as root, and SonarQube can’t run without Elasticsearch, therefore SonarQube can’t run as root. I was looking up the documentation reference to send you when I realized this is not in the docs. I don’t know how we missed that or where it went, but I’ll make sure it’s included in the docs for the next release.

 
Ann

Edit: Actually it was in there, but not very prominent. It will be more obvious in the docs for the next release.