Share-links of files in external folders disappear after a few minutes

Nextcloud version (eg, 20.0.5): 23.0.2
Operating system and version (eg, Ubuntu 20.04): Windows 10 & 11
PHP version (eg, 7.4): 8.0.16

The issue you are facing:

My setup: all my data is on a NAS. I run NC via docker on that NAS. All NAS-folders are bind mounted via docker-compose and added to NC as external folders.
When I share a file from one of those external folders via the web interface, the link works for a while (a few minutes maybe), and then simply disappears.
Shares from NC-internal folders seem to work fine.

Steps to replicate it:

  1. choose a file that’s in an external folder
  2. click share ("+") → test the link, it works
  3. wait a little
  4. reload folder
  5. share link has disappeared from web interface > if I reload the link (that I saved beforehand), I get " File not found. The document could not be found on the server. Maybe the share was deleted or has expired?"

What can I do to fix this? Sharing files is an essential function for me (and probably lots of other people). :frowning:

Am I really the only one whose share links are simply disappearing? :slightly_frowning_face:

Maybe this helps?

Ah, this looks promising, thank you!

I’m not able to test this at the moment, but will report back once I am.

Just wanted to leave a quick reply that this was indeed the issue and the resolution! Thank you @szaimen for providing the link.

1 Like