You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drag and drop a large file (5GB in this case) via the Web client
Expected behaviour
File should be uploaded (meaning, transferred to the uploads folder and then assembled and moved to the final destination folder).
Actual behaviour
File gets uploaded to server (meaning, transferred to the uploads folder) but and exception gets thrown at the end of the process, when assembling and moving to the final destination folder.
The entire file content is transferred to the server, as I can find a folder with 512 chunks, all with exactly 10MB in size except the last one (with the remainder), whose total size in bytes equals the size of the archive I was uploading. I know 512 is too good a number to be true, but the size does equal the archive's size so in this case I'll chalk it up to serendipity.
Fatal Sabre\DAV\Exception: Failed write steam to RPi3-CRT.zip.ocTransferId.part
Error OCP\Files\GenericFileException: Failed write steam to RPi3-CRT.zip.ocTransferId.part
I tried it both on a 18.0.9 setup I have, as well as in a separate 19.0.3 I have, both exhibiting the same behavior.
I tested a small file (60MB) and a medium-large file (2.9GB), both worked successfully.
I also tested with a larger file (6.1GB) and at least confirmed that the number of chunks transferred can be more than 512 (got to 586) :)
Let me know if I can share any further details.
Server configuration
Operating system:
Linux 5.4.51-v7l+ #1326 SMP Fri Jul 17 10:51:18 BST 2020 armv7l GNU/Linux
On a Raspbery Pi4, 4GB, 32-bit OS
Web server:
Apache2 web server (let me know if this is what you're looking for here?)
Database:
MySQL
PHP version:
7.3
Nextcloud version: (see Nextcloud admin page)
19.0.3 (and 18.0.9)
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from NC 18 fresh install a while back.
Are you using external storage, if yes which one: local/smb/sftp/...
Yes, Local.
Are you using encryption: yes/no
No.
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No.
Client configuration
Browser:
Version 85.0.4183.102 (Official Build) (64-bit)
Operating system:
Version 85.0.4183.102 (Official Build) (64-bit)
Logs
Web server error log
Web server error log
[Fri Sep 18 00:00:01.499655 2020] [ssl:warn] [pid 1236] AH01906: localhost:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Sep 18 00:00:01.499753 2020] [ssl:warn] [pid 1236] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Fri Sep 18 00:00:01.500347 2020] [mpm_prefork:notice] [pid 1236] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Fri Sep 18 00:00:01.500370 2020] [core:notice] [pid 1236] AH00094: Command line: '/usr/sbin/apache2'
[Fri Sep 18 10:03:33.732314 2020] [php7:error] [pid 9710] [client 192.168.86.39:58934] script '/var/www/html/nextcloud/phpinfo.php' not found or unable to stat
[Fri Sep 18 10:03:48.206501 2020] [php7:error] [pid 20150] [client 192.168.86.39:58948] script '/var/www/html/phpinfo.php' not found or unable to stat
[Fri Sep 18 10:04:05.456582 2020] [php7:error] [pid 15002] [client 192.168.86.39:43118] script '/var/www/html/nextcloud/phpinfo.php' not found or unable to stat
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"hVgSgptDI8FOjSD9baCt","level":3,"time":"2020-09-18T07:30:14+00:00","remoteAddr":"192.168.86.39","user":"admin","app":"no app in context","method":"MOVE","url":"/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","message":{"Exception":"OCP\\Files\\GenericFileException","Message":"Failed write steam to RPi3-CRT.zip.ocTransferId1324925905.part","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":630,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->","args":["RPi3-CRT.zip.ocTransferId1324925905.part",null,null]},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":630,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["RPi3-CRT.zip.ocTransferId1324925905.part",null,null]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":192,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["RPi3-CRT.zip.ocTransferId1324925905.part",null]},{"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/3rdparty/sabre/dav/lib/DAV/Tree.php","line":316,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["RPi3-CRT.zip",null]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":130,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->","args":[{"__class__":"OCA\\DAV\\Upload\\FutureFile"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"},"RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":161,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"move","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":58,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"OCA\\DAV\\Upload\\ChunkingPlugin"},"beforeMove"],["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":633,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMove",["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]]},{"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__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"},"httpMove"],[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__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:MOVE",[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__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://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":319,"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":165,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Files/Storage/Local.php","Line":506,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36","version":"18.0.9.1"}
{"reqId":"hVgSgptDI8FOjSD9baCt","level":4,"time":"2020-09-18T07:30:15+00:00","remoteAddr":"192.168.86.39","user":"admin","app":"webdav","method":"MOVE","url":"/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","message":{"Exception":"Sabre\\DAV\\Exception","Message":"Failed write steam to RPi3-CRT.zip.ocTransferId1324925905.part","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":244,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[{"__class__":"OCP\\Files\\GenericFileException"}]},{"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/3rdparty/sabre/dav/lib/DAV/Tree.php","line":316,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["RPi3-CRT.zip",null]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":130,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->","args":[{"__class__":"OCA\\DAV\\Upload\\FutureFile"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"},"RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":161,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"move","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":58,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"OCA\\DAV\\Upload\\ChunkingPlugin"},"beforeMove"],["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":633,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMove",["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]]},{"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__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"},"httpMove"],[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__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:MOVE",[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__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://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":319,"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":165,"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":662,"Previous":{"Exception":"OCP\\Files\\GenericFileException","Message":"Failed write steam to RPi3-CRT.zip.ocTransferId1324925905.part","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":630,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->","args":["RPi3-CRT.zip.ocTransferId1324925905.part",null,null]},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":630,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["RPi3-CRT.zip.ocTransferId1324925905.part",null,null]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":192,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["RPi3-CRT.zip.ocTransferId1324925905.part",null]},{"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/3rdparty/sabre/dav/lib/DAV/Tree.php","line":316,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["RPi3-CRT.zip",null]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":130,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->","args":[{"__class__":"OCA\\DAV\\Upload\\FutureFile"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"},"RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":161,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"move","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":58,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"OCA\\DAV\\Upload\\ChunkingPlugin"},"beforeMove"],["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":633,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMove",["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","files/admin/Other/RPi3-CRT.zip"]]},{"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__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"},"httpMove"],[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__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:MOVE",[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__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://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600413121800/.file","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":319,"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":165,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Files/Storage/Local.php","Line":506},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36","version":"18.0.9.1"}
{"reqId":"ZKsyNyv6F8TPOJvgrJTq","level":3,"time":"2020-09-18T08:02:11+00:00","remoteAddr":"192.168.86.39","user":"admin","app":"no app in context","method":"MOVE","url":"/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","message":{"Exception":"OCP\\Files\\GenericFileException","Message":"Failed write steam to RPi3-CRT.zip.ocTransferId1190882328.part","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":630,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->","args":["RPi3-CRT.zip.ocTransferId1190882328.part",null,null]},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":630,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["RPi3-CRT.zip.ocTransferId1190882328.part",null,null]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":192,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["RPi3-CRT.zip.ocTransferId1190882328.part",null]},{"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/3rdparty/sabre/dav/lib/DAV/Tree.php","line":316,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["RPi3-CRT.zip",null]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":130,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->","args":[{"__class__":"OCA\\DAV\\Upload\\FutureFile"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"},"RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":161,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"move","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":58,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"OCA\\DAV\\Upload\\ChunkingPlugin"},"beforeMove"],["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":633,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMove",["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]]},{"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__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"},"httpMove"],[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__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:MOVE",[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__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://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":319,"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":165,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Files/Storage/Local.php","Line":506,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36","version":"18.0.9.1"}
{"reqId":"ZKsyNyv6F8TPOJvgrJTq","level":4,"time":"2020-09-18T08:02:12+00:00","remoteAddr":"192.168.86.39","user":"admin","app":"webdav","method":"MOVE","url":"/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","message":{"Exception":"Sabre\\DAV\\Exception","Message":"Failed write steam to RPi3-CRT.zip.ocTransferId1190882328.part","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":244,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[{"__class__":"OCP\\Files\\GenericFileException"}]},{"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/3rdparty/sabre/dav/lib/DAV/Tree.php","line":316,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["RPi3-CRT.zip",null]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":130,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->","args":[{"__class__":"OCA\\DAV\\Upload\\FutureFile"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"},"RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":161,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"move","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":58,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"OCA\\DAV\\Upload\\ChunkingPlugin"},"beforeMove"],["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":633,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMove",["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]]},{"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__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"},"httpMove"],[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__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:MOVE",[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__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://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":319,"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":165,"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":662,"Previous":{"Exception":"OCP\\Files\\GenericFileException","Message":"Failed write steam to RPi3-CRT.zip.ocTransferId1190882328.part","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":630,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->","args":["RPi3-CRT.zip.ocTransferId1190882328.part",null,null]},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":630,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["RPi3-CRT.zip.ocTransferId1190882328.part",null,null]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":192,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["RPi3-CRT.zip.ocTransferId1190882328.part",null]},{"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/3rdparty/sabre/dav/lib/DAV/Tree.php","line":316,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["RPi3-CRT.zip",null]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":130,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->","args":[{"__class__":"OCA\\DAV\\Upload\\FutureFile"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"},"RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":161,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"move","class":"Sabre\\DAV\\Tree","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":58,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->","args":["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"OCA\\DAV\\Upload\\ChunkingPlugin"},"beforeMove"],["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":633,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMove",["uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","files/admin/Other/RPi3-CRT.zip"]]},{"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__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"},"httpMove"],[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__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:MOVE",[{"absoluteUrl":"https://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__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://192.168.86.10/nextcloud/remote.php/dav/uploads/admin/web-file-upload-d8b12cd9c51749c5f038a4a0e1ca40cf-1600414968749/.file","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":319,"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":165,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Files/Storage/Local.php","Line":506},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36","version":"18.0.9.1"}
The text was updated successfully, but these errors were encountered:
Also getting this error with NC 19.0.3-1 fresh install on Odroid XU4 (armv7h), using nginx and php-fpm with 32 bit OS.
PHP was confirmed built with -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 flags, running the test script mentioned in docker-library/php#901 without error.
Applied this patch #16431 (comment) on NC 18 and now it works with >4GB files as long as PHP is built with LFS flags I mentioned. It's more of a workaround until NC made separate specific codes for 32 bit, I guess.
Thank you for sharing - I confirm that applying that patch does solve the problem on a RPi4, 32-Bit Raspbian, with PHP compiled withe the flags you mentioned.
How to use GitHub
Steps to reproduce
Expected behaviour
File should be uploaded (meaning, transferred to the uploads folder and then assembled and moved to the final destination folder).
Actual behaviour
File gets uploaded to server (meaning, transferred to the uploads folder) but and exception gets thrown at the end of the process, when assembling and moving to the final destination folder.
The entire file content is transferred to the server, as I can find a folder with 512 chunks, all with exactly 10MB in size except the last one (with the remainder), whose total size in bytes equals the size of the archive I was uploading. I know 512 is too good a number to be true, but the size does equal the archive's size so in this case I'll chalk it up to serendipity.
Fatal Sabre\DAV\Exception: Failed write steam to RPi3-CRT.zip.ocTransferId.part
Error OCP\Files\GenericFileException: Failed write steam to RPi3-CRT.zip.ocTransferId.part
I tried it both on a 18.0.9 setup I have, as well as in a separate 19.0.3 I have, both exhibiting the same behavior.
I tested a small file (60MB) and a medium-large file (2.9GB), both worked successfully.
I also tested with a larger file (6.1GB) and at least confirmed that the number of chunks transferred can be more than 512 (got to 586) :)
Let me know if I can share any further details.
Server configuration
Operating system:
Linux 5.4.51-v7l+ #1326 SMP Fri Jul 17 10:51:18 BST 2020 armv7l GNU/Linux
On a Raspbery Pi4, 4GB, 32-bit OS
Web server:
Apache2 web server (let me know if this is what you're looking for here?)
Database:
MySQL
PHP version:
7.3
Nextcloud version: (see Nextcloud admin page)
19.0.3 (and 18.0.9)
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from NC 18 fresh install a while back.
Where did you install Nextcloud from:
From the main Nextcloud releases page
https://download.nextcloud.com/server/releases/
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Yes, Local.
Are you using encryption: yes/no
No.
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No.
Client configuration
Browser:
Version 85.0.4183.102 (Official Build) (64-bit)
Operating system:
Version 85.0.4183.102 (Official Build) (64-bit)
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
The text was updated successfully, but these errors were encountered: