-
Notifications
You must be signed in to change notification settings - Fork 192
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
OpenSearch docker images broken #350
Comments
Hi @zakisaad Thank you for your contribution. You're right, OS_PORT should be there: #!/bin/bash
set -eo pipefail
if health="$(curl -fsSL "http://${OS_HOST:-opensearch}:${OS_PORT:-9200}/_cat/health?h=status")"; then
health="$(echo "$health" | sed -r 's/^[[:space:]]+|[[:space:]]+$//g')" # trim whitespace (otherwise we'll have "green ")
if [ "$health" = 'green' ] || [ "$health" = 'yellow' ]; then
exit 0
fi
echo >&2 "Unexpected health status: $health"
fi
exit 1
And we will fix it in the next release. But it is not a root cause. OS_HOST and OS_PORT are used when they are provided. I tried to reproduce it, but it works fine. Could you provide more information about your system (OS, Docker version, etc)? Try to use the next steps:
2.4.4 template uses OS 1.2 by default |
Hello @BaDos I am also facing same issue on Mac machine only. I following the same steps you were mention :
system information : MacBook Pro |
Hello @kanojiyadhaval How much memory do you provide for Docker Desktop? |
Hi @BaDos currently, it's 8gb. |
I'm facing the same problem, working on: Macbook air M1 all the docker environment worked on first install, i stopped the containers and when i try to star them again it says the OpenSearch container is unhealthy, it is running but i can't run magento commands due to unhealthy container any progress on this? |
Did you just use an image from Docker Hub? Or did you build own image using this sources https://github.com/magento/magento-cloud-docker/tree/develop/images/opensearch ? Docker Hub does not contain any images for M1, please build you own images and try again to reproduce it. |
@here I fixed Opensearch but I get OOM in Java. Using images from the source you provided @BaDos
The main change was here "ENTRYPOINT ["bash", "/docker-entrypoint.sh"]". But Im working in a large site and Im getting these errors in Opensearch logs - java.lang.OutOfMemoryError: Java heap space And setting are now 8G for memory. Maybe a problem in the code. I don't know. Would you guys please test my fix and see if you can reindex without issues? |
Preconditions
Magento Cloud Docker - local development with latest 1.3.2 package
Steps to reproduce
Expected result
Local Magento environment with OpenSearch
Actual result
OpenSearch container fails healthcheck. Upon review, OS_HOST is used for both the URL and port, unlike the Elasticsearch image which correctly uses ES_HOST and ES_PORT. However, even when fixing this issue, the healthcheck still fails.
We use the docker dev setup quite extensively, historically with ES. We are exploring OS, but are blocked on this issue.
The text was updated successfully, but these errors were encountered: