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