I've got two problems going on. I'm connecting to nextcloud using a reverse proxy provided by NginxProxyManager. The guide by spaceinvaderone didn't work out for me so I didn't go with his reverse proxy suggestion.
Problem nr 1:
whenever I try to upload either a single larger file (test file is 5gb) or multiple files totaling a few Gb I get
error assembling chunks, error 504
The log doesn't show anything for this error. The upload usually goes through, but not if I refresh the page too soon after receiving the error.
Problem nr 2:
When I try to upload a larger number of files (tested with 100+) my log shows the following:
Sabre\DAV\Exception\BadRequest: Expected filesize of 10485760 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 7372800 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.
/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:
OCA\DAV\Connector\Sabre\File->put(null)
/config/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php - line 45:
OCA\DAV\Connector\Sabre\Directory->createFile("251658240", null)
/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:
OCA\DAV\Upload\UploadFolder->createFile("251658240", null)
/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525:
Sabre\DAV\Server->createFile("uploads/sam ... 0", null, null)
<<closure>>
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/config/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])
/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:
Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])
/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/config/www/nextcloud/apps/dav/lib/Server.php - line 317:
Sabre\DAV\Server->exec()
/config/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/config/www/nextcloud/remote.php - line 163:
require_once("/config/www ... p")
Googling the error shows others with the same problem on OwnCloud. All solutions however are related to Apache, whereas I'm using nginx and they don't directly apply.
Solutions I've tried:
Modifed nginx.conf (/appdata/nextcloud/nginx/nginx.conf)
- increased client_max_body_size to 16G
Modifed php.ini (/etc/php7/php.ini)
- increased max_input_vars to 1000
- increased memory_limit to 1024M
- changed temp folder
- increased upload_max_filesize to 16G
- increased max_file_uploads to 1000
- increased max_execution_time to 7200
- increased max_input_time 7200