Hi All,
I have upgraded the system from 3.7 to 3.9
the s3 repository that i had in the snapshot management has disappeared and i cant define a new one , I am getting this error

i can see the s3 plugin in the list (also try to reinstall it)
/usr/share/wazuh-indexer/bin/opensearch-plugin install repository-s3
any idea how to fix this
{"error":{"root_cause":[{"type":"s3_exception","reason":"s3_exception: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. (Service: S3, Status Code: 301, Request ID: Q4HDXGG29XX7DCAF, Extended Request ID: lr1MSsJvzzvzj3vHtqkKe8dDEtpBce91MiKu7hV/uroIwTPcqJhZ221IqrJDr4FG7XaQsokYDQXU2FWWRchjFw==)"}],"type":"repository_exception","reason":"[drem-s3] Unexpected exception when loading repository data","caused_by":{"type":"s3_exception","reason":"s3_exception: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. (Service: S3, Status Code: 301, Request ID: Q4HDXGG29XX7DCAF, Extended Request ID: lr1MSsJvzzvzj3vHtqkKe8dDEtpBce91MiKu7hV/uroIwTPcqJhZ221IqrJDr4FG7XaQsokYDQXU2FWWRchjFw==)"}},"status":500}
Can you please install the repository-s3 plugin again, if possible restart the Indexer node and dashboard and try again.
To install the plugin you need to run the following command:
Here are the full instructions on how to register the s3-repository on the current version.
These are Opensearch generic instructions so, the indices names are generic examples.
You may also create the repository from the Dev-Tools section on your Dashboard menu.
Have in mind that this Snapshot scheduling section on Dashboard takes a snapshot of all the indices every day (which can consume a lot of space), so it may not work as expected (just taking the previous day’s index snapshot). To workaround this you may create a cron job on the Indexer node to run an API call to take the previous day’s snapshot (which is closed and complete).
For example, the API call for this may be: