SOLVED Syncthing synchronizes data that I do not see

IndieCoopz

Explorer
Joined
Nov 4, 2022
Messages
50
Hello, before I go completely insane here I try to tell you my problem:

I installed Syncthing on SCALE. Syncthing is using ID 568 (user and group), so i set modify permissions on my desired dataset "pictures" for both of them.
Then i set the host paths. Now syncthing is running and shows me that everything is fine, all tasks are completed and synced. But in the corresponding paths there is no data!?

An example:

As you can see heres the Path for Telegram videos:
1692000453842.png


In syncthing it is claimed that data has been copied and everything is up to date:
1692000611788.png


But when i check my smb share, there is no data in it:
1692000733660.png

These are my ACLs for the corresponding volume and benjamin is my user with whom i access the directory via smb :
1692000838114.png


In Windows Properties / Security Tab i can see the permissions and i have access on my folder.

So it seems to be crazy but syncthing seems to sync anything but effective nothing.

I already deleted the whole app incl. settings, set the permissions again (of course recurively) but i cant see anything?

What im doing wrong here? I dont get it...
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If you go to that path with the shell on the host, what do you see? are the files really there?
 

IndieCoopz

Explorer
Joined
Nov 4, 2022
Messages
50
Wenn Sie diesen Pfad mit der Shell auf dem Host aufrufen, was sehen Sie dann? Sind die Dateien wirklich dort?
Thanks for the tip, but im glad that im not crazy, the directory is empty^^

1692006529234.png


I recognized that i dont need to set dataset permissions for the apps user when the bin user is already authorized, is this correct? do we need to set no app permissions anymore as long as we authorized bin app and group on a dataset? At the moment i have both permissions on that dataset.

So for now it seems that TN did nothing wrong, but Syncthing does. The permissions are there, since syncthing did not complain.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
the directory is empty^^
OK, so I've seen cases where the host path mapping fails and you end with another directory inside the container instead...

If you connect to the container shell, can you find the files there?
 

IndieCoopz

Explorer
Joined
Nov 4, 2022
Messages
50
OK, so I've seen cases where the host path mapping fails and you end with another directory inside the container instead...

If you connect to the container shell, can you find the files there?
It seems that the directory is also empty:
1692010158168.png


The problem is, that syncthing dont sync anything at all. I delete Telegram Videos on my TN Share and let the Videos remain on my phone directory, and syncthing still claims that all is done altough i did set up a sync in both ways. so either the files get deleted or they will be copied back in the directory where i deleded the files, but nothing happened. i restarted syncthing several times.

What about the permission thing? do i need to permit the "Bilder" (pictures) dataset with bin user and group and apps user and group also to get the right permissions? Or is apps obsolete because i already permit bin?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
It seems to me you're thinking only about share permissions in the first couple of posts...

Permissions that count for the host-path volumes in the containers are the permissions visible with ls -l from the host.

They must match the userID within the container (not the userID running the container that you listed)

You can mess with that by specifying the fsGroup and if you set the UserID to 0, the Process user in a TrueCharts app.
 

IndieCoopz

Explorer
Joined
Nov 4, 2022
Messages
50
It seems to me you're thinking only about share permissions in the first couple of posts...

Permissions that count for the host-path volumes in the containers are the permissions visible with ls -l from the host.

They must match the userID within the container (not the userID running the container that you listed)

You can mess with that by specifying the fsGroup and if you set the UserID to 0, the Process user in a TrueCharts app.
I was just thinking about this in general, since I noticed that syncthing seems to "work" without the apps group. At least no permission denied errors come up in the application. So I thought that I may have double authorization at the moment.

however, syncthing does not write data to my pool although the application itself seems to see data (second image, first post)
So I am still at a loss if the current syncthing image is to blame or if an authorization is not working.

I did some further investigations and i found out, that when i move files by hand over SMB to the corresponding directory, and check these files in the container, i will see them. so the container only claims that it moves files but it doesnt. i can see them but syncthing moves nothing. this is the weirdest error ive ever seen... Its so frustrating, i had zero problems with syncthing on TN CORE.

i don't understand why things that just work like the jails addons in core are abolished and replaced with such scale problem containers. really frustrating.... i only switched to scale because core will discontinue the plugins.
 
Last edited:

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Your picture here shows the local path for this folder as ~/Telegram Videos - in Syncthing, the tilde ~ character is a shortcut to /var/syncthing, so in effect you're telling it to use the path /var/syncthing/Telegram Videos.

1692021453339.png


Change this to /Telegram Videos instead. :smile:
 

IndieCoopz

Explorer
Joined
Nov 4, 2022
Messages
50
Your picture here shows the local path for this folder as ~/Telegram Videos - in Syncthing, the tilde ~ character is a shortcut to /var/syncthing, so in effect you're telling it to use the path /var/syncthing/Telegram Videos.

View attachment 69298

Change this to /Telegram Videos instead. :smile:

OMG thank you, this was the issue! Why this tilde is set by default? :( I didnt noticed it when i set the folder sync, im fiddeling here around since hours O______o
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
OMG thank you, this was the issue! Why this tilde is set by default?
This is a behavior of the Syncthing application, not something that TrueNAS controls.

Glad this has been sorted out for you!
 
Top