Sanity check and preview repair after migration from S3

Nextcloud version: 28.0.2.5
Operating system and version: Archlinux
Apache or nginx version: nginx-mainline 1.25.3
PHP version: php-legacy 8.1.27

Hello everyone!
I have recently migrated my instance from s3 to hdd storage, everything looks okay-ish, but previews are not being displayed correctly.

Previews generated for files before transition seem to be working fine, but newly uploaded files don’t show any previews, even though I have removed /data/appdata_<instance_id>/preview directory and cleared the database from files with looking alike addresses.

I’m afraid something got broken on the way and looking for some guidelines verifying sanity of my installation state.

Ready to pay for consultation if that would be an issue.

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

<?php
$CONFIG = array (
  'datadirectory' => '/data/data',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ),
  ),
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'REMOVED',
    2 => 'REMOVED',
    3 => 'REMOVED',
  ),
  'overwrite.cli.url' => 'https://REMOVED/',
  'htaccess.RewriteBase' => '/',
  'passwordsalt' => 'REMOVED',
  'secret' => 'REMOVED',
  'dbtype' => 'mysql',
  'version' => '28.0.2.5',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/run/mysqld/mysqld.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'REMOVED',
  'installed' => true,
  'instanceid' => 'REMOVED',
  'maintenance_window_start' => 0,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/run/redis/redis.sock',
    'port' => 0,
    'dbindex' => 0,
    'password' => '',
    'timeout' => 1.5,
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'REMOVED',
  'mail_from_address' => 'REMOVED',
  'mail_domain' => 'REMOVED',
  'mail_smtphost' => 'REMOVED',
  'mail_smtpport' => 'REMOVED',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'REMOVED',
  'mail_smtppassword' => 'REMOVED',
  'theme' => '',
//  'objectstore' => 
//  array (
//    'class' => '\\OC\\Files\\ObjectStore\\S3',
//    'arguments' => 
//    array (
//      'bucket' => 'REMOVED',
//      'key' => 'REMOVED',
//      'secret' => 'REMOVED',
//      'hostname' => 'REMOVED',
//      'use_ssl' => true,
//    ),
//  ),
  'app_install_overwrite' => 
  array (
    0 => 'calendar',
    1 => 'tasks',
    2 => 'contacts',
    3 => 'social',
    4 => 'maps',
    5 => 'drawio',
    6 => 'richdocuments',
  ),
  'filelocking.debug' => false,
  'filelocking.enabled' => true,
  'filelocking.ttl' => 43200,
  'ffmpeg' => '/usr/bin/ffmpeg',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\MarkDown',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\TXT',
    8 => 'OC\\Preview\\HEIC',
    9 => 'OC\\Preview\\Movie',
    10 => 'OC\\Preview\\SVG',
    11 => 'OC\\Preview\\TIFF',
  ),
  'maintenance' => false,
);

I don’t provide logs intentionally, they may be irrelevant, because I have fixed lot’s of issues on the go. Recent logs don’t look like there is something relevant, but I can provide If needed