tuxpoldo Posted August 7, 2013 Author Report Share Posted August 7, 2013 Ok, I think I have identified why some users (including myself) are experiencing this as a bug."pid_file" : "/home/<ussername>/.btsync/btsync.pid",When this parameter is supplied in the config file, everything works perfectly. However, when it is not supplied (when you are also spcifying UID/GID and the storage_direcctory) everything stops working - but only when run via the init script. It works just fine if you run btsync-daemon --config=/etc/btsync/<config without the pid_file parameter>. However the init script simply silently fails to start the daemon when it tries to run a config without this set....Thanks for your help identifiying this, and thanks for providing the packages!Thank you very much for the clarification! In fact I will now try to find out, what btsync is doing, if the parameter is not specified. Stay tuned - I will let you know, what I will do in order to fix (or at least support the user in avoiding) the problem. Link to comment Share on other sites More sharing options...
admiral_morketh Posted August 8, 2013 Report Share Posted August 8, 2013 Updated all packages to 1.1.30 - All Debian builds are now online. Unfortunately todays there is high load on launchpad and so Ubuntu builds will be probably available in about 10 hours (launchpad shows 6-10 hours for all builds). I'm sorry, but I can't change this :-(Changelog:btsync (1.1.30-1~sid) sid; urgency=low* New upstream release-- Leo Moll <leo.moll@yeasoft.com> Wed, 10 Jul 2013 00:31:45 +0200Is there a repo available for lucid lynx? I'm running several headless servers across 3 different states and it would be nice to use apt-get Ign http://ppa.launchpad.net lucid/main Packages Get:3 http://ppa.launchpad.net lucid/main Packages [904B] Ign http://ppa.launchpad.net lucid/main Packages Err http://ppa.launchpad.net lucid/main Packages 404 Not Found Fetched 15.2kB in 1s (10.5kB/s) W: Failed to fetch http://ppa.launchpad.net/tuxpoldo//ubuntu/dists/lucid/main/binary-i386/Packages.gz 404 Not Found E: Some index files failed to download, they have been ignored, or old ones used instead. admiral@USSDallas:~$ This is what lucid returns when running apt-get update and install if at all possible a repo would be nice at the very least I could set one up but don't know how Link to comment Share on other sites More sharing options...
supermario3 Posted August 13, 2013 Report Share Posted August 13, 2013 MD5sum of files in this repo seems different from official btsync binaries. Why? Link to comment Share on other sites More sharing options...
tuxpoldo Posted August 13, 2013 Author Report Share Posted August 13, 2013 Is there a repo available for lucid lynx? I'm running several headless servers across 3 different states and it would be nice to use apt-getYes. It is. If you look at https://launchpad.net/~tuxpoldo/+archive/btsync you will see that there are also builds available for lucid lynx (i386 and amd64). Ign http://ppa.launchpad.net lucid/main PackagesGet:3 http://ppa.launchpad.net lucid/main Packages [904B]Ign http://ppa.launchpad.net lucid/main PackagesErr http://ppa.launchpad.net lucid/main Packages404 Not FoundFetched 15.2kB in 1s (10.5kB/s)W: Failed to fetch http://ppa.launchpad.net/tuxpoldo//ubuntu/dists/lucid/main/binary-i386/Packages.gz 404 Not FoundE: Some index files failed to download, they have been ignored, or old ones used instead.admiral@USSDallas:~$This is what lucid returns when running apt-get update and install if at all possible a repo would be nice at the very least I could set one up but don't know howThat's really strange. The repository is maintained by Launchpad - the official build system of Ubuntu and for all Ubuntu developers, so I have no direct influence on the inner workings of the repository.What architecture are you using? The Ubuntu repository contains only binaries for i386 and amd64. Unfortunately external developers/maintainers like me are not entitled to use the arm, mips and powerpc build machines on Launchpad... Link to comment Share on other sites More sharing options...
tuxpoldo Posted August 13, 2013 Author Report Share Posted August 13, 2013 MD5sum of files in this repo seems different from official btsync binaries. Why?It is because the Debian build packaging system strips binaries included in .deb packages in order to make them compliant to the Debian distribution policy. Link to comment Share on other sites More sharing options...
tuxpoldo Posted August 13, 2013 Author Report Share Posted August 13, 2013 Updated all packages to 1.1.69 - All Debian and Ubuntu builds are online.Changelog:btsync (1.1.69-1~sid) sid; urgency=low* New upstream release- Fixed: Additional error message on startup-- Leo Moll <leo.moll@yeasoft.com> Tue, 13 Aug 2013 00:41:27 +0200 Link to comment Share on other sites More sharing options...
tuxpoldo Posted August 15, 2013 Author Report Share Posted August 15, 2013 Updated all packages to 1.1.70 - All Debian and Ubuntu builds are online.Changelog:btsync (1.1.70-1~sid) sid; urgency=low* New upstream release-- Leo Moll <leo.moll@yeasoft.com> Thu, 15 Aug 2013 10:44:11 +0200 Link to comment Share on other sites More sharing options...
supermario3 Posted August 15, 2013 Report Share Posted August 15, 2013 After updating to 1.1.70 (apt-get update && apt-get upgrade) btsync is not working. Chrome says ERR_EMPTY_RESPONSE Link to comment Share on other sites More sharing options...
wizlon Posted August 16, 2013 Report Share Posted August 16, 2013 And now I will give you the evidence, that there is not bug:[...]Hi: thanks for going through such an extensive example. It's clear that things work as they should on your end.My brand new hi-spec laptop arrived, and I am sorry to report I still can't get the service to auto-start properly. I am quite sure I have the config setup properly in /etc/btsync/user.conf:-//!/usr/sbin/btsync-daemon --config// DAEMON_UID=andrew// DAEMON_UMASK=0007{ "device_name": "WiZHome Sync", "listening_port" : 0, "storage_path" : "/home/andrew/.btsync", "check_for_updates" : false, "use_upnp" : false, "download_limit" : 0, "upload_limit" : 0, "pid_file" : "/home/andrew/.btsync/btsync.pid", "webui" : { "listen" : "0.0.0.0:8888" },"shared_folders" : [ { "secret" : "{removed for this post}", // * required field "dir" : "/home/WiZShare/", // * required field "use_relay_server" : true, "use_tracker" : true, "use_dht" : false, "search_lan" : true, "use_sync_trash" : true ,"known_hosts" : [ "192.168.1.2:44444" ] } ]}When I boot up and logon, just as with my old laptop, BTSync does not seem to fire up and is certainly not syncing folders; nor does not show as being "online". There is no btsync-daemon running per:ps axu | grep btsync-daemonIf I start the service with 'sudo service btsync start', it fires up straight away, with no problems. It then starts to sync and all is well. I have to start it manually.This is a new install on a new machine. I am still wondering if it's got something to do with permissions of the pid file. Either way, it's pretty clear to me now that it's not hardware related in my case.It's perplexing.I am sure I can set it up to run as I did on my old laptop (not as a service on autostart, but at least to run as an instance when one of the two users on my machine logs in). I'd really like to get this to run when I start my machine up even without anyone logging on.Regards and thanks for your postings. Sorry for being a "repeat offender" - tis not deliberate.wizlon Link to comment Share on other sites More sharing options...
scegg Posted August 16, 2013 Report Share Posted August 16, 2013 after running sudo add-apt-repository ppa:tuxpoldo/btsyncsudo apt-get updateubuntu repliesException in thread Thread-1:Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run() File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 99, in run self.add_ppa_signing_key(self.ppa_path) File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 132, in add_ppa_signing_key tmp_keyring_dir = tempfile.mkdtemp() File "/usr/lib/python2.7/tempfile.py", line 322, in mkdtemp name = names.next() File "/usr/lib/python2.7/tempfile.py", line 141, in next letters = [choose(c) for dummy in "123456"] File "/usr/lib/python2.7/random.py", line 274, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is emptyValueError: cannot convert float NaN to integer Link to comment Share on other sites More sharing options...
simonclausen Posted August 17, 2013 Report Share Posted August 17, 2013 I would just like to add a "thank you" for making an maintaining this. Link to comment Share on other sites More sharing options...
dsl Posted August 17, 2013 Report Share Posted August 17, 2013 Btsync doesn't come up after running "apt-get upgrade btsync" to upgrade to version 1.1.70 on my arm wheezy system. Is there a command i can run to downgrade to an older but functional version of btsync? Link to comment Share on other sites More sharing options...
raveur Posted August 18, 2013 Report Share Posted August 18, 2013 Thanks for maintaing this.Question: how do I do set a read-only key (so that the Debian side backs up to the non-Debian side)? I didn't see any such configuration in the sample. Link to comment Share on other sites More sharing options...
raveur Posted August 18, 2013 Report Share Posted August 18, 2013 Bug fix for /etc/init.d/btsync :I'm trying to figure out why btsync isn't starting for me. But the start_btsync() function is not detecting the error properly. A "sleep 1" is needed before "unit test_running". The problem is btsync starts for a bit then stops for some reason. And there's no error. Link to comment Share on other sites More sharing options...
ba1020 Posted August 20, 2013 Report Share Posted August 20, 2013 so if you want to set up btsync to run as a specific user do thsin /etc/default/btsync set : AUTOSTART="user"than create a file in /etc/btsync with the format/user.<username>.<group>.confusername and group can be the samebefore you start always do a chown -R /home/<username>/<sync folder>to the devs: this config is more then suboptimal and should be simplified Link to comment Share on other sites More sharing options...
admiral_morketh Posted August 20, 2013 Report Share Posted August 20, 2013 Tux the system architectur is an I386 Tyan mobo with 2 Xeon CPUs each at 1.3Ghz its an intel chipset nothing out of the ordinary but no luck on getting apt-get to install packages I have also tried on an Intel x64 system and booth AMD x86 & x64 I don't think it will be a problem after upgrading to precise but I'm waiting on a few things to update before I switch if you have any pointers that would be helpfull send them my way also just to varify my sources.list file could you post the repo lines I need? It's alwways the little things that kill my servers thanks again for the help android and Microsoft variants work awesome keep up the good work how long till the iOS release is ready? Link to comment Share on other sites More sharing options...
virago81 Posted August 26, 2013 Report Share Posted August 26, 2013 Just found this and it worked like a charm. Thanks very much, Tuxpoldo. Link to comment Share on other sites More sharing options...
Bairum Posted August 26, 2013 Report Share Posted August 26, 2013 I installed the latest server packages on ubuntu last night. So far I am impressed.I didn't read the whole thread, so this might have already been covered, but it doesn't look like you can define your shared folders in your user's config file and also have the web gui running at the same time? I could only get the webgui to work when I commented the shared folders definition out even though the shared folder definition was fine (i.e. the shared folders were working/syncing fine). Link to comment Share on other sites More sharing options...
gabor111 Posted August 27, 2013 Report Share Posted August 27, 2013 Dear tuxpoldo,First of all, thank you for your work.But I had to spend a lot of time to found the solution to start daemon under my username. Fortunatly, the solution is in this topic.May I suggest you to extend your initial post in this topic, with the fact that we have to change owner of the config file if we want to start the deamon under an other user than root.Thank you. Link to comment Share on other sites More sharing options...
bittorrentomane Posted August 27, 2013 Report Share Posted August 27, 2013 Thanks for the packages!I'm running Sync on a Pogoplug v2 Pink (ARM5) running Debian Wheezy - had a "Alignment" problem, in case anyone else runs into it and looking for a solution in this thread: Link to comment Share on other sites More sharing options...
admiral_morketh Posted September 1, 2013 Report Share Posted September 1, 2013 Is there a repo available for lucid lynx? I'm running several headless servers across 3 different states and it would be nice to use apt-get Ign http://ppa.launchpad.net lucid/main PackagesGet:3 http://ppa.launchpad.net lucid/main Packages [904B]Ign http://ppa.launchpad.net lucid/main PackagesErr http://ppa.launchpad.net lucid/main Packages404 Not FoundFetched 15.2kB in 1s (10.5kB/s)W: Failed to fetch http://ppa.launchpad.net/tuxpoldo//ubuntu/dists/lucid/main/binary-i386/Packages.gz 404 Not FoundE: Some index files failed to download, they have been ignored, or old ones used instead.admiral@USSDallas:~$This is what lucid returns when running apt-get update and install if at all possible a repo would be nice at the very least I could set one up but don't know howhttp://ppa.launchpad.net/tuxpoldo/btsync/ubuntu/dists/lucid/it helps to check the address of the file before atempting to use apt-get opening the browser to this address there is a release there for lucid if you look carfully at the previusly posted comment you will see several errors in the URL i have it fixed now and works great using the new link http://ppa.launchpad.net/tuxpoldo/btsync/ubuntu/dists/lucid/ Link to comment Share on other sites More sharing options...
kisenberg Posted September 3, 2013 Report Share Posted September 3, 2013 Hi,I installed BTSync described in this thread. After installation, the config-wizard opened and I did same settings, which resulted in /etc/btsync/debconf-default.conf.I did access the WebGui at port 8888 and added some directories. But where these directories-settings are saved?In /etc/btsync/debconf-default.conf is no entry about them. There is also not another config file in that folder. Link to comment Share on other sites More sharing options...
tuxpoldo Posted September 3, 2013 Author Report Share Posted September 3, 2013 First of all, thank you for your work.Thank you!But I had to spend a lot of time to found the solution to start daemon under my username. Fortunatly, the solution is in this topic.May I suggest you to extend your initial post in this topic, with the fact that we have to change owner of the config file if we want to start the deamon under an other user than root.Strange: the whole procedure is described in the initial topic under USAGE NOTES. Especially your use case (start the daemon under your username) is covered by the provided example ("This example will launch the instance running under the credentials of the user "jdoe" using 0002 as umask")... The solution suggested by user ba1020 a few replies above, is the older way to do it, but it still works... Link to comment Share on other sites More sharing options...
tuxpoldo Posted September 3, 2013 Author Report Share Posted September 3, 2013 I installed the latest server packages on ubuntu last night. So far I am impressed.Thanks!I didn't read the whole thread, so this might have already been covered, but it doesn't look like you can define your shared folders in your user's config file and also have the web gui running at the same time? I could only get the webgui to work when I commented the shared folders definition out even though the shared folder definition was fine (i.e. the shared folders were working/syncing fine).As far as I know, this two options are mutually exclusive (and this would make sense). Predefining shares in the configuration file, is a configuration scheme used to define a static and immutable (more secure) configuration for obtaining an exact well defined behaviour in a server environment. In any case this question affects the core functionality of btsync and should be be better discussed in a dedicated thread since I do not think that the btsync developers read this thread. Link to comment Share on other sites More sharing options...
tuxpoldo Posted September 3, 2013 Author Report Share Posted September 3, 2013 http://ppa.launchpad...tu/dists/lucid/it helps to check the address of the file before atempting to use apt-get opening the browser to this address there is a release there for lucid if you look carfully at the previusly posted comment you will see several errors in the URL i have it fixed now and works great using the new link http://ppa.launchpad...tu/dists/lucid/That's really interesting! According to my documentation, the additional repository is added to the sources list by the Ubuntu tool add-apt-repository so I'm really wondering how it could happening that the URLs were wrong...Did you add the repository using the procedure documented in the initial post?sudo add-apt-repository ppa:tuxpoldo/btsync Link to comment Share on other sites More sharing options...
Recommended Posts