Large file upload fails , v30

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

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:

(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).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

  • Nextcloud Server version (e.g., 29.x.x):
    • [Nextcloud Hub 9] (30.0.2)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.58
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Caddy
  • PHP version (e.g, 8.3):
    • PHP 8.3.6
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • after upgrade
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • Bare metal
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Large file upload anything largeger than 15-16 MB fails with an error via the browser. followed Uploading big files > 512MB — Nextcloud latest Administration Manual latest documentation but error persists. After setting chuck size 0 it started uploading, but it still terminates halfway.

Steps to replicate it (hint: details matter!):

  1. Upload any file using a browser.
    PS:Uploads by mobile app are working fine

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

version":"30.0.2.2","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 466734295 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 14426112 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/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1137,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":492,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":43,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":370,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php","line":19,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/remote.php","line":146,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":259,"message":"Expected filesize of 466734295 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 14426112 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 466734295 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 14426112 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}```

#### Web Browser

If the problem is related to the Web interface, open your browser inspector *Console* and *Network* tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE


#### Web server / Reverse Proxy

The output of your Apache/nginx/system log in `/var/log/____`:

PASTE HERE



### Configuration
 
#### Nextcloud

The output of `occ config:list system` or similar is best, but, if not possible, the contents of your `config.php` file from `/path/to/nextcloud` is fine (make sure to remove any identifiable information!):

{
“system”: {
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“192.162.33.11”,
"cloud.host.net
],
“trusted_proxies”: “REMOVED SENSITIVE VALUE”,
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “30.0.2.2”,
“tempdirectory”: “/tmp”,
“upload_tmp_dir”: “/tmp”,
“overwrite.cli.url”: “http://192.162.33.11”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“filelocking.enabled”: “true”,
“profile.enabled”: true,
“memcache.locking”: “\OC\Memcache\Redis”,
“objectstore”: {
“class”: “\OC\Files\ObjectStore\S3”,
“arguments”: {
“bucket”: “xyz-bucket”,
“hostname”: “ap-south.s3.com”,
“key”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“port”: 443,
“use_path_style”: true
}
},
“redis”: {
“host”: “REMOVED SENSITIVE VALUE”,
“port”: 0,
“dbindex”: 0,
“password”: “REMOVED SENSITIVE VALUE”,
“timeout”: 1.5
},
“installed”: true,
“memcache.local”: “\OC\Memcache\APCu”,
“instanceid”: “REMOVED SENSITIVE VALUE”,
“htaccess.RewriteBase”: “/”,
“maintenance_window_start”: 1,
“memories.db.triggers.fcu”: true,
“memories.exiftool”: “/var/www/html/nextcloud/apps/memories/bin-ext/exiftool-amd64-glibc”,
“memories.vod.path”: “/var/www/html/nextcloud/apps/memories/bin-ext/go-vod-amd64”,
“memories.vod.ffmpeg”: “/usr/bin/ffmpeg”,
“memories.vod.ffprobe”: “/usr/bin/ffprobe”,
“maintenance”: false,
“memories.gis_type”: 1,
“twofactor_enforced”: “false”,
“twofactor_enforced_groups”: ,
“twofactor_enforced_excluded_groups”: [
“admin”,
“INDIA”
],
“memories.vod.disable”: false,
“defaultapp”: “dashboard”,
“enabledPreviewProviders”: [
“OC\Preview\Image”,
“OC\Preview\HEIC”,
“OC\Preview\TIFF”,
“OC\Preview\Movie”
],
“theme”: “”,
“loglevel”: “1”,
“data-fingerprint”: “2e14fd0fdc8e538bce65a17db136b7ef”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“mail_sendmailmode”: “smtp”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtpauth”: 1,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “465”,
“preview_max_x”: 1024,
“preview_max_y”: 1024,
“memories.vod.use_gop_size”: true,
“simpleSignUpLink.shown”: false
}
}


#### Apps

The output of `occ app:list` (if possible).

### Tips for increasing the likelihood of a response

* Use the `preformatted text` formatting option in the editor for all log entries and configuration output.
* If screenshots are useful, feel free to include them. 
  - If possible, also include key error output in text form so it can be searched for.
* Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

When you updated to NC 30?

There is enough space?

Is this happening on local storage as well, or just upload to S3 storage?

1 Like

Hello , I solved it by replacing Caddy reverse proxy with HAProxy.

You wrote none in the first place…

Added missing info , thanks .

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.