sFTP error: Unable to startup channel

Get help for specific problems
Posts: 11
Joined: 5 Jun 2024

bladewinds

Hello,
when I connect my Hetzner box (sFTP) I get this error each time I run sync (sometimes even if I just run Compare check).
Usually, it appears after 1-2 sec. Some files are transferred, and then it shows that error.
I tried 1 connection and 1 thread - no luck.

Any ideas how to fix this? I have the latest version 13.6 on Windows.

Thanks
Attachments
2.png
2.png (22.46 KiB) Viewed 406 times
Posts: 11
Joined: 5 Jun 2024

bladewinds

Fixed.
The problem was the limit on the Hetzner box.
Hetzner limits 10 connections from the same IP.
So, I fixed it by setting limits to the sFTP connection as:
- 5 threads
- 5 ftp connections
That is a total of 10 connections.
Important: I set the limit on my SOURCE folder to 10 threads. If I try to change it to a higher number, Hetzner blocks me.

I am still not sure how those two settings work, but I found this configuration faster than for example 1 thread + 10 ftp connections.

Note that the "detect FTP limit" option returned "30" for me - which is not the true limit. Maybe that is the limit on FTP, but there is a different kind of limit on the front that Hetzner added.

I would like to ask the developer to implement WebDav or to throttle and retry the connection in case of limits.
User avatar
Site Admin
Posts: 7163
Joined: 9 Dec 2007

Zenju

The problem was the limit on the Hetzner box.
Hetzner limits 10 connections from the same IP.
So, I fixed it by setting limits to the sFTP connection as:
- 5 threads
- 5 ftp connections
That is a total of 10 connections. bladewinds, 12 Jun 2024, 19:56
"Threads" and "connections" is the same, so this still sets up for 5 SFTP connections.
Important: I set the limit on my SOURCE folder to 10 threads. If I try to change it to a higher number, Hetzner blocks me. bladewinds, 12 Jun 2024, 19:56
Setting the soure folder to 10 threads implicitly also increases target threads/connections to 10:
https://freefilesync.org/manual.php?topic=performance

In order to get more perf, you could increase number of channels:
https://freefilesync.org/manual.php?topic=ftp-setup
Posts: 11
Joined: 5 Jun 2024

bladewinds

thank you for the clarification.
In order to get more perf, you could increase number of channels:
https://freefilesync.org/manual.php?topic=ftp-setup Zenju, 12 Jun 2024, 21:03
Can you please tell me what configuration would work best in my case? So, the Hetzner limits 10 connections from the same IP, what to enter in each:
- Source threads
- sFTP threads
- sFTP connections

What will give the maximum performance?

Thank you :)
User avatar
Site Admin
Posts: 7163
Joined: 9 Dec 2007

Zenju

- Source threads
- sFTP threads
- sFTP connections bladewinds, 12 Jun 2024, 21:08
With regards to SFTP you can only configure two things, connections and channels per connection.
https://freefilesync.org/manual.php?topic=ftp-setup