Permission Denied when try to download a file larger 10MB

Nextcloud version (eg, 20.0.5): 23.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04.6 LTS
Apache or nginx version (eg, Apache 2.4.25): nginx/1.21.6
PHP version (eg, 7.4): 7.4

The issue you are facing:
I’ve updated to NextCloud 23 and PHP to 7.4 the NC runs but if i try to download larger files (above 10 MB) there is a “download failed” message in the browser. Problem remains for multiple files, but not for other (smaller) files (even in the same directory, permissions equal).

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

Steps to replicate it:

  1. No way to give informations about reproducing it on an other NC.
  2. On my NC: Try to Download a file (only files over 10MB) via NextCloud in Browser
  3. Browser message “Download failed”

The output of your Nextcloud log in Admin > Logging:
No new entries

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

<?php
$CONFIG = array (
  'instanceid' => 'xxxxxxxx',
  'passwordsalt' => 'xxxxxxxx',
  'secret' => 'xxxxxxxx',
  'trusted_domains' =>
  array (
    0 => 'sub.domain.com',
    1 => '123.123.123.123',
  ),
  'datadirectory' => '/var/nextcloud_data',
  'overwrite.cli.url' => 'http://sub.domain.com:8443/nextcloud',
  'overwritehost' => 'sub.domain.com:8443',
  'overwritewebroot' => '/nextcloud',
  'dbtype' => 'mysql',
  'version' => '23.0.4.1',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud_db_user',
  'dbpassword' => 'xxxxxxxx',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'overwriteprotocol' => 'https',
  'trashbin_retention_obligation' => 'auto',
  'logtimezone' => 'Europe/Berlin',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mysql.utf8mb4' => true,
  'default_phone_region' => 'DE',
  'app_install_overwrite' =>
  array (
    0 => 'occweb',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'domain.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'ssl',
  'mail_smtphost' => 'smot.domain.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'me@domain.com',
  'mail_smtppassword' => 'xxxxxxxx',
);



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

2022/05/09 16:46:04 [crit] 1480#1480: *18834 open() "/var/cache/nginx/fastcgi_temp/1/01/0000000011" failed (13: Permission denied) while reading upstream, client: 127.0.0.1, server: 127.0.0.1, request: "GET /nextcloud/remote.php/webdav/Folder/1_1.tif?downloadStartSecret=xxxxxxxxxxxxxxxx HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "sub.domain.com", referrer: "https://sub.domain.com:8443/nextcloud/apps/files/?dir=/Folder&fileid=12345"
<br>
2022/05/09 16:46:04 [error] 1480#1480: *17909 upstream prematurely closed connection while sending to client, client: 192.168.0.98, server: sub.domain.com, request: "GET /nextcloud/remote.php/webdav/Folder/1_1.tif?downloadStartSecret=xxxxxxxxxxxxxxxx HTTP/2.0", upstream: "http://127.0.0.1:82/nextcloud/remote.php/webdav/Folder/1_1.tif?downloadStartSecret=xxxxxxxxxxxxxxxx", host: "sub.domain.com:8443", referrer: "https://sub.domain.com:8443/nextcloud/apps/files/?dir=/Folder&fileid=12345"




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.



No new entries