Support intro
Sorry to hear you’re facing problems. 
The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.
If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.
Getting help
In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
Before clicking submit: Please check if your query is already addressed via the following resources:
- Official documentation (searchable and regularly updated)
- How to topics and FAQs
- Forum search
(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).
The Basics
- Nextcloud Server version (e.g., 29.x.x):
31.0.9
(docker)
- Operating system and version (e.g., Ubuntu 24.04):
- Linux 4.4.302+ x86_64 (reported by Nextcloud→System)
- Actually a Synology Diskstation
- Client operating system is Manjaro x86_64
- Web server and version (e.g, Apache 2.4.25):
Docker
- Reverse proxy and version _(e.g. nginx 1.27.2)
Synology reverse proxy
- PHP version (e.g, 8.3):
8.3.25
- Is this the first time you’ve seen this error? (Yes / No):
No
- When did this problem seem to first start?
Several months
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Docker
- I used the following guide to install as a base: https://mariushosting.com/synology-how-to-install-nextcloud-using-docker/
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
When uploading large files on the order of >1GB, the Nextcloud client (version 3.16.6daily (Manjaro)) fails to upload them with a “Connection Closed” error at the client
My network is a gigabit ethernet network and it is able to connect to the Nextcloud server via LAN, so the speed is very fast. I don’t think it’s a timeout issue.
I have found many threads with similar problems and I’ve tried fixes in all of them, but I still couldn’t resolve the problem. I have tried:
- Setting maxChunkSize to 500000000, and then 50000000, in the client config settings
- Setting PHP_UPLOAD_LIMIT in the container environment to 16G, which I believe should set the upload_max_filesize and post_max_size
- Increasing PHP_MEMORY_LIMIT to 1024M
- Changing the files.chunked_upload.max_size to 34359738368 (32GB) in config.php
I seem to recall facing this issue before, and I remember resolving it by playing around with these settings.. but it seems it’s not working anymore for me and I simply could not figure it out.
The files that are failing to sync are video files (.mp4) and have sizes including 1.9GB, 1.1GB, 2.0GB, 3.1GB, etc. They’re all at least 1GB in size.
I do not face issues syncing smaller files such as markdown files, PDFs, images, etc.
Steps to replicate it (hint: details matter!):
-
Set up the Nextcloud client to sync with a local server in a network
-
Add .mp4 files of at least 1.1GB
-
Try to sync
Log entries
Nextcloud
{"reqId":"JHSOTs9bWEnFfelGlS7B","level":3,"time":"2025-09-16T14:38:04+00:00","remoteAddr":"2001:8f8:1b2f:51a9:65ac:9ccf:2680:2437","user":"9a3eedi","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/9a3eedi/Personal%20Pics/Videos/Maldives%20Shbab%20Trip%20June%202025/20250616_131136.mp4","message":"Expected filesize of 3312405360 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Linux) mirall/3.16.6daily (Nextcloud, manjaro-6.15.9-2-MANJARO ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"31.0.9.1","clientReqId":"6234cbd9-a8c5-4e9b-8edb-a41c11244527","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 3312405360 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php","line":116,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":401,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":21,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":145,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","Line":257,"message":"Expected filesize of 3312405360 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":[],"CustomMessage":"Expected filesize of 3312405360 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."},"id":"68c97fb04292c"}
Configuration
Nextcloud
www-data@50fe7ded3637:~/html$ ./occ config:list system
{
"system": {
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"overwritehost": "nextcloud.khoorystation.synology.me",
"overwriteprotocol": "https",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
***sensitive***,
***sensitive***
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "31.0.9.1",
"overwrite.cli.url": ***sensitive***,
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",
"memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
"maintenance": false,
"loglevel": 0,
"memories.db.triggers.fcu": true,
"theme": "",
"maintenance_window_start": 1,
"files.chunked_upload.max_size": 34359738368,
"forbidden_filename_basenames": [
"con",
"prn",
"aux",
"nul",
"com0",
"com1",
"com2",
"com3",
"com4",
"com5",
"com6",
"com7",
"com8",
"com9",
"com\u00b9",
"com\u00b2",
"com\u00b3",
"lpt0",
"lpt1",
"lpt2",
"lpt3",
"lpt4",
"lpt5",
"lpt6",
"lpt7",
"lpt8",
"lpt9",
"lpt\u00b9",
"lpt\u00b2",
"lpt\u00b3"
],
"forbidden_filename_characters": [
"<",
">",
":",
"\"",
"|",
"?",
"*",
"\\",
"\/"
],
"forbidden_filename_extensions": [
" ",
".",
".filepart",
".part"
]
}
}
www-data@50fe7ded3637:~/html$ ^C
Apps
Enabled:
- activity: 4.0.0
- app_api: 5.0.2
- audioplayer: 3.5.1
- bruteforcesettings: 4.0.0
- calendar: 5.5.4
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contacts: 7.3.1
- contactsinteraction: 1.12.0
- dashboard: 7.11.0
- dav: 1.33.0
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_external: 1.23.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- forms: 5.1.2
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- nextcloud_announcements: 3.0.0
- notes: 4.12.3
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- photos: 4.0.0
- previewgenerator: 5.10.0
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- richdocuments: 8.7.4
- richdocumentscode: 25.4.403
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- support: 3.0.0
- survey_client: 3.0.0
- systemtags: 1.21.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- twofactor_totp: 13.0.0-dev.0
- updatenotification: 1.21.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:
- admin_audit: 1.21.0
- collectives: 3.1.2 (installed 3.1.2)
- encryption: 2.19.0 (installed 2.15.0)
- files_rightclick: 0.15.1 (installed 1.6.0)
- maps: 1.6.0 (installed 1.5.0)
- memories: 7.6.2 (installed 7.6.2)
- music: 2.3.0 (installed 2.3.0)
- news: 26.1.0 (installed 26.1.0)
- onlyoffice: 9.10.0 (installed 9.10.0)
- spreed: 21.1.4 (installed 21.1.4)
- suspicious_login: 9.0.1
- tasks: 0.16.1 (installed 0.16.1)
- twofactor_nextcloud_notification: 5.0.0
- user_ldap: 1.22.0