SonarQube Dev edition only runs in console

  • which versions are you using: SonarQube Developer
  • how is SonarQube deployed: downloaded and extracted the zip
  • what are you trying to achieve: To get it started with the start command instead of console command.

I have a FreeBSD14.0 server setup for this specific SonarQube.
I followed the instructions Sonarqube gives for installation. The server has OpenJDK17 for Java and Posgresql15.x alongside the Sonarqube developers editions I downloaded and extracted from a .zip from the official site.

The files, etc. have their owner set to the sonarqube user made specifically to run this application.

When as that specific sonarqube user I run the /bin/linux-x86-64/ console command the application starts just fine.
However, when I do /bin/linux-x86-64/ start instead it won’t start. The logs produce no errors as to why.

Anyone have an idea how that is possible and how to resolve it? The problem with starting it in console is of course that I can’t close that console or it shuts down sonarqube meaning I’d have to work around with screen to open the console in that, etc. which isn’t a nice solution.

Only log entries that appear when doing start are:

$ less logs/sonar.log
2024.03.15 09:04:27 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /home/sonarqube/sonarqube-
2024.03.15 09:04:27 INFO  app[][] Elasticsearch listening on [HTTP:, TCP:]
2024.03.15 09:04:27 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/home/sonarqube/sonarqube-]: /usr/local/openjdk17/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/home/sonarqube/sonarqube- -Des.path.conf=/home/sonarqube/sonarqube- -Des.distribution.type=tar -cp /home/sonarqube/sonarqube-*:/home/sonarqube/sonarqube-* org.elasticsearch.launcher.CliToolLauncher
2024.03.15 09:04:27 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running

and the logs/nohup.log does only mentions a warning a java.lang which is deprecated:

WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/home/sonarqube/sonarqube-
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release

Aside from that there are no other logs being created or entries made in regards to this software


Welcome to the community!

You say no other logs show up, but to be explicit, you’ve checked all the server logs?

Also, what user does the service start SonarQube as?


Hello Ann,

Thank you for your reply. To answer your question: Yes, I did check all the server logs.
And we started sonarqube with a user sonarqube that we specifically made for it and all the files, etc. were adjusted to be owned and executable by that user.

We have since replaced the server with an Ubuntu one on which it works just fine with the same setup as we had for it on the other OS.

1 Like