exceptionless/Exceptionless

elasticsearch connection failed

Closed this issue · 7 comments

docker run -d -p 5201:8080 --name el -v /home/elasticsearch/esdata:/usr/share/elasticsearch/data -e EX_Html5Mode=true exceptionless/exceptionless:8.1.6

`
["org.elasticsearch.bootstrap.StartupException: ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/usr/share/elasticsearch/data/nodes];"

Health check Elasticsearch with status Unhealthy completed after 214.335ms with message 'null' <Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService>

`

chown: changing ownership of '/usr/share/elasticsearch/data': Operation not permitted

Are you sure you have the proper permissions on your elasticsearch share?

Is elasticsearch not within docker?

Do I need to install elasticsearch independently externally?

Okay, esdata requires 777 permissions

If you use the all in one image it's included, otherwise a connection string needs to be specified. I'm not sure what permissions they (elasticsearch) specify.

We just extend the base elasticsearch docker image

FROM exceptionless/elasticsearch:8.11.1 AS exceptionless

So I'd take a look at that image to see what permissions it uses.