mojeda

Members
  • Posts

    9
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by mojeda

  1. I think this is related to my post here http://forum.bittorrent.com/topic/29158-1380-ubuntu-100-cpu/ and it only happens on ubuntu with the new version 1.3.80 this wasn't happening before on 1.2.X

    Interesting... I only decided to use ubuntu because I didn't think tuxpoldo had a debian version of the btsync ppa repository, however it looks like it does.

     

    I'm going to try it on a debian server and see how that goes.

  2. It's probably inheriting limits from the system process that actually started it.

    The easiest fix is to modify the init script to explicitly set ulimit. A lot of start scripts already provide a mechanism to specify it via the defaults file, but YMMV.

    I've modified the init script to set the ulimit to 20k and its limit is now 20k. It finally did sync all the files but when I check for open files it still has them open. It's not closing them like I would think it should? I imagine I will just run into the same issue once it has around 20k files open still....

  3. I ran the below command and it lists 711 open files in my shared folder.

    lsof -Fn -u btsync | sort  | uniq | grep /shared

    It's almost as if if btsync tries to sync too many files and hits the limit, it "locks up."

    cat /proc/sys/fs/file-max

    Shows that open file limit is set to 200k overall system.

     

    I can't check the ulimit for the btsync user since it does not have shell acess however I applied higher soft and hard nofile limits for all users.

    ulimit -Snulimit -Hn

    Soft limit is now 20k while hard limit is 50k.

     

    However the issue still persists.

     

    Edit:

     

    Changing the user it runs as also doesn't fix the problem.

  4. I'm trying to sync files between 2 ubuntu servers and get the error message in the web gui "Don't have permissions to write to the selected folder"

     

    sync.log in /var/lib/btsync/

     

    Gives the following Error Message: Check: Too many open files

     

    Seems to be hit and miss, I previously synced 1.9GBs worth of files (few hundred files) and it worked fine, however now I'm syncing just 300MBs where it's maybe 1-200ish files.

     

    Edit:

     

    I'm also seeing "status:144 error:Check: Too many open files meta:1 conns:0 io:0"