Truncated Downloads Using "Create Link" and NC Web Interface

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


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 version 23.0.11
Operating system and version Ubuntu 20.04
Apache or nginx version Apache 2.4.25
PHP version 7.4
The issue you are facing:

I can sync large files without a problem however when I create a link on the NC web interface and attempt to download using that link the down load is truncated to less that half the size of the file that was synced. If I use the NC web interface to download the same file the result is the same; the file is truncated.

Is this the first time you’ve seen this error? No. I had this problem using NC 20 also

Steps to replicate it:

  1. Sync a large file from my desktop (ubuntu 20.04) using the client
  2. Open the NC web interface, get the link to the file, email it to myself, click the link and download.
  3. Open the downloaded file and find that it has been truncated

The output of your Nextcloud log in Admin > Logging:

[no app in context] Warning: Could not detect any host in http:///cloud1/data/htaccesstest.txt

POST /cloud1/index.php
from at 2022-11-29T17:53:05+00:00

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

display_errors = Off
max_execution_time = 3600
max_input_time = 3600
max_input_vars = 1000
memory_limit = 4096M
post_max_size = 16G
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php73"
upload_max_filesize = 16G
zlib.output_compression = Off
output_buffering = 0

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



Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.