Nextcloud update redirect to dashboard

I have a problem when upgrading from version (non-docker) 24.0.3 to 24.0.6
There is a redirect to the common panel at the entrance (dashboard).
All available solutions did not suit me.
php version 7.4.32
nginx

I tried updating from the terminal, but that didn’t work. Says there are no updates.

The configuration file


<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '***.cloud',
  ),
  'datadirectory' => '/***/nextcloud',
  'overwritehost' => '***.cloud',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '24.0.3.2',
  'overwrite.cli.url' => 'https://***.cloud',
  'dbname' => '*****',
  'dbhost' => '192.168.0.***',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'dbuser' => '****',
  'dbpassword' => '***',
  'simpleSignUpLink.shown' => false,
  'installed' => true,
  'maintenance' => false,
  'mysql.utf8mb4' => true,
  'updater.release.channel' => 'stable',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => '***',
  'mail_domain' => '***.ee',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.***.eu',
  'mail_smtpport' => '465',
  'mail_smtpname' => '***@***.ee',
  'mail_smtppassword' => '***',
  'mail_smtpauthtype' => 'LOGIN',
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'radio',
    1 => 'terms_of_service',
    2 => 'uploaddetails',
    3 => 'drop_account',
    4 => 'social',
    5 => 'nextbackup',
    6 => 'talk_simple_poll',
  ),
  'filelocking.ttl' => 86400,
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' => 
  array (
    0 => '*** ***',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
    0 => '***',
  ),
  'has_rebuilt_cache' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' => 
  array (
    'host' => '192.168.0.***',
    'port' => 6379,
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'default_phone_region' => '****',
  'updater.secret' => '****',
);

I have solution