ovizii

Members
  • Content Count

    28
  • Joined

  • Last visited

Posts posted by ovizii


  1. Ok, thanks for that but I need some more help if you can.

     

    so on my NAS which is one of the 2 devices, I enabled the Pro trial to test. Under "My Devices" I have now set new folders from other devices to disconnected. 

    What would be my next step? Add  "/mnt/sync/_data"  on my NAS? 

    Then what?

    What do I do on my MAcbook (second device) do I add the code for the  "/mnt/sync/_data"  share or do I first somehow link these 2 devices (not sure I need that) Or do I create a share on the MAcbook for  "/Users/ovi/Documents/_data/"  ?

     

    Sorry, this tool is very confusing and it changed significantly since I first tried it while it was in alpha/beta.


  2. Same question over here. I have started a 30 day trial of the PRO version to see if this does what I need and as @Peter asked I would like to sync a specific folder which exists on 2 devices currently. 

     

    I did a few tests and can't seem to get the folder structure right. 

     

    so on device a) I select the folder:  /mnt/sync/_data 

    on device b) the existing structure is: /Users/ovi/Documents/_data so when selecting the share link from a) do I point it to /Users/ovi/Documents/_data on b) or one folder up => /Users/ovi/Documents/ 

     

    I'm confused if /mnt/sync/_data = /mnt/sync/_data/ = /mnt/sync/_data/* as with my 2-3 tries so far I have ended up with folders in all the wrong places, either /Users/ovi/Documents/_data/_data or the content of /mnt/sync/_data spread all out inside /Users/ovi/Documents/ instead of inside _data where it belongs. 

     

    I have now cleaned up the mess but will wait a reply before going ahead.


  3. @tuxpoldo: after upgrading both my server running Debian and my Macbook (both to version 1.4.8 of btsync) syncing just stopped. Restarting btsync on both machines didn't help.

    My Macbook lists the server in the devices tab and shows there is data to be uploaded but simply doesn't start.

    Does your btsync package write a log file somewhere? Any other suggestion?

    P.S. The macbook and my Windows PC (also using btsync 1.4.8) are still happily syncing.


  4. Well, I "think" I was on 1.1.27 on both machines, synced them, all was working fine.

    Then I went away for 2 weeks, and updated my Macbook pro consecutively to the newest one, 1.1.42 and when I came back home I upgraded the one on the PC to 1.1.42.

    I'm syncing my music folder which is about 100GB my pictures folder which is about 180GB and my Documents folder which si about 20GB.

    No errors in the Mac history.

    Win history was showing the timestamp error and as I said wanted to sync huge amounts of data which COULD NOT have changed.

    The win version is indexing every time I start it, skipping loads of stuff due to bad timestamp and crashes every 10 minutes, after which I restart it and it starts the indexing again and eventually crashes again.

    If I select to submit the crash dump, I get something along the lines of http connection unsuccessful or similar. Will wait a few minutes for the next crash to get the exact error.

    here we go: unable to send crash report to server: httpsendrequest failed.


  5. What exactly does that mean and what will happen? Searching the forum yielded nothing for those terms.

    What happened is that I was away for 2 weeks with my laptop, came back and upgraded btsync on my Macbook and on my PC, they started syncing and apparently all of a sudden ma Macbook has 94GB of new music (definitely not!) the PC has 163GB of new pictures (how, it was offline) and in my 2 weeks I seem to have also produced 7.4GB of new documents (I might have about 10MB of new documents but I moved a few around into different folders but still within the sync folder defined within btsync.

    So now my question is if this is always going to happen once they are out of touch for a few days? These 100+GB will take a few days to sync due to my low-speed network here and I still don't know what is going to happen, will I have 100+GB inside my SyncTrash? Will I have everything double?

    I do know btsync is alpha but if the basic function of it, the sync goes this badly wrong, I'm pretty disappointed.


  6. I'm pretty sure this is wrong:


    sudo echo 1000000 >> /etc/sysctl.conf

    You're just inserting a number in there but it needs to be attached to max_user_watches...

    Follow-up question: is btsync really using inotify? In that case I guess I need to know more about it since I use inotify for another tool on my server too and that uses most of my user_watches.


  7. I'm running btsync on Debian Wheezy with very few packages from testing. I now need python3.3 but when I try installing it it tells me it will remove btsync. Can you have a look please and let me know if this is fixable from your side?


    apt-get install -t testing python3.3 -u
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    libc-dev-bin libc6 libc6-dev libffi6 libpython3.3-minimal libpython3.3-stdlib locales
    python3.3-minimal
    Suggested packages:
    glibc-doc python3.3-doc binfmt-support
    The following packages will be REMOVED:
    btsync
    The following NEW packages will be installed:
    libffi6 libpython3.3-minimal libpython3.3-stdlib python3.3 python3.3-minimal
    The following packages will be upgraded:
    libc-dev-bin libc6 libc6-dev locales
    4 upgraded, 5 newly installed, 1 to remove and 346 not upgraded.
    Need to get 17.1 MB of archives.
    After this operation, 14.8 MB of additional disk space will be used.
    Do you want to continue [Y/n]?


  8. Thanks for confirming. I have read countless "nested" threads, its just that most of them were describing the issues of cross-syncing folders/subfolders to the same machines while I was trying to sync to another one.

    Anyway, its all good, I just hope one day btsync will adapt to our workflow/folder structure rather than us having to adapt to the tool :-)


  9. say I have a folder called Documents, that is being synced between my two main working machines but it also contains a subfolder: Important which I'd love to sync to my server. I didn't think that would be a problem but it appears btsync doesn't allow to sync a subfolder. I don't understand why, since I am going to share the subfolder with a machine that doesn't know anything about the parent folder being synced and I cannot afford traffic and space wise to sync the whole Documents folder to my server.

    What's the easiest solution to this dilemma?


  10. @Tuxpoldo: Thanks for the great contributions.

    One question though:

    Just wondering why I see 6 instance running:


    pstree | more
    init-+-/usr/sbin/amavi---2*[/usr/sbin/amavi]
    |-/usr/sbin/postg
    |-acpid
    |-btsync-daemon---6*[{btsync-daemon}]

    And another one, if I open htop I see 6 processes running like this:

    /usr/lib/btsync/btsync-daemon --nodeamon --config /etc/btsync/complex.conf 

    so I was wondering why the parameter --nodeamon?


  11. I think I also had a problem with the versions. On the server I use: BitTorrent Sync 1.1.22 and on my MACbook I had 1.0.something and it wouldn'T report any updates. I then figured out that this download link is OLD: http://labs.bittorrent.com/experiments/sync/get-started.html => the download button gives an old MAC image.

    Found this one, which seems to the the most recent one: http://syncapp.bittorrent.com/1.1.26/ and my MAc immediately picked up the server... BUT started re-indexing everything :-(

    I'll report back with a final resume once its done.


  12. Ok, let me see if I got this right:

    1) Least open ports for you are using ONLY the tracker and the relay.

    2) Open your UDP port, your host to the tracker and relay IPs port 3000.

    3) Allow solicited replies from same.

    4) Nothing else. This will probably be slow and the peers will still attempt (and fail) to make direct connections.

    It's better if you configure UDP to be just like TCP normally is, ie: allow all solicited replies.

    1) done

    2) by your UDP port you mean 47151 - the only port I can configure within btsync apart from the one for the web interface I reckon? I allow incoming/outgoing UDP traffic on ports 3000,47151 (to and from ANY destination)

    3) 2) should take care of this too.

    4) care to explain or point me to some links as to why they would fail to connect?

    So far, with the setup I just described, my macbook doesn't seem to see the server but I'll give it a while to see if things work out.


  13. hey man, thanks for the quick reply.

    1) I'm not sure I understand what you mean here?

    2) Done, removed port 3000 since it wasn't needed.

    3) Done

    4) no peers are behind the same firewall

    5) I've read up on how to run it under multiple users and have been looking into it, for now however I'm just trying to get it up and running first.

    With regards to this:

    Otherwise, if you want to completely lock down the firewall, it's a case of choosing which peer discovery option you want to use, allowing the connections for that method and disabling the others.

    Which one requires the least opened ports? Which one has specific port requirements versus loose ones like >1024 ?

    I used INGRESS and EGRESS loosely as in INCOMING and OUTGOING. AS simple as that.


  14. Ok, thanks for the reply. DHT and tracker settings are not my forte, I only know what I've read around here.

    Let me explain my setup, maybe you can shed some more light on things:

    I have the following machines:

    1 Macbook

    1 PC

    1 dedicated server

    Everything works between the Mac and the PC, now I wanted to add the server to this setup and give it read-only keys.

    I have set up the server as a predefined host on the PC and MAC since its got a static IP but cannot do the same in reverse as the PC and the MAC are on dynamic IPs, whenever they go online.

    All 3 machines involved are configured to use port 47151.

    The current firewall settings on the server, the only place where I've got problems are:

    ingres:

    allow incoming data on ports 3000,47151 TCP&UDP

    egres:

    allow outgoing data on ports 3000,47151 TCP&UDP

    TO and FROM ANY. So basically, I fulfilled the minimum firewall requirements and still the server tries ending out stuff on port 6881 as you can see in the firewall log above: DPT=6881

    Here are a few more dropped packet logs:

    Jul 3 08:04:00 h2118175 kernel: [12084148.276757] ** P2P ** IN= OUT=eth0 SRC=server DST=67.215.242.139 LEN=95 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=47151 DPT=6881 LEN=75

    Jul 3 08:03:59 h2118175 kernel: [12084147.660390] ** OUT_UDP DROP ** IN= OUT=eth0 SRC=server DST=85.214.221.99 LEN=30 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=5351 DPT=5351 LEN=10

    Would any of this change if I turned any of these settings off?


    "use_relay_server" : true,
    "use_tracker" : true,
    "use_dht" : true,

    This is my config file on the server:


    {
    "device_name": "xxx",
    "listening_port" : 47151,

    "storage_path" : "/root/.btsync",[/font][/size]
    [size=4][font=arial, helvetica, sans-serif] "check_for_updates" : false,
    "use_upnp" : false,
    "download_limit" : 0,
    "upload_limit" : 0,
    "webui" :
    {
    "listen" : "0.0.0.0:8888",
    "login" : "root",
    "password" : "xxx"
    }
    ,
    "shared_folders" :
    [
    {
    "secret" : "xxx",
    "dir" : "/root/btsync/Documents",
    "use_relay_server" : true,
    "use_tracker" : true,
    "use_dht" : true,
    "search_lan" : false,
    "use_sync_trash" : true,
    "known_hosts" :
    [[/font][/size]
    [size=4][font=arial, helvetica, sans-serif] ]
    }
    ]
    }[/font][/size]
    [size=4][font=arial, helvetica, sans-serif]

    What I cannot do is allow this:

    the configured UDP port open for unsolicited packets from any address and any port over 1024.
    As that would mean to basically open up the server to all sort of unwanted traffic.

    Any other hints or observations you can make based upon this detailed post?


  15. Ok, I'm getting closer to the root of the issue:

    btw. the firewall problems are on my server, not on the macbook.

    So I set up btsync to use port 55555 and opened ingres and egres traffic for TCP and UDP on the server for port 55555 and 3000.

    Still I see entries in my firewall logs like this:


    Jul 2 13:02:19 h2118175 kernel: [12015648.927721] ** P2P ** IN= OUT=eth0 SRC=85.214.xxx.xxx DST=67.215.xxx.xxx LEN=95 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=55555 DPT=6881 LEN=75

    Is port 6881 also needed or is this just a random port? Is there a complete list of needed ports available somewhere?


  16. Sorry, I'm an idiot, this whole section was commented and I didn't realize it:


    /*
    ,
    "shared_folders" :
    [
    {
    // use --generate-secret in command line to create new secret
    //documents uses a read-only secret
    "secret" : "xxx", // * required field
    "dir" : "/root/btsync/Documents", // * required field
    // use relay server when direct connection fails
    "use_relay_server" : true,
    "use_tracker" : true,
    "use_dht" : true,
    "search_lan" : false,
    // enable sync trash to store files deleted on remote devices
    "use_sync_trash" : true,
    // specify hosts to attempt connection without additional search
    "known_hosts" :
    [
    //"192.168.1.2:44444"
    ]
    }
    ]
    */

    BUT now I have a firewall problem: I btsync to use port i.e. 55555 on the server on and my macbook and have opened TCP and UDP incoming and outgoing for that port but it seems btsync uses other ports too?

    What other ports do I need to open for it to work properly?


  17. I made some progress, I now ran this: /usr/lib/btsync/btsync-daemon --config /etc/btsync/complex.conf

    and finally got an error:

    To use BitTorrent Sync you should specify shared directories in config file or enable Web UI

    here is my config file, with the secret masked:


    {
    "device_name": "xxx",
    "listening_port" : xxx,
    // 0 - randomize port

    /* storage_path dir contains auxilliary app files
    if no storage_path field: .sync dir created in the directory
    where binary is located.
    otherwise user-defined directory will be used
    */
    "storage_path" : "/root/btsync/.btsync",
    // uncomment next line if you want to set location of pid file
    // "pid_file" : "/var/run/btsync/btsync.pid",
    "check_for_updates" : false,
    "use_upnp" : false,
    // use UPnP for port mapping

    /* limits in kB/s
    0 - no limit
    */
    "download_limit" : 0,
    "upload_limit" : 0,
    /* remove "listen" field to disable WebUI
    remove "login" and "password" fields to disable credentials check
    */
    "webui" :
    {
    //"listen" : "0.0.0.0:8888",
    //"login" : "admin",
    //"password" : "password"
    }
    /* !!! if you set shared folders in config file WebUI will be DISABLED !!!
    shared directories specified in config file
    override the folders previously added from WebUI.
    /*
    /*
    ,
    "shared_folders" :
    [
    {
    // use --generate-secret in command line to create new secret
    //documents uses a read-only secret
    "secret" : "xxx", // * required field
    "dir" : "/root/btsync/Documents", // * required field
    // use relay server when direct connection fails
    "use_relay_server" : true,
    "use_tracker" : true,
    "use_dht" : true,
    "search_lan" : false,
    // enable sync trash to store files deleted on remote devices
    "use_sync_trash" : true,
    // specify hosts to attempt connection without additional search
    "known_hosts" :
    [
    //"192.168.1.2:44444"
    ]
    }
    ]
    */
    // Advanced preferences can be added to config file.
    // Info is available in BitTorrent Sync User Guide.
    }

    Anything wrong with this?


  18. I'm using the packages from the repository one of the members here posted publicly and I "think" I have it all set up properly but if I start btsync:

    /etc/init.d/btsync start

    Starting P2P file synchronisation daemon(s)...Autostarting btsync instance 'complex':.

    THat is all that happens, no errors nothing. And if I check with pstree, btsync isn't running so where does it log to or where can I find out what the problem is?