Can't update : "The following extra files have been found: cypress"

Nextcloud version (eg, 20.0.5): 26.0.0 beta 2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.2
Apache or nginx version (eg, Apache 2.4.25): 1.18.0-6ubuntu14.3
PHP version (eg, 7.4): 8.0

The issue you are facing:

Whenever trying to upgrade (via command line), I get

[✘] Check for expected files failed
The following extra files have been found:
cypress.config.ts
cypress
webpack.config.js
tsconfig.json

Update failed. To resume or retry just execute the updater again.

Trying to reset the files ownership didn’t help.

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

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

<?php
$CONFIG = array (
  'instanceid' => 'ocmloei01h7m',
  'passwordsalt' => ''
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '26.0.0.4',
  'overwrite.cli.url' => '',
  'dbname' => '',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => '',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_smtpport' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'maintenance' => false,
  'updater.release.channel' => 'beta',
  'theme' => '',
  'loglevel' => 2,
);



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

2023-03-10T14:26:30+0000 xl9mqmdOvL [info] checkForUpdate() Array
(
    [version] => 26.0.0.9
    [versionstring] => Nextcloud 26.0.0 RC2
    [url] => https://download.nextcloud.com/server/prereleases/nextcloud-26.0.0rc2.zip
    [web] => https://docs.nextcloud.com/server/26/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=26.0.0
    [autoupdater] => 1
    [eol] => 0
    [signature] => Svy9X9TgWRPDhbPDBnnUqA1NkyfJ2XzrGsayQdVLEJzEWG15jHfekRMNH2xnkcAJ
yj8tgLg9w9925iqCBSliq6wXEcgT+Y7Sz+4TOSBGOYA686EeAJrq2BINVBDKy+uf
gLzHIy9n0ybrQ5xNgofmtFhK04OkyxaQ0CW65JEWidcBOwnqvkN9Yy3eWBmt3WB9
5/yyjiGa8znjFCng1VFom2KZGs0mVMi9vlpBiHrr67iZlWePTvzSXWTGMBXhfxoU
T26YXE4XJsh5G1LK1jsC31JHuASagEZalY7nPPmxllYxqjrEjDBUpoa9E81e1C4r
4tG6sfY9YZ/8TSa66nXOMw==
)

2023-03-10T14:26:30+0000 xl9mqmdOvL [info] end of checkForUpdate() Update to Nextcloud 26.0.0 RC2 available. (channel: "beta")<br /><span class="light">Following file will be downloaded automatically:</>
2023-03-10T14:26:31+0000 xl9mqmdOvL [info] updater started
2023-03-10T14:26:31+0000 xl9mqmdOvL [info] executeStep request for step "1"
2023-03-10T14:26:31+0000 xl9mqmdOvL [info] startStep("1")
2023-03-10T14:26:31+0000 xl9mqmdOvL [info] checkForExpectedFilesAndFolders()
2023-03-10T14:26:31+0000 xl9mqmdOvL [error] executeStep request failed with UpdateException
2023-03-10T14:26:31+0000 xl9mqmdOvL [error] Exception: NC\Updater\UpdateException
Message:
Code:0
Trace:
#0 phar:///var/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(354): NC\Updater\Updater->checkForExpectedFilesAndFolders()
#1 phar:///var/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(234): NC\Updater\UpdateCommand->executeStep()
#2 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(255): NC\Updater\UpdateCommand->execute()
#3 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#4 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#5 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#6 phar:///var/www/nextcloud/updater/updater.phar/updater.php(10): Symfony\Component\Console\Application->run()
#7 /var/www/nextcloud/updater/updater.phar(14): require('...')
#8 {main}
File:phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php
Line:296
Data:
Array
(
    [0] => cypress.config.ts
    [1] => cypress
    [2] => webpack.config.js
    [3] => tsconfig.json
)


2023-03-10T14:26:31+0000 xl9mqmdOvL [info] rollbackChanges("1")
2023-03-10T14:26:31+0000 xl9mqmdOvL [info] unlink .step
2023-03-10T14:26:31+0000 xl9mqmdOvL [info] end of  rollbackChanges()



1 Like

I ran into the same problem. And found it is a known issue. You can simply remove these files and a directory.

FYI

1 Like

It worked ! Thank you very much :smiley: