Error [OCP\Files\NotFoundException] in /var/www/nextcloud/lib/private/legacy/OC_Helper.php line 496

Nextcloud version: 23.0.0
Operating system and version: Ubuntu 20.04.3 LTS
Apache or nginx version: 2.4.41-4ubuntu3.8
PHP version: 7.4.3-4ubuntu2.8

Hello,
when the update script is executed, this error is displayed in a loop:
$ /var/scripts/update.sh minor
Posting notification to users that are admins, this might take a while…
Sending ‘Update script started!’ to share@mydomain.com

In OC_Helper.php line 496:

[OCP\Files\NotFoundException]

user:info [–output [OUTPUT]] [–]

In OC_Helper.php line 496:

[OCP\Files\NotFoundException]

user:info [–output [OUTPUT]] [–]

In OC_Helper.php line 496:

[OCP\Files\NotFoundException]

user:info [–output [OUTPUT]] [–]

In OC_Helper.php line 496:

[OCP\Files\NotFoundException]

user:info [–output [OUTPUT]] [–]

^C

Here my config.php file:

 $ cat /var/www/nextcloud/config/config.php
<?php
$CONFIG = array (
  'passwordsalt' => 'xxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxx',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => ‘xx.xx.xx.xx,
    2 => 'share.mydomain.com’,
    3 => 'share.mydomain.com’,
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => 'https://share.mydomain.com/',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ncadmin',
  'dbpassword' => ‘xxxxxxxxxxxxxxx',
  'installed' => true,
  'instanceid' => ‘dfdfdfsdfsdfsdf’,
  'upgrade.disable-web' => true,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '2',
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '7200',
  'log_rotate_size' => '0',
  'trashbin_retention_obligation' => 'auto, 60',
  'versions_retention_obligation' => 'auto, 180',
  'activity_expire_days' => '120',
  'simpleSignUpLink.shown' => false,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => ‘xxxxxxxxxxxxxxxxxxxxxxxx’,
  ),
  'default_phone_region' => 'fr',
  'logtimezone' => 'Europe/Paris',
  'htaccess.RewriteBase' => '/',
  'session_lifetime' => '7200',
  'share_folder' => '/Shared',
  'enable_previews' => true,
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\MarkDown',
    5 => 'OC\\Preview\\MP3',
    6 => 'OC\\Preview\\TXT',
    7 => 'OC\\Preview\\Movie',
    8 => 'OC\\Preview\\Photoshop',
    9 => 'OC\\Preview\\SVG',
    10 => 'OC\\Preview\\TIFF',
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'maintenance' => false,
);

No error on apache log.

Thank you for your help.

it seems these OC OCP errors never get a solution
I’m told to reinstall or uninstall apps . .
but no solution
what about you? some evolution on that topic you could share?