Elasticsearch

Hey guys, can someone share their docker compose yaml setup for Workspace-CE? I have onlyoffice working, except for elasticsearch and I’m pretty sure its probably something I’m doing wrong. Also, let me know if there was any file/folder permission changes that need to be made. Thanks in advance.

onlyoffice-elasticsearch     | Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes
onlyoffice-elasticsearch     | 	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
onlyoffice-elasticsearch     | 	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
onlyoffice-elasticsearch     | 	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
onlyoffice-elasticsearch     | 	at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:398)
onlyoffice-elasticsearch     | 	at java.base/java.nio.file.Files.createDirectory(Files.java:700)
onlyoffice-elasticsearch     | 	at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:807)
onlyoffice-elasticsearch     | 	at java.base/java.nio.file.Files.createDirectories(Files.java:793)
onlyoffice-elasticsearch     | 	at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:300)
onlyoffice-elasticsearch     | 	at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:224)
onlyoffice-elasticsearch     | 	at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:298)
onlyoffice-elasticsearch     | 	at org.elasticsearch.node.Node.<init>(Node.java:427)
onlyoffice-elasticsearch     | 	at org.elasticsearch.node.Node.<init>(Node.java:309)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:234)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157)
onlyoffice-elasticsearch     | 	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
onlyoffice-elasticsearch     | 	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
onlyoffice-elasticsearch     | 	at org.elasticsearch.cli.Command.main(Command.java:77)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
onlyoffice-elasticsearch     | For complete error details, refer to the log at /usr/share/elasticsearch/logs/docker-cluster.log
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:12,492Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "version[7.16.3], pid[6], build[default/docker/4e6e4eab2297e949ec994e688dad46290d018022/2022-01-06T23:43:02.825887787Z], OS[Linux/5.15.0-125-generic/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/17.0.1/17.0.1+12]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:12,495Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:12,495Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "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, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-6533889692390608215, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -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=/, -Xms1g, -Xmx1g, -Dlog4j2.formatMsgNoLookups=true, -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]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,916Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [aggs-matrix-stats]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,917Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [analysis-common]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,917Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [constant-keyword]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,917Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [frozen-indices]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,917Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [ingest-common]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,917Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [ingest-geoip]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,917Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [ingest-user-agent]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,917Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [kibana]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,918Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [lang-expression]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,918Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [lang-mustache]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,918Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [lang-painless]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,918Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [legacy-geo]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,918Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [mapper-extras]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,918Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [mapper-version]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,918Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [parent-join]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,918Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [percolator]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,918Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [rank-eval]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,919Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [reindex]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,919Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [repositories-metering-api]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,919Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [repository-encrypted]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,919Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [repository-url]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,919Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [runtime-fields-common]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,919Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [search-business-rules]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,919Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [searchable-snapshots]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,919Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [snapshot-repo-test-kit]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,920Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [spatial]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,920Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [transform]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,920Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [transport-netty4]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,920Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [unsigned-long]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,920Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [vector-tile]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,920Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [vectors]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,920Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [wildcard]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,920Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-aggregate-metric]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,920Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-analytics]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,921Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-async]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,921Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-async-search]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,921Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-autoscaling]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,921Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-ccr]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,921Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-core]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,921Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-data-streams]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,921Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-deprecation]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,921Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-enrich]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,922Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-eql]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,922Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-fleet]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,922Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-graph]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,922Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-identity-provider]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,922Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-ilm]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,922Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-logstash]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,922Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-ml]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,922Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-monitoring]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,922Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-ql]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,923Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-rollup]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,923Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-security]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,923Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-shutdown]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,923Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-sql]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,923Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-stack]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,923Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-text-structure]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,923Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-voting-only-node]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,923Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded module [x-pack-watcher]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,924Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "loaded plugin [ingest-attachment]" }
onlyoffice-elasticsearch     | {"type": "server", "timestamp": "2024-12-08T03:03:13,970Z", "level": "ERROR", "component": "o.e.b.ElasticsearchUncaughtExceptionHandler", "cluster.name": "docker-cluster", "node.name": "ac4087288a4f", "message": "uncaught exception in thread [main]", 
onlyoffice-elasticsearch     | "stacktrace": ["org.elasticsearch.bootstrap.StartupException: ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];",
onlyoffice-elasticsearch     | uncaught exception in thread [main]
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) ~[elasticsearch-cli-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.cli.Command.main(Command.java:77) ~[elasticsearch-cli-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "Caused by: org.elasticsearch.ElasticsearchException: failed to bind service",
onlyoffice-elasticsearch     | "at org.elasticsearch.node.Node.<init>(Node.java:1090) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.node.Node.<init>(Node.java:309) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:234) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "... 6 more",
onlyoffice-elasticsearch     | "Caused by: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes",
onlyoffice-elasticsearch     | "at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]",
onlyoffice-elasticsearch     | "at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]",
onlyoffice-elasticsearch     | "at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]",
onlyoffice-elasticsearch     | "at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:398) ~[?:?]",
onlyoffice-elasticsearch     | "at java.nio.file.Files.createDirectory(Files.java:700) ~[?:?]",
onlyoffice-elasticsearch     | "at java.nio.file.Files.createAndCheckIsDirectory(Files.java:807) ~[?:?]",
onlyoffice-elasticsearch     | "at java.nio.file.Files.createDirectories(Files.java:793) ~[?:?]",
onlyoffice-elasticsearch     | "at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:300) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:224) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:298) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.node.Node.<init>(Node.java:427) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.node.Node.<init>(Node.java:309) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:234) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) ~[elasticsearch-7.16.3.jar:7.16.3]",
onlyoffice-elasticsearch     | "... 6 more"] }
onlyoffice-elasticsearch     | ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];
onlyoffice-elasticsearch     | Likely root cause: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes
onlyoffice-elasticsearch     | 	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
onlyoffice-elasticsearch     | 	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
onlyoffice-elasticsearch     | 	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
onlyoffice-elasticsearch     | 	at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:398)
onlyoffice-elasticsearch     | 	at java.base/java.nio.file.Files.createDirectory(Files.java:700)
onlyoffice-elasticsearch     | 	at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:807)
onlyoffice-elasticsearch     | 	at java.base/java.nio.file.Files.createDirectories(Files.java:793)
onlyoffice-elasticsearch     | 	at org.elasticsearch.env.NodeEnvironment.lambda$new$0(NodeEnvironment.java:300)
onlyoffice-elasticsearch     | 	at org.elasticsearch.env.NodeEnvironment$NodeLock.<init>(NodeEnvironment.java:224)
onlyoffice-elasticsearch     | 	at org.elasticsearch.env.NodeEnvironment.<init>(NodeEnvironment.java:298)
onlyoffice-elasticsearch     | 	at org.elasticsearch.node.Node.<init>(Node.java:427)
onlyoffice-elasticsearch     | 	at org.elasticsearch.node.Node.<init>(Node.java:309)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:234)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157)
onlyoffice-elasticsearch     | 	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77)
onlyoffice-elasticsearch     | 	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
onlyoffice-elasticsearch     | 	at org.elasticsearch.cli.Command.main(Command.java:77)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122)
onlyoffice-elasticsearch     | 	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)

Never mind. For future reference, the data folder for elasticsearch as to be set to 777 permissions to be able to write to the folder.