Nextcloud not cancelling download

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): 14.0.0
Operating system and version (eg, Ubuntu 17.04): Debian 9.5.0
Apache or nginx version (eg, Apache 2.4.25): 2.4.25
PHP version (eg, 7.1): 7.0.30

The issue you are facing:

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

I came from last version of nextcloud to see if 14.0.0 solved it, but it doesn’t as far as I see. The problem is that I have an external storage NFS and with the official plugin I add it to nextcloud as local, of course the NFS storage is mounted inside the system. Once I start downloading a big file, example: 20GB and then cancel it, seems like the server continues downloading it (don’t know where) as the interface of RX is still receiving a lot of data, once the full file is downloaded in the server (I assume) the RX goes down again. If for example I pause a download file, both RX and TX go down, but if I just cancel the download it happens what it is described before.
Any idea?

Steps to replicate it:

  1. Mount a nfs dataset in debian
  2. Activate external storage plugin
  3. Config the plugin so that files can be browsed
  4. Start downloading and stop the download
    5 The interface Rx won’t go down until the file is downloaded in the server

The output of your Nextcloud log in Admin > Logging:

Nothing to paste, everything seems fine

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

<?php
$CONFIG = array (
  'instanceid' => 'ocv3194h6bpq',
  'passwordsalt' => 'VAYAFkQkZpQr7IX2fwCRqTTAzoBLCJ',
  'secret' => 'ravqkxlSe+II4sFNvGbYRwac83ec0mDZCygFR18SgR8874EJ',
  'trusted_domains' =>
  array (
    0 => '192.168.1.203',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '14.0.0.19',
  'overwrite.cli.url' => 'http://192.168.1.203',
  'dbname' => 'nextcloud',
  'dbhost' => '127.0.0.1',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => '*****',
  'installed' => true,
  'updater.release.channel' => 'stable',
);



The output of your Apache/nginx/system log in /var/log/apache2/error.log:

[Mon Sep 24 23:15:18.907747 2018] [mpm_prefork:notice] [pid 777] AH00169: caught SIGTERM, shutting down
[Mon Sep 24 23:15:19.591906 2018] [mpm_prefork:notice] [pid 1344] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Mon Sep 24 23:15:19.591956 2018] [core:notice] [pid 1344] AH00094: Command line: '/usr/sbin/apache2'
[Mon Sep 24 23:34:48.736848 2018] [core:notice] [pid 1344] AH00052: child pid 1563 exit signal Segmentation fault (11)
[Mon Sep 24 23:34:48.737404 2018] [mpm_prefork:notice] [pid 1344] AH00169: caught SIGTERM, shutting down
[Mon Sep 24 23:34:48.858873 2018] [mpm_prefork:notice] [pid 1649] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Mon Sep 24 23:34:48.858919 2018] [core:notice] [pid 1649] AH00094: Command line: '/usr/sbin/apache2'
[Mon Sep 24 23:35:38.088968 2018] [core:notice] [pid 1649] AH00052: child pid 1651 exit signal Segmentation fault (11)
[Mon Sep 24 23:35:38.089332 2018] [mpm_prefork:notice] [pid 1649] AH00169: caught SIGTERM, shutting down
[Mon Sep 24 23:35:38.191625 2018] [mpm_prefork:notice] [pid 1687] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations

The output of your Apache/nginx/system log in /var/log/apache2/nextcloud_error.log:


[Mon Sep 24 23:19:25.788683 2018] [authz_core:error] [pid 1358] [client 192.168.1.64:49650] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:26.598217 2018] [authz_core:error] [pid 1365] [client 192.168.1.64:49647] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:27.220860 2018] [authz_core:error] [pid 1376] [client 192.168.1.64:49651] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:36.631662 2018] [authz_core:error] [pid 1404] [client 192.168.1.64:49681] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:37.629213 2018] [authz_core:error] [pid 1363] [client 192.168.1.64:49680] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:38.925246 2018] [authz_core:error] [pid 1358] [client 192.168.1.64:49650] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:39.608312 2018] [authz_core:error] [pid 1404] [client 192.168.1.64:49681] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:40.599377 2018] [authz_core:error] [pid 1364] [client 192.168.1.64:49678] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:41.915558 2018] [authz_core:error] [pid 1365] [client 192.168.1.64:49687] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:43.430706 2018] [authz_core:error] [pid 1358] [client 192.168.1.64:49650] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Sep 24 23:19:44.177766 2018] [authz_core:error] [pid 1350] [client 192.168.1.64:49696] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata


Hello,

Anyone has any idea on why nextcloud continues downloading the content on the server after cancellig it?
Maybe it is because of the external storage plugin?

Any help would be appreciated

I have tried also with a snap package mounting my NFS and adding it with the external storage plugin in nextcloud, but the same issue happens all the time, if I download a file from my browser and cancel it at any point my server continues downloading the file as I am monitoring the network interface

Ok, I was wondering if it was a bug with the NFS protocol, apache or something else, but I have confirmed that it seems to be a bug of the external storage plugin as with FTP protocol is also happening the same.