FTP External Storage Causes Instability (?)

Nextcloud version (eg, 20.0.5): 25.0.3
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.1
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.52
PHP version (eg, 7.4): 8.1.2

The issue you are facing:

When I enable External Storage and I set up two FTP accounts for external storage … The storage aspects seem to work fine, but over time Nextcloud will get into a state where the pages won’t show up. This seems to at least sometimes be associated with Apache crashing, but I’m not sure that happens all the time. Today, it appeared that I needed to do maintenance:repair before it would start up properly again.

I got this behavior in that past (e.g. Nextcloud 24.x), and over time I disabled most plugins, including External Storage, to debug the behavior. I just re-enabled External Storage again a few days ago and the behavior started again. Coincidence or causation? I’m not 100% sure yet.

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. Enable External Storage app
  2. Connect to two FTP sites. The sites I’m using are on the same local network. I also believe they may be available without encryption, or encrypted with a self-signed certificate.
  3. Wait. Seems to often fail over time (overnight?)

The output of your Nextcloud log in Admin > Logging:

Unable to get last modified date for ftp folder (), folder contents doesn't include current folder

The above is shown in the Logging admin area. I’m not convinced it’s related, but it could be. There are multiple of the same message.

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

 array (
    0 => 'cloud.digidescorp.com',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '25.0.3.2',
  'overwrite.cli.url' => 'https://cloud.mydomain.com',
  'dbname' => 'myname',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'myuser',
  'dbpassword' => 'mypwd',
  'installed' => true,
  'mail_from_address' => 'me',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'mydomain.com',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.myserver.com',
  'mail_smtpname' => 'anemail',
  'mail_smtppassword' => 'hmmmmm',
  'default_phone_region' => 'US',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
  ),
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',

The output of your Apache/nginx/system log in /var/log/apache2/error.log:

[Sun Feb 05 00:00:20.473879 2023] [core:notice] [pid 4079] AH00051: child pid 104358 exit signal Segmentation fault (11), possible coredump in /etc/apache2

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

See above, but I think these are not related.

Thanks in advance for any insight you could provide.