Elasticsearch install on MacOS USB stick fails - java.nio.channels.OverlappingFileLockException

Running bin/Elasticsearch on 'tar -xf Elasticsearch-7.15.0-darwin-x86_64.tar' install fails to start

(base) ➜  Samsung_T5 cd elasticsearch-7.15.0
(base) ➜  elasticsearch-7.15.0 pwd
/Volumes/Samsung_T5/elasticsearch-7.15.0
(base) ➜  elasticsearch-7.15.0 bin/elasticsearch
[2021-09-27T09:57:54,743][INFO ][o.e.n.Node               ] [Johns-MBP.fritz.box] version[7.15.0], pid[16760], build[default/tar/79d65f6e357953a5b3cbcc5e2c7c21073d89aa29/2021-09-16T03:05:29.143308416Z], OS[Mac OS X/11.5/x86_64], JVM[Eclipse Foundation/OpenJDK 64-Bit Server VM/16.0.2/16.0.2+7]
[2021-09-27T09:57:54,749][INFO ][o.e.n.Node               ] [Johns-MBP.fritz.box] JVM home [/Volumes/Samsung_T5/elasticsearch-7.15.0/jdk.app/Contents/Home], using bundled JDK [true]
[2021-09-27T09:57:54,749][INFO ][o.e.n.Node               ] [Johns-MBP.fritz.box] JVM arguments [-Xshare:auto, -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, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -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, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/var/folders/z1/q7wxsbns48595rlv9fyx892r0000gn/T/elasticsearch-5205393951105799832, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Xms16384m, -Xmx16384m, -XX:MaxDirectMemorySize=8589934592, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=25, -Des.path.home=/Volumes/Samsung_T5/elasticsearch-7.15.0, -Des.path.conf=/Volumes/Samsung_T5/elasticsearch-7.15.0/config, -Des.distribution.flavor=default, -Des.distribution.type=tar, -Des.bundled_jdk=true]
[2021-09-27T09:57:57,239][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [aggs-matrix-stats]
[2021-09-27T09:57:57,239][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [analysis-common]
[2021-09-27T09:57:57,240][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [constant-keyword]
[2021-09-27T09:57:57,240][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [frozen-indices]
[2021-09-27T09:57:57,240][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [ingest-common]
[2021-09-27T09:57:57,240][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [ingest-geoip]
[2021-09-27T09:57:57,240][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [ingest-user-agent]
[2021-09-27T09:57:57,241][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [kibana]
[2021-09-27T09:57:57,241][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [lang-expression]
[2021-09-27T09:57:57,241][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [lang-mustache]
[2021-09-27T09:57:57,241][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [lang-painless]
[2021-09-27T09:57:57,241][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [mapper-extras]
[2021-09-27T09:57:57,242][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [mapper-version]
[2021-09-27T09:57:57,242][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [parent-join]
[2021-09-27T09:57:57,242][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [percolator]
[2021-09-27T09:57:57,242][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [rank-eval]
[2021-09-27T09:57:57,243][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [reindex]
[2021-09-27T09:57:57,243][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [repositories-metering-api]
[2021-09-27T09:57:57,243][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [repository-encrypted]
[2021-09-27T09:57:57,243][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [repository-url]
[2021-09-27T09:57:57,243][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [runtime-fields-common]
[2021-09-27T09:57:57,243][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [search-business-rules]
[2021-09-27T09:57:57,244][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [searchable-snapshots]
[2021-09-27T09:57:57,244][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [snapshot-repo-test-kit]
[2021-09-27T09:57:57,244][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [spatial]
[2021-09-27T09:57:57,244][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [transform]
[2021-09-27T09:57:57,244][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [transport-netty4]
[2021-09-27T09:57:57,244][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [unsigned-long]
[2021-09-27T09:57:57,245][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [vector-tile]
[2021-09-27T09:57:57,245][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [vectors]
[2021-09-27T09:57:57,245][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [wildcard]
[2021-09-27T09:57:57,245][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-aggregate-metric]
[2021-09-27T09:57:57,245][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-analytics]
[2021-09-27T09:57:57,245][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-async]
[2021-09-27T09:57:57,246][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-async-search]
[2021-09-27T09:57:57,246][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-autoscaling]
[2021-09-27T09:57:57,246][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-ccr]
[2021-09-27T09:57:57,246][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-core]
[2021-09-27T09:57:57,246][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-data-streams]
[2021-09-27T09:57:57,246][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-deprecation]
[2021-09-27T09:57:57,247][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-enrich]
[2021-09-27T09:57:57,247][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-eql]
[2021-09-27T09:57:57,247][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-fleet]
[2021-09-27T09:57:57,247][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-graph]
[2021-09-27T09:57:57,247][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-identity-provider]
[2021-09-27T09:57:57,247][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-ilm]
[2021-09-27T09:57:57,248][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-logstash]
[2021-09-27T09:57:57,248][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-ml]
[2021-09-27T09:57:57,248][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-monitoring]:
[2021-09-27T09:57:57,248][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-ql]
[2021-09-27T09:57:57,248][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-rollup]
[2021-09-27T09:57:57,248][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-security]
[2021-09-27T09:57:57,248][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-shutdown]
[2021-09-27T09:57:57,249][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-sql]
[2021-09-27T09:57:57,249][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-stack]
[2021-09-27T09:57:57,249][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-text-structure]
[2021-09-27T09:57:57,249][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-voting-only-node]
[2021-09-27T09:57:57,249][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] loaded module [x-pack-watcher]
[2021-09-27T09:57:57,250][INFO ][o.e.p.PluginsService     ] [Johns-MBP.fritz.box] no plugins loaded
[2021-09-27T09:57:57,281][INFO ][o.e.e.NodeEnvironment    ] [Johns-MBP.fritz.box] using [1] data paths, mounts [[/Volumes/Samsung_T5 (/dev/disk2s1)]], net usable_space [735.5gb], net total_space [931.4gb], types [exfat]
[2021-09-27T09:57:57,281][INFO ][o.e.e.NodeEnvironment    ] [Johns-MBP.fritz.box] heap size [16gb], compressed ordinary object pointers [true]
[2021-09-27T09:57:57,302][INFO ][o.e.n.Node               ] [Johns-MBP.fritz.box] node name [Johns-MBP.fritz.box], node ID [UYsun8EvQ8WYuYWjyE_0Tg], cluster name [elasticsearch], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]
[2021-09-27T09:58:01,148][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [Johns-MBP.fritz.box] [controller/16796] [Main.cc@122] controller (64 bit): Version 7.15.0 (Build d0ab43b6c551f8) Copyright (c) 2021 Elasticsearch BV
[2021-09-27T09:58:01,600][INFO ][o.e.x.s.a.s.FileRolesStore] [Johns-MBP.fritz.box] parsed [0] roles from file [/Volumes/Samsung_T5/elasticsearch-7.15.0/config/roles.yml]
[2021-09-27T09:58:01,962][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [Johns-MBP.fritz.box] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.nio.channels.OverlappingFileLockException
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:171) ~[elasticsearch-7.15.0.jar:7.15.0]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:158) ~[elasticsearch-7.15.0.jar:7.15.0]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.15.0.jar:7.15.0]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:114) ~[elasticsearch-cli-7.15.0.jar:7.15.0]
	at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.15.0.jar:7.15.0]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:123) ~[elasticsearch-7.15.0.jar:7.15.0]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.15.0.jar:7.15.0]
Caused by: java.nio.channels.OverlappingFileLockException
	at sun.nio.ch.FileLockTable.checkList(FileLockTable.java:229) ~[?:?]
	at sun.nio.ch.FileLockTable.add(FileLockTable.java:123) ~[?:?]
	at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1297) ~[?:?]
	at java.nio.channels.FileChannel.tryLock(FileChannel.java:1178) ~[?:?]
	at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:126) ~[lucene-core-8.9.0.jar:8.9.0 05c8a6f0163fe4c330e93775e8e91f3ab66a3f80 - mayyasharipova - 2021-06-10 17:50:37]
	at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41) ~[lucene-core-8.9.0.jar:8.9.0 05c8a6f0163fe4c330e93775e8e91f3ab66a3f80 - mayyasharipova - 2021-06-10 17:50:37]
	at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45) ~[lucene-core-8.9.0.jar:8.9.0 05c8a6f0163fe4c330e93775e8e91f3ab66a3f80 - mayyasharipova - 2021-06-10 17:50:37]
	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:923) ~[lucene-core-8.9.0.jar:8.9.0 05c8a6f0163fe4c330e93775e8e91f3ab66a3f80 - mayyasharipova - 2021-06-10 17:50:37]
	at org.elasticsearch.xpack.searchablesnapshots.cache.full.PersistentCache.createCacheIndexWriter(PersistentCache.java:377) ~[?:?]
	at org.elasticsearch.xpack.searchablesnapshots.cache.full.PersistentCache.createWriters(PersistentCache.java:342) ~[?:?]
	at org.elasticsearch.xpack.searchablesnapshots.cache.full.PersistentCache.<init>(PersistentCache.java:100) ~[?:?]
	at org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshots.createComponents(SearchableSnapshots.java:328) ~[?:?]
	at org.elasticsearch.node.Node.lambda$new$18(Node.java:622) ~[elasticsearch-7.15.0.jar:7.15.0]
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) ~[?:?]
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]

	<<<truncated>>>
For complete error details, refer to the log at /Volumes/Samsung_T5/elasticsearch-7.15.0/logs/elasticsearch.log

logfile output as above

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.