syncthing: "general SOCKS server failure" since syncthing 1.3.3

https://forum.syncthing.net/t/general-socks-server-failure-since-syncthing-1-3-3/14375

Syncthing Version: v1.3.3 OS Version: Archlinux

Since I upgraded syncthing to 1.3.3 on archlinux, it is unable to connect to my cntlm socks proxy running locally. The log says repeatedly:

INFO: Listen (BEP/relay): joining session: socks connect tcp localhost:8010->127.0.0.1:443: unknown error general SOCKS server failure

I have configured socks for syncthing via systemctl edit syncthing@user

[Service]
Environment=all_proxy='socks5://localhost:8010' ALL_PROXY_NO_FALLBACK=1 http_proxy= https_proxy= GOMAXPROCS=1

Downgrading syncthing to 1.3.2 works as a workaround. Logs of both versions with STTRACE=dialer: https://gist.github.com/SanskritFritz/3e13c89f00f4f7b857b705a58dcd3d43 https://gist.github.com/SanskritFritz/719eccbd21e29f54a9df844e67f2196f

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 24 (12 by maintainers)

Commits related to this issue

Most upvoted comments

I don’t think there is any applicable policy in this case. Essentially we want to close once we are sure the commit landed in master. In theory it should have asked you to test before merging, but the bug was so obvious that I didn’t bother waiting.

Thanks. I’ve copied the binary over the installed syncthing 1.3.2 and restarted the service. My problem has gone, syncthing works nicely again over my socks proxy. So it seems your fix has fixed this problem as well. Thank you!

Jan 24 08:53:23 FrankVM syncthing[778350]: [start] INFO: syncthing v1.3.4-rc.1+14-ga8351010 "Fermium Flea" (go1.13.6 linux-amd64) teamcity@build.syncthing.net 2020-01-23 21:30:13 UTC
Jan 24 08:53:23 FrankVM syncthing[778350]: [start] INFO: Automatic upgrade is always enabled for candidate releases.
Jan 24 08:53:23 FrankVM syncthing[778350]: [YSBJ4] INFO: My ID: ...
Jan 24 08:53:24 FrankVM syncthing[778350]: [monitor] INFO: Proxy settings detected
Jan 24 08:53:24 FrankVM syncthing[778350]: [monitor] INFO: Proxy fallback disabled
Jan 24 08:53:24 FrankVM syncthing[778350]: [YSBJ4] INFO: Proxy settings detected
Jan 24 08:53:24 FrankVM syncthing[778350]: [YSBJ4] INFO: Proxy fallback disabled
...
Jan 24 08:53:25 FrankVM syncthing[778350]: [YSBJ4] INFO: Completed initial scan of sendreceive folder "Keepass" (xxxx-xxxx)
Jan 24 08:53:25 FrankVM syncthing[778350]: [YSBJ4] INFO: Completed initial scan of sendreceive folder "Shared" (xxxx-xxxx)
Jan 24 08:53:25 FrankVM syncthing[778350]: [YSBJ4] INFO: Completed initial scan of sendreceive folder "ZimNotebooks" (xxxx-xxxx)
Jan 24 08:53:33 FrankVM syncthing[778350]: [YSBJ4] INFO: Joined relay relay://195.201.94.137:443
Jan 24 08:55:53 FrankVM syncthing[778350]: [YSBJ4] INFO: Established secure connection to ... at 127.0.0.1:47950-127.0.0.1:8010/relay-server/TLS1.3-TLS_AES_128_GCM_SHA256
Jan 24 08:55:53 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... client is "syncthing v1.3.2" named "xxxS7" at 127.0.0.1:47950-127.0.0.1:8010/relay-server/TLS1.3-TLS_AES_128_GCM_SHA256
Jan 24 08:55:53 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... folder "Keepass" (xxxx-xxxx) has a new index ID (0x95EA0D49BEB1F6D2)
Jan 24 08:55:53 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... folder "Keepass" (xxxx-xxxx) has mismatching index ID for us (0x6F16B156BC933B0D != 0x3539AC5EF9E16A21)
Jan 24 08:56:09 FrankVM syncthing[778350]: [YSBJ4] INFO: Established secure connection to ... at 127.0.0.1:47962-127.0.0.1:8010/relay-server/TLS1.3-TLS_AES_128_GCM_SHA256
Jan 24 08:56:09 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... client is "syncthing v1.3.3" named "HomeC" at 127.0.0.1:47962-127.0.0.1:8010/relay-server/TLS1.3-TLS_AES_128_GCM_SHA256
Jan 24 08:56:09 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... folder "ZimNotebooks" (xxxx-xxxx) has a new index ID (0x298C81405D38EA50)
Jan 24 08:56:09 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... folder "ZimNotebooks" (xxxx-xxxx) has mismatching index ID for us (0xD877EFB1FE089CB3 != 0x2AADC4315CF9DE67)
Jan 24 08:56:09 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... folder "Keepass" (xxxx-xxxx) has a new index ID (0xDC1ACD3CEC30D14F)
Jan 24 08:56:09 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... folder "Keepass" (xxxx-xxxx) has mismatching index ID for us (0x6F16B156BC933B0D != 0x3539AC5EF9E16A21)
Jan 24 08:56:09 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... folder "Shared" (xxxx-xxxx) has a new index ID (0x1303707EDC8C7C7D)
Jan 24 08:56:09 FrankVM syncthing[778350]: [YSBJ4] INFO: Device ... folder "Shared" (xxxx-xxxx) has mismatching index ID for us (0x E4E20019E437F5F != 0xC24540EFA3782D70)