r/Syncthing • • 2d ago

Folder Path Missing on Linux with Flatpak

Just a note on a problem I fixed, in case it's useful to anyone else.

Problem

Shared folders were in a "Stopped" state, and Syncthing had a warning message saying "Folder path missing" for each of them, even though the folder was present. Some places tell you to check the folder permissions, but they were correct.

I'm running Pop_OS 26.04 (based on Ubuntu 26.04), with the Flatpak version of Syncthing Tray.

Root Cause

The shared folders were on a second hard disk, which was automatically mounted at /run/media/myname/diskname. However, the Flatpak sandbox restricts the program's access to a list of reserved system folders, including /run.

The docs claim that:

The entire /run is not allowed but all subpaths of /run except /run/flatpak, /run/host are allowed to be exposed via --filesystem. Additionally, if /var/run on the host is a symlink to ../run, exposing it or a subpath of it, is not allowed.

but I couldn't get the --filesystem solution to work for me.

Solution

Mount the disk somewhere else.

Pick a location outside of the reserved folders: /run, /var, /usr, /etc, /lib etc. Create a folder and set yourself as the owner. I picked /data.

Using the Disks utility, select Edit Mount Options... and set the mount point to somewhere outside /run. I used /data.

1 Upvotes

0 comments sorted by