SonarQube 7.9.4 does not start

Hello people,

I upgraded from version 7.3 to version 7.9.4 and now no longer starts the sonarqube service.

I’ve tried as much as root as the user sonarqube and nothing solves.

My operating system is Linux.

Below is the user log sonarqube from /opt/sonarqube/logs/sonar.log

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

2020.07.30 09:03:45 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube-7.9.4/temp
2020.07.30 09:03:45 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2020.07.30 09:03:46 INFO  app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube-7.9.4/elasticsearch]: /opt/sonarqube-7.9.4/elasticsearch/bin/elasticsearch
2020.07.30 09:03:46 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020.07.30 09:03:46 INFO  app[][o.e.p.PluginsService] no modules loaded
2020.07.30 09:03:46 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
ERROR: [1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
2020.07.30 09:03:55 WARN  app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 78
2020.07.30 09:03:55 INFO  app[][o.s.a.SchedulerImpl] Process[es] is stopped
2020.07.30 09:03:55 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped

Thank you!

Hi @Raphael_Costa and welcome on this community forum !

I recommend you to have a look to this similar thread, it should be able to help you : ###Error max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535] installing SonarQube 8.1 on CentOS

Regards

Hi Julien,

I am new and do not understand much of SonarQube yet, but I understand that it is an update and should not occur these types of errors even more following the official documentation.

Could someone give a different suggestion?

Hello,

You upgraded from 7.3 (old and no longer maintained) to 7.9.4 that is an LTS version where some checks where added to be sure that SonarQube is running in good conditions. SonarQube 7.9.4 is stopping at startup because some conditions are not fulfilled.

Here you have an expected error message and the solution is to follow what is documented here: https://docs.sonarqube.org/7.9/requirements/requirements/ in the “Platform notes” section.

Regards
Alex

Thanks for the feedback.

Actually, I don’t need to update the version, just install the JaCoCo pluggin on Sonarqube but it gives the error error while downloading plugin ‘jacoco’ with version ‘1.1’. No compatible plugin found.

Any suggestion?

Hi,

That plugin is bundled. It’s not what’s causing startup to fail. To be really explicit about this, the problem is this:

That’s a quote from the error log in your first post. Until you solve that, SonarQube isn’t going to start up, regardless of what you install. The post that Julien linked to in his reply should help.

 
Ann

Hello,

Exactly!

Thank you all so much for your help!

I had the same issue. I got it resolved after changing the configuration of file-descriptors for sonar user.

Edited this file:
/etc/security/limits.conf
Added this line:
sonar - nofile 65535

In our casel the username for sonar application is sonar. So you may have to change your username accordingly for your setup.

1 Like