Failed upgrade from 22.1.0 to 22.2.0

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): 22.1.0
Operating system and version (eg, Ubuntu 20.04): TrueNAS BSD 12.2
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 7.4): 7.4.22

The issue you are facing:
update flagged an extra .htaccess file, so I deleted it
the update then proceeded normally until “move new files in place”
halted at that point.

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

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

cat config.php
<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
    1 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps-pkg',
      'url' => '/apps-pkg',
      'writable' => true,
    ),
  ),
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '',
    2 => '',
    3 => '',
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '22.1.0.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => '',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => 'true',
  'dbuser' => 'oc_ncadmin',
  'dbpassword' => '',
  'installed' => true,
  'instanceid' => 'ocficli3lf0w',
  'mail_from_address' => '',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'sonic.net',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '',
  'mail_smtpport' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'theme' => '',
  'loglevel' => 0,
  'maintenance' => true,
  'app_install_overwrite' => 
  array (
    0 => 'radio',
    1 => 'music',
    2 => 'video_converter',
  ),
  'updater.secret' => '$2y$10$DuJGD6nuh57trhOh3fen/elwSFv0x8LA/SQnReN6RbKpbiLoorYs6',
);

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

cat nextcloud.log | more
{"reqId":"OpkxP6uU2MkCz5XtNR43","level":3,"time":"2021-01-11T06:11:06+00:00","remoteAddr":"","user":"ncadmin","app":"no app in context","method":"","url":"--","message":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve trashManager! Class trashManager does not exist","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":126,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":430,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":56,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":58,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"function":"OC\\AppFramework\\Bootstrap\\{closure}","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":68,"function":"array_map"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":52,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/usr/local/www/nextcloud/apps-pkg/files_trashbin/lib/AppInfo/Application.php","line":57,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":168,"function":"boot","class":"OCA\\Files_Trashbin\\AppInfo\\Application","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":191,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":131,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/usr/local/www/nextcloud/apps-pkg/dav/lib/AppInfo/Application.php","line":113,"function":"loadApps","class":"O

Jason… Please tell me what to do. Changed ownership of www to www:www I believe the updater will complete if I can restart it. Please let me know how to resume…

Message: Could not rename /usr/local/www/nextcloud/data/updater-ocficli3lf0w/downloads/nextcloud/apps/privacy/l10n/fi.json to /usr/local/www/nextcloud/updater/…/apps/privacy/l10n/fi.json

Message: Could not rename /usr/local/www/nextcloud/data/updater-ocficli3lf0w/downloads/nextcloud/apps/privacy/l10n/sr.js to /usr/local/www/nextcloud/updater/…/apps/privacy/l10n/sr.js

Message: Could not rename /usr/local/www/nextcloud/data/updater-ocficli3lf0w/downloads/nextcloud/apps/privacy/l10n/sv.json to /usr/local/www/nextcloud/updater/…/apps/privacy/l10n/sv.json

Message: Could not rename /usr/local/www/nextcloud/data/updater-ocficli3lf0w/downloads/nextcloud/apps/firstrunwizard/templates/page.apps.php to /usr/local/www/nextcloud/updater/…/apps/firstrunwizard/templates/page.apps.php

This could be a permission issue (or full disk). Who is the owner of the file and which user is running the upgrade? Do you use the updater via web-interface or command line?

blew up… gone… replaced it with a fresh install.