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' => 'tfbvoedlxbndyitu',
  '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/____:

  GNU nano 3.2                                                                      /var/log/apache2/error.log                                                                                 

[Thu May 05 00:00:06.745638 2022] [mpm_worker:notice] [pid 1566:tid 140515890238592] AH00292: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Thu May 05 00:00:06.745665 2022] [core:notice] [pid 1566:tid 140515890238592] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 05 01:49:59.196807 2022] [core:error] [pid 2838:tid 140514787571456] [client 143.198.136.88:45830] AH00126: Invalid URI in request GET /cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%$[Thu May 05 01:50:32.657324 2022] [core:error] [pid 2837:tid 140515072792320] [client 159.65.200.34:39706] AH00126: Invalid URI in request GET /cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2$[Thu May 05 01:50:33.256837 2022] [core:error] [pid 2838:tid 140515332835072] [client 159.65.200.34:40206] AH00126: Invalid URI in request GET /cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2$[Thu May 05 01:50:33.696309 2022] [authz_core:error] [pid 2837:tid 140515056006912] [client 159.65.200.34:40774] AH01630: client denied by server configuration: /var/www/wordpress/server-sta$
[Thu May 05 01:50:33.893410 2022] [proxy_fcgi:error] [pid 2838:tid 140514795964160] [client 159.65.200.34:40952] AH01071: Got error 'Primary script unknown'
[Thu May 05 01:50:33.918250 2022] [proxy_fcgi:error] [pid 2837:tid 140514452027136] [client 159.65.200.34:41076] AH01071: Got error 'Primary script unknown'
[Thu May 05 01:50:34.581204 2022] [proxy_fcgi:error] [pid 2838:tid 140515492230912] [client 159.65.200.34:41938] AH01071: Got error 'Primary script unknown'
[Thu May 05 01:50:35.061002 2022] [authz_core:error] [pid 2838:tid 140515450267392] [client 159.65.200.34:42446] AH01630: client denied by server configuration: /var/www/wordpress/server-sta$
[Thu May 05 01:50:35.317236 2022] [proxy_fcgi:error] [pid 2837:tid 140515483838208] [client 159.65.200.34:42810] AH01071: Got error 'Primary script unknown'
[Thu May 05 05:19:25.793538 2022] [ssl:error] [pid 2838:tid 140515324442368] [client 162.142.125.222:52654] AH02032: Hostname storage.domain.nl provided via SNI and hostname 86.85.247.15$
[Thu May 05 05:56:17.624937 2022] [proxy_fcgi:error] [pid 2837:tid 140515081185024] [client 141.98.1.139:63795] AH01071: Got error 'Primary script unknown'
[Thu May 05 05:56:19.042789 2022] [proxy_fcgi:error] [pid 2837:tid 140515475445504] [client 141.98.1.139:50403] AH01071: Got error 'Primary script unknown'
[Thu May 05 05:56:20.435903 2022] [proxy_fcgi:error] [pid 2838:tid 140513940334336] [client 141.98.1.139:49202] AH01071: Got error 'Primary script unknown'
[Thu May 05 09:56:22.017737 2022] [proxy_fcgi:error] [pid 2838:tid 140515358013184] [client 51.142.137.6:40214] AH01071: Got error 'Primary script unknown'
[Thu May 05 09:56:22.158131 2022] [proxy_fcgi:error] [pid 2838:tid 140515467052800] [client 51.142.137.6:40224] AH01071: Got error 'Primary script unknown'
[Thu May 05 10:04:03.177186 2022] [mpm_worker:notice] [pid 1566:tid 140515890238592] AH00295: caught SIGTERM, shutting down
[Thu May 05 10:04:03.319679 2022] [mpm_event:notice] [pid 25975:tid 140196646835328] AH00489: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Thu May 05 10:04:03.319743 2022] [core:notice] [pid 25975:tid 140196646835328] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 05 10:19:20.528157 2022] [proxy_fcgi:error] [pid 25978:tid 140196400338688] (103)Software caused connection abort: [client 89.255.46.188:62643] AH01075: Error dispatching request to$[Thu May 05 10:27:50.390282 2022] [proxy_fcgi:error] [pid 25977:tid 140196333164288] (103)Software caused connection abort: [client 89.255.46.188:53137] AH01075: Error dispatching request to$[Thu May 05 10:27:50.390282 2022] [proxy_fcgi:error] [pid 25977:tid 140196551407360] (103)Software caused connection abort: [client 89.255.46.188:53137] AH01075: Error dispatching request to$[Thu May 05 10:27:50.390282 2022] [proxy_fcgi:error] [pid 25977:tid 140196400338688] (103)Software caused connection abort: [client 89.255.46.188:53137] AH01075: Error dispatching request to$[Thu May 05 10:27:50.401935 2022] [proxy_fcgi:error] [pid 25977:tid 140196349966080] (103)Software caused connection abort: [client 89.255.46.188:53137] AH01075: Error dispatching request to$
[Thu May 05 12:28:24.069181 2022] [proxy_fcgi:error] [pid 25977:tid 140195743639296] [client 141.98.1.139:58418] AH01071: Got error 'Primary script unknown'
[Thu May 05 12:28:26.234248 2022] [proxy_fcgi:error] [pid 25978:tid 140195500381952] [client 141.98.1.139:54322] AH01071: Got error 'Primary script unknown'
[Thu May 05 12:28:26.928982 2022] [proxy_fcgi:error] [pid 25978:tid 140196274325248] [client 141.98.1.139:57283] AH01071: Got error 'Primary script unknown'
[Thu May 05 12:29:22.031775 2022] [proxy_fcgi:error] [pid 25978:tid 140195517167360] [client 179.43.169.179:48830] AH01071: Got error 'Primary script unknown'
[Thu May 05 16:37:43.514072 2022] [proxy_fcgi:error] [pid 25977:tid 140196146292480] [client 5.135.139.84:58262] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:41:22.419209 2022] [proxy_fcgi:error] [pid 25977:tid 140196163077888] [client 5.135.139.84:33274] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:41:58.126384 2022] [proxy_fcgi:error] [pid 25978:tid 140196307928832] [client 5.135.139.84:43272] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:43:12.530669 2022] [proxy_fcgi:error] [pid 25978:tid 140196307928832] [client 5.135.139.84:34640] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:44:37.669285 2022] [proxy_fcgi:error] [pid 25977:tid 140195634599680] [client 5.135.139.84:58266] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:45:08.384834 2022] [proxy_fcgi:error] [pid 25977:tid 140196154685184] [client 5.135.139.84:38508] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:45:47.069857 2022] [proxy_fcgi:error] [pid 25977:tid 140196137899776] [client 5.135.139.84:49454] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:46:06.620415 2022] [proxy_fcgi:error] [pid 25978:tid 140195819140864] [client 5.135.139.84:54814] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:46:16.776996 2022] [proxy_fcgi:error] [pid 25977:tid 140196316329728] [client 5.135.139.84:57840] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:46:36.047820 2022] [proxy_fcgi:error] [pid 25978:tid 140195483596544] [client 5.135.139.84:34874] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:46:48.960359 2022] [proxy_fcgi:error] [pid 25978:tid 140195500381952] [client 5.135.139.84:38638] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 16:47:36.389604 2022] [proxy_fcgi:error] [pid 25977:tid 140195634599680] [client 5.135.139.84:50672] AH01071: Got error 'Primary script unknown', referer: domain.nl
[Thu May 05 17:57:29.513847 2022] [proxy_fcgi:error] [pid 25978:tid 140196282726144] [client 200.69.105.194:52096] AH01071: Got error 'Primary script unknown'
[Thu May 05 18:25:16.551010 2022] [proxy_fcgi:error] [pid 25977:tid 140195626206976] (104)Connection reset by peer: [client 86.85.247.157:45043] AH01075: Error dispatching request to : (read$


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Google drive link because logfile is too large for anything like pastebin
https://drive.google.com/file/d/1zpYPY6Bf5q86Oq6Ys4t9XQJnMTe4svxH/view?usp=sharing

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