Failed to upgrade to 25.0.2

Versión de Nextcloud (p. ej., 20.0.5) : 25.0.2
sistema operativo y versión (p. ej., Ubuntu 20.04) : debian 11
versión de Apache o nginx (p. ej., Apache 2.4.25) : apache2
versión de PHP (p. ej., 7.4) : PHP 8.1

The problem you are facing:
I have been working with my nextcloud for 1 years and I have been updating without problems from version 22.1.1 without any problem.
Today I received the update message and when trying to update from my instance, it throws me the following error.
Is this the first time you see this error? (Y/N) :

The result of your Nextcloud registration in Admin > Registration :

"no app in context",
"Host was not connected to because it violates local access rules",


$CONFIG = array (
   'instanceid' => 'xxxxxxxxxxxxx',
   'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
   'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
   'trusted_domains' =>
     0 => 'xxxx.xxxx.xx',
   'datadirectory' => '/var/www/nextcloud/data',
   'dbtype' => 'mysql',
   'version' => '',
   'overwrite.cli.url' => 'https://xxxx.xxxxxx.xx',
   'dbname' => 'nextcloud_db',
   'dbhost' => 'localhost',
   'dbport' => '',
   'dbtableprefix' => 'oc_',
   'mysql.utf8mb4' => true,
   'dbuser' => 'xxxxxxxxx',
   'dbpassword' => 'xxxxxxxxx',
   'installed' => true,
   'mail_smtpmode' => 'smtp',
   'mail_smtpsecure' => 'ssl',
   'mail_sendmailmode' => 'smtp',
   'mail_from_address' => 'xxxxxx',
   'mail_domain' => 'xxxxxxx',
   'mail_smtpauthtype' => 'LOGIN',
   'mail_smtpauth' => 1,
   'mail_smtphost' => '',
   'mail_smtpport' => '465',
   'mail_smtpname' => 'xxxxxxxxxx',
   'mail_smtppassword' => 'xxxxxxxxx',
   'maintenance' => false,
   'default_phone_region' => 'ES',
   'memcache.local' => '\\OC\\Memcache\\APCu',
   'theme' => '',
   'loglevel' => 2,
   'twofactor_enforced' => 'false',
   'twofactor_enforced_groups' =>
   'twofactor_enforced_excluded_groups' =>
   'updater.secret' => '$2y$10$Zzdf7MrksnUoJ7.O6gkG6u91NqzDocJuO/gUDo.nHpogGizqsgXU.',

I haven’t installed any app.

please use forum search, the issue host “violates local access rules” was discussed few times already

I have already reviewed the posts on this topic and I can’t find anything related to trying to update and the error appears, and the ones I have found are unanswered.

Every day I check the security and configuration notices and this morning it worked fine and it was trying to update and the error appeared.