Windows installation issues (community Edition) zstd.dll not found

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • Community Build
  • how is SonarQube deployed: zip, Docker, Helm
  • Zip
  • what are you trying to achieve
  • get it running/installed
  • what have you tried so far to achieve this
  • followed install instructions cannot get installed on windows server

Issue:

Sonarcube doesnt start getting error

The specified module could not be found.

Native library (win32-x86-64/zstd.dll) not found in resource path ()
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:307) ~[jna-5.12.1.jar:?]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:467) ~[jna-5.12.1.jar:?]
at com.sun.jna.Native.register(Native.java:1774) ~[jna-5.12.1.jar:?]
at org.elasticsearch.nativeaccess.jna.JnaZstdLibrary.(JnaZstdLibrary.java:32) ~[?:?]
at org.elasticsearch.nativeaccess.lib.NativeLibraryProvider.getLibrary(NativeLibraryProvider.java:58) ~[elasticsearch-native-8.14.1.jar:?]
at org.elasticsearch.nativeaccess.AbstractNativeAccess.(AbstractNativeAccess.java:28) ~[elasticsearch-native-8.14.1.jar:?]
at org.elasticsearch.nativeaccess.WindowsNativeAccess.(WindowsNativeAccess.java:18) ~[elasticsearch-native-8.14.1.jar:?]
at org.elasticsearch.nativeaccess.NativeAccessHolder.(NativeAccessHolder.java:32) ~[elasticsearch-native-8.14.1.jar:?]
at org.elasticsearch.nativeaccess.NativeAccess.instance(NativeAccess.java:22) ~[elasticsearch-native-8.14.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.java:285) ~[elasticsearch-8.14.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:169) ~[elasticsearch-8.14.1.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:74) ~[elasticsearch-8.14.1.jar:?]
Suppressed: java.lang.UnsatisfiedLinkError: The specified module could not be found.

Tried to install dll manually in the E:\Sonarcube\elasticsearch\lib\platform\ upon starting still comes up as not found.

1 Like

Hi,

What version of SonarQube Server are you trying to install? Also, please go to a console and give us the results of java --version.

 
Thx,
Ann

10.7.0.96327
jdk 17.0.10

Hi,

Could we the full output of the command, please?

 
Thx,
Ann

I want to try out SonarQube and i have exactly the same problem. OpenJDK17 is installed.

Hi @susukunz,

Same question to you: can we get the full output of the java --version command, please?

 
Thx,
Ann

Same problem here with sonarqube-24.12.0.100206:

java version “17.0.13” 2024-10-15 LTS
Java™ SE Runtime Environment (build 17.0.13+10-LTS-268)
Java HotSpot™ 64-Bit Server VM (build 17.0.13+10-LTS-268, mixed mode, sharing)

1 Like

Hi @Guilherme_Duarte_Cos,

Welcome to the community, and thanks for sharing your full Java version information!

I see that you’re using a JRE (Java Runtime Environment). Could you try using a JDK (Java Development Kit) instead?

 
Thx,
Ann

I am sure it’s a JDK. I have already checked the README and release files.
IMPLEMENTOR=“Oracle Corporation”
JAVA_RUNTIME_VERSION=“17.0.13+10-LTS-268”
JAVA_VERSION=“17.0.13”
JAVA_VERSION_DATE=“2024-10-15”
LIBC=“default”
MODULES=“java.base java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.logging java.management java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se java.smartcardio jdk.accessibility jdk.internal.jvmstat jdk.attach jdk.charsets jdk.compiler jdk.crypto.ec jdk.crypto.cryptoki jdk.crypto.mscapi jdk.dynalink jdk.internal.ed jdk.editpad jdk.hotspot.agent jdk.httpserver jdk.incubator.foreign jdk.incubator.vector jdk.internal.le jdk.internal.opt jdk.internal.vm.ci jdk.internal.vm.compiler jdk.internal.vm.compiler.management jdk.jartool jdk.javadoc jdk.jcmd jdk.management jdk.management.agent jdk.jconsole jdk.jdeps jdk.jdwp.agent jdk.jdi jdk.jfr jdk.jlink jdk.jpackage jdk.jshell jdk.jsobject jdk.jstatd jdk.localedata jdk.management.jfr jdk.naming.dns jdk.naming.rmi jdk.net jdk.nio.mapmode jdk.random jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported jdk.unsupported.desktop jdk.xml.dom jdk.zipfs”
OS_ARCH=“x86_64”
OS_NAME=“Windows”
SOURCE=“.:git:463139de7ac8 open:git:7cd8afc2fa1d”


Thank you for using the Oracle JDK.
The license for this software can be found in the LICENSE file.

Information on installing, configuring, and running this program is available on https://java.com/readme

Documentation on the Java SE Platform can be found on Java Documentation - Get Started

Hi,

Thanks for confirming.

I’ve flagged this for more expert eyes.

 
Ann

Hi all,

Firstly, thank you very much for your reports. We are already working on the upgrade to more recent version of elasticsearch so this feedback is valuable to us and we will make some fixes in the area of elasticsearch loading that will be released in the next version of SonarQube Server and SonarQube Community Build.

Secondly, I investigated the issue you are having. It seems like on many Windows machines zstd library is shipped with some product installed on the PC (i.e. you can find it in the popular Git Bash at mingw64\bin\libzstd.dll ). In case this library is present somewhere on the machine (and it is on your PATH) then the SonarQube Server & Community Build start just fine, without any related errors or warnings.
To confirm these findings I would like to ask you to:

  1. Please add this line sonar.search.javaAdditionalOpts=-Djna.debug_load=true to your sonar.properties file and start SonarQube. You should see in the logs something like this:
2024.12.05 15:52:58 INFO  es[][c.s.j.Native] Extracting library to C:\git\sonar-enterprise-latest\private\edition-enterprise\build\distributions\sonarqube-10.7-SNAPSHOT\temp\jna15686936857704923098.dll
2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Looking for library zstd
2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Adding paths from jna.library.path: [redacted].
2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Trying zstd.dll
2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Loading failed with message: The specified module could not be found.

2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Adding system paths: []
2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Trying zstd.dll
2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Loading failed with message: The specified module could not be found.

2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Looking for lib- prefix
2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Trying C:\Programy\Git\mingw64\bin\libzstd.dll
2024.12.05 15:52:58 INFO  es[][c.s.j.NativeLibrary] Found library zstd at C:\Programy\Git\mingw64\bin\libzstd.dll

Please compare it and share what is different in your case.

  1. Then, you can download elasticsearch-8.14.1 (or the other version that is compatible with your SonarQube version), unzip it anywhere in your system and add the folder elasticsearch-8.14.1\lib\platform\windows-x64 to your PATH in your environmental variables. Java should try to load native libraries that are on your PATH.
    Run SonarQube again and report back :slight_smile: .
1 Like

I am having the same error when try to run StartSonar.bat. Here is the related info and the error logs:

SonarQube community build downloaded today, from here, extracted to C:\sonarqube.

Following installation instructions from here.

Downloaded elasticsearch-8-14-1 and extracted to c:\elasticsearch

Java version:
image

environment variables:
Name: zstd
Value: C:\Program Files\Git\mingw64\bin\libzstd.dll

Name: elasticsearch
Value: C:\elasticsearch\elasticsearch-8.14.1\lib\platform\windows-x64

sonar.properties
Added this to sonar.properties file in the end:
sonar.search.javaAdditionalOpts=-Djna.debug_load=true

es.log:
es.log (25.4 KB)

sonar.log
sonar.log (123.8 KB)

Same problem and library not found…

2024.12.06 10:06:10 INFO  es[][c.s.j.Native] Looking in classpath from jdk.internal.loader.ClassLoaders$AppClassLoader@108c4c35 for /com/sun/jna/win32-x86-64/jnidispatch.dll
2024.12.06 10:06:10 INFO  es[][c.s.j.Native] Found library resource at jar:file:///C:/Java/sonarqube-24.12.0.100206/elasticsearch/lib/jna-5.12.1.jar!/com/sun/jna/win32-x86-64/jnidispatch.dll
2024.12.06 10:06:11 INFO  es[][c.s.j.Native] Extracting library to C:\Java\sonarqube-24.12.0.100206\temp\jna8205134001196727460.dll
2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Looking for library zstd
2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Adding paths from jna.library.path: C:\Java\sonarqube-24.12.0.100206\elasticsearch\lib\platform\windows-x64;C:\Java\JDK17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Python312\Scripts\;C:\Python312\;C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Boxstarter;C:\Python310\Scripts\;C:\Python310\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Java\wget;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Program Files\Amazon\AWSCLIV2\;C:\Java\JDK17\bin;C:\Program Files\nodejs\;C:\Users\gdcosta.TOPAZ\AppData\Local\Microsoft\WindowsApps;;.
2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Trying zstd.dll
2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Loading failed with message: Não foi possível encontrar o módulo especificado.

2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Adding system paths: []
2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Trying zstd.dll
2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Loading failed with message: Não foi possível encontrar o módulo especificado.

2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Looking for lib- prefix
2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Trying libzstd.dll
2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Loading failed with message: Não foi possível encontrar o módulo especificado.

2024.12.06 10:06:11 INFO  es[][c.s.j.Native] Looking in classpath from org.elasticsearch.core.internal.provider.EmbeddedImplClassLoader@42b3b079 for zstd
2024.12.06 10:06:11 INFO  es[][c.s.j.NativeLibrary] Loading failed with message: Native library (win32-x86-64/zstd.dll) not found in resource path ()
2024.12.06 10:06:11 WARN  es[][o.e.n.NativeAccess] Unable to load native provider. Native methods will be disabled.
java.lang.UnsatisfiedLinkError: Unable to load library 'zstd':
Não foi possível encontrar o módulo especificado.

Não foi possível encontrar o módulo especificado.

Não foi possível encontrar o módulo especificado.

Native library (win32-x86-64/zstd.dll) not found in resource path ()

Hi @Sami-j, @Guilherme_Duarte_Cos,

Have you tried the workaround Lukasz described above?

 
Ann

Yes I did, as mentioned in my message earlier.

Yes I did. The message was the result after the first step… and now after step 2

2024.12.06 10:41:05 INFO  es[][c.s.j.Native] Looking in classpath from jdk.internal.loader.ClassLoaders$AppClassLoader@108c4c35 for /com/sun/jna/win32-x86-64/jnidispatch.dll
2024.12.06 10:41:05 INFO  es[][c.s.j.Native] Found library resource at jar:file:///C:/Java/sonarqube-24.12.0.100206/elasticsearch/lib/jna-5.12.1.jar!/com/sun/jna/win32-x86-64/jnidispatch.dll
2024.12.06 10:41:05 INFO  es[][c.s.j.Native] Extracting library to C:\Java\sonarqube-24.12.0.100206\temp\jna15081719215397235887.dll
2024.12.06 10:41:05 INFO  es[][c.s.j.NativeLibrary] Looking for library zstd
2024.12.06 10:41:05 INFO  es[][c.s.j.NativeLibrary] Adding paths from jna.library.path: C:\Java\sonarqube-24.12.0.100206\elasticsearch\lib\platform\windows-x64;C:\Java\JDK17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Python312\Scripts\;C:\Python312\;C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Boxstarter;C:\Python310\Scripts\;C:\Python310\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Java\wget;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Program Files\Amazon\AWSCLIV2\;C:\Java\JDK17\bin;C:\Program Files\nodejs\;C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64\;C:\Users\gdcosta.TOPAZ\AppData\Local\Microsoft\WindowsApps;C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64;;.
2024.12.06 10:41:05 INFO  es[][c.s.j.NativeLibrary] Trying C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64\zstd.dll
2024.12.06 10:41:05 INFO  es[][c.s.j.NativeLibrary] Found library zstd at C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64\zstd.dll
2024.12.06 10:41:05 INFO  es[][o.e.n.NativeAccess] Using [jna] native provider and native methods for [Windows]
2024.12.06 10:41:05 INFO  es[][c.s.j.NativeLibrary] Looking for library kernel32
2024.12.06 10:41:05 INFO  es[][c.s.j.NativeLibrary] Adding paths from jna.library.path: C:\Java\sonarqube-24.12.0.100206\elasticsearch\lib\platform\windows-x64;C:\Java\JDK17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Python312\Scripts\;C:\Python312\;C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Boxstarter;C:\Python310\Scripts\;C:\Python310\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Java\wget;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Program Files\Amazon\AWSCLIV2\;C:\Java\JDK17\bin;C:\Program Files\nodejs\;C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64\;C:\Users\gdcosta.TOPAZ\AppData\Local\Microsoft\WindowsApps;C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64;;.
2024.12.06 10:41:05 INFO  es[][c.s.j.NativeLibrary] Trying C:\Windows\system32\kernel32.dll
2024.12.06 10:41:05 INFO  es[][c.s.j.NativeLibrary] Found library kernel32 at C:\Windows\system32\kernel32.dll
2024.12.06 10:41:07 INFO  es[][o.e.n.Node] version[8.14.3], pid[20308], build[tar/d55f984299e0e88dee72ebd8255f7ff130859ad0/2024-07-07T22:04:49.882652950Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/17.0.13/17.0.13+10-LTS-268]
2024.12.06 10:41:07 INFO  es[][o.e.n.Node] JVM home [C:\Java\JDK17], using bundled JDK [false]
2024.12.06 10:41:07 INFO  es[][o.e.n.Node] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=org.elasticsearch.preallocate, --add-opens=org.apache.lucene.core/org.apache.lucene.store=org.elasticsearch.vec, -XX:ReplayDataFile=logs/replay_pid%p.log, -Djava.library.path=C:\Java\sonarqube-24.12.0.100206\elasticsearch\lib\platform\windows-x64;C:\Java\JDK17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Python312\Scripts\;C:\Python312\;C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Boxstarter;C:\Python310\Scripts\;C:\Python310\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Java\wget;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Program Files\Amazon\AWSCLIV2\;C:\Java\JDK17\bin;C:\Program Files\nodejs\;C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64\;C:\Users\gdcosta.TOPAZ\AppData\Local\Microsoft\WindowsApps;C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64;;., -Djna.library.path=C:\Java\sonarqube-24.12.0.100206\elasticsearch\lib\platform\windows-x64;C:\Java\JDK17\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Python312\Scripts\;C:\Python312\;C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Boxstarter;C:\Python310\Scripts\;C:\Python310\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Java\wget;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Program Files\Amazon\AWSCLIV2\;C:\Java\JDK17\bin;C:\Program Files\nodejs\;C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64\;C:\Users\gdcosta.TOPAZ\AppData\Local\Microsoft\WindowsApps;C:\Java\elasticsearch-8.14.1\lib\platform\windows-x64;;., -Des.distribution.type=tar, -XX:+UseG1GC, -Djava.io.tmpdir=C:\Java\sonarqube-24.12.0.100206\temp, -XX:ErrorFile=C:\Java\sonarqube-24.12.0.100206\logs\es_hs_err_pid%p.log, -Xlog:disable, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djna.tmpdir=C:\Java\sonarqube-24.12.0.100206\temp, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=COMPAT, -Des.enforce.bootstrap.checks=true, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Djna.debug_load=true, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, --module-path=C:\Java\sonarqube-24.12.0.100206\elasticsearch\lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
2024.12.06 10:41:07 INFO  es[][o.e.n.Node] Default Locale [pt_BR]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [rest-root]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-core]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-redact]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-security]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-apm-data]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [old-lucene-versions]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [counted-keyword]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [x-pack-inference]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [health-shards-availability]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [aggregations]
2024.12.06 10:41:13 INFO  es[][o.e.p.PluginsService] loaded module [apm]
2024.12.06 10:41:14 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[(C:)]], net usable_space [18.9gb], net total_space [237.8gb], types [NTFS]
2024.12.06 10:41:14 INFO  es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2024.12.06 10:41:14 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [KeH-ykUWRzGFsdacZ_j_xQ], cluster name [sonarqube], roles [data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest, data_frozen, ml]
2024.12.06 10:41:18 INFO  es[][o.e.f.FeatureService] Registered local node features [desired_node.version_deprecated, features_supported, file_settings, health.extended_repository_indicator, knn_retriever_supported, license-trial-independent-version, retrievers_supported, standard_retriever_supported, usage.data_tiers.precalculate_stats]
2024.12.06 10:41:18 INFO  es[][o.e.x.s.Security] Security is disabled
2024.12.06 10:41:18 INFO  es[][o.e.x.a.APMPlugin] APM ingest plugin is disabled
2024.12.06 10:41:19 INFO  es[][o.e.t.a.APM] Sending apm metrics is disabled
2024.12.06 10:41:19 INFO  es[][o.e.t.a.APM] Sending apm tracing is disabled
2024.12.06 10:41:19 INFO  es[][o.e.t.n.NettyAllocator] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=1mb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=4mb, heap_size=512mb}]
2024.12.06 10:41:19 INFO  es[][o.e.i.r.RecoverySettings] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
2024.12.06 10:41:19 INFO  es[][o.e.d.DiscoveryModule] using discovery type [single-node] and seed hosts providers [settings]
2024.12.06 10:41:21 INFO  es[][o.e.n.Node] initialized
2024.12.06 10:41:21 INFO  es[][o.e.n.Node] starting ...
2024.12.06 10:41:22 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:50688}, bound_addresses {127.0.0.1:50688}
2024.12.06 10:41:22 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2024.12.06 10:41:22 INFO  es[][o.e.c.c.ClusterBootstrapService] this node has not joined a bootstrapped cluster yet; [cluster.initial_master_nodes] is set to [sonarqube]
2024.12.06 10:41:22 INFO  es[][o.e.c.c.Coordinator] setting initial configuration to VotingConfiguration{KeH-ykUWRzGFsdacZ_j_xQ}
2024.12.06 10:41:22 INFO  es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined in term 1)[_FINISH_ELECTION_, {sonarqube}{KeH-ykUWRzGFsdacZ_j_xQ}{GxK-E5yRR-qQ4bglzGtq4Q}{sonarqube}{127.0.0.1}{127.0.0.1:50688}{cdfhilmrstw}{8.14.3}{7000099-8505000} completing election], term: 1, version: 1, delta: master node changed {previous [], current [{sonarqube}{KeH-ykUWRzGFsdacZ_j_xQ}{GxK-E5yRR-qQ4bglzGtq4Q}{sonarqube}{127.0.0.1}{127.0.0.1:50688}{cdfhilmrstw}{8.14.3}{7000099-8505000}]}
2024.12.06 10:41:22 INFO  es[][o.e.c.c.CoordinationState] cluster UUID set to [wy73oIlQRJ2W7aN3hc9dqA]
2024.12.06 10:41:23 INFO  es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{KeH-ykUWRzGFsdacZ_j_xQ}{GxK-E5yRR-qQ4bglzGtq4Q}{sonarqube}{127.0.0.1}{127.0.0.1:50688}{cdfhilmrstw}{8.14.3}{7000099-8505000}]}, term: 1, version: 1, reason: Publication{term=1, version=1}
2024.12.06 10:41:23 INFO  es[][o.e.c.f.AbstractFileWatchingService] starting file watcher ...
2024.12.06 10:41:23 INFO  es[][o.e.c.f.AbstractFileWatchingService] file settings service up and running [tid=33]
2024.12.06 10:41:23 INFO  es[][o.e.r.s.FileSettingsService] setting file [C:\Java\sonarqube-24.12.0.100206\temp\conf\es\operator\settings.json] not found, initializing [file_settings] as empty
2024.12.06 10:41:23 INFO  es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2024.12.06 10:41:23 INFO  es[][o.e.c.c.NodeJoinExecutor] node-join: [{sonarqube}{KeH-ykUWRzGFsdacZ_j_xQ}{GxK-E5yRR-qQ4bglzGtq4Q}{sonarqube}{127.0.0.1}{127.0.0.1:50688}{cdfhilmrstw}{8.14.3}{7000099-8505000}] with reason [completing election]
2024.12.06 10:41:23 INFO  es[][o.e.n.Node] started {sonarqube}{KeH-ykUWRzGFsdacZ_j_xQ}{GxK-E5yRR-qQ4bglzGtq4Q}{sonarqube}{127.0.0.1}{127.0.0.1:50688}{cdfhilmrstw}{8.14.3}{7000099-8505000}{xpack.installed=true, rack_id=sonarqube}
2024.12.06 10:41:23 INFO  es[][o.e.g.GatewayService] recovered [0] indices into cluster_state
2024.12.06 10:41:23 INFO  es[][o.e.h.n.s.HealthNodeTaskExecutor] Node [{sonarqube}{KeH-ykUWRzGFsdacZ_j_xQ}] is selected as the current health node.
2024.12.06 10:41:24 INFO  es[][o.e.l.ClusterStateLicenseService] license [cda7a6c6-ee7e-4fd9-8404-af1ccb27bcbd] mode [basic] - valid
2024.12.06 10:41:38 INFO  es[][o.e.c.m.MetadataCreateIndexService] [metadatas] creating index, cause [api], templates [], shards [1]/[0]
2024.12.06 10:41:39 INFO  es[][o.e.c.r.a.AllocationService] current.health="RED" message="Cluster health status changed from [YELLOW] to [RED] (reason: [reconcile-desired-balance])." previous.health="YELLOW" reason="reconcile-desired-balance"
2024.12.06 10:41:53 WARN  es[][o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [KeH-ykUWRzGFsdacZ_j_xQ][sonarqube][C:\Java\sonarqube-24.12.0.100206\data\es8] free: 18.6gb[7.8%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete
2024.12.06 10:42:39 INFO  es[][o.e.c.m.MetadataMappingService] [metadatas/QYOGXGsmR6CkZO0knMjM1Q] create_mapping
2024.12.06 10:42:53 WARN  es[][o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [KeH-ykUWRzGFsdacZ_j_xQ][sonarqube][C:\Java\sonarqube-24.12.0.100206\data\es8] free: 18.6gb[7.8%], shards will be relocated away from this node; currently relocating away shards totalling [0] bytes; the node is expected to continue to exceed the high disk watermark when these relocations are complete
2024.12.06 10:43:10 INFO  es[][o.e.n.Node] stopping ...
2024.12.06 10:43:10 INFO  es[][o.e.c.f.AbstractFileWatchingService] shutting down watcher thread
2024.12.06 10:43:10 INFO  es[][o.e.c.f.AbstractFileWatchingService] watcher service stopped
2024.12.06 10:43:10 INFO  es[][o.e.n.Node] stopped
2024.12.06 10:43:10 INFO  es[][o.e.n.Node] closing ...
2024.12.06 10:43:10 INFO  es[][o.e.n.Node] closed

It seems that there is not enough disk space? Really? Does Sonar need more than 18GB?

Hi @Guilherme_Duarte_Cos,

This isn’t about absolute free disk. It could be 8Mb. It could be 80Gb. It’s about percentage free.

 
HTH,
Ann

Resolved the error “Unable to load library ‘zstd’” after following the instructions from Lukasz_Jarocki (I missed understood initially). Here is what I did:

Added the following paths to the PATH variable:
1 - C:\Program Files\Git\mingw64\bin\libzstd.dll (the location of the file on my conputer)
2 - C:\elasticsearch\elasticsearch-8.14.1\lib\platform\windows-x64
3 - added the following line to the sonar.properties file:
sonar.search.javaAdditionalOpts=-Djna.debug_load=true

Now, I’m encountering a new error in the es.log: “Failed to bind to 127.0.0.1:9001.” I attempted the suggested solution of updating the sonar.properties file with sonar.search.port=0, but the error persists.

1 Like

I haved fixed that one by placing the downloaded zstd.dll file and placing it on the C:\Windows\System32 and Restart the SonarQube and not seeing the Errors anymore during the start of ES

https://www.dllme.com/dll/files/zstd - to download