Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading large files fails #8954

Closed
realies opened this issue Mar 22, 2018 · 4 comments
Closed

Uploading large files fails #8954

realies opened this issue Mar 22, 2018 · 4 comments

Comments

@realies
Copy link

realies commented Mar 22, 2018

Uploading large files fails with

172.17.0.1 - aaxjDd3W5Dkn8xm [22/Mar/2018:19:18:19 +0200] "PUT /public.php/webdav/PSC_1718_PMW2_1777.MXF HTTP/1.1" 400 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"

172.17.0.1 - aaxjDd3W5Dkn8xm [22/Mar/2018:19:31:10 +0200] "PUT /public.php/webdav/PSC_1718_PMW2_1777.MXF HTTP/1.1" 400 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"

Latest stable Nextcloud. PHP upload limit is set to 128GB and file-size is 20GB. Nothing in the error or nextcloud.log files. What can be done to aid this?

@casKd-dev
Copy link

Depending on the web server you may use (Apache/Nginx/etc.) you may need to set up also the web server configuration.

  • For Apache it shouldn't be a problem if you configured your nextcloud settings and the php.ini correctly.
  • For Nginx add these to your configuration(s):
    client_max_body_size xGB; ## x being the limit in GB

@realies
Copy link
Author

realies commented Mar 24, 2018

@casKd-dev, Nginx's relevant server sections is set to client_max_body_size 0; to disable checking of client request body size.

Docker container Nginx config: http://ix.io/127A
Container port 443 mapped to host container port 420
Public facing Nginx config: http://ix.io/127J

PHP upload limit set to 128GB from within Nextcloud.

@CHazz
Copy link

CHazz commented Apr 19, 2018

php is very very bad for upload or managing big files .. eating lots of memory ... how much ram have ? for 20gb file must have maybe 48gb ram+ (12gb ram = 5gb file after "trilion" of tests and config variables)... maybe try app flow upload its java .. but not known ...

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@MorrisJobke
Copy link
Member

Starting with Nextcloud 13 also the web UI when users are logged in is using chunked upload which should make the upload of large files a lot more stable. Thus I will close this for now.

#7056

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants