# s3 module timeout

**URL:** <https://forum.ansible.com/t/s3-module-timeout/17034>\
**Category:** Ansible Developer\
**Tags:** aws\
**Created:** [December 11, 2014, 11:13pm UTC](https://forum.ansible.com/t/s3-module-timeout/17034 "2014-12-11T23:13:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rads](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@rads](https://forum.ansible.com/u/rads)\
**Post date:** [December 11, 2014, 11:13pm UTC](https://forum.ansible.com/t/s3-module-timeout/17034/1 "2014-12-11T23:13:23Z")

</div>

Anyone else getting timeouts with the s3 module during GETs? I’d say it times out for me 10% of the time while running on aws instances.

```auto
failed: [10.3.4.135] => {"failed": true, "parsed": false}
SUDO-SUCCESS-smbvbxjgzdnvggmahklufcwhbryjrumu
Traceback (most recent call last):
  File "/home/ec2-user/.ansible/tmp/ansible-tmp-1418338558.98-89431558153682/s3", line 2272, in <module>
    main()
  File "/home/ec2-user/.ansible/tmp/ansible-tmp-1418338558.98-89431558153682/s3", line 371, in main
    download_s3file(module, s3, bucket, obj, dest)
  File "/home/ec2-user/.ansible/tmp/ansible-tmp-1418338558.98-89431558153682/s3", line 244, in download_s3file
    key.get_contents_to_filename(dest)
  File "/usr/lib/python2.6/site-packages/boto/s3/key.py", line 1705, in get_contents_to_filename
    response_headers=response_headers)
  File "/usr/lib/python2.6/site-packages/boto/s3/key.py", line 1643, in get_contents_to_file
    response_headers=response_headers)
  File "/usr/lib/python2.6/site-packages/boto/s3/key.py", line 1475, in get_file
    query_args=None)
  File "/usr/lib/python2.6/site-packages/boto/s3/key.py", line 1528, in _get_file_internal
    for bytes in self:
  File "/usr/lib/python2.6/site-packages/boto/s3/key.py", line 386, in next
    data = self.resp.read(self.BufferSize)
  File "/usr/lib/python2.6/site-packages/boto/connection.py", line 412, in read
    return http_client.HTTPResponse.read(self, amt)
  File "/usr/lib64/python2.6/httplib.py", line 548, in read
    s = self.fp.read(amt)
  File "/usr/lib64/python2.6/socket.py", line 383, in read
    data = self._sock.recv(left)
  File "/usr/lib64/python2.6/ssl.py", line 215, in recv
    return self.read(buflen)
  File "/usr/lib64/python2.6/ssl.py", line 136, in read
    return self._sslobj.read(len)
ssl.SSLError: The read operation timed out
Killed by signal 1.

```

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [December 11, 2014, 11:58pm UTC](https://forum.ansible.com/t/s3-module-timeout/17034/2 "2014-12-11T23:58:52Z")

</div>

Hi Rads,

As this is a bug report or help with a problem, please post this on ansible-project in the future. All being said, if this is occuring on Ansible 1.8.X or later, please file a bug report on the ansible-modules-core repo - we consider tracebacks bugs even when we want to return a cleaner error.

I haven’t heard anyone else reporting this, however – possibly a temporary issue with AWS?
