Files synced to wrong folder

I’m new to both TrueNAS and Syncthing so I probably messed something up. Apologies in advance.

Problem: Originally I had the folder syncing properly, but at some point I realized it was putting the files in the wrong folder. (I had the same issue with another synced folder and the files of both got put in the same place). Files should be stored in /Media/Books/Kavita but are instead stored in /Media/

devices: pc: Syncthing v1.28.1 on a windows 11 Pro 22631.4460 server: Syncthing v1.28.1 running on TrueNAS-24.10.0

folder is set to “send only” on pc and “receive only” on server, in case that’s relevant.

Attempted Fix: -Removing and readding both folders on both devices -Deleting the syncthing index to force rebuild -Creating the correct directory and moving the folders there -reinstalling syncthing on both devices

Images:

TrueNAS syncthing storage setting:

Folder Path: image

The folder with the files in it

The correct folder:

Local changes on Server:

Your storage screenshot says that /Books/Kavita inside the Syncthing container is equivalent to /mnt/Gen/Media on the host side. So any files created by Syncthing inside /Books/Kavita will show up on /mnt/Gen/Media on the host.

You might have intended to map /mnt/Gen/Media/Books/Kavita to /Books/Kavita?

(I usually find it less error prone to use the same path on both sides, so I would have mapped /mnt/Gen/Media to /mnt/Gen/Media and then used the full path in Syncthing, but you do you.)

1 Like

Thank you, you’re completely right. I misunderstood what mount/host paths were for. My bad.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.