Sep 20 07:07:19 ncserver Nextcloud[1285]: {"reqId":"hSO9GA7emV40hdYtMn7w","level":2,"time":"2024-09-20T07:07:19+02:00","remoteAddr":"1.2.3.4","user":"user1","app":"no app in context","method":"COPY","url":"/remote.php/dav/files/user1/private/File1.tar.zst","message":"{\"Exception\":\"Exception\",\"Message\":\"Failed to write steam to sftp storage\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/html/nextcloud/lib/private/Files/Storage/Common.php\",\"line\":636,\"function\":\"writeStream\",\"class\":\"OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SFTP\",\"type\":\"->\",\"args\":[\"Archiv/File1.tar.zst\",null]},{\"file\":\"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php\",\"line\":587,\"function\":\"copyFromStorage\",\"class\":\"OC\\\\Files\\\\Storage\\\\Common\",\"type\":\"->\",\"args\":[[\"OCA\\\\Files_Trashbin\\\\Storage\",null,[\"OC\\\\Files\\\\Cache\\\\Scanner\"],null,null,null],\"files/private/File1.tar.zst\",\"Archiv/File1.tar.zst\"]},{\"file\":\"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/KnownMtime.php\",\"line\":120,\"function\":\"copyFromStorage\",\"class\":\"OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper\",\"type\":\"->\",\"args\":[[\"OCA\\\\Files_Trashbin\\\\Storage\",null,[\"OC\\\\Files\\\\Cache\\\\Scanner\"],null,null,null],\"files/private/File1.tar.zst\",\"Archiv/File1.tar.zst\"]},{\"file\":\"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php\",\"line\":587,\"function\":\"copyFromStorage\",\"class\":\"OC\\\\Files\\\\Storage\\\\Wrapper\\\\KnownMtime\",\"type\":\"->\",\"args\":[[\"OCA\\\\Files_Trashbin\\\\Storage\",null,[\"OC\\\\Files\\\\Cache\\\\Scanner\"],null,null,null],\"files/private/File1.tar.zst\",\"Archiv/File1.tar.zst\"]},{\"file\":\"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php\",\"line\":587,\"function\":\"copyFromStorage\",\"class\":\"OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper\",\"type\":\"->\",\"args\":[[\"OCA\\\\Files_Trashbin\\\\Storage\",null,[\"OC\\\\Files\\\\Cache\\\\Scanner\"],null,null,null],\"files/private/File1.tar.zst\",\"Archiv/File1.tar.zst\"]},{\"file\":\"/var/www/html/nextcloud/lib/private/Files/View.php\",\"line\":928,\"function\":\"copyFromStorage\",\"class\":\"OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper\",\"type\":\"->\",\"args\":[[\"OCA\\\\Files_Trashbin\\\\Storage\",null,[\"OC\\\\Files\\\\Cache\\\\Scanner\"],null,null,null],\"files/private/File1.tar.zst\",\"Archiv/File1.tar.zst\"]},{\"file\":\"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php\",\"line\":486,\"function\":\"copy\",\"class\":\"OC\\\\Files\\\\View\",\"type\":\"->\",\"args\":[\"/private/File1.tar.zst\",\"/SFTP/Archiv/File1.tar.zst\"]},{\"file\":\"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php\",\"line\":150,\"function\":\"copyInto\",\"class\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory\",\"type\":\"->\",\"args\":[\"File1.tar.zst\",\"/private/File1.tar.zst\",[\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File\"]]},{\"file\":\"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php\",\"line\":659,\"function\":\"copy\",\"class\":\"Sabre\\\\DAV\\\\Tree\",\"type\":\"->\",\"args\":[\"files/user1/private/File1.tar.zst\",\"files/user1/SFTP/Archiv/File1.tar.zst\"]},{\"file\":\"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php\",\"line\":89,\"function\":\"httpCopy\",\"class\":\"Sabre\\\\DAV\\\\CorePlugin\",\"type\":\"->\",\"args\":[[\"Sabre\\\\HTTP\\\\Request\"],[\"Sabre\\\\HTTP\\\\Response\"]]},{\"file\":\"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":472,\"function\":\"emit\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\",\"args\":[\"method:COPY\",[[\"Sabre\\\\HTTP\\\\Request\"],[\"Sabre\\\\HTTP\\\\Response\"]]]},{\"file\":\"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":253,\"function\":\"invokeMethod\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\",\"args\":[[\"Sabre\\\\HTTP\\\\Request\"],[\"Sabre\\\\HTTP\\\\Response\"]]},{\"file\":\"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php\",\"line\":321,\"function\":\"start\",\"class\":\"Sabre\\\\DAV\\\\Server\",\"type\":\"->\",\"args\":[]},{\"file\":\"/var/www/html/nextcloud/apps/dav/lib/Server.php\",\"line\":380,\"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\":172,\"args\":[\"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php\"],\"function\":\"require_once\"}],\"File\":\"/var/www/html/nextcloud/apps/files_external/lib/Lib/Storage/SFTP.php\",\"Line\":520,\"message\":\"Failed to copy stream to storage\",\"exception\":{},\"CustomMessage\":\"Failed to copy stream to storage\"}","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.29.2","version":"28.0.10.1"}
⚠️ This issue respects the following points: ⚠️
Bug description
Files larger then 4 GB cannot be successful copied from local to external Storage
Steps to reproduce
Expected behavior
The file was transferred correctly to the external storage.
Nextcloud Server version
28
Operating system
RHEL/CentOS
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
Additional info
No response