SyncThing Plug-in on TrueNAS
HTML-код
- Опубликовано: 10 сен 2024
- We use the TrueNas plug-in to install SyncThing and set it up to sync a directory with a windows desktop.
go to plugins and install syncthing
once installed shut it down
enter the shell
id syncthing
created the user and use the UID you got from the last step
create the dataset and change the mounts permission to sync
connect a mount point to syncthing
start it back up and hit the manage button
create a username and password for the GUI
connect two devices and share a folder
/mnt/(your folders name)
syncthing.net/...
#loresdiy
My Channel: / loresdiy
Awesome tutorial that sums up a long process into a short one! We have shared this on our social channels! Great work!
Awesome, thank you!
Muy merecido, great video.
I follow your instructions and already have my files synchronization yet
A few years ago I set up my first instance of syncthing and I've been reluctant to set it up on my backup NAS because I remember what a nightmare it was to get it up and running. The online resources at the time were confusing and overly complicated. Thank you for a simple step-by-step tutorial that didn't assume I had a master's degree in networking!
Awesome, so glad it helped.
By far the best tutorial on Synthing/TrueNAS I have seen. I finally got everything working after watching this video.
Thanks for this, it was doing my head in, works like a charm. cheers 🍻
Cheers
I was going to abandon syncthing on truenas until i found this video , mount points and the user ID were my lackings. Thank you !
Glad I could help!
Finally, a great tutorial that I finally understood that explains the setting up a mount pt and a user to get rid of the permission's error I kept getting, Now the hard part to duplicate it and remember how to do it over and over, Thanks!!!
So glad it helped you out.
Cheers
@@LoResDIY You helped me too! So glad. I was so confused about the whole process. FYI i didn't need any ACL permissions, in fact with the latest version of TrueNAS it's a bit different (No "Inherent" flag and therefore it confused me)
Thank you so much for taking the time to share this. It saved me a lot of time trying to get Syncthing up and running for the first time.
Great to hear!
@9:15 there are several errors that leave nasty security holes. First it would be best to create a group with matching gid just in case. Then choose it as a primary group, instead of making a new one with unpredictable gid. Then you don't need password: just select "disable password" and "nologin" as shell. Nobody can break your password if there is none in the first place! Don't need to fiddle with home directory permissions, as there will be no home directory. Uncheck all that "Microsoft Account" and "Samba Authentication". And most importantly, what do you allow sudo for? I'm not an expert, but that smells of possibly escaping jail and executing arbitrary code as root on your TrueNAS host!
The best video about this topic. Thanks!!
Setting syncthing to ignore permissions on the folders helped a lot, as syncthing was trying to set different permissions for some files.
Thank you very much. You have great videos. I built my first stable truenas server with your help. Plex. Qbittorrent, netdate etc... I'm so happy you have clear and precise directions.
Glad to help
Awesome tutorial, and awesome results.
Thank You!!!!!🙂
Was looking for a video to explain how to sync a windows machine and this was perfect. Thanks a lot!
Cheers!
看了你的视频,很好的解决了我的问题,感谢。
Your Welcome Cheers
Thank you for sharing this video! It helped me get Syncthing up and running in no time!
Glad it helped!
I really appreciate you making this video. You have made a fairly complex task easy to setup - Thanks!!
Cheers
"Fart around, or whatever." My new favorite phrase. Thanks for the walkthrough!
😜👍No Problem. Thanks for watching.
Great job on this. The explanations really helped me out. First day of using TrueNAS and you have helped me setup a great file share program!
if you get the error you could also have a typo... like I did.
Awesome Glad it helped out.
Cheers!
I noticed the Group ID in the shell command was also 983... Do we need to create a group with ID 983? because the one created when creating the user has ID 1002 on my system. the User does have the 983 ID just not the Group that was also created. Seems to be working except I can't access the shared SyncThing folder through the network. I mirrored the permission I have on another data set (with the addition of the SyncThing user)... but still get the message I do not have enough permissions to access the folder.
Thank you so much for a great tutorial,,,, step by step was easy to follow and now I am sync'n my Android phone photos to my Proxmox/TrueNAS/SyncThing plugin.... ..... now to expand on more folders and more devices.... thanks again...edit: earned my sub
Cheers
I'm using Syncthing onTrueNAS Scale and getting errors in syncing comparable to what you showed at 22:08. I see your reference to setting the user's UUID to 983 at 8:46. However, in Scale, there is no user named "synthing". The user I created has a UUID of 3000. I also added the "apps" user to the ACLs, which has a UUID of 568. I'm trying to sync with Windows computers. But I assume that the problems is the ACLs set for the storage datasets in TrueNAS Scale. Can you comment on the proper user credentials for using Syncthing on TrueNAS Scale?
Love your channel you are my go to Nas expert
Glad you enjoy it!
Cheers!
Great tutorial, but will you make another for TrueNAS Scale as there is no "jail" and setting it up appears to be a bit different. Have it installed but can't seem to get the permissions set correctly to pick a data share.
I was wondering about being used across the internet. But having the nginx now makes sense. Thx !
No Problem
Man i need to thank you, i´ve managed to do it thanks to you sir... Following!
Glad I could help
Cheers
@@LoResDIY How can i share the folder from inside Syncthing Jail as a SMB Share? I've messed around so much with it that i've broke the permitions for syncthing, just rewatched this video, got it up and running again but i cannot figura out how to share the folder on my network, any help? Thanks in advance.
Summary: The dataset's owner *has* to be sync (983), owner group has to be 983 and you need to give full permission to 983 on the folder and children. Anything else I've tried, like different owner, but still has permissions, didn't work at all and ended up in errors.
Thank you for this tutorial, very helpful. I have a question on the final connection between Windows and TrueNAS.
In your tutorial, you had a folder with video files in it in a Windows VM---that Windows folder was synced with TrueNAS---that is, files were synced from the Windows device ---> TrueNAS.
My question is---can the other direction be had (TrueNAS folder with files in it ---> Windows device) at the start? That is, I already have a bunch of files on TrueNAS, and I want to share a folder on my TrueNAS with a connected Windows device (so when SyncThing is setup on a new Windows device....the data from TrueNAS is dumped onto the new device....and if I add a second device, the data from TrueNAS is dumped onto that new device as well).
I assume this is possible and looking to try---just curious if you have attempted this. Again, thank you for your complete tutorial. Really helps.
Yep you can do that.
After setting it up. Constantly: Permission Denied, despite the permissions being correctly setup... What am I doing wrong?
I heard lots of chatter about this but after watching a few videos it seems tedious to setup. There is too much going back and forth. I think I'll stick to the good old Seafile cloud sync setup.
There is a bit of back and forth, but once it's done it's done. Cheers!
Great Tutorial, i have been having so many issues to try and get this to work properly and you solved it all for me. Thank you for your hard work and effort. You have a new sub,
Awesome glad it helped, and thanks for the sub.
Cheer
@@LoResDIY Hi since then i have just relised that all the files in the SMB share are read only. I thought that i had set the permissions right on the dataset but obviously not. Can you shed some light on it if possible?
Add the syncthing username to the group that was created when you created your username. Then you will need to go to storage and change the permission.
Hopefully that made sense
@@LoResDIY Ok thank you i will try that. Will it inherit the permission or will i have to add it separately, as i have already given my user and the group permissions?
Thank you for your help, i will let you know when i have it worked out. 😆👍
@@LoResDIY Nope didnt seem to work, so i will have to go through all the settings to check what i have ticked or not. These ACL's are rather complicated.🙂
I cant find the actual directory of the /mnt/directoryname on what I did for the synchting folder location on my nas, it just gets added to the dataset of the main pool I chose and I cannot view a list of the filenames or files of the files that are being synced to the pool dataset
Hi all went extremely well with this until I tried to map the syncthing drive in windows and it tells me I do not have permission ? Any help appreciated
Hi. How to fix that I have on receive only (TrueNas) folder locally changed files when I change/edit files in send only folder on Windows computer? I need to manualy click Revert Local Changes to fix this.
Very helpful, thanks a lot!
very good video you are amazing, I really liked it and I have done eveything you explained and my syncthing works, tthanks you
Cheers
I had everything running great until i added another device to the backup list,
now im greated with the error:
Failed to create folder root directory mkdir /
Error on folder "Câmera" (fotos-de-sm-a336b_nr4s): folder path missing
I´ve tried editing the permitions even with all open...zero sucess ;(
This was helpful in many ways. Have you moved to TrueNAS Scale? I tried installing Syncthing on Scale and it just doesn't work. Looking through the forums also didn't help as it seems no one's really paying attention it. You have a knack for explaining things in a simple way and it would be great if you can make a similar video for installing Syncthing on TrueNAS Scale. Thanks!
I planning on doing some videos on scale in the near future.
@@LoResDIY Thank you! I look forward to it.
Ay thanks bro, much appreciated!
Cheers
Why did you go SyncTrayzor portable instead of the installer?
Muito bom o tutorial, resolveu um problema que eu tinha na minha rede, parabéns.
Cheers
Hi LoRes, awesome video! have a quest for you... where is the folder on my TrueNAS where kept my Sync files? Because I only see my local (hdd) folder, not my NAS Sync folder and the Sync was complete for my E:/ . Thanks!
Nice tutorial! Thanks for this clear explanation!
Glad it was helpful!
Many thanks. This was very useful. I was already familiar with Syncthing between laptops. But with a NAS, it is another story. I have gone through many tutorials on TrueNas+SyncThing and this one is the clearest and simplest. Now I am quite scared by the complexity of Truenas and all the parameters. I wonder how you discovered what to do when configuring SyncThing... Anyway...Again, thanks a lot and best regards from France.
How do I view my share. I want to view the files I sync over to my nas?
I was wondering if you were running Truenas scale bare metal or vm? Which way do you think is best?
Bare metal. I prefer to do it that way, but I know of people running it in a vm with no problems (until they want to do some fancy advanced stuff).
explained very well. thanks !
Cheers
Thank You.. Just the video i needed!
Glad it helped!
thank you thank you THANK YOU!
YW Cheers
Thank you, very helpful
Cheers
First off, mahalo for all these detailed tutorials! One question, how do you get the 'browse' button to appear next to the Folder Path? SyncTrayzor doesn't show me that. I tried opening up in Firefox and Chrome as well and still no browse button. Any advice would be appreciated!
leave the default folder as it is, and create a new one. there you can change the path.
Great tutorial. Really appreciate the help.
No problem! Thank you
I keep getting "stopped" and it says it failed to create the directory. I have watched and rewatched the steps. ensured I changed the user id to 983 after checking to make sure that's what it was and no matter what it's not working. i used all the same ACL settings for the pool etc. any help would be appreciated. this is my first day with truenas but I got help from a friend setting it all up.
in fact, now that I check out the SyncMe folder via windows network because I added it as an SMB share I can't access it there either despite the pool permission were to allow everything so something is incorrect and not sure where as I've rechecked the pool permissions 3 times.
@@Ubuntuaddicted Im running into the same issue.
@@90MichaelTaylor I ended up figuring it out. Went through all thr steps again. Just ensure the sync user has read/write on the parent directory
@@Ubuntuaddicted thanks, I figured out my issue also. I assumed it was making new folders in the /mnt directory but it was trying to make them in the root directory.
I followed your guide and managed to get it set up and running, and after adding some ignore patterns it's mostly running okay but now I've got this issue where my NAS loses it's network connection (not just SyncThing - The Web GUI, its not in the list of connected devices on the router, plex is down, the whole shebang). I then have to reboot my NAS to bring it back online. Anybody come across this?
Update: i’ve now paused SyncThings from both sides and that has resolved the connection issues for now so definitely seems to be related
very cool ! I got already shared folders with 2 computer via TrueNAS samba share, how do I add syncthing?
I don't think I missed anything but when I type in "id syncthing" I get no user name found. When I just type "id" it comes up with uid for root group ids an wheel.
Try to reinstall syncthing sometime it doesn't work correctly the first time around.
dose this work even if you are not on the same network
awesome video ever thanks mate!
Cheers
Once the files are backed up on TrueNAS, how do I gain access to them?
I know how to do it normally, but not with SyncThing
You can add a user to the syncthing group and access it by mapping a drive, or putting syncthing on your desk or laptop and share the drive to it. If you choose the later you will be taking room from your local storage.
@@LoResDIY Thank you
Thank you!
You're welcome!
Thanks a lot !!
You are welcome!
Cheers
you dont need to create an user "sync" in truenas for synching. its fine when you go into the dataset permissions and authorize an user through the UID
Thanks for the info
Hey there Lo-Res DIY
Greate video tutorial and very helpful
I have 1 question
I have connected my Domain Directory for my users to be able to access a Dataset i have created.
How can i enable them o access the SyncThing Dataset so they can see the backed up files and folders?
I tried to add in the ACL the Domain users group with no success
Thank you
I added my user to the apps group, and everything worked out.
This is great, thanks!
Thank you
There at 6.17 soneonw can see the frustrating bizzard way zfs shows how much storage each program/process uses. All tank uses 3.61tb and iocage even though it seems to use from scratch 2.83tb you have to substract 3.61-2.83 to find the real usage (probably I am also wrong and needs to calculate other factors as well like compression. For me is where zfs sucks biggggg time.
As about syncthing i tried to use it back when I wanted to sync =transfer my AD user shared folders when I found out that the sync finished without transfering the ACLS and the attributes in general from the files. It was useless for me and used robocopy instead. I know slightly different usecase but I dont think it was to hard for syncthing to add extra options if someone wants to keep except his files their attributes as well
Nice video by the way
Done this with success, is it possible to access the folder from the saved photos and documents with a smb share?
Yes add the correct permission for the dataset and you should be good to go.
@Lo-ResDIY, I know it takes alot of effort to get content out like this. Especially in tech where things changes so much. I'm having trouble with permissions and I think I can no longer change jail permissions as the syncthing plugin create the jail data set. I wasn't able to change the owner and group. Here is what I'm trying to do... I have a central set of folder on my TrueNAS server with source files (layer images etc) for my website... want to share that out to my laptops for us to use if we are on the road and need to make changes and those update to the source fields synch back to server for my home server when I get back home or online.
I've been trying to add mount point to the syncthing jail data sets to the folders of source files. kinda thought the management portal would see the folders I added to mount... but it doesn't. Then I try to add the folder in the Syncthing Management portal and I get the error you mention at the end of this video... seems I have permission issues or the system is trying to keep me from accidentally overwriting my source files folder.
I feel I'm missing some understanding here and am stuck. Do I need to give permission to the entire dataset that the web source files sit in to the Syncthing user or group? If yes, I wonder if I should create a new data set to move these files to as I don't think I want syncthing to have access to all of it. Honestly I don't quite understand how jails work with the source data sets and am I giving too much access to syncthing.
Awesome tutorial, I was struggling last few days setting it up lol. I was wondering how would I go about showing files on TrueNAS or SyncThing on my phone but not actually downloading all of the files on to my phone? Say I have a document on TrueNAS or SyncThing folder and I just want to pull it up on my phone and view it or only download that one document.
You will need to either
A) sign in (on you phone) as the user that has permission for the dataset.
or
B) Create a group that has your phone's username and SyncThing's username and give it permission over the dataset.
Also I believe that SyncThing hides all files; so you will need to set your phone to show hidden files.
I have never set a share up on my phone; so I'm not sure what you will need to do there, but I know this works on a desktop.
Good luck and cheers
did u do it? i am struggling with it
How is this different than just running "backup" ?
You can designate a back up program to make a copy of a file on a set schedule and keep multiples of that file for an extended period of time. This allows you to go back multiple changes/days of a given file. With SyncThing once it is changed it is changed; no going back no redoes. It is changed and that is that.
How about an update for TrueNAS Scale and SyncThing?
That will be a future video. Hopefully sooner than later.
Great video ! I also have nextcloud running on same treunas where i set syncthing like you. but i am unable to backup nextcloud data via syncthing to remote PC with syncthing running for backup. Please make a tut to achive this.
Hi, thanks for the video but I would like to see syncthing on Truenas Scale, can you made a video for that?
Yes I will, but I have a couple other videos that I want to do first. Might be a bit.
Please do a soup to nuts on ClamAV antivirus on TrueNAS.
5:00 if you don't name your Syncthing jail anything including sync, it will be much faster and won't stop at 20%. This is a bug, still not fixed -.-
Thanks for sharing.
Uma sugestão de tutorial, Plugin Duplicati com o Truenas.
Boa ideia.
Saúde!
My former installation broke. When I try to install by clicking save 4:26, I get "Error: HTTPConnectionPool(host='download.freebsd.org', port=80): Max retries exceeded with url: /ftp/releases/amd64 (Caused by NewConnectionError('< urllib3.connection.HTTPConnection object at 0x8282151f0 >: Failed to establish a new connection: [Errno 8] Name does not resolve'))"
Thanks a lot!
Cheers