Download Big files ok if contected as user, doesn't work when sharing

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com 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:

example

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

longer
example
here

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 (eg, 20.0.5): 22.2.0
Operating system and version (eg, Ubuntu 20.04): raspberry os 32 bits uptodate
Apache or nginx version (eg, Apache 2.4.25): apache 2.4.38
PHP version (eg, 7.4): 7.3.31

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):
Y
Steps to replicate it:

  1. Create a link to share file big file (2.2 GB in my case)
  2. Paste the link into a brother
  3. Got the message “The media could not be loaded, either because the server or network failed or because the format is not supported”
  4. If I try download nothing happens.
  5. If I am contected as user to the webinterface and go to the file and select download: ok
  6. Sharing smaller files like 600 mb ok.

The output of your Nextcloud log in Admin > Logging:

Deprecated event type for OCA\Files_Sharing::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used

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

<?php
$CONFIG = array (
  'instanceid' => 'xxxxx',
  'passwordsalt' => 'xxxxxx',
  'secret' => 'xxxxxx',
  'trusted_domains' => 
  array (
    0 => '192.168.1.2',
    1 => 'serveur-combi.duckdns.org',
    2 => 'serveur',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '22.2.0.2',
  'overwrite_protocol' => 'https',
  'overwrite.cli.url' => 'server/nextcloud',
  'htaccess.RewriteBase' => '/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_admin3',
  'dbpassword' => 'xxxxx',
  'installed' => true,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud.log',
  'loglevel' => 1,
  'logdateformat' => 'F d, Y H:i:s',
  'maintenance' => false,
);

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

Nothing from access.log (empty)
[Fri Nov 05 00:00:01.964554 2021] [mpm_prefork:notice] [pid 21837] AH00163: Apache/2.4.38 (Raspbian) configured -- resuming normal operations
[Fri Nov 05 00:00:01.964643 2021] [core:notice] [pid 21837] AH00094: Command line: '/usr/sbin/apache2'