# Loading a file from AWS S3 Storage breaks after 30 minutes

**URL:** https://community.okteto.com/t/loading-a-file-from-aws-s3-storage-breaks-after-30-minutes/370
**Category:** Help
**Created:** [November 22, 2022, 8:49pm UTC](https://community.okteto.com/t/loading-a-file-from-aws-s3-storage-breaks-after-30-minutes/370 "2022-11-22T20:49:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Canta](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Canta](https://community.okteto.com/u/Canta)
#### Post date: [November 22, 2022, 8:49pm UTC](https://community.okteto.com/t/loading-a-file-from-aws-s3-storage-breaks-after-30-minutes/370/1 "2022-11-22T20:49:35Z")

</div>

I try to load a tar.gz file from AWS s3 Storage which breaks after around 30 minutes with this error message:

> An error occurred while reading from response stream: (“Connection broken: ConnectionResetError(104, ‘Connection reset by peer’)”, ConnectionResetError(104, ‘Connection reset by peer’)).

Is this file too big to be loaded to Okteto or any reason why this is happening?

Hope someone can help me with that

---

<div class="post-metadata">

### Author: ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)
#### Post date: [November 23, 2022, 8:03pm UTC](https://community.okteto.com/t/loading-a-file-from-aws-s3-storage-breaks-after-30-minutes/370/2 "2022-11-23T20:03:45Z")

</div>

How and Where are you loading the file? Is this part of your Dockerfile or something else?

Also, how big is the file?

---

<div class="post-metadata">

### Author: ![Canta](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@Canta](https://community.okteto.com/u/Canta)
#### Post date: [November 29, 2022, 10:28am UTC](https://community.okteto.com/t/loading-a-file-from-aws-s3-storage-breaks-after-30-minutes/370/4 "2022-11-29T10:28:57Z")

</div>

Hi @ramiro, after several retries it worked but now again it stopped through either this error:

> could not load model due to connection was closed before we received a valid response from endpoint url

or this error

> Max retries exceeded with URL in requests

Downloading takes also a lot of time (compared to when I download it in docker-compose on my local machine. Is there a way to make the download more stable to avoid these errors? To add on this, I think it makes a difference in which region the client and the bucket are located. So is there a way to find out where Okteto is hosted?

EDIT: Changing the region did not make a difference unfortunately

---

<div class="post-metadata">

### Author: ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)
#### Post date: [December 3, 2022, 3:18am UTC](https://community.okteto.com/t/loading-a-file-from-aws-s3-storage-breaks-after-30-minutes/370/5 "2022-12-03T03:18:17Z")

</div>

Okteto Cloud is not designed for high-performance upload/download, so we don’t guarantee speed or bandwidth.

As to making it more stable, if your file is large, I’d recommend you use a download client that allows for resumable downloads and can handle network interruptions.

How big is the file that you’re trying to download?

---

<div class="post-metadata">

### Author: ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)
#### Post date: [May 7, 2024, 7:16pm UTC](https://community.okteto.com/t/loading-a-file-from-aws-s3-storage-breaks-after-30-minutes/370/6 "2024-05-07T19:16:59Z")

</div>


