NextcloudPi: Downloading Error with larger Files (>1,5GB)

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, 12.0.2): 16.0.3.0
Operating system and version (eg, Ubuntu 17.04): NextcloudPi v.1.18
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 (Raspbian)

PHP version (eg, 7.1): 7.3.4

The issue you are facing:
When I’m trying to download a folder which is bigger than 1,5GB, Nextcloud comes with an Error called “Internal system error”. The error log from nextcloud ist pasted below.

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

Steps to replicate it:

  1. Choose a Folder / File to download larger then 1,5GB
  2. Click Download
  3. See Errormessage

The output of your Nextcloud log in Admin > Logging:

[index] Error: TypeError: Argument 2 passed to OC\Streamer::__construct() must be of the type int, float given, called in /var/www/nextcloud/lib/private/legacy/files.php on line 166 at <<closure>>

0. /var/www/nextcloud/lib/private/legacy/files.php line 166
   OC\Streamer->__construct(OC\AppFramework\Http\Request {}, 3544812643, 611)
1. /var/www/nextcloud/apps/files/ajax/download.php line 64
   OC_Files::get("/", "KanadaExport", {head: false})
2. /var/www/nextcloud/lib/private/Route/Route.php line 155
   undefinedundefinedrequire_once("/var/www/nextcl ... p")
3. <<closure>>
   OC\Route\Route->OC\Route\{closure}("*** sensitive parameters replaced ***")
4. /var/www/nextcloud/lib/private/Route/Router.php line 297
   undefinedundefinedcall_user_func(Closure {}, {_route: "files_ajax_download"})
5. /var/www/nextcloud/lib/base.php line 975
   OC\Route\Router->match("/apps/files/ajax/download.php")
6. /var/www/nextcloud/index.php line 42
   OC::handleRequest()

GET /index.php/apps/files/ajax/download.php?dir=%2F&files=KanadaExport&downloadStartSecret=fmtfnt3j464
from 2003:c2:8f14:1a00:c446:353:886d:86b1 by JD at 2019-11-11T16:10:35+00:100:

Additionally here is the whole log downloaded: 
https://pastebin.com/BPhpjgKj

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

GNU nano 3.2 config.php

**<?php**

$CONFIG = array (

**'passwordsalt'** => **'***'** ,

**'secret'** => **'****'** ,

**'trusted_domains'** => 

array (

0 => **'localhost'** ,

5 => **'nextcloudpi.local'** ,

7 => **'nextcloudpi'** ,

8 => **'nextcloudpi.lan'** ,

11 => **'46.*****.128'** ,

1 => **'192.168.178.41'** ,

20 => **'cloud.***.de'** ,

4 => **'cloud.***.de'** ,

),

**'datadirectory'** => **'/media/USBdrive/ncdata'** ,

**'dbtype'** => **'mysql'** ,

**'version'** => **'16.0.3.0'** ,

**'overwrite.cli.url'** => **'https://cloud........de/'** ,

[ Read 52

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

[Mon Nov 11 15:58:46.961454 2019] [authz_host:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54275] AH01753: access check of 'localhost' to / failed, reason: unable to get t$

[Mon Nov 11 15:58:46.961519 2019] [authz_core:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54275] AH01630: client denied by server configuration: /var/www/ncp-web/

[Mon Nov 11 15:58:47.338716 2019] [authz_host:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54275] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unab$

[Mon Nov 11 15:58:47.338767 2019] [authz_core:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54275] AH01630: client denied by server configuration: /var/www/ncp-web/favicon.$

[Mon Nov 11 15:58:49.805596 2019] [authz_host:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54275] AH01753: access check of 'localhost' to / failed, reason: unable to get t$

[Mon Nov 11 15:58:49.805649 2019] [authz_core:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54275] AH01630: client denied by server configuration: /var/www/ncp-web/

[Mon Nov 11 15:58:49.910052 2019] [authz_host:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54275] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unab$

[Mon Nov 11 15:58:49.910095 2019] [authz_core:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54275] AH01630: client denied by server configuration: /var/www/ncp-web/favicon.$

[Mon Nov 11 16:03:45.698237 2019] [authz_host:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54453] AH01753: access check of 'localhost' to / failed, reason: unable to get t$

[Mon Nov 11 16:03:45.698374 2019] [authz_core:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54453] AH01630: client denied by server configuration: /var/www/ncp-web/

[Mon Nov 11 16:03:46.400111 2019] [authz_host:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54453] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unab$

[Mon Nov 11 16:03:46.400164 2019] [authz_core:error] [pid 695:tid 2797311008] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54453] AH01630: client denied by server configuration: /var/www/ncp-web/favicon.$

[Mon Nov 11 16:26:52.529554 2019] [authz_host:error] [pid 697:tid 2889647136] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54688] AH01753: access check of 'localhost' to / failed, reason: unable to get t$

[Mon Nov 11 16:26:52.529643 2019] [authz_core:error] [pid 697:tid 2889647136] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54688] AH01630: client denied by server configuration: /var/www/ncp-web/

[Mon Nov 11 16:26:52.903411 2019] [authz_host:error] [pid 697:tid 2889647136] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54688] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unab$

[Mon Nov 11 16:26:52.903459 2019] [authz_core:error] [pid 697:tid 2889647136] [client 2003:c2:8f14:1a00:c446:353:886d:86b1:54688] AH01630: client denied by server configuration: /var/www/ncp-web/favicon.$

[Mon Nov 11 16:27:16.517871 2019] [proxy_fcgi:error] [pid 697:tid 2889647136] [client 192.168.178.23:54698] AH01071: Got error 'PHP message: PHP Notice: Undefined index: app in /var/www/ncp-web/index.ph$

Thank you for your Helping!!