# Mender-proxy/deployments unable to upload files to minio

**URL:** https://hub.mender.io/t/mender-proxy-deployments-unable-to-upload-files-to-minio/1637
**Category:** General Discussions
**Tags:** minio, proxy, deployment
**Created:** [March 12, 2020, 1:12pm UTC](https://hub.mender.io/t/mender-proxy-deployments-unable-to-upload-files-to-minio/1637 "2020-03-12T13:12:21Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![opopops](https://avatars.discourse-cdn.com/v4/letter/o/ed655f/32.png) [@opopops](https://hub.mender.io/u/opopops)
#### Post date: [March 31, 2020, 10:22pm UTC](https://hub.mender.io/t/mender-proxy-deployments-unable-to-upload-files-to-minio/1637/10 "2020-03-31T22:22:29Z")

</div>

Hello,

I have the same issue after a fresh install of mender version 2.3 when I try to upload an artficat that exceed 300MB.

The time out log found in my docker logs:

```auto
mender-api-gateway_1 | 2020/03/31 20:31:50 [error] 32#32: *1115 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 10.110.194.15, server: mender.hosted.io, request: "POST /api/management/v1/deployments/artifacts HTTP/1.1", upstream: "http://172.18.0.14:8080/api/management/v1/deployments/artifacts", host: "mender.hosted.io", referrer: "https://mender.hosted.io/ui/"

```

So this time out issue is generated by the mender-api-gateway service on the location _api/management/v1/deployments/artifacts_

I have a quick fix:

- Connect into the **mender-api-gateway** container:

```shell
./run exec mender-api-gateway sh

```

- Edit _/usr/local/openresty/nginx/conf/common.nginx.conf_ and update location **/api/management/v1/deployments/artifacts** section to add **proxy\_read\_timeout 300;**

```auto
location = /api/management/v1/deployments/artifacts {
        auth_request /userauth;
        auth_request_set $requestid $upstream_http_x_men_requestid;

        client_max_body_size 10G;
        proxy_read_timeout 300;

```

- reload openresty:

```shell
openresty -s reload

```

This fix is not persistent, if you restart your server it will be lost… The solution is to use a docker volume to mount the customized nginx configuration from the host to the container.

Mender team, is it possible to fix definitely this issue by increasing the default **proxy\_read\_timeout** (60s) to 300s in the common nginx configuration?

Thank you

---

_[View the full topic](https://hub.mender.io/t/mender-proxy-deployments-unable-to-upload-files-to-minio/1637)._
