Resviole Posted November 27, 2020 Share Posted November 27, 2020 (edited) I am trying to use Syncthing via a docker container to sync files from a remote server to my own. The remote server is 10Gbit, and Syncthing works at 400Mbps+ to other devices in my local network (tested via Syncthing on Synology NAS). On my Unraid server the speeds start at ~250Mbps then drops to 2-5Mbps within 10 seconds. Server specs Unraid version: 6.9.0-beta35 Hardware: Ryzen 5600x with 32GB memory Main array: 4x 14tb 7200rpm drives, 1 set as parity. Cache array: 2x Samsung 970 Evo Plus M.2 500GB Troubleshooting attempted so far Set the Unraid share used by Syncthing to public, confirmed I could read and write from/to the share via SMB to a Windows PC at a consistent 110MB/s. For troubleshooting purposes, set the share to Cache only and confirmed all files are on the cache array. Ran the "Docker Safe New Perms" tool Ran Fix Common Problems + Tips and Tweaks - all is as recommended, no issues Searched the syncthing forums and google, found other references to issues with Syncthing on Unraid but no resolution threads. The threads are sparse (one thread every year or two). Confirmed CPU and Memory are good, both are extremely low usage Checked the Unraid syslog, no warnings or errors that seem related Recreated the Syncthing container Followed tweaking guides - changed tunable (md_write_method) to reconstruct write and tunable (md_num_stripes) to 8192. I don't think these matter since I have the share set to cache only though. Verified no smart errors Set dynamix ssd trim to run daily Gave full permissions to appdata in case permissions issue - chmod -R 777 /mnt/user/appdata/syncthing/ Confirmed SyncThing versions match (1.11.1 on both sides) Confirmed UPnP is properly creating the port forwarding on my router (it is forwarding a port above 40000 to my internal port 22000 on the receiver side) Increased logging and reviewed - found failed to exchange Hello messages warnings, unsure if this is a concern as it relates to slow speeds. See attached log (the items in square brackets are modified to hide private info) Manually created a port forward on router on receive side: source ip [internal ip of server], external port 22000, internal port 22000 Confirmed Relay is not being used by checking the "Address" section under "Remote Devices" on the sender and receiver side. Both list the IP:Port directly without a "relay://" before them Any help or tips to resolve this would be appreciated. Thanks in advance! SyncThingErrorLog.txt Edited November 30, 2020 by Resviole Added latest troubleshooting steps Quote Link to comment
Resviole Posted December 1, 2020 Author Share Posted December 1, 2020 Self-replying as this is now resolved and I can get a sustained 300mbit+. The solution was to add a new variable to the Syncthing docker container named UMASK_SET with a value of 000. I'm using the linuxserver.io docker image and it appears permissions were the cause of the speed issues. 2 1 Quote Link to comment
Judd35472 Posted April 12, 2021 Share Posted April 12, 2021 On 12/1/2020 at 6:48 PM, Resviole said: Self-replying as this is now resolved and I can get a sustained 300mbit+. The solution was to add a new variable to the Syncthing docker container named UMASK_SET with a value of 000. I'm using the linuxserver.io docker image and it appears permissions were the cause of the speed issues. Thx! Was driving me crazy for weeks. Looks like this fixed my issue as well - binhex version. Quote Link to comment
monano Posted March 1, 2022 Share Posted March 1, 2022 On 12/1/2020 at 3:48 PM, Resviole said: Self-replying as this is now resolved and I can get a sustained 300mbit+. The solution was to add a new variable to the Syncthing docker container named UMASK_SET with a value of 000. I'm using the linuxserver.io docker image and it appears permissions were the cause of the speed issues. Thanks so much for posting this. It is exactly what worked for me. Quote Link to comment
Januszmirek Posted January 15, 2023 Share Posted January 15, 2023 (edited) I am experiencing similar issue with speeds. having said that I am not syncing my local Mac to cache drive on Unraid, but rather to a share set up on one of array discs (hdd). My initial syncing speeds are atrocious (20-100kbps) increasing to 25-100(occasionally) Mbps. Obviously my Mac machine and Unraid are on same 1gbit network. I am using latest 1.22 and 1.23 versions of app on mac and unraid. Both machines show TCP LAN connection type. Where do I start troubleshooting the issue? Edited January 21, 2023 by Januszmirek Quote Link to comment
Recommended Posts
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.