// 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
Share

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

  1. FIX 1Adjust client chunk settings

    1. 01Edit nextcloud.cfg and set maxChunkSize (for example 50 MB)
    2. 02Limit targetChunkUploadDuration to avoid timeouts, or set it to 0 to disable dynamic chunking
    3. 03Restart the client
    Did this fix it?
  2. FIX 2Raise server limits

    1. 01Increase PHP_UPLOAD_LIMIT and PHP_MEMORY_LIMIT in the container or php.ini
    2. 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 us

Watch Nextcloud Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All sync failures guides →

Other Nextcloud errors

All 10 Nextcloud errors and fixes →