4.7 GB file download Nextcloud failed, plain link works

Nextcloud version (eg, 20.0.5): 20.0.8
Operating system and version (eg, Ubuntu 20.04): shared host (CPanel), Kernel: 3.10.0-1160.6.1.el7.x86_64 x86_64
Apache or nginx version (eg, Apache 2.4.25): 2.4.46
PHP version (eg, 7.4): 7.4.16
Server has enough free space (at least twice 4.7GB)

The issue you are facing:

I’d like to download a 4.7GB ZIP file through Nextcloud webUI from my account.

The downloading process sometimes just stucks/stops at around 800MB-1200MB-2200MB-2700MB sometimes the browser shows “Network error”.

I’ve tried FF, Chrome (all up-to-date) result was the same, download stopped or failed.

After that I’ve moved the 4.7GB file to the “public_html” and tried to download via simple link, it worked.

I’ve tried the two different download methods on different client PC-s on different ISP networks. The result was the same, downloading through Nextcloud fails every time, download through plain link works every time and it saturates the client internet bandwidth.

Steps to replicate it:

  1. Have a big file (4.7GB) in Nextcould
  2. Try to download via web UI
  3. Download fails, sometimes it just “stuck”, sometimes “Network error”

Logs:

Before I’ve tried to download the 4.7 GB file I cleared:

  • Nextcloud logs
  • Apache logs

After the download failed there was no error log, not a single line!

I can’t access to syslog (shared host).

Etc:

I’ve modified the php limits (via CPanel UI, but that didn’t help either):

<IfModule php7_module>
   php_flag display_errors Off
   php_value max_execution_time 3600
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit -1
   php_value post_max_size 8M
   php_value session.gc_maxlifetime 3600
   php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
   php_value upload_max_filesize 2M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors Off
   php_value max_execution_time 3600
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value memory_limit -1
   php_value post_max_size 8M
   php_value session.gc_maxlifetime 3600
   php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
   php_value upload_max_filesize 2M
   php_flag zlib.output_compression Off
</IfModule>

What should I try to do to get detailed logs in nextcloud.log?

Update:
during the download I’ve checked the Nextcloud / Settigns / Adminitration / System chart and there was no spike or significant change in Load and in Memory charts

Adjust log level

https://docs.nextcloud.com/server/21/admin_manual/configuration_server/logging_configuration.html?highlight=loglevel#log-level

Any logs your provider is offering you?