Fail to download files bigger than 1.2GB

Support intro

Hello,

Using Nextcloud 21.09 on Cyberpanel 2.3 with PHP 8.0, when i try to download a file more than 1.2GB it returns

Nextcloud version (eg, 29.0.5): 21.09
Operating system and version (eg, Ubuntu 24.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): LiteSpeed
PHP version (eg, 8.3): 8.0

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

Steps to replicate it:

  1. Login
  2. Visit Folder
  3. Download File

The output of your Nextcloud log in Admin > Logging:

Error	PHP	Error: is_file(): open_basedir restriction in effect. File(/l10n/en.js) is not within the allowed path(s): (/tmp:/home/tlsteknoloji.net/) at /home/tlsteknoloji.net/public_html/Depo/lib/private/Template/ResourceLocator.php#106		2024-08-26T20:41:33+0300
Error	PHP	Error: file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/tmp:/home/tlsteknoloji.net/) at /home/tlsteknoloji.net/public_html/Depo/lib/private/Template/Base.php#68		2024-08-26T20:41:33+0300
Warning	no app in context	Invalid data provided to provideInitialState by files		2024-08-26T20:41:33+0300
Error	PHP	Error: is_file(): open_basedir restriction in effect. File(/l10n/en.js) is not within the allowed path(s): (/tmp:/home/tlsteknoloji.net/) at /home/tlsteknoloji.net/public_html/Depo/lib/private/Template/ResourceLocator.php#106		2024-08-26T20:38:29+0300
Error	PHP	Error: file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/tmp:/home/tlsteknoloji.net/) at /home/tlsteknoloji.net/public_html/Depo/lib/private/Template/Base.php#68		2024-08-26T20:38:29+0300
Error	PHP	Error: is_file(): open_basedir restriction in effect. File(/l10n/en.js) is not within the allowed path(s): (/tmp:/home/tlsteknoloji.net/) at /home/tlsteknoloji.net/public_html/Depo/lib/private/Template/ResourceLocator.php#106		2024-08-26T20:38:26+0300
Error	PHP	Error: file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/tmp:/home/tlsteknoloji.net/) at /home/tlsteknoloji.net/public_html/Depo/lib/private/Template/Base.php#68		2024-08-26T20:38:26+0300
Error	PHP	Error: is_file(): open_basedir restriction in effect. File(/l10n/en.js) is not within the allowed path(s): (/tmp:/home/tlsteknoloji.net/) at /home/tlsteknoloji.net/public_html/Depo/lib/private/Template/ResourceLocator.php#106

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

<?php
$CONFIG = array (
  'instanceid' => 'ocypy98djr79',
  'passwordsalt' => 'CaZFhpbT8MRse4WPdzaZitHIm1MsFe',
  'secret' => 'RK7edqGSCuQgprX/5lFaZ2zl+Icw73rsXSvN/eez2JtInDB/',
  'trusted_domains' =>
  array (
    0 => 'depo.tlsteknoloji.net',
  ),
  'datadirectory' => '/home/tlsteknoloji.net/public_html/Depo/data',
  'dbtype' => 'mysql',
  'version' => '21.0.9.1',
  'overwrite.cli.url' => 'https://depo.tlsteknoloji.net',
  'dbname' => '*******',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '*******',
  'dbpassword' => '**********',
  'installed' => true,
  'updater.secret' => '$2y$10$omMMu53tvh98dnYL7CcnMOMiGTn28j.FjsXeuTmGz2fjEoUwai7B6',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

opn_basdir protection s already disabled on the server.

PHP memory limit set to 1024MB

That indicates your web server is going offline. What is your your web server error log?

P.S. You may already know this, but you’re running a seriously out of date Nextcloud Server. You’re not running a supported release. We’re at 28/29 today.

1 Like

Hello @jtr ,

Thanks for your reply, it turns out you were right and that error happened because of my old version, updated to latest version and it all works fine.

With latest version i can download even 12GB files without any problem.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.