drego85

Members
  • Posts

    118
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by drego85

  1. It's been a bit of a nightmare, but I finally got this sorted on my two QNAP TS-421

    Two step process:

    1. I had to ssh in and edit the startup script: /etc/init.d/btsync.sh (which just links to /share/MD0_DATA/.qpkg/BitTorrentSync/btsync.sh

    and add the line:

    umask 002

    somewhere near the beginning. I added it just before the "case".

    Note: it seems extremely likely that if you update the package you will need to redo this step!

    2. Make sure that all your existing files and directories have sufficient privileges and the correct ownership. From the top level share (/share/MD0_DATA/):

    chgrp -R everyone * <--- make sure all the existing files and folders belong to the group "everyone"

    chmod -R 775 * <--- make sure all that the group has full permissions (this is what the umask above takes care of for new files and directories).

    chmod -R g+s * <--- set the "sgid" bit which forces new files and directories to inherit the group ownership.

    ----

    One additional thing that was weird and frustrating while trying to test stuff; while logged in as admin the sgid bit was not being inherited by directories that I manually created. (!!) So you'd create be in a directory; create a new subdirectory---it would have the correct group but NOT the sgid which it should also inherit. Then you'd create a new file in the subdirectory and it would NOT have the correct group. Fortunately, it seems that btsync still runs OK and sets it correctly.

    Thanks, I try...

  2. Hi,
    with QNAP I've also had several problems (see here: http://forum.bittorrent.com/topic/31852-error-in-the-synchronization-of-existing-folders/, here: http://forum.bittorrent.com/topic/31906-qnap-and-file-ownership/ and here: http://forum.bittorrent.com/topic/31699-random-port-bugged/) at the end with the last version I'm good. But I had to manually install BTSync.

    Remember, however, that BTSync is still in beta and some defect is present.

    But BTSync is growing well ...

  3. Hi Guys,
    I have two QNAP NAS with BtSync installed. I installed BTSync manually to get the latest version (1.4.83 Beta), because the packet QPKG  provided by QNAP which is still at version 1.3.x.

    But I have a problem in the permissions/ownership of the files that are synchronized, they are stored with the username "admin" and the group "Administrator". This does not allow a normal user to delete or edit files.

    Unfortunately, the Unix system QNAP and limited and I can not use the command "sudo" or "sudo" to start btsync as a normal user.

    Do you have any idea to solve the problem?

    Thanks

    Andrea

  4. Not at this time - Sync is a completely free product for personal use or non-commercial use within a business environment.

     

    However, an "Enterprise" edition of Sync is currently in development, which will likely take the form of some kind paid/subscription offering, and so that could be one way you could support the project financially in the future.

     

    On a side note, the developers of some of the various "unofficial" packages for Sync that have been contributed by the community - such as the popular packages for Ubuntu/Debian by forum regular, tuxpoldo - do have ways you can donate to their unofficial Sync projects. Check out their forum signatures for details. Whilst your donation wouldn't be supporting Sync directly, it would be supporting those members of the community who put in a lot of time/work into making their own unofficial packages for Sync available to the Sync community.

     

    Too accurate :) many thanks!

    Andrea

  5. @RomanZ I'll update!

    Annoyed at not being able to use the GUI, it is difficult to check the status by reading a log file very long.

    I decided to re-enable the GUI, eliminating the previous synchronizations. If I use the key I still have the same problem (both peers are not seen), but if I use the share link all goes well and the synchronization part!

    Now I have a problem with permissions/ownership, synchronization is performed by ADMIN user and him group account. But I wish it was made ​​by another user. On the QNAP NAS seems difficult to implement this change.

    But I'll open a specific 3d ...

    Thanks

    Andrea

  6. @drego85

    So when you configure NAS B over WebUI it does not sync, while when you do it over config file - it starts synging, correct?

    Yes, correct!

    What about NAS A? How do you configure it?

     

    Also, what makes you think that UI (or actually the process?) of Sync is crashing?

    In the "NAS A" was to enable the Web GUI. Add folders, known hosts and I copied the key to reading and writing. The key then the use for the "NAS B".

    In the "NAS A" and "B NAS" option was turned UPnP, and I verified that the doors were open on the modem Fritz! Box.

    Today, however, I disabled the Web GUI on the "NAS A" and "B NAS"! I prefer to keep both UPnP disabled in the network, with the Web GUI Active is impossible to set a port. Automatically changes the port, despite the file sync.conf have set the correct port (eliminating the value 0) and we have disabled the UPnP.

    Now I don't use the GUI on both NAS. I configured everything via command line and file sync.conf. The GUI would be more convenient to read the states/log.

  7. Hi @Romanz,

    the two NAS are connected via the Internet. I waited 24 hours but not yet seen, I added the parameters "known hosts" but still nothing.

    But in the "NAS B" I created a new folder, empty, and immediately saw the synchronization started.

     

    The keys I transferred with a simple copy and paste using the GUI, I'm sure I did well with the procedure. I repeated at least twice for all eight folders.

     

    When I left the GUI on the "NAS B", and I wrote this piece of code to the configuration file everything worked!

     

        {
          "secret" : "ABDEFGHILMNOPQRTSUVZ1234567890", // required field - use --generate-secret in command line to create new secret
          "dir" : "/share/MD0_DATA/deanna", // * required field
          "use_relay_server" : true, //  use relay server when direct connection fails
          "use_tracker" : true,
          "use_dht" : false,
          "search_lan" : true,
          "use_sync_trash" : true, // enable SyncArchive to store files deleted on remote devices
          "overwrite_changes" : false, // restore modified files to original version, ONLY for Read-Only folders
          "known_hosts" : // specify hosts to attempt connection without additional search
          [
            "xxxxxxxx.me:59075",
            "xxxxxxxxxx.me:2128"
          ]
        },

     

     

    I think the GUI crashes when a directory is not empty!

  8. Hi Guys,
    I ask immediately apologize for my English. I hope I make myself understood.

     

    I have two QNAP with BTSync to version 1.4.83 Beta, I have a problem if I want to synchronize two folders already exist.

    In the "NAS A" and "B NAS" I have 8 folders equal (I did copy and paste by hand). I turned on the "NAS A" BTSync for all 8 folders and waited indexing.

    In the "NAS B" I have activated synchronization, using the private key of the "NAS A", for all 8 folders.  But they are always "0 peers" and the synchronization don't part.

     

    Screenshot from NAS B:

    Schermata%202014-09-23%20alle%2015.41.49

     

    But if I sync a folder full of "NAS A" in an empty folder "NAS B" synchronization part and I see "1 peers." The "NAS A" starts to send data to the "NAS B".

    I do not understand why?!

     

    Thanks

    Andrea