All Public Links Disappear If External Storage Drops Momentarily

Nextcloud version (eg, 29.0.5): 30.0.0 - Nextcloud Docker
Operating system and version (eg, Ubuntu 24.04): Ubuntu 24.04 Nextcloud Docker
Apache or nginx version (eg, Apache 2.4.25): Nextcloud Docker Version
PHP version (eg, 8.3): Nextcloud Docker Version

Two Issues

Issue One

  1. All public links from external storage get erased if that external storage disconnects even momentarily. (In my case I had to reboot my server).

Steps to replicate it:

  1. Mount external storage (local or s3)
  2. Create public link
  3. Temporarily disconnect external storage
  4. Reconnect storage exactly as it was before
  5. All shared links created are GONE

Issue Two

  1. Nextcloud sync app for desktop erases all files on local computer if the external source is dropped momentarily … then it scans them all again, giving them new timestamps which results in them all downloading from scratch.

I can’t believe that something as simple as a reboot removes all the shared links?

When I query the database I can still see all the share tokens that I had generated are actually all still there, but I am assuming that the file_source gets changed when the external drive reconnects.

This is a … major issue?