# S3: Connection timed out

**URL:** <https://community.wowza.com/t/s3-connection-timed-out/36274>\
**Category:** Wowza Streaming Engine\
**Created:** [March 10, 2011, 4:43pm UTC](https://community.wowza.com/t/s3-connection-timed-out/36274 "2011-03-10T16:43:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konrad\_Hosemann](https://avatars.discourse-cdn.com/v4/letter/k/fbc32d/32.png) [@Konrad\_Hosemann](https://community.wowza.com/u/Konrad_Hosemann)\
**Post date:** [March 10, 2011, 4:43pm UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/1 "2011-03-10T16:43:59Z")

</div>

We are using direct S3 streaming, which is a huge advantage for us. However recently some of our customers started complaining about unreliable streaming which apparently is caused by these errors:

```auto
HTTPByteReader.sendRequest[http://mybucket.s3.amazonaws.com:80/myvideo.mp4]: java.net.SocketException: Connection timed out

```

We were not able to identify any pattern when these errors happen, it is not bound to any specific video, bucket, client or time. Any idea how to track these problems down? We are using a m1.small instance in eu-west-1a and euro buckets.

thanks,

konrad

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 10, 2011, 4:02pm UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/2 "2011-03-10T16:02:38Z")

</div>

It might be network problems in AWS that are beyond control, is my first guess.

Does it happen with new content? S3 does replication, so I think it is possible that a request for content might be made to a location that it does not exist at yet.

Richard

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [March 10, 2011, 4:54pm UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/3 "2011-03-10T16:54:20Z")

</div>

We already re-try 3 times if a request fails. When we do this we create a new TCP connection to S3. In the past there have been a few bad days where several customers had similar problems. In general the next day everything was fine.

Charlie

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [March 10, 2011, 7:20pm UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/4 "2011-03-10T19:20:20Z")

</div>

I’m not sure. Can’t hurt to try to contact AWS support too.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 23, 2011, 11:46am UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/5 "2011-08-23T11:46:23Z")

</div>

What is the problem exactly? Do you have vods3 working at all?

Richard

---

<div class="post-metadata">

**Author:** ![scott\_freeman](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@scott\_freeman](https://community.wowza.com/u/scott_freeman)\
**Post date:** [February 6, 2012, 9:27pm UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/6 "2012-02-06T21:27:00Z")

</div>

We are having similar issues with S3 getting media file connection errors using a devpay instance. they play fine one day and the next several are not available. You can check the file directly in S3 from the AWS console and they play fine http progressive through the browser. This is the 2nd time this has happened in 3 weeks. It does mysteriously resolves itself after a undetermined amount of time. We, TVW are managing this server for another LARGE state legislative entity and this is now a issue. Do you have any leads or can I assist in troubleshooting?

---

<div class="post-metadata">

**Author:** ![Hugo\_De\_Zela](https://avatars.discourse-cdn.com/v4/letter/h/fbc32d/32.png) [@Hugo\_De\_Zela](https://community.wowza.com/u/Hugo_De_Zela)\
**Post date:** [August 23, 2011, 1:36am UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/7 "2011-08-23T01:36:22Z")

</div>

> We already re-try 3 times if a request fails. When we do this we create a new TCP connection to S3.

Can you post how you configured this please? I’m having the same problem and can’t figure it out.

---

<div class="post-metadata">

**Author:** ![Morgan\_Catlin](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Morgan\_Catlin](https://community.wowza.com/u/Morgan_Catlin)\
**Post date:** [December 6, 2012, 11:42am UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/8 "2012-12-06T11:42:18Z")

</div>

Can we increase the timeouts?

---

<div class="post-metadata">

**Author:** ![Konrad\_Hosemann](https://avatars.discourse-cdn.com/v4/letter/k/fbc32d/32.png) [@Konrad\_Hosemann](https://community.wowza.com/u/Konrad_Hosemann)\
**Post date:** [March 10, 2011, 5:45pm UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/9 "2011-03-10T17:45:52Z")

</div>

Nope. Today it happend with files that are on S3 for one week.

So you would recommend approaching Amazon? Do you see a possibility to implement some sort of workaround in Wowza? Like reducing the timeout and trying a few times before giving up with an error. A quick search turned out, that such problems just seem to happen from time to time with S3…

konrad

---

<div class="post-metadata">

**Author:** ![Lisa\_Wong](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@Lisa\_Wong](https://community.wowza.com/u/Lisa_Wong)\
**Post date:** [February 14, 2012, 6:24pm UTC](https://community.wowza.com/t/s3-connection-timed-out/36274/10 "2012-02-14T18:24:40Z")

</div>

Other users have reported something similar and then the problem mysteriously goes away. Do you see any pattern of when the problem occurs? Does it happen with new content? Have you tried contacting Amazon when it occurs to see if there might be a network issue?

-Lisa
