Error when assembling chunks, status code 403

Hi all, I’ve just moved my installation to a Raspberry 4 with Raspbian Buster.
I was hoping it to solve the limitation of uploading big files, however… I’m still unable to do so as I want.

After adjusting the php configuration, from the web gui I get the message “Error when assembling chunks, status code 403”.

On the apache 2 log I see

192.168.0.2 - - [02/Nov/2019:21:20:22 +0100] “MOVE /remote.php/dav/uploads/marco/web-file-upload-6417f3f1542eb841898abdeee581c007-1572724187326/.file HTTP/1.1” 403 880 “-” "Mozilla/5.0 (X11; Li

Do you have any suggestion?

Nextcloud version 16.0.5:
Operating system and version: Raspbian Buster
Apache: 2.4.38
PHP version: 7.3

The issue you are facing:
See above

Is this the first time you’ve seen this error? Y

Steps to replicate it:

  1. upload a 5 GB file

The output of your Nextcloud log in Admin > Logging:

{"reqId":"QOQ4TiE2XtC47hh2cx96","level":3,"time":"2019-11-01T20:12:21+00:00","remoteAddr":"192.168.0.2","user":"marco","app":"PHP","method":"GET","url":"\/index.php\/settings\/ajax\/checksetup","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/var\/www\/html\/nextcloud\/3rdparty\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/77.0.3865.120 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"sL2KTiwIzdgEvBrNKff8","level":3,"time":"2019-11-01T21:39:11+00:00","remoteAddr":"192.168.0.2","user":"marco","app":"no app in context","method":"PUT","url":"\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","message":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"expected filesize 10485760 got 6160384","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Upload\/UploadFolder.php","line":45,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["555745280",null]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1096,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["555745280",null]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":525,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280",null,null]},{"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https:\/\/mycloud.mywebsite.com\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPut"],[{"absoluteUrl":"https:\/\/mycloud.mywebsite.com\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PUT",[{"absoluteUrl":"https:\/\/mycloud.mywebsite.com\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https:\/\/mycloud.mywebsite.com\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Server.php","line":316,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/remote.php","line":163,"args":["\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/File.php","Line":228,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/77.0.3865.120 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"sL2KTiwIzdgEvBrNKff8","level":4,"time":"2019-11-01T21:39:11+00:00","remoteAddr":"192.168.0.2","user":"marco","app":"webdav","method":"PUT","url":"\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","message":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"expected filesize 10485760 got 6160384","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Upload\/UploadFolder.php","line":45,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["555745280",null]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":1096,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["555745280",null]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/CorePlugin.php","line":525,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280",null,null]},{"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https:\/\/mycloud.mywebsite.com\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPut"],[{"absoluteUrl":"https:\/\/mycloud.mywebsite.com\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PUT",[{"absoluteUrl":"https:\/\/mycloud.mywebsite.com\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"\/var\/www\/html\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https:\/\/mycloud.mywebsite.com\/remote.php\/dav\/uploads\/marco\/web-file-upload-6417f3f1542eb841898abdeee581c007-1572644085037\/555745280","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Server.php","line":316,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/remote.php","line":163,"args":["\/var\/www\/html\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php"],"function":"require_once"}],"File":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/Connector\/Sabre\/File.php","Line":228,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/77.0.3865.120 Safari\/537.36","version":"16.0.5.1"}

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

<?php
$CONFIG = array (
  'instanceid' => 'ocrej23rvt26',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'mycloud.mywebsite.com',
  ),
  'datadirectory' => '/mnt/nextcloud/',
  'dbtype' => 'mysql',
  'version' => '16.0.5.1',
  'overwrite.cli.url' => 'https://mycloud.mywebsite.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_marco2',
  'dbpassword' => '',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => '',
  'mail_domain' => 'gmail.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'updater.secret' => ',
);

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

see above