Hello,
I have Syncthing running on LineageOS 18.1 (i.e. Android 11). Up to and including Syncthing 1.18.3 everything was working as expected.
After the update to 1.19.0 I okayed the initial hint that the DB had to be rebuilt. I don’t recall seeing any error there.
After that for every folder that was configured to be synced on my Android device Syncthing simply reported “Permission denied”.
I also noticed that the configuration could not be exported anymore. Syncthing claimed to have written the files to /storage/emulated/0/backups/syncthing
, but nothing was there.
Allowing Syncthing to run as root solved the first problem (folders where synced again) but not the second (still no config backups possible). And I don’t want Syncthing to run as root when it shouldn’t be required.
I also tried a fresh install of 1.19.0.3 but there too immediately a permission denied was shown for the default folder (default location for camera pictures, I guess?).
Rolling back to 1.18.3 solved both problems for me.
Android permissions (access to storage etc.) are all given to Syncthing.
The folders to be synced are nothing special, but just some folders on the actual SD card (e.g. /storage/<ID>/Documents
) or the simulated one (e.g. /storage/emulated/0/DCIM
).
The SD card is formatted as portable storage.
The device is rooted.
The only thing that I’d otherwise consider non-standard on the device is that I disabled the use of FUSE as described here https://www.reddit.com/r/LineageOS/comments/nl3cgo/downloads_folder_and_other_large_folders_takes_a/ :
setprop persist.sys.fflag.override.settings_fuse false
Because accessing files was terribly slow without that.
The logs didn’t show anything obvious, except that the permission was denied.
I didn’t find anything that seemed related on Github/issues or in the forums.
Any hints how to debug/solve this problem are greatly appreciated!
Thanks and regards – Till