Open erikrs opened 2 years ago
Adding @rodolfovillordo can you add your thoughts here?
Hey @erikrs do you continue to see this error?
I just encountered the same tried to upgrade old install and I think the problem relates to #25
Hey @Kampfmoehre thanks, can you please contribute with the fix? @peterzhuamazon @bbarani
I don't have a fix unfortunately. I opened the ticket one year ago when we wanted to replace Elastic Search with OpenSearch but we had difficulties with it. So we stick with ES until now where I try once again to make OS work. This time I just erased the whole OpenSearch directory before installing it again. I don't thing that is feasible for this playbook but I also don't know enough of OpenSearch to know which files should be cleaned before updating it. I remember from last time that clearing the plugin directory alone was not enough, though I don't remember exactly what other directories where the problem.
Hello. I got a similar problem when upgrading from 2.8.0 to 2.10.0. Cleaning up 3 directories helped me.
You can add a task to the beginning of main.yml:
- name: Clear opensearch directoryes
ansible.builtin.file:
state: absent
path: "{{ item }}"
with_items:
- /usr/share/opensearch/lib/
- /usr/share/opensearch/plugins/
- /usr/share/opensearch/modules/
Describe the bug
When upgrading opensearch, eg. from 2.2.1 to 2.3.0, opensearch fails to restart with a "jar hell" error
To Reproduce
a full (multi-node) opensearch installation was previously executed, eg os_version: "2.2.1"
Change all.yml: os_version: "2.3.0"
Run the playbook
See the error on the server:
Playbook Name Specify the Playbook which is affected?
Screenshots N/A
Host/Environment (please complete the following information):
Additional context
probably because the files from the new tar are extracted to existing os_home dir, and land next to older existing files, there's this "jar hell" problem ?