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

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

Hi,

What shows up in your other logs?

 
Ann

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

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

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

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.

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.

A post was split to a new topic: Can’t start SonarQube

hi
i am facing issues

→ Wrapper Stopped
→ 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.

2022.07.26 11:10:03 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2022.07.26 11:10:03 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2022.07.26 11:10:03 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2022.07.26 11:10:03 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2022.07.26 11:10:03 INFO app[o.e.p.PluginsService] no modules loaded
2022.07.26 11:10:03 INFO app[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
2022.07.26 11:10:09 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 78
2022.07.26 11:10:09 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2022.07.26 11:10:09 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped

Hi,

Welcome to the community!

Please create a new topic and provide all your details, including SonarQube version and any errors you find in your server logs

 
Ann