Hi everyone,
I’m facing a serious issue with my Nextcloud server and I’m looking for help or ideas:
- Nextcloud version: 31.0.6.2
- Server specs: 24GB RAM, 4 CPU cores
- Primary storage: S3-compatible storage (Wasabi or others)
- Environment:
- PHP: 8.1
- Web server: Apache 2.4
- Database: MySQL 10.11.13
- PHP configuration:
upload_max_filesize
,post_max_size
, andmemory_limit
tested with 20GB, 50GB, even 1TB.max_execution_time
andmax_input_time
set to very high values.
What happens:
- Uploading small files (<1GB) works perfectly.
- Uploading large files (>5GB) always fails with errors like “Unable to read from stream”, and the upload never completes, regardless of PHP limits.
- The S3 bucket is correctly configured and works fine with other clients (e.g., AWS CLI, s3cmd), but not with Nextcloud.
I have already tried adjusting Nextcloud’s objectstore
options:
uploadPartSize
set to 500MBconcurrency
tried with values like 1, 2, and 5- increased timeouts
Nothing solves it. Nextcloud starts the upload, but then it fails with stream read errors.
My question:
Is there any configuration in Nextcloud, PHP, Apache, or the database that could still be limiting large file uploads?
Has anyone successfully used Nextcloud with S3 (Wasabi or others) as the primary storage and been able to upload files larger than 5GB or 10GB without errors?
Any advice or shared experiences would be greatly appreciated!