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

Cannot change version #3

Open
PatrickWhitehouse opened this issue May 9, 2024 · 12 comments
Open

Cannot change version #3

PatrickWhitehouse opened this issue May 9, 2024 · 12 comments

Comments

@PatrickWhitehouse
Copy link

I'm trying to use 2.12.0 and I have set this inside .ddev/opensearch/Dockerfile but when checking the version by visiting the url echoed in ddev describe, I'm consistently seeing 2.13.0.

@rfay
Copy link
Member

rfay commented May 10, 2024

  • Make sure you remove the #ddev-generated from the Dockerfile.
  • Please try removing your existing opensearch image:
docker rmi -f ddev-<projectname>-opensearch

or

~/.ddev/bin/docker-compose -f .ddev/.ddev-docker-compose-full.yaml build --no-cache --progress=plain

@cmuench
Copy link
Collaborator

cmuench commented May 30, 2024

Related to #4

@cmuench
Copy link
Collaborator

cmuench commented May 31, 2024

@PatrickWhitehouse Did the tip of @rfay help you?

@PatrickWhitehouse
Copy link
Author

@PatrickWhitehouse Did the tip of @rfay help you?

@cmuench - Nope. I have just tried the suggested fix above, and i'm still seeing 2.13.0 despite having 2.12.0 set.

@cmuench
Copy link
Collaborator

cmuench commented Jun 10, 2024

@PatrickWhitehouse Did the tip of @rfay help you?

@cmuench - Nope. I have just tried the suggested fix above, and i'm still seeing 2.13.0 despite having 2.12.0 set.

ok. I will try it on my machine.

@cmuench
Copy link
Collaborator

cmuench commented Jun 10, 2024

@PatrickWhitehouse I was able to run 2.12.0 on my machine.
I just pushed my example project to Github as reference.
https://github.com/cmuench/ddev-opensearch-2.12.0-example

@stasadev
Copy link
Member

@PatrickWhitehouse,

You need to delete the existing opensearch volume before the downgrade:

ddev stop

docker volume ls | grep opensearch # to see the volume name

docker volume rm ddev-<projectname>_opensearch

@PatrickWhitehouse
Copy link
Author

@stasadev - After the above, is it just a case of restarting via ddev restart? And to confirm, I can see the version by following the url given in ddev describe ?

@stasadev
Copy link
Member

stasadev commented Jun 10, 2024

After the above, is it just a case of restarting via ddev restart?

As you can see, I added ddev stop before deleting the volume, so it doesn't matter if you run ddev start or ddev restart afterwards, each will do its job.

And to confirm, I can see the version by following the url given in ddev describe ?

Yes, when you change the version in .ddev/opensearch/Dockerfile and docker-compose.opensearch.yaml and remove #ddev-generated from these files, and have the old opensearch volume removed, it should work.

@PatrickWhitehouse
Copy link
Author

Really strange because I'm able to swap the version of the dashboard fine. 2.12.0 seems to show 2.13.0 if I curl the url for the ouput.

@stasadev
Copy link
Member

Try this with a new test project:

mkdir test-opensearch && cd test-opensearch
ddev config --auto
ddev get ddev/ddev-opensearch

Modify .ddev/opensearch/Dockerfile and .ddev/docker-compose.opensearch.yaml and run ddev start.

@cmuench
Copy link
Collaborator

cmuench commented Jul 15, 2024

@PatrickWhitehouse Did the recommendation of @stasadev work for you?

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

4 participants