server icon indicating copy to clipboard operation
server copied to clipboard

Chunked upload not working (Files larger than 10MB)

Open grahamsk opened this issue 8 years ago • 27 comments

Hi,

I am having trouble with chunked uploads in nextcloud 13. It doesn't seem to work from web ui & sync client. When trying to upload I get the error message that .file doesn't exist. (See below)

If I change the sync client chunkSize setting on my mac os client then I am able to upload files by effectively disabling chunking when setting chunk size to something larger than the file to be uploaded.

Also, webdav using native OSX Sierra works correctly, the issue is with web ui upload and nextcloud client uploads larger than 10MB.

I also upgraded nextcloud to version 13 from 12 a few weeks ago using the webui.

I should also not that my php settings are correct and in line with https://docs.nextcloud.com/server/13/admin_manual/configuration_files/big_file_upload_configuration.html. I have confirmed this using a phpinfo page on the installation.

Could someone please help me to try and troubleshoot this?

Relevant details:

Nextcloud version (eg, 12.0.2): 13.0.0.14 Operating system and version (eg, Ubuntu 17.04): Ubuntu 16.04 Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.18 PHP version (eg, 7.1): 7.0.25

The issue you are facing:

Chunked uploading fails with the following error message:

file-upload.js:274 MOVE https://{url}/remote.php/dav/uploads/{user}/web-file-upload-41fb9a29f46486d4f8d24f9ff0318bab-1520776283884/.file 404 (Not Found)

I've confirmed that if I configure the client (OSX Sierra) with larger chunkSettings than the file to upload then uploads work correctly.

Is this the first time you've seen this error? (Y/N): Y

Steps to replicate it:

  1. Upload file larger than 10Mb
  2. Check log or developer tools in browser for error message

The output of your Nextcloud log in Admin > Logging:

rewinddir(): 76 is not a valid Directory resource at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#31

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'debug' => 'true',
  'instanceid' => {instanceid}
  'passwordsalt' => {salt}
  'secret' => {secret}
  'trusted_domains' =>
  array (
    0 => {domain}
  ),
  'datadirectory' => '/mnt/datadirectory',
  'overwrite.cli.url' => {overwriteurl}
  'dbtype' => 'mysql',
  'version' => '13.0.0.14',
  'dbname' => {dbname}
  'dbhost' => {dbhost}
  'dbport' => '', 
  'dbtableprefix' => {prefix}
  'dbuser' => {user}
  'dbpassword' => {password}
  'logtimezone' => 'UTC',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
);

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

grahamsk avatar Mar 13 '18 13:03 grahamsk

I am having the same issue. Nextcloud version 13.0.2 Nginx php 7.0 Used firefox and chrome. My desktop client is on Fedora 27

pvanthony avatar May 05 '18 17:05 pvanthony

The following work around seems to be working. I hope an official fix will come soon. https://help.nextcloud.com/t/nextcloud-13-chunking-upload-not-working/28755/17

pvanthony avatar May 07 '18 11:05 pvanthony

Hey, this issue has been closed because the label stale is set and there were no updates for 14 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

nextcloud-bot avatar Jul 05 '18 13:07 nextcloud-bot

Any news here? I an encountering the same error...

AndrewErman avatar Jul 29 '18 20:07 AndrewErman

Same here

SvenRath avatar Jul 30 '18 05:07 SvenRath

Same here - ~~Workaround doesn't work~~.

Olli avatar Jul 30 '18 07:07 Olli

Ditto. Using the docker image.

fizux avatar Jul 31 '18 22:07 fizux

Hm... Is anybody monitoring this issue except the bot? It seems to be quite critical...

AndrewErman avatar Aug 01 '18 14:08 AndrewErman

@icewind1991 happens in your lib so I suppose it's one for you?

jospoortvliet avatar Aug 17 '18 16:08 jospoortvliet

I encountered the same problem.

CipherFelix avatar Sep 03 '18 06:09 CipherFelix

same problem.

andreaspollak avatar Sep 03 '18 06:09 andreaspollak

Same issue with 14.0.1.1

alo-is avatar Sep 30 '18 16:09 alo-is

Same problem with 14.0.1.1

mleu77 avatar Oct 03 '18 17:10 mleu77

Just found the root cause of my issue, which was related to the Nginx configuration, and not Nextcloud : debops/ansible-owncloud#87 and debops/debops#469.

alo-is avatar Oct 04 '18 20:10 alo-is

Hm, this clause isn't in the recommended example config for running Nextcloud with nginx. But it makes absolutely sense to the initiating issue.

https://docs.nextcloud.com/server/13/admin_manual/installation/nginx.html https://docs.nextcloud.com/server/14/admin_manual/installation/nginx.html

timm2k avatar Oct 05 '18 05:10 timm2k

my problem is gone, since changes in vhost config (using ispconfig 3.1 standard template for nginx)

from this (vhost config) location ~ /\. { deny all; }

lines from access.log: xx.xx.xx.xx - USERNAME [19/Oct/2018:16:50:47 +0200] "MKCOL /remote.php/dav/uploads/USERNAME/3784624209 HTTP/1.1" 201 0 "-" "Mozilla/5.0 (Macintosh) mirall/2.3.3 (build 84) (Nextcloud)" xx.xx.xx.xx - USERNAME [19/Oct/2018:16:50:51 +0200] "PUT /remote.php/dav/uploads/USERNAME/3784624209/00000000 HTTP/1.1" 201 0 "-" "Mozilla/5.0 (Macintosh) mirall/2.3.3 (build 84) (Nextcloud)" xx.xx.xx.xx - USERNAME [19/Oct/2018:16:50:54 +0200] "PUT /remote.php/dav/uploads/USERNAME/3784624209/00000001 HTTP/1.1" 201 0 "-" "Mozilla/5.0 (Macintosh) mirall/2.3.3 (build 84) (Nextcloud)" xx.xx.xx.xx - USERNAME [19/Oct/2018:16:50:57 +0200] "PUT /remote.php/dav/uploads/USERNAME/3784624209/00000002 HTTP/1.1" 201 0 "-" "Mozilla/5.0 (Macintosh) mirall/2.3.3 (build 84) (Nextcloud)" xx.xx.xx.xx - USERNAME [19/Oct/2018:16:50:57 +0200] "MOVE /remote.php/dav/uploads/USERNAME/3784624209/.file HTTP/1.1" 500 186 "-" "Mozilla/5.0 (Macintosh) mirall/2.3.3 (build 84) (Nextcloud)"

to this (vhost config) location ~ /\.(?!file).* { deny all; }

upload with desktop client is working fine now!

andreaspollak avatar Oct 20 '18 19:10 andreaspollak

my problem is gone, since changes

Where are those statements coming from?

MorrisJobke avatar Oct 24 '18 12:10 MorrisJobke

Same problem.

MisterCrabman avatar Nov 13 '18 00:11 MisterCrabman

@blauark pls don't just add a me-too, unless you have any info that can help us track down the problem - right now we simply can't reproduce it, things work fine on our test setup so this isn't a valid, useful issue until it can be reliably reproduced. It seems all due to bad configuration on the server, eg NGINX settings and so on. I actually think we should close this as a 'not a Nextcloud issue' unless someone has proof to the contrary. This isn't a support forum for web server configuration issues...

jospoortvliet avatar Nov 16 '18 17:11 jospoortvliet

Closing as @jospoortvliet said.

MorrisJobke avatar Nov 19 '18 12:11 MorrisJobke