Downloading files > 128M via an external link or from the web interface

Support intro

Nextcloud version : 18.0.4
Operating system and version : Ubuntu 18.0.4
Apache or nginx version . : nginx/1.14.0 (fpm-fcgi)
PHP version : 7.2.19
Memory Limit: 512 MB
Maximum Lead Time: 3600
Maximum size to send: 16 GB

The issue you are facing:

Through the application on the computer, several files of 121, 141 and 4.9 GB sizes were added.

We are waiting for the synchronization of these files, as well as making access to these files via an external link and trying to download them from the web interface.

It is synchronized on another machine and only a 121 MB file is downloaded. The rest ends at the very beginning of the download.

Files appear on the web, but you cannot download them.

Where do I need to change the limits for downloading from an external link and from the web interface of large files?

Is this the first time you’ve seen this error? : Y

The output of your Nextcloud log in Admin > Logging:

Sabre\DAV\Exception\BadRequest: Expected filesize of 100000000 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 69500928 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.
	0	/var/www/cloud.*****/apps/dav/lib/Connector/Sabre/Directory.php - line 156:  OCA\DAV\Connector\Sabre\File->put(null)
	1	/var/www/cloud.*****/apps/dav/lib/Upload/UploadFolder.php - line 47:  OCA\DAV\Connector\Sabre\Directory->createFile("00000001", null)
	2	/var/www/cloud.*****/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:  OCA\DAV\Upload\UploadFolder->createFile("00000001", null)
	3	/var/www/cloud.*****/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525:  Sabre\DAV\Server->createFile("uploads/Com ... 1", null, null)
	4	<<closure>> Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
	5	/var/www/cloud.*****/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:  call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])
	6	/var/www/cloud.*****/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:  Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])
	7	/var/www/cloud.*****/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:  Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
	8	/var/www/cloud.*****/apps/dav/lib/Server.php - line 319:  Sabre\DAV\Server->exec()
	9	/var/www/cloud.*****/apps/dav/appinfo/v2/remote.php - line 35:  OCA\DAV\Server->exec()
	10	/var/www/cloud.*****/remote.php - line 165:  require_once("/var/www/cl ... p")

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "cloud.*****"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "18.0.4.2",
    "overwrite.cli.url": "https:\/\/cloud.*****",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "mysql.utf8mb4": "true",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "maintenance": false,
    "app_install_overwrite": [
        "unsplash"
    ],
    "theme": "",
    "loglevel": 2,
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "ssl",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "updater.release.channel": "stable"
}

Enabled:
 - accessibility: 1.4.0
 - activity: 2.11.0
 - admin_audit: 1.8.0
 - bruteforcesettings: 1.6.0
 - calendar: 2.0.3
 - cloud_federation_api: 1.1.0
 - comments: 1.8.0
 - contacts: 3.3.0
 - dav: 1.14.0
 - deck: 1.0.1
 - federatedfilesharing: 1.8.0
 - federation: 1.8.0
 - files: 1.13.1
 - files_accesscontrol: 1.8.1
 - files_automatedtagging: 1.8.2
 - files_external: 1.9.0
 - files_pdfviewer: 1.7.0
 - files_retention: 1.7.0
 - files_rightclick: 0.15.2
 - files_sharing: 1.10.1
 - files_trashbin: 1.8.0
 - files_versions: 1.11.0
 - files_videoplayer: 1.7.0
 - firstrunwizard: 2.7.0
 - groupfolders: 6.0.6
 - logreader: 2.3.0
 - lookup_server_connector: 1.6.0
 - nextcloud_announcements: 1.7.0
 - notes: 3.3.1
 - notifications: 2.6.0
 - oauth2: 1.6.0
 - password_policy: 1.8.0
 - photos: 1.0.0
 - privacy: 1.2.0
 - provisioning_api: 1.8.0
 - recommendations: 0.6.0
 - serverinfo: 1.8.0
 - settings: 1.0.0
 - sharebymail: 1.8.0
 - support: 1.1.0
 - survey_client: 1.6.0
 - systemtags: 1.8.0
 - tasks: 0.13.1
 - terms_of_service: 1.4.0
 - text: 2.0.0
 - theming: 1.9.0
 - twofactor_backupcodes: 1.7.0
 - updatenotification: 1.8.0
 - user_saml: 3.0.1
 - viewer: 1.2.0
 - workflowengine: 2.0.0
Disabled:
 - unsplash
 - user_ldap

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

2020/05/22 07:04:58 [crit] 2825#2825: *122650 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol)$
2020/05/22 07:04:58 [crit] 2825#2825: *122651 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol)$
2020/05/22 07:04:59 [crit] 2825#2825: *122652 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) whil$
2020/05/22 10:10:23 [crit] 2825#2825: *123658 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) whil$
2020/05/22 22:40:27 [crit] 2825#2825: *128309 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) whil$
2020/05/22 22:45:56 [crit] 2825#2825: *128372 SSL_do_handshake() failed (SSL: error:1420918C:SSL routines:tls_early_post_process_client_hello:version too low) whil$
2020/05/22 23:47:39 [crit] 2825#2825: *128917 pwritev() "/var/lib/nginx/fastcgi/8/37/0000000378" has written only 7968 of 8184 while reading upstream, client: ***$
2020/05/22 23:50:32 [crit] 2825#2825: *128917 pwritev() "/var/lib/nginx/fastcgi/9/37/0000000379" has written only 7952 of 8184 while reading upstream, client: ***$
2020/05/23 00:15:07 [crit] 2825#2825: *129252 pwritev() "/var/lib/nginx/fastcgi/0/38/0000000380" has written only 3843 of 8184 while reading upstream, client: ***$
2020/05/23 01:05:25 [crit] 2825#2825: *129504 pwritev() "/var/lib/nginx/fastcgi/2/38/0000000382" has written only 7256 of 8184 while reading upstream, client: ***$
2020/05/23 01:09:11 [error] 2825#2825: *130450 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected '.10' (T_DNUMBER), expecting ')' in$
2020/05/23 01:09:11 [error] 2825#2825: *130456 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected '.10' (T_DNUMBER), expecting ')' in$
2020/05/23 01:09:12 [error] 2825#2825: *130274 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to a member function getRequest() on nu$
Stack trace:
#0 /var/www/cloud.*****/remote.php(170): handleException(Object(ParseError))
#1 {main}
  thrown in /var/www/cloud.*****/remote.php on line 51" while reading response header from upstream, client: ***, server: cloud.*****, request: $
2020/05/23 01:09:13 [error] 2825#2825: *130450 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected '.10' (T_DNUMBER), expecting ')' in$
2020/05/23 01:09:18 [error] 2825#2825: *130450 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected '.10' (T_DNUMBER), expecting ')' in$
2020/05/23 01:09:18 [error] 2825#2825: *129504 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected '.10' (T_DNUMBER), expecting ')' in$
2020/05/23 01:09:32 [error] 2825#2825: *129504 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected '.10' (T_DNUMBER), expecting ')' in$
2020/05/23 01:09:42 [error] 2825#2825: *130274 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to a member function getRequest() on nu$
Stack trace:
#0 /var/www/cloud.*****/remote.php(170): handleException(Object(ParseError))
#1 {main}
  thrown in /var/www/cloud.*****/remote.php on line 51" while reading response header from upstream, client: ***, server: cloud.*****, request: $
2020/05/23 01:10:35 [crit] 2825#2825: *130450 pwritev() "/var/lib/nginx/fastcgi/5/38/0000000385" has written only 3120 of 8184 while reading upstream, client: ***$
2020/05/23 01:12:07 [crit] 2825#2825: *129504 pwritev() "/var/lib/nginx/fastcgi/7/38/0000000387" has written only 7200 of 8184 while reading upstream, client: ***$
2020/05/23 01:12:07 [alert] 2825#2825: *129504 write() to "/var/log/nginx/access.log" was incomplete: 221 of 228 while logging request, client: ***, server:$