Shared folders from SMB/CIFS external files are suddenly gone

Nextcloud version: 28.0.1
Operating system and version: Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-91-generic x86_64)
Apache version: Apache/2.4.52 (Ubuntu)
PHP version: PHP 8.1.2-1ubuntu2.14

The issue you are facing:
All external file shares are gone

Is this the first time you’ve seen this error? No

Steps to replicate it: unkown

  1. External folder to Windows Server 2019
    a) configured in administration-external storage as SMB/CIFS
    b) authentication: User entered, store in database
    c) available for some users
  2. One user shares to other users
  3. Run for years without problems
  4. suddenly the shares aren’t there anymore in 2023
  5. have to restore the whole VM

The output of your Nextcloud log in Admin > Logging: didn’t find anything related

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_smtphost' => '###############',
  'mail_domain' => '###############',
  'mail_smtpport' => '25',
  'mail_from_address' => 'nextcloud',
  'instanceid' => '###############',
  'passwordsalt' => '###############',
  'secret' => '###############',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '###############',
    2 => '###############',
    3 => '###############',
    4 => '###############',
  ),
  'allow_local_remote_servers' => true,
  'datadirectory' => '/var/www/owncloud/data',
  'overwrite.cli.url' => 'https://###############',
  'dbtype' => 'mysql',
  'version' => '28.0.1.1',
  'dbname' => 'oc',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => '###############',
  'dbpassword' => '###############',
  'logtimezone' => 'Europe/Berlin',
  'loglevel' => 2,
  'logfile' => '/var/www/owncloud/data/owncloud.log',
  'installed' => true,
  'theme' => '',
  'maintenance' => false,
  'trashbin_retention_obligation' => 'auto',
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'updatechecker' => false,
  'htaccess.RewriteBase' => '/',
  'singleuser' => true,
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0,
    'dbindex' => 0,
    'password' => '###############',
  ),
  'data-fingerprint' => '###############',
  'mail_sendmailmode' => 'smtp',
  'mysql.utf8mb4' => true,
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'default_phone_region' => 'IT',
  'defaultapp' => 'files',
);

I have found some related topics but nothing that helped