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
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
Hi,
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.
Ann
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: java.io.IOException: Unabl$
java.io.IOException: Unable to create directory /var/sonarqube/data
at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:2491)
at org.sonar.application.AppFileSystem.createDirectory(AppFileSystem.ja$
at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:59)
at org.sonar.application.App.start(App.java:62)
at org.sonar.application.App.main(App.java:98)
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(Method.java:566)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.jav$
at java.base/java.lang.Thread.run(Thread.java:834)”"""
Please advise what to do next?
Hi,
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.
Ann
I have done, now there is another error:
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
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[o.s.a.es.EsSettings] 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…
Please note i have already set the required values dynamically according to this article: https://docs.sonarqube.org/latest/requirements/requirements/
Here’s a screenshot of the configuration.
Hi,
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.
Ann