Bt Sync Seems Not To Be Closing


v6ak

Recommended Posts

BTSync does not seem to close added files. I am recovering many files from my backup and I am getting the following error message: "Don't have permissions to write to the selected folder.".

 

When I restart the BT sync service (i.e. killall btsync-daemon and start it again), the sync continues for some time, but it later fails again in the same way.

 

When I look to the log file, I've recognized that it can't write to the target folder because it has reached maximum opened files. The log looks like:

[20140404 15:05:37.194] SyncFilesController: failed to load torrent for file ".../apps/android-sdk-linux/platforms/android-14/data/res/drawable-hdpi/stat_sys_signal_3_cdma.png"[20140404 15:05:37.194] TorrentFile: Failed to create empty suffix for file ".../apps/android-sdk-linux/platforms/android-14/data/res/drawable-hdpi/stat_sys_signal_4_cdma.png" - 24[20140404 15:05:37.194] SyncFilesController: failed to load torrent for file ".../apps/android-sdk-linux/platforms/android-14/data/res/drawable-hdpi/stat_sys_signal_4_cdma.png"[20140404 15:05:37.194] TorrentFile: Failed to create empty suffix for file ".../apps/android-sdk-linux/platforms/android-14/data/res/drawable-hdpi/stat_sys_signal_evdo_0.png" - 24[20140404 15:05:37.194] SyncFilesController: failed to load torrent for file ".../apps/android-sdk-linux/platforms/android-14/data/res/drawable-hdpi/stat_sys_signal_evdo_0.png"...[20140404 15:15:18.506] Failed file save: .../sync.dat.new

 

It does not reach the global system limit, just the per-process limit. I've increased the limit from 1024 to 4096, but it does not solve the problem. It seems that the app simply does not close the newly created files. When I run watch 'lsof | grep btsync-da | grep REG | wc -l', the number of opened files continuously grows.

 

 

My BTSync and system versions:

% dpkg -l | grep btsyncii  btsync                                         1.3.0-1                                              Private network P2P file synchronisation daemon(s)ii  btsync-common                                  1.3.80-1                                             Private network P2P file synchronisation daemonrc  btsync-gui-gtk                                 0.8.1-2                                              Full GTK based Linux GUI for BitTorrent Sync% lsb_release -aNo LSB modules are available.Distributor ID:    UbuntuDescription:    Ubuntu 12.04.4 LTSRelease:    12.04Codename:    precise
Link to comment
Share on other sites

I seem to be having this problem with btsync 1.3.80 (32-bit) on a QNAP TS-469 with when receiving a lot of files from peers.

 

It runs for a while and then "Check: Too many open files" starts appearing in the log and in the GUI the "Size" says "Don't have permissions to write to the selected folder."

 

The lsof command does grow as btsync is running (substituting my folder name in for btsync-da) and shows 1365-1477 files usually. When it stops.

 

Stopping and restarting btsync gets it going again for about 2 minutes (lots of small files).

 

*Edit: From http://forum.bittorrent.com/topic/29255-btsync-error-check-too-many-open-files/

 

Tried http://syncapp.bittorrent.com/1.3.77/ and the number of open files no longer grows out of control, 7 or 14 is all I've seen.

Link to comment
Share on other sites

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.