Agreed. Could you share your elasticsearch.yml file without touching anything 
but only replacing Key/secret?

Keep the formating.

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 4 juil. 2014 à 06:51, Ross Simpson <[email protected]> a écrit :

That specific exception (com.amazonaws.AmazonClientException) is thrown by the 
AWS client libraries, and it means the library couldn't find your AWS 
credentials.  I'm not sure why, as the details in your original post look 
correct.

FWIW, S3 snapshots are working well for me.  Here's my setup:
ES 1.1.1
AWS cloud plugin 2.1.0

elasticsearch.yml:
cloud.aws.access_key: ...
cloud.aws.secret_key: ......

Repo registration:
$ curl -XPUT 'http://localhost:9200/_snapshot/es-backups' -d 
'{"type":"s3","settings":{"compress":"true","base_path":"prod_backups","region":"us-east","bucket":"..."}}'
{"acknowledged":true}

In your latest post, it looks like you're running the command on a remote ES 
host (10.211.154.24).  Does that specific host have the AWS credentials in its 
ES config?  Snapshotting will require that all nodes in the cluster have the 
AWS credentials, because they will each be writing to S3.

Are there any relevant entries in the ES logs from startup?  



> On Friday, 4 July 2014 04:25:44 UTC+10, sabdalla80 wrote:
> I installed latest ES version too "1.2.1", still getting same error
> {
>    "error": "RemoteTransportException[[node 
> 2][inet[/10.211.154.24:9300]][cluster/repository/put]]; nested: 
> RepositoryException[[es_repository] failed to create repository]; nested: 
> CreationException[Guice creation errors:\n\n1) Error injecting constructor, 
> com.amazonaws.AmazonClientException: Unable to load AWS credentials from any 
> provider in the chain\n  at 
> org.elasticsearch.repositories.s3.S3Repository.<init>()\n  at 
> org.elasticsearch.repositories.s3.S3Repository\n  at 
> Key[type=org.elasticsearch.repositories.Repository, annotation=[none]]\n\n1 
> error]; nested: AmazonClientException[Unable to load AWS credentials from any 
> provider in the chain]; ",
>    "status": 500
> }
> 
> Any ideas? I would appreciate some feedback on how to figure out this problem 
> because I would like to backup our index to S3.
> 
>> On Wednesday, July 2, 2014 3:36:58 PM UTC-4, sabdalla80 wrote:
>> Unfortunately, I tried with and without the region setting, no difference.
>> 
>>> On Tuesday, July 1, 2014 7:43:21 PM UTC-4, Glen Smith wrote:
>>> I'm not sure it matters, but I noticed you aren't setting a region in 
>>> either your config or when registering your repo.
>>> 
>>>> On Tuesday, July 1, 2014 7:08:28 PM UTC-4, sabdalla80 wrote:
>>>> I am not sure the version is the problem, I guess I can upgrade from V1.1 
>>>> to latest. 
>>>> "Not able to load credential from supply chain", Any idea this error is 
>>>> generated, Is there any other place that my credentials need to be besides 
>>>> .yml file?
>>>> Note, I am able to write/read to S3 remotely, so I don't have any 
>>>> priviliges problems that I can think of.
>>>> 
>>>>> On Tuesday, July 1, 2014 4:44:17 PM UTC-4, David Pilato wrote:
>>>>> I think 2.1.1 should work fine as well.
>>>>> 
>>>>> That said, you should upgrade to latest 1.1 (or 1.2)...
>>>>> 
>>>>> --
>>>>> David ;-)
>>>>> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>>>>> 
>>>>> 
>>>>> Le 1 juil. 2014 à 22:13, Glen Smith <[email protected]> a écrit :
>>>>> 
>>>>> According to
>>>>> https://github.com/elasticsearch/elasticsearch-cloud-aws/tree/es-1.1
>>>>> you should use v2.1.0 of the plugin with ES 1.1.0.
>>>>> 
>>>>>> On Tuesday, July 1, 2014 9:03:04 AM UTC-4, sabdalla80 wrote:
>>>>>> I am having a problem setting up backup and restore part of AWS on S3. 
>>>>>> I have 2.1.1 AWS plugin & ElasticSearch V1.1.0
>>>>>> 
>>>>>> My yml:
>>>>>> cloud:
>>>>>>     aws:
>>>>>>         access_key: #########
>>>>>>         secret_key: #####################
>>>>>>    discovery:
>>>>>>         type: ec2
>>>>>> 
>>>>>> 
>>>>>> When I try to register a repository:
>>>>>> 
>>>>>> PUT /_snapshot/es_repository{
>>>>>> 
>>>>>> "type": "s3",
>>>>>> 
>>>>>> "settings": {
>>>>>> 
>>>>>>   "bucket": "esbucket"
>>>>>> 
>>>>>> }}
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> I get this error, it complains about loading my credentials! Is this 
>>>>>> ElasticSearch problem or AWS?
>>>>>> 
>>>>>> Note I am running as root user "ubuntu" on Ec2 and also running AWS with 
>>>>>> root privileges as opposed to IAM role, not sure if it's a problem or 
>>>>>> not.
>>>>>> 
>>>>>>    "error": "RepositoryException[[es_repository] failed to create 
>>>>>> repository]; nested: CreationException[Guice creation errors:\n\n1) 
>>>>>> Error injecting constructor, com.amazonaws.AmazonClientException: Unable 
>>>>>> to load AWS credentials from any provider in the chain\n  at 
>>>>>> org.elasticsearch.repositories.s3.S3Repository.<init>(Unknown Source)\n  
>>>>>> while locating org.elasticsearch.repositories.s3.S3Repository\n  while 
>>>>>> locating org.elasticsearch.repositories.Repository\n\n1 error]; nested: 
>>>>>> AmazonClientException[Unable to load AWS credentials from any provider 
>>>>>> in the chain]; ",
>>>>>>    "status": 500
>>>>>> }ode here...
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>> 
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google Groups 
>>>>> "elasticsearch" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>>>> email to [email protected].
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/elasticsearch/e7db355a-7710-4408-80de-60960fd16d1d%40googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a3df1eb8-b6a2-4400-ba8c-58e1b2b33385%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/7414DF53-3844-4C76-A9B0-63D16EB32980%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to