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

During setting-up magento, facing issues with opensearch running. #1279

Open
tahercimp opened this issue Jan 17, 2025 · 3 comments
Open

During setting-up magento, facing issues with opensearch running. #1279

tahercimp opened this issue Jan 17, 2025 · 3 comments

Comments

@tahercimp
Copy link

Description
When Im done creating the Setup & m2 dir, and running the curl command inside the m2 dir, everything is installed perfectly, but after that when the time comes for it to run & execute, only the opensearch gives error.
And due to this, I am unable to open m2.test on localhost.
This is the curl command that I had executed :
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- m2.test 2.4.6 community

Expected Result
I got the below image from the youtube video by mark shust
Image

Actual Result
Image

@tahercimp
Copy link
Author

I meant /Sites directory, not Setup, in the description.
My bad.

@tahercimp
Copy link
Author

I tried to manually install docker-magento, changed the compose.yaml, compose.healthcheck.yaml, and bin/setup-install for elasticsearch instead of opensearch.
Then downloaded magento, everything was installed as expected, but then this time elasticsearch gave error :

Image

And when I checked elasticsearch's container, this was the error that it gave :

Image

And I am trying to get this done since two days, someone please help.

@krish512
Copy link

Replace the opensearch section in compose.yaml with elasticsearch container,

  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
    container_name: magento-elasticsearch
    environment:
      - discovery.type=single-node
      - xpack.security.enabled=false
      - bootstrap.memory_lock=true
    ulimits:
      memlock:
        soft: -1
        hard: -1
    mem_limit: 2g
    ports:
      - "9200:9200"

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

No branches or pull requests

2 participants