Auto-Upload of large files never stops uploading

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version 19.0.4 continues in 20.0
Operating system and version (eg, Ubuntu 20.04): Raspberry Pi 4
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.38
PHP version (eg, 7.1): 7.4.7

The issue you are facing:
I have auto upload configured on nextcloud App to upload to an external storage folder. For large files 100MB+ it will show the file uploading in transfers, the progress bar will complete and then it will upload again, and again and again. The file shows up via the nextcloud web console and makes it way to the external storage (s3). However, I have to manually stop the file from continuing to upload.

The log files do not show anything out of the ordinary (ios app logs and web logs)

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

Steps to replicate it:
Take large video on phone (happens on iphone and android) - watch auto upload - continues to upload over and over

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

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

<?php
$CONFIG = array (
  'instanceid' => 'oc298v2q8jt3',
  'passwordsalt' => 'XXXXX',
  'secret' => 'XXXXX,
  'trusted_domains' =>
  array (
    0 => '127.0.0.1',
    1 => 'XXXXX,
    2 => 'XXXXX',
    3 => 'XXXXX',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.4.0',
  'overwrite.cli.url' => 'http://127.0.0.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'XXXXX',
  'installed' => true,
  'updater.secret' => 'XXXXX',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

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

PASTE HERE
1 Like

Was there any progress on this.
I’m experiencing the same.

Hi, I’m experiencing the same issue… any progress in this, please?

Here is the log describing the issue

ntext	Sabre\DAV\Exception\BadRequest: Expected filesize of 115309648 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 101432063 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.
/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php - line 156:

OCA\DAV\Connector\Sabre\File->put(null)

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 1098:

OCA\DAV\Connector\Sabre\Directory->createFile("22-03-23 21-54-54 5695.mov", null)

/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 504:

Sabre\DAV\Server->createFile("files/marek ... v", null, null)

/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:

Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 472:

Sabre\DAV\Server->emit("method:PUT", [ Sabre\HTTP ... }])

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 253:

Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})

/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php - line 321:

Sabre\DAV\Server->start()

/var/www/html/apps/dav/lib/Server.php - line 332:

Sabre\DAV\Server->exec()

/var/www/html/apps/dav/appinfo/v2/remote.php - line 35:

OCA\DAV\Server->exec()

/var/www/html/remote.php - line 167:

require_once("/var/www/ht ... p")

Same issue here. I’d appreciate some feedback.