Unable to cancel large upload

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 : 24.0.0.12
Operating system and version: Debian 10 Buster
Apache or nginx version : Apache/2.4.38
PHP version : PHP 7.4.29

The issue you are facing:
When im uploading multiple files, or a folder that contains a lot of files, and I want to cancel that upload it tells me “Uploading canceled” but the upload bar is still visible and its still uploading.
Pressing cancel many times makes no difference in this.
The only thing that actually stops the upload is reloading the page wich results in an error in the log.
The unresponsive cancel shows nothing in the log whatsoever.

I also noticed that the size of the upload is “NaN” shows only a couple seconds remaining.

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

Steps to replicate it:

  1. Upload a forlder with many sub folders/files (for example the documents folder of windows)
  2. Try to cancel the upload after a couple seconds
  3. Message appears the upload has been canceled but upload is still going.

The output of your Nextcloud log in Admin > Logging:

no errors visible

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

<?php
$CONFIG = array (
  'instanceid' => 'ID',
  'passwordsalt' => 'PSSWD',
  'secret' => 'SECRET',
  'trusted_domains' => 
  array (
    0 => 'IP',
    1 => 'IP',
    2 => 'DOMAIN',
  ),
  'datadirectory' => '/mnt/hdd/nextcloud',
  'dbtype' => 'mysql',
  'version' => '24.0.0.12',
  'overwrite.cli.url' => 'DOMAIN',
  'htaccess.RewriteBase' => '/',
  'default_phone_region' => 'NL',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'NAME',
  'dbpassword' => 'WW',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 1.5,
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mail_from_address' => '*',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'hotmail.com',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.office365.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => '*',
  'mail_smtppassword' => '',
  'twofactor_enforced' => 'false'
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'updater.secret' => '*',
);

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

Removed

Via webinterface, NC desktop client, other webdav client?

My bad,

It is via the web interface. I have also tested it in different web browsers, incognito mode.

Connecting to the webdav via for example windows explorer and then canceling the upload works fine, no errors etc.

I tried on my NC24 setup, I just can’t cancel uploads either. However, on the trial setup on try.nextcloud.com it works for me (Windows & Firefox). I’d suspect an app that interferes…

Good thought.

I tried disabling all apps i have installed (not removed, just disabled) but it did not solve the problem.

I also tried try.nextcloud.com but i the upload still continued and started spamming error messages at me. “an unknown error occured”

Then feel free to open a bug report on Issues · nextcloud/server · GitHub

I just tried with larger files and it fails as well. Before it were smaller folders, so it probably finished in the background before the message was triggered.

Bug report opened.

Please feel free to update it if you or anyone else has additional important information