nextcloud_ynh icon indicating copy to clipboard operation
nextcloud_ynh copied to clipboard

error upload large file

Open klahaha opened this issue 2 years ago • 2 comments

Does not stop upload. Checksum ok.

Error appear in interface "unknown error", in logs say multiple times for 1 upload large file

Sabre\DAV\Exception\BadRequest: Expected filesize of 10485760 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 10477568 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

nextcloud doc say "Output Buffering must be turned off in .htaccess or .user.ini or php.ini, or PHP will return memory-related errors". output_buffering = 0 in php-fpm nextcloud pool fix my problem

klahaha avatar Sep 30 '21 09:09 klahaha

ah no error not fixed continues to happen sometime

e2F

klahaha avatar Sep 30 '21 10:09 klahaha

with update to nextcloud v22.1.1 error changed. now i see "Error when assembling chunks, status code 504" on client. I still see sometimes BadRequest in logs. checksum ok on server. i think "assembling chunks" error is NOT same error like BadRequest (not same timestamp, i dont see logs for 504 error in nextcloud admin "logging")

full log for BadRequest:

{"reqId":"efLFpwoE87Q6AwSa8vab","level":3,"time":"2021-10-01T11:16:46+00:00","remoteAddr":"82.123.87.67","user":"timtoum93","app":"no app in context","method":"PUT","url":"/nextcloud/remote.php/dav/uploads/timtoum93/web-file-upload-8b72b4c601739c20efb290950d4253dd-1633086789011/125829120","message":"Expected filesize of 10485760 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 10477568 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:92.0) Gecko/20100101 Firefox/92.0","version":"22.1.1.2","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 10485760 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 10477568 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":155,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":45,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["125829120",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["125829120",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["uploads/timtoum93/web-file-upload-8b72b4c601739c20efb290950d4253dd-1633086789011/125829120",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":472,"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":253,"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":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":333,"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":166,"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":245,"CustomMessage":"--"},"id":"6157243cebdbc"}

klahaha avatar Oct 01 '21 15:10 klahaha