Recommended Posts

Is there limit to number shared folders exists?
I have an application that adds folders periodically to btsync using API. Each folder contains one video file. I noticed that sync stopped when about 200 folders has been added. When I manually removed some folders sync restored.
Btsync 1.3.105 is running on Ubuntu 12.04.

cat /proc/<btsync pid>/limits for max open files shows 128000.

In logs I found something like this:
"client" side:
Blocked downloading file ZZZZZZZZZZZZZZZ due Connection closed

"server" side:
Torrent ZZZZZZZZZZZZZZZ status:137 error:<NULL> meta:1 conns:0 io:0
Force unloading torrent ZZZZZZZZZZZZZZZ
 

Link to post
Share on other sites

 

There are no limits imposed on the number, or size, of files you can sync with BitTorrent Sync

Unfortunately it doesn't explain why after a number shared folders added to btsync it stops synchronization and restored it as soon as some of shared folders were removed.

Link to post
Share on other sites

For now I'm quite sure that btsync 1.3.105 running on ubuntu12.04 stops synchronization process after approximately 200 folders has been added to btsync.
I've seen it on our production servers (believe me there are enough disk space and memory) and I did clean experiment on a different system. In the experiment I added folders to btsync in a loop using RW key. Each folder contained one file size of 1 Mb. Folders added using RO key to another btsync on the same comp on a different port. Target btsync awaited synchronized file has appeared on target folders. After 195 successfully synchronized folders synchronization has been stopped.

Here an excerpt from experiment log:
...
2014-06-08 16:52:58,515 INFO CheckALotOfFolders - Folder #193
2014-06-08 16:54:18,470 INFO CheckALotOfFolders - Folder #193 synced
2014-06-08 16:54:18,470 INFO CheckALotOfFolders - Folder #194
2014-06-08 16:55:38,282 INFO CheckALotOfFolders - Folder #194 synced
2014-06-08 16:55:38,282 INFO CheckALotOfFolders - Folder #195
2014-06-08 16:56:58,115 INFO CheckALotOfFolders - Folder #195 synced
2014-06-08 16:56:58,115 INFO CheckALotOfFolders - Folder #196
2014-06-08 16:59:00,712 ERROR CheckALotOfFolders - Folder #196 not synced after 120 seconds
2014-06-08 16:59:00,713 INFO CheckALotOfFolders - Folder #197
2014-06-08 17:01:03,318 ERROR CheckALotOfFolders - Folder #197 not synced after 120 seconds
2014-06-08 17:01:03,318 INFO CheckALotOfFolders - Folder #198
2014-06-08 17:03:05,766 ERROR CheckALotOfFolders - Folder #198 not synced after 120 seconds
2014-06-08 17:03:05,766 INFO CheckALotOfFolders - Folder #199
2014-06-08 17:05:08,228 ERROR CheckALotOfFolders - Folder #199 not synced after 120 seconds
...

Comlete log here:
http://pastebin.com/rW3C4Jji

Source code here:
http://pastebin.com/uuYCsPwk
 

Link to post
Share on other sites
  • 2 weeks later...

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.