Having problems uploading files larger than 1 gigabyte, and problems finding where the culprit is.
It appears to be a hard limit. Files 995mb works no problem, but anything past 1000mb gets uploaded 15-65% and then interrupts. No exceptions. This happens both in web interface and through Webdav, and I have not installed any NC Apps since I was able to upload larger files than 1gb before.
In my main php.ini I got the following set:
max_input_time = 3600
max_execution_time = 3600
upload_max_filesize = 2048M
post_max_size = 2048M
I can’t see anything in NC’s config.php that I feel might be relevant.
I’m using Ubuntu Server 22.10, a fresh new self installed NC, and very basic installation, using Apache2, including APCu file/cache handler. I do have ClamAV installed, and calls it as executable from within NC.
Server got plenty of disk space, 16gb RAM etc.
The errorlog in NC reveals the following (logged the same time the file was being uploaded/interrupted):
[no app in context] Error: Sabre\DAV\Exception\BadRequest: Expected filesize of 1321583883 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side. at <>
- /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 151
OCA\DAV\Connector\Sabre\File->put()- /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1098
OCA\DAV\Connector\Sabre\Directory->createFile()- /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 504
Sabre\DAV\Server->createFile()- /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpPut()- /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit()- /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod()- /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()- /var/www/nextcloud/apps/dav/lib/Server.php line 360
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 171
require_once(“/var/www/nextcl … p”)PUT /remote.php/dav/files/admin/Uploadtest/Testfile.rar
from 185.195.xxx.xxx by admin at 2023-03-06T16:10:30+00:00
I also tried an improvised thing, at a later stage than when the above log was generated, by adding
upload_tmp_dir = /var/big_temp_file/
… in php.ini, and created “big_temp_file” folder in /var/. Result of that, was I got unending error logs saying NC can’t read/write that folder. This is not the origin of the initial problem, but I would also be interested in which user needs read/write to that folder in order to utilize it? Would it be “www-data”? I’m assuming I will be able to set those rights using Chown.
Thank you for any help