Hi, I need some help with the issue I am getting when I try to take a snapshot with repository s3 plugin. I can't figure out what is the reason for the error. I don't know Java. But as far as I could understand it seems there is an issue with some internal java issues for the version of java that runs in the elastic container.
Please help me troubleshoot this.
I am using elasticsearch 5.6.4 and repository-s3 5.6.4
When I try to create repository I am getting 500 error more details below:
{"type":"amazon_client_exception","reason":"Unable to calculate a request signature: Unable to calculate a request signature: Algorithm HmacSHA1 not available","caused_by":{"type":"amazon_client_exception","reason":"Unable to calculate a request signature: Algorithm HmacSHA1 not available","caused_by":{"type":"no_such_algorithm_exception","reason":"Algorithm HmacSHA1 not available"}}}},"status":500
this is a pretty much repo we are using U can see java.policy and log4j2.properties there.
I wish I can just switch to the official elastic image but that's not the case at the moment. This wasn't my choice but I have to live with it for now.
As I wrote earlier I don't know Java so I can't really identify the real issue. I solved it by trial, error and elimination.
The first issue I had was with HmacSHA1 signature from the first post.
My elastic container was working fine before I introduced repository s3. That's when I started to have this issue.
Once I asked you for help you told me it might be broken installation of JDK, so I figure out, ok it must be that plugin installs something that breaks Java
At this point, I entered the container and checked what does plugin install exactly. I figured out Java security policy plugin installs is version 1.10.69 and the version elasticsearch is using is 1.8
So I thought ok that might be an issue and then I changed my docker file and I copied security policy for 1.10.69 and 1.8 which changed the error to MBeanServerPermission
I tried to do curl request to take a snapshot and it succeeded despite the error in the elastic logs which I found weird
I did some googling on MBeanServerPermission error and through Github issues, I found that I have to add additional permissions so I added in both policies 1.8 and 1.10.6:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.