-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Could not connect to elasticsearch:7.17.4 deploy with docker #20472
Comments
It works for me, did uncomment the depends_on line and check if elastic isn’t throwing the permission exception? For future reference, if anyone is having that AccessDeniedException problem: sudo chown -R 1000:1000 elasticsearch/ This solves it. Make sure also the docker-compose.yml has the variables needed for ES to boot up. |
The problem still persisted for me, although I already did the things pedroCX486 mentioned. Looking at the logs of the elasticsearch container, I found this line in there:
So I set the
In order for this setting to survive a reboot, I added the assignment to After that, the start of the es container succeeds. |
@riker77 Thank you, it works for me! |
For anyone else running into the issue... it's also wort checking, if the elastic search host in the .env.production file is set to the correct hostname. I have found it set to localhost, which didn't work with the docker-compose setup. es helped. |
Here's another pointer that solved ES problems for me: After following all prior suggestions, the last problem was inside the env file: the default sets a username and password. The default install with docker-compose builds an ES instance that doesn't use authentication with username/pass, therefore specifying ES_USER/ES_PASS AT ALL will lead to problems. Comment out both username/password for ES and it should work. It did for me at least. |
Steps to reproduce the problem
docker-compose.yml
/admin/dashboard
, but elasticsearch container started successfullyelasticsearch:7.17.4
back toelasticsearch-oss:7.10.2
indocker-compose.yml
(revert cc7cebb and e3cebfa)Expected behaviour
Could connect to Elasticsearch
Actual behaviour
Could not connect to Elasticsearch
Detailed description
No response
Specifications
Mastodon v4.0.0rc2
Docker 20.10.21
Docker Compose v2.4.1
The text was updated successfully, but these errors were encountered: