// troubleshooting guide · nextcloud
Nextcloud Sync Error: Connection Closed
- Status
- Workaround available
- platforms:
- Desktop, self-hosted
- updated:
- November 16, 2026
- reports:
- 3
- Method
- how we research
RUNBOOK · nextcloud/connection-closed-sync2 FIXES
// quick answer
'Connection closed' on large files is usually chunk size or timeouts; adjust client chunk settings and check proxy limits.
Most likely fix: Adjust client chunk settings
How to fix it
// try these in order, the most common fix is first
FIX 1Adjust client chunk settings
- 01Edit nextcloud.cfg and set maxChunkSize (for example 50 MB)
- 02Limit targetChunkUploadDuration to avoid timeouts, or set it to 0 to disable dynamic chunking
- 03Restart the client
Did this fix it?FIX 2Raise server limits
- 01Increase PHP_UPLOAD_LIMIT and PHP_MEMORY_LIMIT in the container or php.ini
- 02Check proxy timeouts
Did this fix it?
Symptoms
The client reports Connection closed when syncing files over about 1 GB.
Why it happens
- C-01Chunks too large for a proxy or CDN
- C-02Timeouts set too liberally
- C-03PHP upload or memory limits too low
// this guide also covers
- nextcloud connection closed
- nextcloud client connection closed large files
Still not working?
If Nextcloud keeps failing, you're not alone. See every Nextcloud problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
Dropbox Not Syncing (Dropbox)
Google Drive Not Syncing (Google Drive)
Proton Drive Not Syncing on Windows (Proton Drive)
Tresorit Not Syncing Files (Tresorit)
Other Nextcloud errors
- Nextcloud Access Through Untrusted Domain Error
- Why Is Nextcloud So Slow?
- Nextcloud Upload Size Limit and 413 Error
- Nextcloud Desktop Client Sync Slow
- Nextcloud File Is Locked (423) Error
- Nextcloud Stuck in Maintenance Mode
- Nextcloud Internal Server Error After Update or App Install
- Nextcloud Client CSync Unknown Error