LisaHJung / Part-1-Intro-to-Elasticsearch-and-Kibana

316 stars 129 forks source link

Docker compose file is not working #2

Open IamGroot19 opened 2 years ago

IamGroot19 commented 2 years ago

I think the issue is something related to network configs, but I am not sure.

I eventually ended up using this: https://www.elastic.co/guide/en/elastic-stack-get-started/7.11/get-started-docker.html

Thought I'd file the issue to let others know.

LisaHJung commented 2 years ago

Hi @IamGroot19 !

Thank you so much for bringing this to my attention and for sharing a solution with our Beginner Community!

I am sorry for the delay in response. I've been out of office from April 28th - May 14th and I am just seeing your message.

I have reached out to the our wonderful community member who has contributed the Docker compose file to see what could have caused this issue.

I will update this issue as soon as I hear back.

Thank you again for your wonderful contribution. I appreciate you!!

h3ct0rjs commented 2 years ago

Hello @IamGroot19 hope you're doing great 😃 , could you please describe what is your problem with the current docker-compose file ? I just ran the docker compose in a clean environment and it works okay to me, could you provide more details operative systems, docker version.

After launching thedocker-compose up command , you should be able to navigate to :

Regards, H

h3ct0rjs commented 2 years ago

Hi @IamGroot19 I double check the docker compose file and according to the definitions both container should be running in the same docker network with name

Have you check the output with docker network ls command to see if is there any local problem ?

IamGroot19 commented 2 years ago

Hi @LisaHJung @h3ct0rjs - apologies, i completely missed out on the notification.

I cloned the repo and ran the docker-compose file . Here is the error log

$ docker-compose logs elasticsearch 

Attaching to elasticsearch
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:50,993Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "es01", "message": "version[7.11.1], pid[7], build[default/docker/ff17057114c2199c9c1bbecc727003a907c0db7a/2021-02-15T13:44:09.394032Z], OS[Linux/5.4.0-113-generic/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/15.0.1/15.0.1+9]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:50,996Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "es01", "message": "JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:50,997Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "es01", "message": "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, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-14056366677039914123, -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, -Des.cgroups.hierarchy.override=/, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=268435456, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,041Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [aggs-matrix-stats]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,042Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [analysis-common]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,042Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [constant-keyword]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,042Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [flattened]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,042Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [frozen-indices]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,042Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [ingest-common]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,043Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [ingest-geoip]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,043Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [ingest-user-agent]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,043Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [kibana]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,043Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [lang-expression]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,043Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [lang-mustache]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,043Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [lang-painless]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,044Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [mapper-extras]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,044Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [mapper-version]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,044Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [parent-join]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,044Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [percolator]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,044Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [rank-eval]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,044Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [reindex]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,045Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [repositories-metering-api]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,045Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [repository-url]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,045Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [search-business-rules]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,045Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [searchable-snapshots]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,045Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [spatial]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,046Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [transform]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,046Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [transport-netty4]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,046Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [unsigned-long]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,046Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [vectors]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,046Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [wildcard]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,046Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-aggregate-metric]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,046Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-analytics]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,046Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-async]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,047Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-async-search]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,047Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-autoscaling]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,047Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ccr]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,047Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-core]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,047Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-data-streams]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,047Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-deprecation]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,047Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-enrich]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,047Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-eql]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,048Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-fleet]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,048Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-graph]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,048Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-identity-provider]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,048Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ilm]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,048Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ingest]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,048Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-logstash]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,048Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ml]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,049Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-monitoring]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,049Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ql]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,049Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-rollup]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,049Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-runtime-fields]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,049Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-security]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,049Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-sql]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,049Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-stack]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,049Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-voting-only-node]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,050Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-watcher]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,050Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "no plugins loaded" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T10:04:54,128Z", "level": "ERROR", "component": "o.e.b.ElasticsearchUncaughtExceptionHandler", "cluster.name": "elasticsearch", "node.name": "es01", "message": "uncaught exception in thread [main]", 
elasticsearch    | "stacktrace": ["org.elasticsearch.bootstrap.StartupException: ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) ~[elasticsearch-cli-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "Caused by: org.elasticsearch.ElasticsearchException: failed to bind service",
elasticsearch    | "at org.elasticsearch.node.Node.<init>(Node.java:736) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.node.Node.<init>(Node.java:278) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:216) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:216) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "... 6 more",
elasticsearch    | "Caused by: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes",
elasticsearch    | "at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]",
elasticsearch    | "at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]",
elasticsearch    | "at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]",
elasticsearch    | "at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:388) ~[?:?]",
elasticsearch    | "at java.nio.file.Files.createDirectory(Files.java:694) ~[?:?]",
elasticsearch    | "at java.nio.file.Files.createAndCheckIsDirectory(Files.java:801) ~[?:?]",
elasticsearch    | "at java.nio.file.Files.createDirectories(Files.java:787) ~[?:?]",
elasticsearch    | "at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:265) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:202) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:262) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.node.Node.<init>(Node.java:351) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.node.Node.<init>(Node.java:278) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:216) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:216) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "... 6 more"] }
elasticsearch    | uncaught exception in thread [main]
elasticsearch    | ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];
elasticsearch    | Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes
elasticsearch    |  at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
elasticsearch    |  at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
elasticsearch    |  at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
elasticsearch    |  at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:388)
elasticsearch    |  at java.base/java.nio.file.Files.createDirectory(Files.java:694)
elasticsearch    |  at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:801)
elasticsearch    |  at java.base/java.nio.file.Files.createDirectories(Files.java:787)
elasticsearch    |  at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:265)
elasticsearch    |  at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:202)
elasticsearch    |  at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:262)
elasticsearch    |  at org.elasticsearch.node.Node.<init>(Node.java:351)
elasticsearch    |  at org.elasticsearch.node.Node.<init>(Node.java:278)
elasticsearch    |  at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:216)
elasticsearch    |  at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:216)
elasticsearch    |  at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387)
elasticsearch    |  at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
elasticsearch    |  at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
elasticsearch    |  at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
elasticsearch    |  at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
elasticsearch    |  at org.elasticsearch.cli.Command.main(Command.java:79)
elasticsearch    |  at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
elasticsearch    |  at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
elasticsearch    | For complete error details, refer to the log at /usr/share/elasticsearch/logs/elasticsearch.log
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:16,808Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "es01", "message": "version[7.11.1], pid[6], build[default/docker/ff17057114c2199c9c1bbecc727003a907c0db7a/2021-02-15T13:44:09.394032Z], OS[Linux/5.4.0-113-generic/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/15.0.1/15.0.1+9]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:16,810Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "es01", "message": "JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:16,810Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "es01", "message": "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, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-18065360502047370967, -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, -Des.cgroups.hierarchy.override=/, -Xmx512m, -Xms512m, -XX:MaxDirectMemorySize=268435456, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,239Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [aggs-matrix-stats]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,239Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [analysis-common]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,240Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [constant-keyword]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,240Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [flattened]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,240Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [frozen-indices]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,240Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [ingest-common]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,240Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [ingest-geoip]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,241Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [ingest-user-agent]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,241Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [kibana]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,241Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [lang-expression]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,241Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [lang-mustache]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,241Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [lang-painless]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,241Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [mapper-extras]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,242Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [mapper-version]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,242Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [parent-join]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,242Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [percolator]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,242Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [rank-eval]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,242Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [reindex]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,243Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [repositories-metering-api]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,243Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [repository-url]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,243Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [search-business-rules]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,243Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [searchable-snapshots]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,243Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [spatial]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,244Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [transform]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,244Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [transport-netty4]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,244Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [unsigned-long]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,244Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [vectors]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,244Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [wildcard]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,245Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-aggregate-metric]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,245Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-analytics]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,245Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-async]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,245Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-async-search]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,245Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-autoscaling]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,245Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ccr]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,246Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-core]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,246Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-data-streams]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,246Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-deprecation]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,246Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-enrich]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,246Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-eql]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,247Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-fleet]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,247Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-graph]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,247Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-identity-provider]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,247Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ilm]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,247Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ingest]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,247Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-logstash]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,248Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ml]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,248Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-monitoring]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,248Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-ql]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,248Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-rollup]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,248Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-runtime-fields]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,248Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-security]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,248Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-sql]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,249Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-stack]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,249Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-voting-only-node]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,249Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "loaded module [x-pack-watcher]" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,250Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elasticsearch", "node.name": "es01", "message": "no plugins loaded" }
elasticsearch    | {"type": "server", "timestamp": "2022-07-13T11:10:19,363Z", "level": "ERROR", "component": "o.e.b.ElasticsearchUncaughtExceptionHandler", "cluster.name": "elasticsearch", "node.name": "es01", "message": "uncaught exception in thread [main]", 
elasticsearch    | "stacktrace": ["org.elasticsearch.bootstrap.StartupException: ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) ~[elasticsearch-cli-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "Caused by: org.elasticsearch.ElasticsearchException: failed to bind service",
elasticsearch    | "at org.elasticsearch.node.Node.<init>(Node.java:736) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.node.Node.<init>(Node.java:278) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:216) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:216) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "... 6 more",
elasticsearch    | "Caused by: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes",
elasticsearch    | "at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]",
elasticsearch    | "at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]",
elasticsearch    | "at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]",
elasticsearch    | "at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:388) ~[?:?]",
elasticsearch    | "at java.nio.file.Files.createDirectory(Files.java:694) ~[?:?]",
elasticsearch    | "at java.nio.file.Files.createAndCheckIsDirectory(Files.java:801) ~[?:?]",
elasticsearch    | "at java.nio.file.Files.createDirectories(Files.java:787) ~[?:?]",
elasticsearch    | uncaught exception in thread [main]
elasticsearch    | "at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:265) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:202) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:262) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.node.Node.<init>(Node.java:351) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.node.Node.<init>(Node.java:278) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:216) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:216) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.11.1.jar:7.11.1]",
elasticsearch    | "... 6 more"] }
elasticsearch    | ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];
elasticsearch    | Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes
elasticsearch    |  at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
elasticsearch    |  at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
elasticsearch    |  at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
elasticsearch    |  at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:388)
elasticsearch    |  at java.base/java.nio.file.Files.createDirectory(Files.java:694)
elasticsearch    |  at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:801)
elasticsearch    |  at java.base/java.nio.file.Files.createDirectories(Files.java:787)
elasticsearch    |  at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:265)
elasticsearch    |  at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:202)
elasticsearch    |  at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:262)
elasticsearch    |  at org.elasticsearch.node.Node.<init>(Node.java:351)
elasticsearch    |  at org.elasticsearch.node.Node.<init>(Node.java:278)
elasticsearch    |  at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:216)
elasticsearch    |  at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:216)
elasticsearch    |  at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387)
elasticsearch    |  at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
elasticsearch    |  at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
elasticsearch    |  at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
elasticsearch    |  at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
elasticsearch    |  at org.elasticsearch.cli.Command.main(Command.java:79)
elasticsearch    |  at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
elasticsearch    |  at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
elasticsearch    | For complete error details, refer to the log at /usr/share/elasticsearch/logs/elasticsearch.log
h3ct0rjs commented 2 years ago

Hi @IamGroot19 hope you're doing great. I check the log errors that you share with us but this seems like a local problem, I also found this : https://techoverflow.net/2020/04/18/how-to-fix-elasticsearch-docker-accessdeniedexception-usr-share-elasticsearch-data-nodes/

It seems like is a problem of permisssions, could you check this.

Regards, H