Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Syncthing

Featured Replies

Hi everybody

 

As I discovered Syncthing few days ago I'm pretty sure my question would seem stupid to you !

I want to backup my laptop documents on my NAS, like I did befor with my synology (with Drive)

 

I setup my syncthing folders this way in the container :

mnt/user/backups/BACKUP_XIAOMI_MI_AIR       > /sync

/mnt/user/appdata/syncthing                 > /config 

The PUID / GUID are 99/100

I have no error messages (like I read in this thread, like permission issues)

 

The problem is : all the data I want to backup is stored in the config directory on my cache drive (which is now full ^^)

So the /sync folder is not used...

What am I doing wrong ?

Edited by guilhem31
More informations

  • Replies 287
  • Views 124.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • David Spivey
    David Spivey

    @mbc0, @CommandLionInterface, @CHBMB   I requested, and was granted, a change to the docker container. The solution to all your write-on-samba problems is now here. First, make s

  • NOTE 01/2024: UMASK_SET has been renamed to UMASK (beware the outdated screenshots!)   For anyone experiencing write-permission errors on Samba shares as I did, please make sure that:

  • The instructions is not that informative when installing syncthing.. The instructions says: -v /data1 Data1 -v /data2 Data2 But what is Data1 and Data2??? Please, make a better explan

Posted Images

Syncthing offers a default folder path that starts with config, which you need to remove

 

In the container configuration for my backup location, My Host Path 2 is:  /mnt/user/

In the Syncthing app, my folder path is: /sync/Backup/Richard

 

That puts the files into a share called Backup with a subfolder called Richard

 

4 hours ago, RichardU said:

Syncthing offers a default folder path that starts with config, which you need to remove

 

In the container configuration for my backup location, My Host Path 2 is:  /mnt/user/

In the Syncthing app, my folder path is: /sync/Backup/Richard

 

That puts the files into a share called Backup with a subfolder called Richard

 

Thanks a lot for your hints. It seems to be the right thing to do, but in my Syncthing app (via the webUI) I can't change the folder path, the input is grey :

aeh2w8Z.png

So it's impossible for me to change /config/myfolder to /sync/myfolder

Maybe try deleting that and add it again. 

1 minute ago, RichardU said:

Maybe try deleting that and add it again. 

I allready tried that and there was no option field where I can set the path manually.. :/

I was experience terrible speeds using Syncthing in docker on unRAID... Until I pinned the docker to only use a couple of CPU cores (switch Basic View to Advanced in the docker's "edit" screen)

 

I'm now seeing bursts up to 20-30MB/sec where previously I never saw anything higher than 2-3MB/sec.

 

I can only assume this was a CPU scheduling issue (ie. is the syncthing docker waiting for all cores to be available for some reason?)

 

edit: I may have spoken to soon - occasionally I'm seeing up to 20MB/sec, but this mostly settles back to <2MB/sec after a while.  Very frustrating!

Edited by ConnectivIT

Just got syncthing up and running tonight and experiencing slow speeds as well.  I've port forwarded and pinned the container to 4 cores.  Running the client on Windows laptop.  Is there something else I can try or am I just stuck?

  • 1 month later...

I think it has been asked here but I see no answer or guidance. I managed to setup Syncthing in 2 Unraid servers and they're talking to each other. Now this is not very clear.

 

How do I point Unraid 1 to an existing folder/share to sync it across to the Unraid 2?   Looks like permission issue to me? 

Screen Shot 2020-06-28 at 2.30.02 PM.png

Well found the solution to my own problem   You'd could just add extra Host Paths as required, in my case / ROOT and be done with it    Work perfect now.

 

1138938407_ScreenShot2020-06-28at3_55_48PM.thumb.png.98975016268b0072176573050cc4d783.png1309702296_ScreenShot2020-06-28at3_55_04PM.thumb.png.1353ef7d0b0c36150ee180030264b7cb.png

This place id DEAD :)

 

This stuff ain't working :(   It scaned for 2 freaking days and now is STUCK.  Any ideas?  It won't move or transfer anything :( 

 

 

2105054539_ScreenShot2020-07-03at6_29_55PM.thumb.png.cbbcc599dc4cb68678b5efa184dd8922.png

 

  • 3 weeks later...
On 8/9/2019 at 9:32 AM, Cliff said:

I am trying to get syncthing to sync to my google drive folder without success. I have mounted a google drive folder with:


mkdir -p /mnt/user/google_syncfolder
rclone mount --buffer-size 256M --fast-list --allow-other gdrive:Dump/ /mnt/user/google_syncfolder &

I can see the mounted folder and all google drive files and can also copy from/to my google drive with the use of a file-browser on unraid.

I have also added the same directory to the path in the syncthing container. But when trying to sync from a remote syncthing-server to the unraid server it just sits at 0% and then throws a sync error.

 

If I look on my google drive I can see that syncthing has created a zero-byte .tmp file for every file I am trying to sync

 

If I change the path in the syncthing container to a regular folder on the unraid server it works without problem. Can anyone explain to me how to solve this?

Did you ever get this resolved?

 

I'm having a similar issue, but with Onedrive. It's finding the folder fine, and loading some .tmp files in there (upto a few 100kb), but then throwing up sync errors (both illegal seek & operation not permitted).

 

and example of the errors:

2020-07-19 21:36:57 Puller (folder "5870" (5870), item "DSC_3452.JPG"): truncate /onedrive/pictures/.syncthing.DSC_3452.JPG.tmp: operation not permitted
2020-07-19 21:37:00 Puller (folder "5870" (5870), item "DSC_3453.JPG"): save: write /onedrive/pictures/.syncthing.DSC_3453.JPG.tmp: illegal seek

 

I've tried a load of different rclone configs e.g. changing the uid to match the syncthing docker uid etc but I continue to get the same errors.

I've tried with & without "ignore permissions" set, with no difference.

I can access & write to the rclone mount in other dockers fine.

 

Anyone got any ideas?

On 7/19/2020 at 9:40 PM, thingie2 said:

Did you ever get this resolved?

 

I'm having a similar issue, but with Onedrive. It's finding the folder fine, and loading some .tmp files in there (upto a few 100kb), but then throwing up sync errors (both illegal seek & operation not permitted).

 

and example of the errors:

2020-07-19 21:36:57 Puller (folder "5870" (5870), item "DSC_3452.JPG"): truncate /onedrive/pictures/.syncthing.DSC_3452.JPG.tmp: operation not permitted
2020-07-19 21:37:00 Puller (folder "5870" (5870), item "DSC_3453.JPG"): save: write /onedrive/pictures/.syncthing.DSC_3453.JPG.tmp: illegal seek

 

I've tried a load of different rclone configs e.g. changing the uid to match the syncthing docker uid etc but I continue to get the same errors.

I've tried with & without "ignore permissions" set, with no difference.

I can access & write to the rclone mount in other dockers fine.

 

Anyone got any ideas?

For anyone else who find this with similar issues, I found a solution.

 

The issue is the tasks that the rclone filesystem supports. Once I realised this, and could look into rclone's capability a bit more, I found the vfs-cache-mode parameter. I've since set this to write, and it has resolved my issues.

I haven't ever used Syncthing but I'm trying it for a phone backup. I did a fresh docker. I had it sync to the config folder for now but I cannot access the folder over SMB. I get a permission error. Docker safe perms didn't help.

I've been trying out syncthing the last few days but can't seem to get local discovery working on a 2 routers home network. Has anyone gotten a local connection between 2 routers?

3 hours ago, BoyMeets said:

I've been trying out syncthing the last few days but can't seem to get local discovery working on a 2 routers home network. Has anyone gotten a local connection between 2 routers?

By the sounds of it there wouldn't be anything "local" when separating machines by using 2 routers.  Each router has it's own network and would only be "local" to it's own network.

 

Why don't you want to add one of them as a remote device? Takes the guessing out of it.

Actually your issue may be something totally different ..... all of a sudden my syncthing has stopped working and I cannot get them to connect.. Not sure when Syncthing updated to 1.7.1 or if that's the problem but I cannot get my 2 machines to connect, and I've changed nothing since they were working.

 

 

Edit -- Yes indeed, I rolled back my docker version to linuxserver/syncthing:v1.6.1-ls37 and it instantly worked again.

 

Something changed leading up to the most recent 1.7.1 that broke the container.  Not sure what it could be though.

Edited by Energen

What can I change here: 

image.thumb.png.e8a96e541bf95bd5a9fbd377f44e02cc.png

 

To avoid getting this:

image.thumb.png.dc058a6d5432e125adca253f75b1dfed.png

 

Just now, RichardU said:

What can I change here: 

image.thumb.png.e8a96e541bf95bd5a9fbd377f44e02cc.png

 

To avoid getting this:

image.thumb.png.dc058a6d5432e125adca253f75b1dfed.png

 

You can set the password in syncthing itself. Its in settings-GUI.

 

image.png.db79537dda777efef377319af40e0f54.png

On 8/4/2020 at 4:27 PM, david279 said:

You can set the password in syncthing itself. Its in settings-GUI.

 

You're right! Thanks. 

 

My mistake was thinking "Changes here will not take effect" applied to the whole page

Anyone else experiencing slow syn speeds at the moment? I have to keep restarting the docker container to get the speed back up. Syncs at 20Mbps (my internet speed limit) for 10-15 min then drops suddenly to 1Mbps or less and never recovers until a restart. Only change I've made on my end is running UnraidOS 6.9-beta25. I rolled the container back to version 1.6.1 as 1.7.1 was even worse and wouldn't sync at all. 

 

I've also tried pinning what CPUs it can use but that didn't help. Only thing that helps is restarting the container. I've checked everything i can think of on my network but there is no QOS on the router (tried it with it on and that didnt help). Re installed the docker container completely re setting everything up. Nothing seems to stop the sudden slow down. 

 

Syncing to my Cache drive before moving to the array, There is plenty of Space on the cache drive 500+GB free

  • 2 weeks later...
On 8/10/2020 at 9:56 AM, Rowanhs said:

Anyone else experiencing slow syn speeds at the moment? I have to keep restarting the docker container to get the speed back up. Syncs at 20Mbps (my internet speed limit) for 10-15 min then drops suddenly to 1Mbps or less and never recovers until a restart. Only change I've made on my end is running UnraidOS 6.9-beta25. I rolled the container back to version 1.6.1 as 1.7.1 was even worse and wouldn't sync at all. 

 

I've also tried pinning what CPUs it can use but that didn't help. Only thing that helps is restarting the container. I've checked everything i can think of on my network but there is no QOS on the router (tried it with it on and that didnt help). Re installed the docker container completely re setting everything up. Nothing seems to stop the sudden slow down. 

 

Syncing to my Cache drive before moving to the array, There is plenty of Space on the cache drive 500+GB free

 

Yeah Rowanhs - same here. Resilio is full speed, but Syncthing not so.

On 8/25/2020 at 8:23 AM, riff.79 said:

 

Yeah Rowanhs - same here. Resilio is full speed, but Syncthing not so.

@riff.79 yeah i've given up and am trying Resilio. Out of interest does your DL speed zig zag all over the place with Resilio? It goes really quick and then drops to zero, builds up to speed then drops again. Over and over. 

On 8/30/2020 at 4:32 PM, Rowanhs said:

@riff.79 yeah i've given up and am trying Resilio. Out of interest does your DL speed zig zag all over the place with Resilio? It goes really quick and then drops to zero, builds up to speed then drops again. Over and over. 

Yes!  100% CPU, slow indexing and unpredictable network speed. 

  • 4 weeks later...

I'm interested in checking in on my setup... 

I have unraid 6.8.3 running with Syncthing docker. I have /sync set as my photos, this syncs from my phone camera. I also then created a /sync2 that points to another folder to sync to my phone as well.  I also setup /sync3 for syncing my wife's phone photos... all seems to work..  I have the server side setup to ignore delete and I only have it sync when connected to home wifi.  

Is this the correct setup?  I've been watching some Lawrence systems videos and it sounds like the best practice for adding more folders/devices is for the "remote" device to reach out to the Server, is that also correct? if I want to sync more folders, do I keep adding /sync locations with the path I want to sync? 

The only issue I've had..not really an issue I guess.. my /sync2, which is on my phone, if I delete from my phone, the server reports back that it's synced up. My webUI on my phone Syncthing shows it's out of sync with X amount of files.. this shows for /sync2 and /sync..  supposed to ignore that or is there a config I have that's missed/messed up that it keeps showing out of sync? 

Having an issue with transfer speeds on the array when Syncthing is running. Extremely slow transfer on the array from folder to folder, disable the syncthing docker and the issue is solved. Any idea what setting could be causing such an issue?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.