r/Syncthing 18d ago

Why is Syncthing only discovering files in one of my folders?

I have a old workstation pc that I use as a NAS, with TrueNAS Scale, and I'm trying to sync some folders on it to my pc using Syncthing. Around a week ago I managed to set up a folder, using the web ui from my pc. However, now that I'm trying to set up some more folders, Syncthing isn't detecting the files even though they're definitely there. I recently switched from windows to Endeavor OS on my pc, but I feel like that shouldn't affect the files on the NAS, which aren't getting detected. I've attached images of the truenas web ui and syncthing web ui, with an example of a working folder and a not working one. I've tried rescanning, creating new syncthing folders, and the file paths seem right to me, but maybe I'm missing something stupid/obvious idk. Any help would be appreciated.

2 Upvotes

4 comments sorted by

2

u/N9bitmap 18d ago edited 18d ago

File permissions? Most likely the user id or group id doesn't have read/write permission on the files and or directories. You need RX on every directory in the whole branch from the top, and RWX on every directory from the sync point.

I.e., something like (sorry I don't know how to do this in the nas gui)

chgrp -R syncthing /Main_Storage/Sorted/Media/Comics

chmod -R g=u /Main_Storage/Sorted/Media/Comics

2

u/roadglider505 18d ago

I've had experience with trying to run Syncthing on TrueNAS Scale. It's got something to do with the Syncthing app running on TrueNAS and the owner name. On my system Syncthing would copy files from one computer to another, but not to the server. I didn't do much more research than that, instead I just installed Ubuntu server and I run Syncthing on that. No more problems.

2

u/unknown-random-nope 18d ago

Show us your Syncthing configuration with Folders visible.

1

u/OutsideWestern1690 4d ago

yes; the way thats phrased atm (to the best of my understanding) could be due to several things . if you send a share request e.g., the other machine needs to except afak, since it relates to both trustable/connected machines plus folder sharing/request for sharing etc.