My SonarQube web server not started! Because backend Elasticsearch engine down.
vagrant@vagrant-ubuntu-trusty-64:~$ sudo systemctl status sonar
sonar.service - SonarQube service
Loaded: loaded (/etc/systemd/system/sonar.service; enabled)
Active: active (running) since Tue 2024-09-03 19:26:49 EEST; 3s ago
Process: 7429 ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop (code=exited, status=0/SUCCESS)
Process: 7460 ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start (code=exited, status=0/SUCCESS)
CGroup: name=dsystemd:/system/sonar.service
├─7483 java -Xms8m -Xmx32m --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAME…
└─7508 /usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli…
Sep 03 19:26:49 vagrant-ubuntu-trusty-64.sunse.ua sonar.sh[7460]: /usr/bin/java
Sep 03 19:26:49 vagrant-ubuntu-trusty-64.sunse.ua sonar.sh[7460]: Starting SonarQube…
Sep 03 19:26:49 vagrant-ubuntu-trusty-64.sunse.ua sonar.sh[7460]: Started SonarQube.
However es.log
2024.09.03 19:10:32 ERROR es[o.e.b.Elasticsearch] fatal exception while booting Elasticsearch
java.util.ServiceConfigurationError: org.elasticsearch.nativeaccess.lib.NativeLibraryProvider: Provider org.elasticsearch.nativeaccess.jna.JnaNativeLibraryProvider could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:582) ~[?:?]
at java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:804) ~[?:?]
at java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:722) ~[?:?]
at java.util.ServiceLoader$3.next(ServiceLoader.java:1393) ~[?:?]
at java.util.ServiceLoader.findFirst(ServiceLoader.java:1802) ~[?:?]
at org.elasticsearch.core.internal.provider.ProviderLocator.loadAsModule(ProviderLocator.java:132) ~[elasticsearch-core-8.13.4.jar:?]
at org.elasticsearch.core.internal.provider.ProviderLocator.load(ProviderLocator.java:109) ~[elasticsearch-core-8.13.4.jar:?]
at java.security.AccessController.doPrivileged(AccessController.java:554) ~[?:?]
at org.elasticsearch.core.internal.provider.ProviderLocator.get(ProviderLocator.java:100) ~[elasticsearch-core-8.13.4.jar:?]
at org.elasticsearch.nativeaccess.lib.NativeLibraryProvider.loadJnaImpl(NativeLibraryProvider.java:91) ~[elasticsearch-native-8.13.4.jar:?]
at org.elasticsearch.nativeaccess.lib.NativeLibraryProvider.loadProvider(NativeLibraryProvider.java:69) ~[elasticsearch-native-8.13.4.jar:?]
at org.elasticsearch.nativeaccess.lib.NativeLibraryProvider$Holder.(NativeLibraryProvider.java:97) ~[elasticsearch-native-8.13.4.jar:?]
at org.elasticsearch.nativeaccess.lib.NativeLibraryProvider.instance(NativeLibraryProvider.java:43) ~[elasticsearch-native-8.13.4.jar:?]
at org.elasticsearch.nativeaccess.NativeAccessHolder.(NativeAccessHolder.java:22) ~[elasticsearch-native-8.13.4.jar:?]
at org.elasticsearch.nativeaccess.NativeAccess.instance(NativeAccess.java:20) ~[elasticsearch-native-8.13.4.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.java:282) ~[elasticsearch-8.13.4.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:168) ~[elasticsearch-8.13.4.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:73) ~[elasticsearch-8.13.4.jar:?]
Caused by: java.lang.NullPointerException: Cannot read the array length because “” is null
at org.elasticsearch.nativeaccess.lib.NativeLibraryProvider.(NativeLibraryProvider.java:32) ~[elasticsearch-native-8.13.4.jar:?]
at org.elasticsearch.nativeaccess.jna.JnaNativeLibraryProvider.(JnaNativeLibraryProvider.java:18) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:498) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:479) ~[?:?]
at java.util.ServiceLoader$ProviderImpl$2.run(ServiceLoader.java:788) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:691) ~[?:?]
at java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:793) ~[?:?]
… 16 more
and nohup.log:
2024.09.03 19:34:36 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2024.09.03 19:34:37 INFO app[o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:53717]
2024.09.03 19:34:37 INFO app[o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [/opt/sonarqube/elasticsearch]: /usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xms4m -Xmx64m -XX:+UseSerialGC -Dcli.name=server -Dcli.script=./bin/elasticsearch -Dcli.libs=lib/tools/server-cli -Des.path.home=/opt/sonarqube/elasticsearch -Des.path.conf=/opt/sonarqube/temp/conf/es -Des.distribution.type=tar -cp /opt/sonarqube/elasticsearch/lib/:/opt/sonarqube/elasticsearch/lib/cli-launcher/ org.elasticsearch.launcher.CliToolLauncher
2024.09.03 19:34:37 INFO app[o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running