# Elasticsearch Writes Into S3 Bucket for Metadata But Doesn't Write Into S3 Bucket For Scheduled Snapshots Problem

**URL:** <https://discuss.elastic.co/t/elasticsearch-writes-into-s3-bucket-for-metadata-but-doesnt-write-into-s3-bucket-for-scheduled-snapshots-problem/8604>\
**Category:** Elasticsearch\
**Created:** [August 2, 2012, 8:56am UTC](https://discuss.elastic.co/t/elasticsearch-writes-into-s3-bucket-for-metadata-but-doesnt-write-into-s3-bucket-for-scheduled-snapshots-problem/8604 "2012-08-02T08:56:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Moo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_moo/32/2562_2.png) [@Jonathan\_Moo](https://discuss.elastic.co/u/Jonathan_Moo)\
**Post date:** [August 2, 2012, 8:56am UTC](https://discuss.elastic.co/t/elasticsearch-writes-into-s3-bucket-for-metadata-but-doesnt-write-into-s3-bucket-for-scheduled-snapshots-problem/8604/1 "2012-08-02T08:56:08Z")

</div>

According to the documents at  
[http://www.elasticsearch.org/tutorials/2011/08/22/elasticsearch-on-ec2.html](http://www.elasticsearch.org/tutorials/2011/08/22/elasticsearch-on-ec2.html),  
I have included the respective API Access Key ID with its secret access key  
and Elasticsearch is able to write into the S3 bucket as follows:

[2012-08-02 04:21:38,793][DEBUG][gateway.s3] [Schultz, Herman] writing to gateway org.elasticsearch.gateway.shared.SharedStorageGateway$2@4e64f6fe ...  
[2012-08-02 04:21:39,337][DEBUG][gateway.s3] [Schultz, Herman] wrote to gateway org.elasticsearch.gateway.shared.SharedStorageGateway$2@4e64f6fe, took 543ms

However when it comes to writing snapshots into the S3 bucket, out comes  
the following error:

[2012-08-02 04:25:37,303][WARN][index.gateway.s3] [Schultz, Herman] [plumbline\_2012.08.02][3] failed to read commit point [commit-i] java.io.IOException: Failed to get [commit-i]  
Caused by: Status Code: 403, AWS Service: Amazon S3, AWS Request ID: E084E2ED1E68E710, AWS Error Code: InvalidAccessKeyId, AWS Error Message: The AWS Access Key Id you provided does not exist in our records.  
[2012-08-02 04:36:06,696][WARN][index.gateway] [Schultz, Herman] [plumbline\_2012.08.02][0] failed to snapshot (scheduled) org.elasticsearch.index.gateway.IndexShardGatewaySnapshotFailedException: [plumbline\_2012.08.02][0] Failed to perform snapshot (index files)

Is there a reason why this is happening since the access keys I have  
provided is able to write metadata and not creating snapshots?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:18am UTC](https://discuss.elastic.co/t/elasticsearch-writes-into-s3-bucket-for-metadata-but-doesnt-write-into-s3-bucket-for-scheduled-snapshots-problem/8604/2 "2017-07-06T03:18:01Z")

</div>

Closed on July 6, 2017, 3:18am UTC


