Update 21.0.3 to 22.0.0.11

Nextcloud version (eg, 20.0.5): ‘21.0.3 → 22.0.0 Beta 3’
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.2
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.4): 8.0.8

The issue you are facing:

Internal server error

Internal Server Error
The server could not complete the request.

If this occurs again, please send the following technical details to your server administrator.

Further details can be found in the server log.

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

Steps to replicate it:

  1. Successfull - Update from version 21.0.2 to 21.0.3 via web interface
  2. Registered as Nextcloud administrator
  3. Settings → Overview → Update … Update to 22.0.0 Beta is available (but some apps are not yet supported … yes I know but are not important … but could be decisive? epubreader’, ‘pdfdraw’, ‘bruteforcesettings’, ‘twofactor_admin’, ‘ocr’) Nevertheless
  4. Start the update
  5. Updating … Back to Nextcloud session … Then error

The output of your Nextcloud log in Admin > Logging:

<script src="https://pastebin.com/embed_js/2VnJyfa1"></script>

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

<?php
$CONFIG = array (
  'instanceid' => 'ocu04vks92m9',
  'passwordsalt' => 'xxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' =>
  array (
    0 => 'xxx',
    1 => 'xxxxxxxxxxxx.de',
  ),
  'datadirectory' => '/mnt/hdd',

  'dbtype' => 'mysql',
  'version' => '22.0.0.11',
  'overwrite.cli.url' => 'http://xxx',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxxxxxxxx',
  'dbpassword' => 'xxxxxxxxxxxxxxxxxxx',
  'installed' => true,
  'memcache.local' => '\OC\Memcache\APCu',
  'updater.release.channel' => 'beta',
  'maintenance' => false,
  'log_type' => 'file',
  'logtimezone' => 'Europe/Berlin',
  'logfile' => '/var/log/nextcloud.log',
  'loglevel' => 2,
  'syslog_tag' => 'Nextcloud',
  'default_phone_region' => 'DE',
 'output_buffering' => 'Off',
  'app_install_overwrite' =>
  array (
    0 => 'epubreader',
    1 => 'pdfdraw',
    2 => 'bruteforcesettings',
    3 => 'twofactor_admin',
    4 => 'ocr',
  ),
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'theme' => '',
  'updater.secret' => '$2y$10$OUnqcVo60wf5Wj6dioQOEeYeAUEsBT8sehIEw0Dilsw7bsNmC>
);

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

PASTE HERE

Some of these apps are still enabled and throw errors. From your log, I’d disable epub reader, the antivirus app (and others if they appear in the logs).

Thank you for the fast answer. I had already suspected something like that. I’m trying to do this with … sudo -u www-data php occ app: disable tonight.

Sorry for not answering until now. As recommended, I disabled both apps (epubreader and files_antivir). Then I was able to log into my Nextcloud as usual. Thanks alot.

You can check with their repositories if and when their apps are ready for NC 22. If you don’t see anything, you can create a small report saying that you had troubles with NC 22.