Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastic deployment improvement #66

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

0xtejas
Copy link
Contributor

@0xtejas 0xtejas commented Oct 14, 2024

Update elastic-deployment.yaml with namespace, security context, and minor improvements

  • Added curl installation in the container's args.
  • Set initialDelaySeconds for livenessProbe to 60.

…minor improvements

- Added namespace: huly under metadata.
- Added curl installation in the container's args.
- Set initialDelaySeconds for livenessProbe to 60.
…xt, and minor improvements"

This reverts commit 6203ebb.
- Added curl installation in the container's args.
- Set initialDelaySeconds for livenessProbe to 60.
73cae8
Copy link
Contributor Author

@0xtejas 0xtejas Oct 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please discard these changes in the file kube/workspace/workspace-deployment.yaml when merging if possible. If that isn't possible, please let me know, as it has been removed in another PR.

@0xtejas
Copy link
Contributor Author

0xtejas commented Nov 10, 2024

For those who are wondering what it fixes. One might see the following error when the current elastic deployment manifest is used.

{"type": "server", "timestamp": "2024-11-10T05:30:11,290Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "version[7.14.2], pid[7], build[default/docker/6bc13727ce758c0e943c3c21653b3da82f627f75/2021-09-15T10:18:09.722761972Z], OS[Linux/6.1.0-25-amd64/amd64], JVM[Eclipse Foundation/OpenJDK 64-Bit Server VM/16.0.2/16.0.2+7]" }
{"type": "server", "timestamp": "2024-11-10T05:30:11,295Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]" }
{"type": "server", "timestamp": "2024-11-10T05:30:11,296Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "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, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-12096429883585987022, -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=/, -Xms1024m, -Xmx1024m, -XX:MaxDirectMemorySize=536870912, -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]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,575Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [aggs-matrix-stats]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,576Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [analysis-common]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,576Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [constant-keyword]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,577Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [frozen-indices]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,577Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [ingest-common]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,577Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [ingest-geoip]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,577Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [ingest-user-agent]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,578Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [kibana]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,578Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [lang-expression]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,578Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [lang-mustache]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,578Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [lang-painless]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,578Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [mapper-extras]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,579Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [mapper-version]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,579Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [parent-join]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,579Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [percolator]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,579Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [rank-eval]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,579Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [reindex]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,580Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [repositories-metering-api]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,580Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [repository-encrypted]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,580Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [repository-url]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,581Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [runtime-fields-common]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,581Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [search-business-rules]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,581Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [searchable-snapshots]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,581Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [snapshot-repo-test-kit]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,581Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [spatial]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,582Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [transform]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,582Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [transport-netty4]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,582Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [unsigned-long]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,582Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [vectors]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,582Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [wildcard]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,583Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-aggregate-metric]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,583Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-analytics]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,583Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-async]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,583Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-async-search]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,583Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-autoscaling]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,583Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-ccr]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,584Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-core]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,584Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-data-streams]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,584Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-deprecation]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,584Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-enrich]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,584Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-eql]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,585Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-fleet]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,585Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-graph]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,585Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-identity-provider]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,585Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-ilm]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,585Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-logstash]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,585Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-ml]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,586Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-monitoring]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,586Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-ql]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,586Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-rollup]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,586Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-security]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,586Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-shutdown]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,586Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-sql]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,587Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-stack]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,587Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-text-structure]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,587Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-voting-only-node]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,587Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded module [x-pack-watcher]" }
{"type": "server", "timestamp": "2024-11-10T05:30:14,588Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "loaded plugin [ingest-attachment]" }
uncaught exception in thread [main]
{"type": "server", "timestamp": "2024-11-10T05:30:14,679Z", "level": "ERROR", "component": "o.e.b.ElasticsearchUncaughtExceptionHandler", "cluster.name": "docker-cluster", "node.name": "elastic-7cfc7596c9-mcz9g", "message": "uncaught exception in thread [main]", 
"stacktrace": ["org.elasticsearch.bootstrap.StartupException: ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];",
"at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) ~[elasticsearch-cli-7.14.2.jar:7.14.2]",
"at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.14.2.jar:7.14.2]",
"Caused by: org.elasticsearch.ElasticsearchException: failed to bind service",
"at org.elasticsearch.node.Node.<init>(Node.java:798) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.node.Node.<init>(Node.java:281) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:219) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:219) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.14.2.jar:7.14.2]",
"... 6 more",
"Caused by: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes",
"at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]",
"at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]",
"at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]",
"at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:396) ~[?:?]",
"at java.nio.file.Files.createDirectory(Files.java:694) ~[?:?]",
"at java.nio.file.Files.createAndCheckIsDirectory(Files.java:801) ~[?:?]",
"at java.nio.file.Files.createDirectories(Files.java:787) ~[?:?]",
"at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:265) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:202) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:262) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.node.Node.<init>(Node.java:376) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.node.Node.<init>(Node.java:281) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:219) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:219) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399) ~[elasticsearch-7.14.2.jar:7.14.2]",
"at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.14.2.jar:7.14.2]",
"... 6 more"] }
ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];
Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:396)
	at java.base/java.nio.file.Files.createDirectory(Files.java:694)
	at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:801)
	at java.base/java.nio.file.Files.createDirectories(Files.java:787)
	at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:265)
	at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:202)
	at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:262)
	at org.elasticsearch.node.Node.<init>(Node.java:376)
	at org.elasticsearch.node.Node.<init>(Node.java:281)
	at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:219)
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:219)
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399)
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
	at org.elasticsearch.cli.Command.main(Command.java:79)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
For complete error details, refer to the log at /usr/share/elasticsearch/logs/docker-cluster.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants