Some files fail to uplaod

[/details]

Nextcloud 17.0.1:

Operating system and version :FreeBSD nextcloud 11.2-STABLE FreeBSD 11.2-STABLE #0 r325575+c9231c7d6bd(HEAD): Mon Nov 18 22:46:47 UTC 2019 root@nemesis:/freenas-releng/freenas/_BE/objs/freenas-releng/freenas/_BE/os/sys/FreeNAS.amd64 amd64

nginx version: nginx version: nginx/1.16.1
PHP version

Version: 7.1.33
Memory Limit: 512 MB
Max Execution Time: 3600
Upload max size: 2 MB

Database

Type: mysql
Version: 5.6.45
Size: 344.5 MB

The issue you are facing:

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

Steps to replicate it:

  1. upload .mov file size 1.5g

once this file is started it keeps re trying the upload over and over.

The output of your Nextcloud log in Admin > Logging:
|Fatal|webdav|Sabre\DAV\Exception\BadRequest: Expected filesize of 1607584821 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 547143680 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

  1. /usr/local/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156: OCA\DAV\Connector\Sabre\File->put(null)
  2. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096: OCA\DAV\Connector\Sabre\Directory->createFile(“19-12-25 14-52-04 0101.mov”, null)
  3. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525: Sabre\DAV\Server->createFile(“Photos/phot … v”, null, null)
  4. <>Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R … "}, Sabre\HTTP\Response {})
  5. /usr/local/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array([ Sabre\DAV\ … "], [ Sabre\HTTP … }])
  6. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit(“method:PUT”, [ Sabre\HTTP … }])
  7. /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R … "}, Sabre\HTTP\Response {})
  8. /usr/local/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 80: Sabre\DAV\Server->exec()
  9. /usr/local/www/nextcloud/remote.php - line 163: require_once("/usr/local/ … p")|
    | — | — |

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

<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
    1 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps-pkg',
      'url' => '/apps-pkg',
      'writable' => true,
    ),
  ),
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'instanceid' => ‘id’,
  'passwordsalt' => ‘password’,
  'secret' => ‘secret’,
  'trusted_domains' => 
  array (
    0 => ‘nc.domain.com’,
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '17.0.1.1',
  'overwrite.cli.url' => 'https://nc.domain.com’,
  'dbname' => ‘dbname’,
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => ‘user’,
  'dbpassword' => ‘password’,
  'installed' => true,
  'mysql.utf8mb4' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mail_from_address' => ‘email’,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_domain' => ‘domain.com’,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.mail.com’,
  'mail_smtpport' => '587',
  'mail_smtpname' => ‘smtpuser’,
  'mail_smtppassword' => ‘password’,
);

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

PASTE HERE

i have been able to use the desktop client to sync the large file to the server. then moved it into my media folder. i can view and play the movie from the client. so this appears to be a client upload issue for video files only

upgrading the server to 17.0.2 did not make any difference.