tuxpoldo

Members
  • Posts

    730
  • Joined

  • Last visited

  • Days Won

    27

Posts posted by tuxpoldo

  1. I have updated my 2 btsync devices to 2.0.85. My Ubuntu 14.04 is running normally after the upgrade but my rasp having problems since the upgrade and btsync does not run anymore. Any idea how to fix it?

    Please try to see what error is thrown when btsync is launched manually. First you have know under which user btsync runs (you have specified it when installing btsync). Then execute the following command:

    sudo -u <USERNAME> /usr/lib/btsync-core/btsync-core --nodaemon --config /etc/btsync/debconf-default.conf

    where <USERNAME> is the user under which btsync will run.

  2.  

    First things first, Thanks for the project, it's awesome and keeps my computers organized and updated.

     

    In one of my computers I'm having problems to install btsync this is the apt-get output

     

    I've search in google and I couldn't find a solution, maybe it's so simple that the answer isn't there. Can you help me?

     

    I'm using ubuntu 14.04

    Reading package lists... DoneBuilding dependency tree       Reading state information... DoneThe following packages were automatically installed and are no longer required:  libqrencode3 python-qrencodeUse 'apt-get autoremove' to remove them.Suggested packages:  bind-shimThe following NEW packages will be installed:  btsync0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.1 not fully installed or removed.Need to get 103 kB of archives.After this operation, 348 kB of additional disk space will be used.Get:1 http://debian.yeasoft.net/btsync/ trusty/main btsync all 2.0.0-1 [103 kB]Fetched 103 kB in 2s (50,6 kB/s) Preconfiguring packages .../tmp/btsync.config.sjCrrQ: 148: /tmp/btsync.config.sjCrrQ: arithmetic expression: expecting primary: ""btsync failed to preconfigure, with exit status 2(Reading database ... 218342 files and directories currently installed.)Preparing to unpack .../btsync_2.0.0-1_all.deb .../var/lib/dpkg/tmp.ci/config: 148: /var/lib/dpkg/tmp.ci/config: arithmetic expression: expecting primary: ""dpkg: error processing archive /var/cache/apt/archives/btsync_2.0.0-1_all.deb (--unpack): subprocess new pre-installation script returned error exit status 2E: Sub-process /usr/bin/dpkg returned an error code (1)

     

     

     

    OK! I was able to reproduce it... Stay tuned!

  3. I'm having difficulties with the latest version... when trying to start the daemon, I get an error:

    ...

    ^^ I've no idea why this isn't working in the codebox thingy!

    The various referenced directories do exist and are writable by user&group.

    According the documentation, the directory_root (and probably also the directory_root_policy statement) must be placed into the webui section.

  4. Just update the YeaSoft Repo. Because of an incompatibility between the new BitTorrent Sync executable and the Desktop GUI, I decided to distribute the new BitTorrent Sync executable in a new package "btsync-core". This makes it possible to update the BitTorrent Sync Server Package installations without compromising the BitTorrent Sync Desktop GUI Package installations (they will be updated later on, as soon as I have fixed the GUI).

     

    Unfortunately Ubuntu rewards changed package dependencies with

     

    yeasoft-gate2 ~ # apt-get upgradeReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages have been kept back:  btsync0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

     

    This is quite annoying but there are two ways to circumvent it:

    apt-get install btsync-core btsync

     

    or:

    apt-get dist-upgrade

     

    The second way may be dangerous, since it may install also other unwanted stuff... Do it only if you know what you are doing.

  5. Hi Folks,
     

    LAST WARNING - LAST WARNING - LAST WARNING - LAST WARNING

     

    I will update the btsync package in a few hours from now to version 2. This is your last chance to switch the repository in order to keep your installation on version 1.4. Beware: there is no easy way back. There are some implications due to the new functionality of Version 2.0: since version 2.0 has an automatic synchronisation of shared folders in a 2.0 identity, the directory_root parameter in the configuration file must point to writable directory, if you link your instance to another already configured 2.0 device.

     

    If you are operating a default instance maintained by debconf, directory_root is automatically set to the home directory of the user you selected as the user  the instance is running. If the default user (btsync) or a user with a UID < 1000 was selected, /mnt is taken as directory_root and the owner of /mnt will be changed to the user. Obviously you can change the directory_root at any time via dpkg-reconfigure btsync.

     

    If you have self maintained configuration files, you should make sure a directory_root is specified, if you wish to link the instance to another device.

     

    Stay tuned.

  6. What do I have to do to change it to the old repo to get the 2.0 update?

    Just issue the following commands on your machine and you will return to the default repository:

    $(which sudo) rm -f /etc/apt/sources.list.d/tuxpoldo-btsync*.list /etc/apt/sources.list.d/btsync.listsh -c "$(curl -fsSL http://debian.yeasoft.net/add-btsync-repository.sh)"

    Will my old 1.4 classic folders on my server stay the same?

    Yes. They are preserved and are still supported by 2.0 (you will see them as "1.4" folders). The only thing I do not know is if the 10-folder limit applies also to existing 1.4 folders....

  7. Hi Folks,
     
    in a few days (perhaps tomorrow) I will update the packages in the repositories to BitTorrent Sync 2.0. The discussion in the Server Package Topic has shown that there is a group of users that do not want to update to 2.0 and prefer staying on 1.4. In order to make this possible, a new repository has been created. If you want to stay on 1.4, you should read this message very carefully and follow the instructions below immediately, because I will publish the update to 2.0 in the next few days (perhaps tomorrow) and any old version will be updated if you do not change the repository.
     
    If you already have any BitTorrent Sync package installed:

    $(which sudo) rm -f /etc/apt/sources.list.d/tuxpoldo-btsync*.list /etc/apt/sources.list.d/btsync.listsh -c "$(curl -fsSL http://debian.yeasoft.net/add-btsync14-repository.sh)"

    If you want to install BitTorrent Sync 1.4 on a new machine:

    sh -c "$(curl -fsSL http://debian.yeasoft.net/add-btsync14-repository.sh)"
  8. OK Folks,
     
    the decision has been taken. BitTorrent Sync 1.4 will be made available in a separate repository. I just published the last update to 1.4 (1.4.111) and duplicated the repository. If you want to stay on 1.4, you should read this message very carefully and follow the instructions below immediately, because I will publish the update to 2.0 in the next few days (perhaps tomorrow) and any old version will be updated if you do not change the repository.
     
    If you already have any BitTorrent Sync package installed:

    $(which sudo) rm -f /etc/apt/sources.list.d/tuxpoldo-btsync*.list /etc/apt/sources.list.d/btsync.listsh -c "$(curl -fsSL http://debian.yeasoft.net/add-btsync14-repository.sh)"

    If you want to install BitTorrent Sync 1.4 on a new machine:

    sh -c "$(curl -fsSL http://debian.yeasoft.net/add-btsync14-repository.sh)"
  9. Easy solution.

     

    Create a BtSync2 package within the repo. When you install that, it should remove the old package and install the new package.

     

    Then you have to decide to upgrade to BtSync2, but you don't need to set up any more repos for it.

     

    This was also one of the ideas I took in consideration. But unfortunately it has the same side effect as solution 2: only people that ready the forum will be informed that they have to install btsync2 /btsync2-gui in order to get an update. The internet will be still full of articles that tell the to "apt-get install btsync"

  10. Hi Folks,

     

    in the last days many people has asked about the new version, but there was also a plenty of users asking for a separate repo since they want to keep the 1.4 version. I'm still thinking about how I can satisfy all requirements. I'm still quite unsure on how to proceed: every option has advantages and disadvantages:

     

    1. Update all packages to the new version: this will make all people that want to stay on 1.4 unhappy and additionally will make it hard for them to roll back to an old version
    2. Create a new repository for Version 2/Name the packages for Version 2 differently: this will make all people unhappy that wants to update to version 2 since the majority of them do not know about the new repository/the new package name. There is a plenty of blog articles, news and howtos with information about the btsync repository. If people search google for btsnyc and linux, they will still find all that outdated information.
    3. Create a new repository for Version 1.4 and update the standard repository to version 2: this would give people that want to stay on 1.4 a chance to do so and also to install 1.4 from scratch. But in order to avoid the automatic update to 2.0 they have to manually switch the repository.

    Personally I would prefer the solution 3. In any case I will try to release the new stuff on Sunday. So please stay tuned for news, especially if you want to keep your stuff on 1.4... Please share your opinions about the update strategy here in the forum.

  11. I can't connect to the client mode via web UI at http://127.0.0.1:8888/ (default settings), and I don't get any GUI when clicking the Bittorrent Sync from start menu. Rebooting doesn't help.

     

    Runnin pgrep -lf btsync I get the following:

    2213 python /usr/bin/btsync-gui2282 /usr/lib/btsync-common/btsync-core --config /home/user/.config/btsync/btsync-agent.conf

    which suggests that the GUI is running, though. I noticed there is no file /home/user/.config/btsync/btsync-agent.conf Is this as intended?

     

    Any ideas?

     

    Yes. The GUI is running. You should see an indicator icon and you should be able to invoke the UI via the indicator menu. If you do not see the btsync indicator icon, you should try to run the ui from the command line and see if any error message is produced. Here an example:

     

    leo@debpoldo ~ $ btsync-gui --log INFOINFO:root:Starting btsync agent...By using this application, you agree to our Privacy Policy, Terms of Use and End User License Agreement.http://www.bittorrent.com/legal/privacyhttp://www.bittorrent.com/legal/terms-of-usehttp://www.bittorrent.com/legal/eulaBitTorrent Sync forked to background. pid = 15653. default port = 8888INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:root:Refresh status...INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:root:Refresh status...INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:root:Refresh status...INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:root:Refresh status...INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:root:Refresh status...INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostINFO:root:Shutting down application...INFO:root:Stopping btsync agent...INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhostleo@debpoldo ~ $

     

    btw: it is OK that the configuration file is missing. It is deleted immediately after launch.

     

    I am unable to start 1.4.110 and getting this error message:

     

    root@dl-maa-00391506:/var/tmp/tem# service btsync start
     * Autostarting btsync instance 'debconf-default'                                                                                                        * Failed to start btsync instance debconf-default - please check the configuration file /etc/btsync/debconf-default.conf
    root@dl-maa-00391506:/var/tmp/tem#
     
    after my previous shutdown of this version I ran the btsync (2.0.51) once and shut it down due to other sync issues and want to rollback. Please help.

     

     

    1. You are posting in the wrong forum. You issue seems related to the Server Version of the package.
    2. I suppose, you have installed the server version and than replaced the original btsync executable with the 2.0 one. I have bad news for you: There is no way back, since the internal database is not compatible. The only way to work again with 1.4.x is to remove entirely the database created by 2.0.x (you will probably find it in /var/lib/btsync).
  12. There is something where I'm not sure whether it's a bug or a feature:

     

    The recent update (normally via apt-get update/upgrade) created a new debconf-default.conf configuration file and afterwards restarted the service with two instances - both my own configuration and the default configuration. That's annoying because I had to stop the services manually and delete the new default conf file again and then restart the services.

     

    It is a feature and you should read the documentation (e.g. the first posting in this thread) to understand how it works. In any case: look at the beginning of the file

     

    //!/usr/lib/btsync/btsync-daemon --config//// Default instance automatically created by debconf//// DO NOT EDIT THIS FILE MANUALLY - SERIOUSLY!!!//// THIS FILE WILL BE OVERWRITTEN AT EVERY UPDATE// OR RECONFIGURATION SO DO NOT EVEN TRY IT//// USE dpkg-reconfigure btsync INSTEAD TO MODIFY// THE CONFIGURATION

    The file is created, because on the initial installation you chose that you want debconf to maintain a default instance. If you do not want this, or you want to reconfigure your default instance, you have to execute dpkg-reconfigure to change this behaviour.

     

    Since you prefer to maintain you own configuration file, please execute:

     

    dpkg-reconfigure btsync

    and answer no to the first question ("Do you want to define a default BitTorrent Sync instance?").

  13. Got a little issue on installation process.

    ...

    Hi there,

    you are posting in the wrong thread. Since this issue may be of interest also for other people, I would kindly ask you to post the message again in Debian And Ubuntu Server Unofficial Packages For Bittorrent Sync (the most easy way: click edit on your message, than switch to text mode in the editor - it's the first icon on the top left - select all, copy and paste it in the editor of the new thread).

    Please add also the information which distribution you are exactly using.

  14. I'm pleased to announce a new version of the BitTorrent Sync server package. Users of the YeaSoft repository will get the new package immediately. Users of the Launchpad PPA have probably to wait for a few hours...

     

    btsync (1.4.1-1) unstable; urgency=low  * Removed check for mandatory disablement of misinterpreted    "check_for_updates" setting (Closes #170)  * Fixed redundant restart messages (Closes #166)  * Added support for modular configuration files (Closes #124)  * Updated debconf localisation from poeditor.com - Thanks to all    volunteers -- Leo Moll <leo.moll@yeasoft.com>  Sat, 06 Dec 2014 14:52:11 +0100
  15. ...

    But after I created the new .conf file in /etc/btsync/ and restarted the service, I got an error: "Failed to start btsync instance x - please check the configuration file /etc/btsync/x.conf". But I can't find what's wrong.

    ...

     

    You have some syntax errors in your configuration file. Remove the comments after the secret and the comma after the folder.

    The resulting file should look like:

     

    //!/usr/lib/btsync/btsync-daemon --config//// DAEMON_UID=btsync// DAEMON_GID=btsync// DAEMON_UMASK=002{        "storage_path" : "/var/lib/btsync/",        "check_for_updates" : false,        "display_new_version": false,        "disk_low_priority" : true,        "lan_encrypt_data" : true,        "rate_limit_local_peers" : true,        "folder_rescan_interval" : 600,        "folder_defaults.delete_to_trash" : true,        "folder_defaults.use_dht" : false,        "folder_defaults.use_lan_broadcast" : true,        "folder_defaults.use_relay" : true,        "folder_defaults.use_tracker" : true,        "folder_defaults.known_hosts" : "","shared_folders" :  [    {      "secret" : "****",      "dir" : "/folder/"    }  ]}
  16. The GeeXBoX distribution is based on OpenBricks and the devs already created a BTSync package, I wanted to have one like yours without UI support, with instances and webUI support. Perhaps this is not that hard to do by copying your init script.. just not sure how you disabled the UI.

    I will check with the dev from GeeXBoX first, he is already working on a how to guide to help others create OpenBricks packages. with your permission I would like to give it a try to create something like your package for this platform.

     

    There was no need to disable the UI: the Linux version only has the Web UI and no other component. You're welcome to use all of my code/scripts, since it is Open Source. You will find everything you need on the GitHub project page.

  17. Has anyone tried to install the package on a Cubox-i with GeeXBoX? There is a BTSync.opkg available in their repository but it is not this headless version. I don't really know yet where to start if I want to install this on GeeXBox.

     

    You are in the wrong thread. This thread applies to the Debian/Ubuntu and derived distributions packages. Please ask your question in the BitTorrent Sync for NAS forum.

     

    Hi tuxpoldo

     

    Can we get news for the lastest updates, especially btsync-user

     

    Regards

     

    Since the indicator is not supported any more by the originating developer, there will be no more versions of the btsync-user package. You can upgrade to the newer btsync-gui package (See related thread) or wait for the next version of btsync-gui that will be installed automatically for people still on btsync-user.

     

    Is it possible to rename a peer by changing the value of "device_name" in the user .conf file?

    I created my first 2 instances but I used "device_name": "Firstname Lastname". Since users will see this in their Peers list, I want to change it to RaspberryPi@citycode-Firstname. But it is now already syncing and I do not want to mess it up.

     

    Yes. You can do that. But if you are talking about the Debconf-maintained default instance, there is no device_name setting any more in the configuration file. You can change the device name directly from the Web UI.

     

    What's happened with tuxpoldo?

    He seems to be quite seldom here in the forum....

     

    Sorry for that. Mainly this is due to two factors:

    1. I have a new job and (as usual) it's a 12-14 hours job. And as a consequence my spare time is very reduced.
    2. In the last weeks I had a lot of trouble with a bereavement in my family.