Hallo, I’m facing a problem with a big files upload. I try to upload via Client 12+ and 4+ GB files, but got a strange error:
Client Log:
Nextcloud,The item is not synced because of previous errors: Error transferring https://blablabla.net/remote.php/dav/uploads/work/442771527/.file - server replied: Bad Request (Chunks on server do not sum up to 4712604672 but to 4712604672 bytes)
Nextcloud,The item is not synced because of previous errors: Error transferring https://blablabla.net/remote.php/dav/uploads/work/1830682160/.file - server replied: Bad Request (Chunks on server do not sum up to 11907064832 but to 11907064832 bytes)
Server log:
I check upload folder and it full of 10MB files, but somehow they are not assembling together.
Nextcloud version: 13.0.0
Operating system and version: Ubuntu 16.04
Apache or nginx version: Apache 2.4.33
PHP version: 7.0.28
The issue you are facing:
Is this the first time you’ve seen this error?: Y
Steps to replicate it:
The output of your Nextcloud log in Admin > Logging:
Fatal webdav Sabre\DAV\Exception\BadRequest: Chunks on server do not sum up to 4712604672 but to 4712604672 bytes
/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php - line 57: OCA\DAV\Upload\ChunkingPlugin->verifySize()
[internal function] OCA\DAV\Upload\ChunkingPlugin->beforeMove('uploads/work/44...', 'files/work/Work...')
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 633: Sabre\Event\EventEmitter->emit('beforeMove', Array)
[internal function] Sabre\DAV\CorePlugin->httpMove(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method MOVE', Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/apps/dav/lib/Server.php - line 283: Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35: OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 164: require_once('/var/www/nextcl...')
{main}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'Lalalalala',
'passwordsalt' => 'Olololo',
'secret' => 'Purumpumpum',
'trusted_domains' =>
array (
0 => 'blablabla.net',
1 => 'tratata.net',
),
'datadirectory' => '/var/www/nextcloud/data',
'overwrite.cli.url' => 'https://blablabla.net/nextcloud',
'dbtype' => 'mysql',
'version' => '13.0.0.14',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'Aha',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_smtpmode' => 'sendmail',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'nextcloud',
'mail_domain' => 'blablabla.net',
'maintenance' => false,
'theme' => '',
'loglevel' => 1,
'versions_retention_obligation' => 'auto',
'data-fingerprint' => 'taaaaada',
);
The output of your Apache/nginx/system log in /var/log/____
:
# grep "12:29:" /var/log/apache2/access.log
SOME IP WAS HERE - - [17/Apr/2018:12:29:12 +0200] "PROPFIND /remote.php/dav/files/work2/ HTTP/1.1" 207 1700 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:29:21 +0200] "PROPFIND /remote.php/dav/uploads/work/442771527 HTTP/1.1" 207 113328 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:29:22 +0200] "MOVE /remote.php/dav/uploads/work/442771527/.file HTTP/1.1" 400 906 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:29:27 +0200] "PROPFIND /remote.php/dav/files/work/ HTTP/1.1" 207 1700 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:29:41 +0200] "PROPFIND /remote.php/dav/files/work2/ HTTP/1.1" 207 1700 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:29:59 +0200] "PROPFIND /remote.php/dav/files/work/ HTTP/1.1" 207 4746 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
# grep "12:26:" /var/log/apache2/access.log
SOME IP WAS HERE - - [17/Apr/2018:12:26:00 +0200] "PROPFIND /remote.php/dav/uploads/work/1830682160 HTTP/1.1" 207 283956 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:06 +0200] "MOVE /remote.php/dav/uploads/work/1830682160/.file HTTP/1.1" 400 908 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
::1 - - [17/Apr/2018:12:26:07 +0200] "OPTIONS * HTTP/1.0" 200 152 "-" "Apache/2.4.33 (Ubuntu) OpenSSL/1.1.0h (internal dummy connection)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:11 +0200] "PROPFIND /remote.php/dav/files/work2/ HTTP/1.1" 207 1700 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:14 +0200] "PROPFIND /remote.php/dav/files/work/ HTTP/1.1" 207 1700 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:41 +0200] "PROPFIND /remote.php/dav/files/work/ HTTP/1.1" 207 1699 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:42 +0200] "GET /ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 801 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:44 +0200] "PROPFIND /remote.php/dav/files/work2/ HTTP/1.1" 207 1700 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:46 +0200] "PROPFIND /remote.php/dav/files/work/ HTTP/1.1" 207 7589 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:47 +0200] "PROPFIND /remote.php/dav/files/work/MagentaCloud HTTP/1.1" 207 14384 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
# grep "1830682160" /var/log/apache2/access.log
SOME IP WAS HERE - - [17/Apr/2018:09:35:10 +0200] "PUT /remote.php/dav/uploads/work/1830682160/00001187 HTTP/1.1" 201 682 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:09:35:20 +0200] "PUT /remote.php/dav/uploads/work/1830682160/00001188 HTTP/1.1" 201 682 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:09:35:31 +0200] "PUT /remote.php/dav/uploads/work/1830682160/00001189 HTTP/1.1" 201 682 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:09:35:41 +0200] "PUT /remote.php/dav/uploads/work/1830682160/00001190 HTTP/1.1" 201 682 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:09:35:48 +0200] "MOVE /remote.php/dav/uploads/work/1830682160/.file HTTP/1.1" 400 908 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:10:22:55 +0200] "PROPFIND /remote.php/dav/uploads/work/1830682160 HTTP/1.1" 207 283956 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:10:22:59 +0200] "MOVE /remote.php/dav/uploads/work/1830682160/.file HTTP/1.1" 400 908 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:20:10 +0200] "PROPFIND /remote.php/dav/uploads/work/1830682160 HTTP/1.1" 207 283792 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:20:14 +0200] "MOVE /remote.php/dav/uploads/work/1830682160/.file HTTP/1.1" 400 908 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:32:31 +0200] "PROPFIND /remote.php/dav/uploads/work/1830682160 HTTP/1.1" 207 283956 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:32:35 +0200] "MOVE /remote.php/dav/uploads/work/1830682160/.file HTTP/1.1" 400 908 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:00 +0200] "PROPFIND /remote.php/dav/uploads/work/1830682160 HTTP/1.1" 207 283956 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:26:06 +0200] "MOVE /remote.php/dav/uploads/work/1830682160/.file HTTP/1.1" 400 908 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
# grep "442771527" /var/log/apache2/access.log
SOME IP WAS HERE - - [17/Apr/2018:11:16:11 +0200] "PUT /remote.php/dav/uploads/work/442771527/00000466 HTTP/1.1" 201 682 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:16:21 +0200] "PUT /remote.php/dav/uploads/work/442771527/00000467 HTTP/1.1" 201 846 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:16:32 +0200] "PUT /remote.php/dav/uploads/work/442771527/00000468 HTTP/1.1" 201 682 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:16:43 +0200] "PUT /remote.php/dav/uploads/work/442771527/00000469 HTTP/1.1" 201 682 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:16:54 +0200] "PUT /remote.php/dav/uploads/work/442771527/00000470 HTTP/1.1" 201 682 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:17:05 +0200] "PUT /remote.php/dav/uploads/work/442771527/00000471 HTTP/1.1" 201 682 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:17:09 +0200] "MOVE /remote.php/dav/uploads/work/442771527/.file HTTP/1.1" 400 906 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:20:46 +0200] "PROPFIND /remote.php/dav/uploads/work/442771527 HTTP/1.1" 207 113328 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:20:47 +0200] "MOVE /remote.php/dav/uploads/work/442771527/.file HTTP/1.1" 400 906 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:24:20 +0200] "PROPFIND /remote.php/dav/uploads/work/442771527 HTTP/1.1" 207 113328 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:24:21 +0200] "MOVE /remote.php/dav/uploads/work/442771527/.file HTTP/1.1" 400 906 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:35:49 +0200] "PROPFIND /remote.php/dav/uploads/work/442771527 HTTP/1.1" 207 113328 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:11:35:51 +0200] "MOVE /remote.php/dav/uploads/work/442771527/.file HTTP/1.1" 400 906 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:29:21 +0200] "PROPFIND /remote.php/dav/uploads/work/442771527 HTTP/1.1" 207 113328 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"
SOME IP WAS HERE - - [17/Apr/2018:12:29:22 +0200] "MOVE /remote.php/dav/uploads/work/442771527/.file HTTP/1.1" 400 906 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)"```