Hi !
I have some issues with my space disk when I start sonarqube, ElasticSearch can’t execute its processes correctly.
Here an example of the es.log file :
2022.01.27 12:08:11 INFO es[][o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] no longer exceeded on [TahMKRziTZqRZcT-sLSnxw][sonarqube][C:\sonarqube\data\es7\nodes\0] free: 46.1gb[10%], but low disk watermark [85%] is still exceeded
I made some space on my disk, but it still seems to be not enough :
2022.01.27 12:23:28 INFO es[][o.e.n.Node] version[7.16.1], pid[660], build[unknown/unknown/5b38441b16b1ebb16a27c107a4c3865776e20c53/2021-12-11T00:29:38.865893768Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/17.0.1/17.0.1+12-LTS-39]
2022.01.27 12:23:28 INFO es[][o.e.n.Node] JVM home [C:\Program Files\Java\jdk-17.0.1]
2022.01.27 12:23:28 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseG1GC, -Djava.io.tmpdir=C:\sonarqube\temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -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:\sonarqube\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, -Dcom.redhat.fips=false, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Delasticsearch, -Des.path.home=C:\sonarqube\elasticsearch, -Des.path.conf=C:\sonarqube\temp\conf\es]
2022.01.27 12:23:28 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]
2022.01.27 12:23:28 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]
2022.01.27 12:23:28 INFO es[][o.e.p.PluginsService] loaded module [legacy-geo]
2022.01.27 12:23:28 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2022.01.27 12:23:28 INFO es[][o.e.p.PluginsService] loaded module [percolator]
2022.01.27 12:23:28 INFO es[][o.e.p.PluginsService] loaded module [runtime-fields-common]
2022.01.27 12:23:28 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2022.01.27 12:23:28 INFO es[][o.e.p.PluginsService] no plugins loaded
2022.01.27 12:23:28 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[OS (C:)]], net usable_space [51.4gb], net total_space [459.1gb], types [NTFS]
2022.01.27 12:23:28 INFO es[][o.e.e.NodeEnvironment] heap size [512mb], compressed ordinary object pointers [true]
2022.01.27 12:23:28 INFO es[][o.e.n.Node] node name [sonarqube], node ID [TahMKRziTZqRZcT-sLSnxw], cluster name [sonarqube], roles [data_frozen, master, remote_cluster_client, data, data_content, data_hot, data_warm, data_cold, ingest]
2022.01.27 12:23:31 INFO es[][o.e.t.NettyAllocator] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=256kb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=1mb, heap_size=512mb}]
2022.01.27 12:23:31 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and seed hosts providers [settings]
2022.01.27 12:23:31 INFO es[][o.e.g.DanglingIndicesState] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
2022.01.27 12:23:31 INFO es[][o.e.n.Node] initialized
2022.01.27 12:23:31 INFO es[][o.e.n.Node] starting ...
2022.01.27 12:23:32 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:50297}, bound_addresses {127.0.0.1:50297}
2022.01.27 12:23:32 INFO es[][o.e.c.c.Coordinator] cluster UUID [qKsr34F6SLediFssnMp3bg]
2022.01.27 12:23:32 INFO es[][o.e.c.s.MasterService] elected-as-master ([1] nodes joined)[{sonarqube}{TahMKRziTZqRZcT-sLSnxw}{a5yJmGf2RjGAN4SzV8lf8A}{127.0.0.1}{127.0.0.1:50297}{cdfhimrsw} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 21, version: 535, delta: master node changed {previous [], current [{sonarqube}{TahMKRziTZqRZcT-sLSnxw}{a5yJmGf2RjGAN4SzV8lf8A}{127.0.0.1}{127.0.0.1:50297}{cdfhimrsw}]}
2022.01.27 12:23:32 INFO es[][o.e.c.s.ClusterApplierService] master node changed {previous [], current [{sonarqube}{TahMKRziTZqRZcT-sLSnxw}{a5yJmGf2RjGAN4SzV8lf8A}{127.0.0.1}{127.0.0.1:50297}{cdfhimrsw}]}, term: 21, version: 535, reason: Publication{term=21, version=535}
2022.01.27 12:23:32 INFO es[][o.e.c.r.a.DiskThresholdMonitor] low disk watermark [85%] exceeded on [TahMKRziTZqRZcT-sLSnxw][sonarqube][C:\sonarqube\data\es7\nodes\0] free: 51.4gb[11.1%], replicas will not be assigned to this node
2022.01.27 12:23:32 INFO es[][o.e.h.AbstractHttpServerTransport] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2022.01.27 12:23:32 INFO es[][o.e.n.Node] started
2022.01.27 12:23:32 INFO es[][o.e.g.GatewayService] recovered [7] indices into cluster_state
2022.01.27 12:23:34 INFO es[][o.e.c.r.a.AllocationService] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[components][1], [components][0], [metadatas][0]]]).
Is there any information about how much empty space does my disk must have ? Because I can’t make many more place
If someone have a solution, it would be helpful, thank you !
(I put here the sonar logs, because there is also an error (access denied) to a .dll
file, but maybe it’s related to the previous error)
2022.01.27 12:23:26 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube\temp
2022.01.27 12:23:26 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:50297]
2022.01.27 12:23:26 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube\elasticsearch]: C:\Program Files\Java\jdk-17.0.1\bin\java -XX:+UseG1GC -Djava.io.tmpdir=C:\sonarqube\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -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:\sonarqube\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 -Dcom.redhat.fips=false -Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube\elasticsearch -Des.path.conf=C:\sonarqube\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
2022.01.27 12:23:26 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2022.01.27 12:23:34 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2022.01.27 12:23:34 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [C:\sonarqube]: C:\Program Files\Java\jdk-17.0.1\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\sonarqube\temp -XX:-OmitStackTraceInFastThrow --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Dcom.redhat.fips=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/sonar-application-9.2.3.50713.jar;C:\sonarqube\lib\jdbc\h2\h2-1.4.199.jar org.sonar.server.app.WebServer C:\sonarqube\temp\sq-process9861086771687457376properties
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/C:/sonarqube/lib/sonar-application-9.2.3.50713.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
--> Wrapper Started as Console
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2022.01.27 12:23:46 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube\temp
2022.01.27 12:23:46 ERROR app[][o.s.application.App] Startup failure
java.nio.file.AccessDeniedException: C:\sonarqube\temp\jna15158671683531442230.dll
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
at java.base/java.nio.file.Files.delete(Files.java:1152)
at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:121)
at org.sonar.application.AppFileSystem$CleanTempDirFileVisitor.visitFile(AppFileSystem.java:101)
at java.base/java.nio.file.Files.walkFileTree(Files.java:2811)
at org.sonar.application.AppFileSystem.createOrCleanTempDirectory(AppFileSystem.java:96)
at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:62)
at org.sonar.application.App.start(App.java:53)
at org.sonar.application.App.main(App.java:81)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
at java.base/java.lang.Thread.run(Thread.java:833)
<-- Wrapper Stopped