SonarQube shuts back down

I have a similar problem, sonarqube service keep failing to stay started. I installed SonarQube server on ubuntu 18.04

Below is the error in sonar.log


Welcome to the community!

In future, it would be far more helpful if you would copy/paste the text of your error into your posts. Your screenshot is difficult to read, and it’s also very difficult to copy/paste excerpts of it for discussion. Which is a shame, because the error is quite clear. Here’s a screenshot of your screenshot:

The user running SonarQube doesn’t have the required minimum resources.


My bad,

Thanks for the Tip!

I have allocated required resources but now I am getting this error message

“”“WrapperSimpleApp: Encountered an error running main: Unabl$ Unable to create directory /var/sonarqube/data
at org.sonar.application.AppFileSystem.createDirectory(AppFileSystem.ja$
at org.sonar.application.AppFileSystem.reset(
at org.sonar.application.App.start(
at org.sonar.application.App.main(
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nati$
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Nativ$
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(D$
at java.base/java.lang.reflect.Method.invoke(
at java.base/”"""

Please advise what to do next?


It looks like the user running SonarQube doesn’t have the file system permissions it needs

The easiest thing to do is create the directory for it and then chown the directory to the user.


I have done, now there is another error:

Wrapper (Version 3.2.3)
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.

2019.10.25 09:07:54 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directo$
2019.10.25 09:07:54 INFO app[] Elasticsearch listening on /127.0$
2019.10.25 09:07:54 INFO app[o.s.a.ProcessLauncherImpl] Launch process[[key=‘es’, i$
2019.10.25 09:07:55 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be u$
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 2019.10.25 09:07:55 INFO app[][o.e.p.PluginsService] no modules loaded 2019.10.25 09:07:55 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at leas
2019.10.25 09:08:00 WARN app[o.s.a.p.AbstractManagedProcess] Process exited with ex$
2019.10.25 09:08:00 INFO app[o.s.a.SchedulerImpl] Process[es] is stopped
2019.10.25 09:08:00 INFO app[o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
–> Wrapper Started as Daemon
Launching a JVM…

here’s a screenshot for more clarity on the error message.

Please note i have already set the required values dynamically according to this article:

Here’s a screenshot of the configuration.


You helpfully showed a screenshot of the output of the commands to show the current limits for the resource limits in question. However, those limits can be either system-wide or per-user. You need to ensure that the user running SonarQube has the expected limits.