nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Request Entity Too Large When Trying To Upload A Large File.

Open guillaumesoucy94 opened this issue 3 years ago • 3 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes / No
  • Are you sure you're not using someone else's docker image?
    • Yes / No
  • Have you searched for similar issues (both open and closed)?
    • Yes / No

Describe the bug

Hello,

This is not a bug, I simply need to know how to proceed. I'm not able to upload files larger than 2GB on my applications and 700MB file failed due to a timeout.

How to increase the upload file size ans increase the execution time?

Thank-you,

Guillaume

Nginx Proxy Manager Version

v2.9.18

To Reproduce Steps to reproduce the behavior:

  1. Go to 'My application'
  2. Click on 'Choose files'
  3. Click on 'Start the file upload'
  4. See error

Expected behavior

The file get uploaded

Screenshots

20230116-054817

Operating System

The server is running Ubuntu 20.04

Additional context

I tried Mozilla Firefox and Safari (iPhone).

guillaumesoucy94 avatar Jan 16 '23 10:01 guillaumesoucy94

I have the same problem here, I can't upload files larger than about 1GB, it raises an error 413

redquilt avatar Feb 12 '23 12:02 redquilt

Encountered the same problem. Have a docker registry behind NPM managed to upload 3GB and then the same error prevents it from completing.

There is a way to temporary increase the limit without restarting the container.

While in the container shell execute this:

sed -i "s#2000m#5000m#g" /etc/nginx/nginx.conf /usr/sbin/nginx -s reload

This will change the upload file limits to around 5GB and reload Nginx within the container without restarting the actual container.

To make this permanent, would need to rebuild the container.

loqster avatar Feb 15 '23 12:02 loqster

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar Jan 30 '24 01:01 github-actions[bot]