ZIP Files greater 166MB stop downloading

Hello there, I cant download ZIP files bigger than 166mb. I Tried to change php values that could have something to do with it, but it didnt work. I dont know for how long this problem exists, because I dont download ZIP that often.

[/details]

Nextcloud version: 14.0.4
Operating system and version: Ubuntu 16.04.5 LTS‬
Apache or nginx version 2.4.18-2ubuntu3.9
PHP version: 7.2.12

The issue you are facing:

Is this the first time you’ve seen this error?
Yes.

Steps to replicate it:

  1. Upload Pictures in Folder
  2. In Browser (Firefox 63.0.3) hit Folder, Actions Download, download starts (Folder has 300mb pictures)
  3. Download stops at exactly 166mb

The output of your Nextcloud log in Admin > Logging:

OC\Encryption\Exceptions\DecryptionFailedException: Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/lib/private/Files/Stream/Encryption.php - line 479:

    OCA\Encryption\Crypto\Encryption->decrypt("*** sensiti ... *")

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/lib/private/Files/Stream/Encryption.php - line 299:

    OC\Files\Stream\Encryption->readCache()

    OC\Files\Stream\Encryption->stream_read(8192)

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/3rdparty/icewind/streams/src/Wrapper.php - line 91:

    fread(null, 8192)

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/3rdparty/icewind/streams/src/CallbackWrapper.php - line 91:

    Icewind\Streams\Wrapper->stream_read(8192)

    Icewind\Streams\CallbackWrapper->stream_read(8192)

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php - line 373:

    fread(null, 1048560)

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php - line 227:

    ZipStreamer\ZipStreamer->streamFileData(null, "*** sensiti ... *", 1)

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/lib/private/Streamer.php - line 138:

    ZipStreamer\ZipStreamer->addFileFromStream(null, "2018-09-01 ... G", { timestamp: ... 1})

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/lib/private/Streamer.php - line 112:

    OC\Streamer->addFileFromStream(null, "2018-09-01 ... G", 1483880, 1536177332)

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/lib/private/legacy/files.php - line 191:

    OC\Streamer->addDirRecursive("/oc_upload/ ... e")

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/apps/files/ajax/download.php - line 64:

    OC_Files::get("/oc_upload", "Picturefolder", { head: false})

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/lib/private/Route/Route.php - line 155:

    require_once("/var/www/vh ... p")

    OC\Route\Route->OC\Route\{closure}("*** sensiti ... *")

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/lib/private/Route/Router.php - line 297:

    call_user_func(Closure {}, { _route: "f ... "})

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/lib/base.php - line 987:

    OC\Route\Router->match("/apps/files/ajax/download.php")

    /var/www/vhosts/mydomain.com/cloud.mydomain.com/index.php - line 42:

    OC::handleRequest()

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

<?php
$CONFIG = array (
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' => 
  array (
    0 => 'cloud.mydomain.com',
  ),
  'datadirectory' => '/var/www/vhosts/mydomain/cloud.data',
  'overwrite.cli.url' => 'https://cloud.mydomain.com',
  'dbtype' => 'mysql',
  'version' => '14.0.4.2',
  'dbname' => 'db_01',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'user_01',
  'dbpassword' => 'xxx',
  'installed' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\Image',
    1 => 'OC\\Preview\\MP3',
    2 => 'OC\\Preview\\TXT',
    3 => 'OC\\Preview\\MarkDown',
    11 => 'OC\\Preview\\Epub',
  ),
  'loglevel' => 3,
  'log_rotate_size' => 52428800,
  'log_rotate_sizerotation' => 104857600,
  'trashbin_retention_obligation' => '7, 14',
  'versions_retention_obligation' => '3, 9',
  'forcessl' => true,
  'forceSSLforSubdomains' => true,
  'theme' => '',
  'maintenance' => false,
  'share_folder' => '/Shared',
  'singleuser' => false,
  'appstore.experimental.enabled' => true,
  'appstoreurl' => 'https://apps.nextcloud.com/api/v0',
  'mail_from_address' => 'cloud',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'mydomain.com',
  'updater.release.channel' => 'stable',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 1.5,
  ),
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'domain.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'updater.secret' => 'xxx',
);

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

only access logs are found, no errors or warnings