Fail at "Create backup" when upgrading 26.0.8

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, 20.0.5): 26.0.8
Operating system and version (eg, Ubuntu 20.04): Raspbian [Debian] Bullseye
Apache or nginx version (eg, Apache 2.4.25): 2.4.56
PHP version (eg, 7.4): 8.2.13

The issue you are facing:

An attempt to use the web updater to upgrade from 26.0.8 to 26.0.10 fails at step 4, “Create Backup”…

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

Steps to replicate it:

  1. Log in to local instance as an Admin user
  2. Select Web Updater
  3. Let it run

The output of your Nextcloud log in Admin > Logging:

    Warning	core	OC\Authentication\Exceptions\InvalidTokenException: Token is too short for a generated token, should be the password during basic auth	
2023-12-17T13:03:00+0000
    Warning	core	OC\Authentication\Exceptions\InvalidTokenException: Token is too short for a generated token, should be the password during basic auth	
2023-12-17T13:02:59+0000
    Warning	core	OC\Authentication\Exceptions\InvalidTokenException: Token is too short for a generated token, should be the password during basic auth	
2023-12-17T13:02:57+0000
    Warning	core	OC\Authentication\Exceptions\InvalidTokenException: Token is too short for a generated token, should be the password during basic auth	
2023-12-17T13:02:53+0000

Note that this message appears to repeat many, many, many times... 

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

$ sudo cat config.php
<?php
$CONFIG = array (
  'instanceid' => '***REMOVED SENSITIVE VALUE***',
  'passwordsalt' => '***REMOVED SENSITIVE VALUE***',
  'secret' => '{removed}',
  'trusted_domains' => 
  array (
    0 => 'nc.saurian.net',
  ),
  'datadirectory' => '/media/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '26.0.8.2',
  'overwrite.cli.url' => 'https://nc.saurian.net',
  'dbname' => 'nextcloudprod',
  'dbhost' => '***REMOVED SENSITIVE VALUE***:3307',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '{removed}',
  'dbpassword' => '{removed}',
  'installed' => true,
  'updater.secret' => '{removed}',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'default_phone_region' => 'GB',
);

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

[Wed Nov 15 22:13:52.460978 2023] [access_compat:error] [pid 302634] [client 172.16.104.1:34302] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sun Dec 03 19:07:51.818650 2023] [access_compat:error] [pid 488216] [client 172.16.104.1:55578] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Dec 18 22:59:32.065268 2023] [access_compat:error] [pid 626598] [client 172.16.104.1:33510] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Dec 18 23:04:01.125490 2023] [access_compat:error] [pid 624876] [client 172.16.104.1:43440] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Mon Dec 18 23:04:10.765029 2023] [access_compat:error] [pid 626639] [client 172.16.104.1:39746] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Tue Dec 19 15:24:53.192245 2023] [access_compat:error] [pid 627045] [client 172.16.104.1:34398] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Tue Dec 19 15:32:38.227320 2023] [access_compat:error] [pid 633042] [client 172.16.104.1:38496] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Tue Dec 19 15:32:50.539031 2023] [access_compat:error] [pid 632807] [client 172.16.104.1:54496] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata

PASTE HERE


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

Additional Notes:
According to my records, this NC instance was a clean install performed on May 4th 2023 using 26.0.1 from the “nextcloud-26.0.1.zip” download file.

I have used the web updater ever since, successfully completing all the stable updates provided since then, without issue.

In terms of apps, I’ve been using “Bookmarks” - in conjunction with the Floccus plugin on my browser, since “day 1” - it was this functionality that prompted me to set up NC in the first place.

I also recently added “Deck” to get a Kanban board style task management system… and this was probably added since the last time I did an NC update - so if there is a “recent change” to the NC environment, it would be this.

I tend to keep my Raspbian images reasonably up to date, so at least every month I will “sudo apt-get update” and “sudo apt-get upgrade” in order to ensure they remain securely patched. Happy to experiment…

Do you have this just when you try an upgrade, or is this present all the time?

I haven’t seen this error before… which may not mean it hasn’t occurred…