Open chaosgrid opened 1 week ago
Update: This also happens when downloading a file from sftp backend that is bigger than 2GB. It fails right at the 2GB mark and the Nextcloud client simply says "Connection closed"..
I also found this forum post, seems related (though it is not the SFTP backend): https://help.nextcloud.com/t/unable-to-upload-files-larger-than-2gb-via-webdav/200157
Updated to Nextcloud docker image v30.0.2
Same issues. When downloading a file over 2GB from sftp backend, right around the 2GB mark it fails and the debug output is this:
I see you're working the issue a bit over at phpseclib, but wanted to check on this comment:
When I connect the same storage via FTPS, uploads above 2GB succeed.
Was that a typo or did you really test using FTPS instead of SFTP?
I see you're working the issue a bit over at phpseclib, but wanted to check on this comment:
When I connect the same storage via FTPS, uploads above 2GB succeed.
Was that a typo or did you really test using FTPS instead of SFTP?
Yes, not a typo. I tested the same storage server via the FTPS Nextcloud storage backend and using that, there are no issues with files over 2GB. Also, directly connecting to the storage server using an SFTP tool (like WinSCP) also does not produce these bugs.
⚠️ This issue respects the following points: ⚠️
Bug description
Uploading files larger than 2GB to SFTP external storage backend fails. This is on a docker install using the official Nextcloud image version
29.0.9-apache
.Steps to reproduce
Expected behavior
Successful file upload.
Nextcloud Server version
29
Operating system
Other
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
This issue is probably related to or the same as https://github.com/nextcloud/server/issues/48231
It happens on a docker container install using the official Nextcloud image with version
29.0.9-apache
According to Claude, it might be that the packaged phpseclib version is too old. In fact, checking the composer.json in my docker container, it says:
"phpseclib/phpseclib": "^2.0.45"
Claude says:
Is this plausible?
When I connect the same storage via FTPS, uploads above 2GB succeed. I am not sure when this bug was introduced since it definitely worked in the past, we uploaded >2GB files to the storage using the SFTP backend before.