Upload limit 8k

Hi,
Anyone with an idea why I suddenly face a 8k upload limit?
In php.ini it is set to 16G.
… and yes, there is sufficient space on the device.

"reqId":"X24z28hUyIy91LugZVgaWAAAQQU","level":3,"time":"2020-09-25T18:15:56+00:00","remoteAddr":"10.0.0.138","user":"username","app":"PHP","method":"PUT","url":"/remote.php/dav/files/username/Dokumente/blablabla.txt","message":"fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#91","userAgent":"Mozilla/5.0 (Linux) mirall/2.6.2-1build1 (Nextcloud)","version":"19.0.3.1"}
{"reqId":"X24z28hUyIy91LugZVgaWAAAQQU","level":3,"time":"2020-09-25T18:15:56+00:00","remoteAddr":"10.0.0.138","user":"username","app":"PHP","method":"PUT","url":"/remote.php/dav/files/username/Dokumente/blablabla.txt","message":"fread(): Unable to create temporary file, Check permissions in temporary files directory. at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#91","userAgent":"Mozilla/5.0 (Linux) mirall/2.6.2-1build1 (Nextcloud)","version":"19.0.3.1"}
{"reqId":"X24z28hUyIy91LugZVgaWAAAQQU","level":3,"time":"2020-09-25T18:15:56+00:00","remoteAddr":"10.0.0.138","user":"username","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/username/Dokumente/blablabla.txt","message":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 608606 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":154,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1104,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["blablabla.txt",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":527,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["files/username/Dokumente/blablabla.txt",null,null]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":474,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":319,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":320,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":167,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":238,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Linux) mirall/2.6.2-1build1 (Nextcloud)","version":"19.0.3.1"}

Nextcloud version (eg, 18.0.2): 19.0.3.1
Operating system and version (eg, Ubuntu 20.04): raspbian
Apache or nginx version (eg, Apache 2.4.25): apache 2.4.38
PHP version (eg, 7.1): 7.3

thank you for any help!

I would do that first :slight_smile:

Thank you very much for this but it works for smaller files so I would rule out a permissioning issue - but I checked tempdirectory anyway.

… and actually the solution is to create …/nextcloud/data/tmp as the tempdirectory from config.php is not used here.

1 Like