# AWS S3 Snapshot behind proxy error

**URL:** <https://discuss.elastic.co/t/aws-s3-snapshot-behind-proxy-error/75621>\
**Category:** Elasticsearch\
**Created:** [February 19, 2017, 12:42am UTC](https://discuss.elastic.co/t/aws-s3-snapshot-behind-proxy-error/75621 "2017-02-19T00:42:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gromit](https://avatars.discourse-cdn.com/v4/letter/g/ac8455/32.png) [@gromit](https://discuss.elastic.co/u/gromit)\
**Post date:** [February 19, 2017, 12:42am UTC](https://discuss.elastic.co/t/aws-s3-snapshot-behind-proxy-error/75621/1 "2017-02-19T00:42:45Z")

</div>

Currently using ES 2.4.3 with cloud-aws plugin version 2.4.3

Proxy settings in elasticsearch.yaml set on all nodes:

```
cloud:
aws:
    protocol: https
    proxy:
        host: proxy1.company.com
        port: 8083
        username: myself
        password: theBestPasswordEver!

```

PUT request for repo:

```
PUT _snapshot/my_s3_repository

```

{  
"type": "s3",  
"settings": {  
"bucket": "my\_bucket\_name",  
"region": "us-west"  
}  
}

Error is:

amazon\_s3\_exception - Proxy Authentication Required - Error Code 407

Is there some way to debug this, the logs don't seem to show much.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2017, 2:46am UTC](https://discuss.elastic.co/t/aws-s3-snapshot-behind-proxy-error/75621/2 "2017-02-19T02:46:40Z")

</div>

You are missing an indentation before aws.

Can you check?

---

<div class="post-metadata">

**Author:** ![gromit](https://avatars.discourse-cdn.com/v4/letter/g/ac8455/32.png) [@gromit](https://discuss.elastic.co/u/gromit)\
**Post date:** [February 19, 2017, 2:55am UTC](https://discuss.elastic.co/t/aws-s3-snapshot-behind-proxy-error/75621/3 "2017-02-19T02:55:38Z")

</div>

Thanks, it does have an indent, I just pasted here incorrectly.  
I've checked the elasticsearch.yaml files with LINT and they are valid.  
Not sure if this is relevant, but the username is in the form domain\username, so I entered it in the form domain%5Cusername as it's an HTTP proxy, which is how it's setup in local environment settings.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 19, 2017, 8:33am UTC](https://discuss.elastic.co/t/aws-s3-snapshot-behind-proxy-error/75621/4 "2017-02-19T08:33:33Z")

</div>

Can you try:

```
domain\\username
```

---

<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:** [March 19, 2017, 8:33am UTC](https://discuss.elastic.co/t/aws-s3-snapshot-behind-proxy-error/75621/5 "2017-03-19T08:33:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
