Process[es] is stopped SonarQube is stopped

Hello there,

I am getting an error whenever i’ve tried to start Sonarqube on my local machine

below are the logs

--> 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.04.04 13:59:49 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Users/Asif/Downloads/PSQ_Projects/sonarqube-9.3.0.51899/var/sonarqube/temp
2022.04.04 13:59:49 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:49877]
2022.04.04 13:59:49 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/Users/Asif/Downloads/PSQ_Projects/sonarqube-9.3.0.51899/elasticsearch]: /Users/Asif/Downloads/PSQ_Projects/sonarqube-9.3.0.51899/elasticsearch/bin/elasticsearch
2022.04.04 13:59:49 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
	at java.base/java.lang.System.setSecurityManager(System.java:416)
	at org.elasticsearch.bootstrap.Security.setSecurityManager(Security.java:99)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:70)
2022.04.04 13:59:49 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
2022.04.04 13:59:49 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2022.04.04 13:59:49 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

Hi,

Welcome to the community!

What’s in your server logs? The bit about the Security Manager in your snippet above is only a warning. The real problem will be found in the logs.

 
Ann

Hello,

Please check your java version. SonarQube server requires java 11 or 17. For more information check:
https://docs.sonarqube.org/latest/requirements/requirements/

2 Likes

hi,
I had the same issue and java version was the problem. I had java 18 so downloaded the java 11 version. In the " D:\sonarqube-9.4.0.54424\conf\warpper.conf " (i.e ur wrapper.conf file) change “wrapper.java.command=java” line to “wrapper.java.command=C:\Program Files\Java\jdk-11.0.15\bin\java” (ur java 11 bin path - add “\java” at end).After making the changes run the startsonar.bat file.

Thanks a lot !!!

I’ve faced the same issue when upgrading from Sonar 8.9 to 9.9 (that requires JDK17). You must use [Open]JDK17, but not 18 or above, otherwise the elasticsearch startup will fail with a mention to a deprecated SecurityManager in use. A WARNING appears if you use JDK17 but an ERROR will show up in later versions.

Maybe, the Sonar Team can update the code in

https://github.com/SonarSource/sonarqube/blob/master/server/sonar-process/src/main/java/org/sonar/process/PluginSecurityManager.java

to avoid the use of this SecurityManager and allow the Sonar server binaries to work on JDK17+

In fact, there is a Major Code Smell related to that in:

SonarQube

1 Like

Hi i get this error. Please help me how can i resolve it.

2023.06.15 12:51:54 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2023.06.15 12:52:02 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 78
2023.06.15 12:52:02 INFO app[o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.06.15 12:52:02 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
2023.06.15 12:52:03 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2023.06.15 12:52:03 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:44605]
2023.06.15 12:52:03 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch

Hi @KARTHIK_PT,

Please create a new thread.

 
Ann