MerceanCoconut Posted May 12, 2013 Report Share Posted May 12, 2013 I received the following error when installing squeeze package:Preconfiguring packages ...Selecting previously deselected package btsync.(Reading database ... 126642 files and directories currently installed.)Unpacking btsync (from .../btsync_1.0.132-1_i386.deb) ...Processing triggers for hicolor-icon-theme ...Setting up btsync (1.0.132-1) ...Starting P2P file synchronisation daemon(s).../etc/init.d/btsync: line 57: UID: readonly variableinvoke-rc.d: initscript btsync, action "start" failed.dpkg: error processing btsync (--configure):subprocess installed post-installation script returned error exit status 1configured to not write apport reportsErrors were encountered while processing:btsyncE: Sub-process /usr/bin/dpkg returned an error code (1)A package failed to install. Trying to recover:Setting up btsync (1.0.132-1) ...Starting P2P file synchronisation daemon(s).../etc/init.d/btsync: line 57: UID: readonly variableinvoke-rc.d: initscript btsync, action "start" failed.dpkg: error processing btsync (--configure):subprocess installed post-installation script returned error exit status 1Errors were encountered while processing:btsync Link to comment Share on other sites More sharing options...
MerceanCoconut Posted May 12, 2013 Report Share Posted May 12, 2013 I replaced all instances of 'UID' with 'uid' in /etc/init.d/btsync and it seems to be starting fine. I suspect that UID is set as a readonly variable by bash somewhere. It might be a good idea to switch to lowercase variables in the init script. Link to comment Share on other sites More sharing options...
mickcane Posted May 12, 2013 Report Share Posted May 12, 2013 purchase a raspberry pi :-)Seriously, I could do it for you, but when I launch:$ fakeroot debian/rules binaryon my raspberry pi, I getdh binary dh: No packages to build.I can't figure out why...I suppose there should be a way to build a debian package for another architecture then the host you create the package on, but I never did such a thing. Link to comment Share on other sites More sharing options...
Moxon Posted May 12, 2013 Report Share Posted May 12, 2013 I kindly request to support Ubuntu Saucy Salamander, for those of us on the bleeding edge. Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 12, 2013 Author Report Share Posted May 12, 2013 Hi guys!Sorry for the late answer. Today I spent 6 hours in the train from Munich to Berlin and a few hours at the opera... Now I'm in the hotel and I can answer ;-) I have some great news, but let's first answer some questions.I replaced all instances of 'UID' with 'uid' in /etc/init.d/btsync and it seems to be starting fine. I suspect that UID is set as a readonly variable by bash somewhere. It might be a good idea to switch to lowercase variables in the init script.Interesting. It seems that you are using a newer version of Ubuntu that has some differences. In the next release I will modify the script in order to avoid such conflicts...purchase a raspberry pi :-)Do you read my mind? Yesterday I've ordered one from Amazon. When I'm back in Munich, it should be arrived, so stay tuned. I'm really curious how Debian runs on raspberry pi ;-)I kindly request to support Ubuntu Saucy Salamander, for those of us on the bleeding edge.No Problem - The next build will also support Saucy.OK. As I wrote in one of my previous mails, I learned, that there are two different use cases for btsync packages on Linux: server usage and normal desktop usage like in Windows or MacOSX. So I'm pleased to announce, that I will also create a package for desktop usage with the target to provide a user experience similar to the Windows and Mac OSX Version. As soon as I'm back from my business trip, I will start by installing a current desktop version of ubuntu and debian linux on virtual machines and trying to figure out how the perfect installation has to be done. So stay tuned for news.A last question to the ARM people out there: what is your typical usage? Which kind of devices do you use?A good night to everybody out there! Link to comment Share on other sites More sharing options...
mickcane Posted May 13, 2013 Report Share Posted May 13, 2013 Hello,My current usage of my raspberry pi:- firewalling (ebtables, iptables, ip6tables, fail2ban),- Wifi Access point (hostapd),- IPv6 routage advertiser (dnsmasq),- DHCP (dnsmasq),- DNS64 (totd),- NAT64 (tayga),- seedbox (experimenting rutorrent),- webserver (testing apache vs nginx),- monitoring (collectd + graphite)- btsync server.That's almost all for the moment Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 14, 2013 Author Report Share Posted May 14, 2013 Hallelujah! My Raspberry-Pi has just arrived! Now I can start with the packaging for ARM... Link to comment Share on other sites More sharing options...
dsl Posted May 14, 2013 Report Share Posted May 14, 2013 My Linksys NSLU2 is running Debian. It has problems finding the btsync package:# uname -aLinux nslu2 2.6.32-5-ixp4xx #1 Mon Oct 3 12:19:10 UTC 2011 armv5tel GNU/Linux# cat /etc/apt/sources.list.d/btsync.listdeb http://debian.yeasoft.net/btsync squeeze main contrib non-freedeb-src http://debian.yeasoft.net/btsync squeeze main contrib non-free# apt-get update | grep btsyncIgn http://debian.yeasoft.net/btsync/ squeeze/contrib Translation-enIgn http://debian.yeasoft.net/btsync/ squeeze/main Translation-enIgn http://debian.yeasoft.net/btsync/ squeeze/non-free Translation-enW: Failed to fetch http://debian.yeasoft.net/btsync/dists/squeeze/Release Unable to find expected entry main/binary-armel/Packages in Meta-index file (malformed Release file?)# apt-get install btsyncReading package lists... DoneBuilding dependency treeReading state information... DoneE: Unable to locate package btsync Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 14, 2013 Author Report Share Posted May 14, 2013 Hi dsl!My Linksys NSLU2 is running Debian. It has problems finding the btsync package:The ARM packages are still not ready. Please stay tuned. I will announce them as soon as they are available. Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 15, 2013 Author Report Share Posted May 15, 2013 Good news! The updated packages are now online and also a set of packages for desktop usage are now available. More about this can be found in this topic.The new packages support Ubuntu in all currently supported versions (from precise to saucy) and for the first time, there will be also packages for raspberrypi (armhf) available for Debian wheezy. I'm still searching for a way to create armel packages, so stay tuned! Link to comment Share on other sites More sharing options...
MerceanCoconut Posted May 16, 2013 Report Share Posted May 16, 2013 No problems with the latest init.d script. Thanks for the update. I am running on Debian not Ubuntu so that probably accounts for the difference. Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 16, 2013 Author Report Share Posted May 16, 2013 Packages updated to 1.0.134In Debian there are now also packages for armhf and armel. Link to comment Share on other sites More sharing options...
stefsybo Posted May 18, 2013 Report Share Posted May 18, 2013 I have a user with a hyphen in their user name, like user-x. When I create a config file named /etc/btsync/sync.user-x.conf, the daemon is started as root for this config, since it does not recognize user-x as a valid user name. Could you please change the init script so it recognizes user names with hyphens? To do this, you change the lineCREDENTIALS=`expr match "${1}" ${BASENAME}'\.\([a-z,0-9,_,\.]*\)\.'${CONFIG_EXT}`toCREDENTIALS=`expr match "${1}" ${BASENAME}'\.\([a-z,0-9,_,\.,-]*\)\.'${CONFIG_EXT}`I have made this change myself now and it works, but then if you change the update script in a future update I will have to merge the changes manually.Thanks in advance. Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 18, 2013 Author Report Share Posted May 18, 2013 Hi!I have made this change myself now and it works, but then if you change the update script in a future update I will have to merge the changes manually.Thank you for the improvement! I will add it to the next release. Link to comment Share on other sites More sharing options...
fogbav Posted May 18, 2013 Report Share Posted May 18, 2013 Rasperry Pi Dummy instructions (raspbmc) would be wonderfull ... 8) I installed everything manual - but that's not really user friendly ..8) Link to comment Share on other sites More sharing options...
affinity Posted May 19, 2013 Report Share Posted May 19, 2013 I don't get it, what could be simpler, a tgz file with two files in it, one a license file. You create a config file, if you want, then secure the login and you are just about done. Autostart if you need it, but if you've got a server that never stops, then neither does btsync. It's about as simple as you can get. Automating startup is trivial for any sysadmin and not much harder for non-sysadmins. Link to comment Share on other sites More sharing options...
Enzo Posted May 19, 2013 Report Share Posted May 19, 2013 NVM i fixed it Link to comment Share on other sites More sharing options...
fogbav Posted May 20, 2013 Report Share Posted May 20, 2013 @affinity : tell this a windows user ... some words : putty/winscp/chmod/sh-scripts/init.d/tar/... 8) Link to comment Share on other sites More sharing options...
dsl Posted May 20, 2013 Report Share Posted May 20, 2013 Packages updated to 1.0.134In Debian there are now also packages for armhf and armel.I still get this error message from "apt-get update":# apt-get update | grep btsyncIgn http://debian.yeasoft.net/btsync/ squeeze/contrib Translation-enIgn http://debian.yeasoft.net/btsync/ squeeze/main Translation-enIgn http://debian.yeasoft.net/btsync/ squeeze/non-free Translation-enW: Failed to fetch http://debian.yeasoft.net/btsync/dists/squeeze/Release Unable to find expected entry main/binary-armel/Packages in Meta-index file (malformed Release file?)E: Some index files failed to download, they have been ignored, or old ones used instead.# Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 20, 2013 Author Report Share Posted May 20, 2013 I still get this error message from "apt-get update":...Ign http://debian.yeasoft.net/btsync/ squeeze/contrib Translation-enOK - the arm packages are available nowadays only for wheezy. In the meantime I was able to install also squeeze in a QEMU machine - so stay tuned also for squeeze packages... Link to comment Share on other sites More sharing options...
dsl Posted May 20, 2013 Report Share Posted May 20, 2013 OK - the arm packages are available nowadays only for wheezy. In the meantime I was able to install also squeeze in a QEMU machine - so stay tuned also for squeeze packages...Thanks! I think upgrading to wheezy would be to much for my NSLU2. Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 20, 2013 Author Report Share Posted May 20, 2013 Updated all distributions to 1.0.134-3 - added armel version for squeezebtsync (1.0.134-3~squeeze) squeeze; urgency=low - Fixed: broken parsing of usernames with dashes in btsync configuration files - Fixed: btsync-user does not work correctly due to relative paths in configuration file. Now the configuration file /etc/btsync-user/btsync-user.conf is only a template for generating a user specific configuration file into the home directory -- Leo Moll <leo.moll@yeasoft.com> Mon, 20 May 2013 18:14:11 +0200 Link to comment Share on other sites More sharing options...
knireis Posted May 26, 2013 Report Share Posted May 26, 2013 I updated my server to debian 'jessie'. Some packages updated fine but others don't upgrade because the system wants to remove btsync. However the removing gives an error:Reading changelogs... DoneExtracting templates from packages: 100%Preconfiguring packages ...(Reading database ... 45729 files and directories currently installed.)Removing btsync ...[ ok ] Stopping P2P file synchronisation daemon(s)...[....] Stopping btsync instance 'btsync':.[....] Stopping btsync instance 'debconf-default.pid':rm: cannot remove `/var/run/btsync.debconf-default.pid.pid': No such file or directoryinvoke-rc.d: initscript btsync, action "stop" failed.dpkg: error processing btsync (--purge): subprocess installed pre-removal script returned error exit status 1[....] Starting P2P file synchronisation daemon(s)...[....] Autostarting btsync instance 'btsync':Errors were encountered while processing: btsyncE: Sub-process /usr/bin/dpkg returned an error code (1)E: Some packages could not be upgraded. Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 26, 2013 Author Report Share Posted May 26, 2013 Thanks for the Information. I will fix this as soon as possible. In the meantime, you may work around this problem by creating the file manually and then retrying:sudo touch /var/run/btsync.debconf-default.pid.pid Link to comment Share on other sites More sharing options...
tuxpoldo Posted May 26, 2013 Author Report Share Posted May 26, 2013 That's really interesting. I am trying to reproduce the error, but I am not able to do so. It seems that the decomposition of the name does not work correctly:[....] Stopping btsync instance 'debconf-default.pid'It should say:[....] Stopping btsync instance 'debconf-default'Three questions:1. Which version of btsync are you using? Find it out by executing:dpkg -l | grep btsync2. Are you able to stop the service manually? Find it out by executing:sudo service btsync stop3. What's the name of the configuration file? Find it out by executing:ls -la /etc/btsyncOn my systems it seem to work:yeasoft-gate2 ~ # apt-get upgradeReading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages have been kept back:linux-headers-server linux-image-server linux-serverThe following packages will be upgraded:btsync libcups2 libtiff4 python-apt python-apt-common rsyslog6 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.Need to get 3205 kB of archives.After this operation, 5120 B of additional disk space will be used.Do you want to continue [Y/n]?Get:1 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main libcups2 amd64 1.5.3-0ubuntu8 [171 kB]Get:2 http://ppa.launchpad.net/tuxpoldo/btsync/ubuntu/ precise/main btsync amd64 1.0.134-4~precise [2252 kB]Get:3 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main libtiff4 amd64 3.9.5-2ubuntu1.5 [145 kB]Get:4 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main rsyslog amd64 5.8.6-1ubuntu8.2 [427 kB]Get:5 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main python-apt-common all 0.8.3ubuntu7.1 [21.7 kB]Get:6 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main python-apt amd64 0.8.3ubuntu7.1 [188 kB]Fetched 3205 kB in 1s (2307 kB/s)Preconfiguring packages ...(Reading database ... 93152 files and directories currently installed.)Preparing to replace libcups2 1.5.3-0ubuntu6 (using .../libcups2_1.5.3-0ubuntu8_amd64.deb) ...Unpacking replacement libcups2 ...Preparing to replace libtiff4 3.9.5-2ubuntu1.4 (using .../libtiff4_3.9.5-2ubuntu1.5_amd64.deb) ...Unpacking replacement libtiff4 ...Preparing to replace rsyslog 5.8.6-1ubuntu8.1 (using .../rsyslog_5.8.6-1ubuntu8.2_amd64.deb) ...Unpacking replacement rsyslog ...Preparing to replace python-apt-common 0.8.3ubuntu7 (using .../python-apt-common_0.8.3ubuntu7.1_all.deb) ...Unpacking replacement python-apt-common ...Preparing to replace python-apt 0.8.3ubuntu7 (using .../python-apt_0.8.3ubuntu7.1_amd64.deb) ...Unpacking replacement python-apt ...Preparing to replace btsync 1.0.134-3~precise (using .../btsync_1.0.134-4~precise_amd64.deb) ...* Stopping P2P file synchronisation daemon(s)...* Stopping btsync instance 'debconf-default' [ OK ]Unpacking replacement btsync ...Processing triggers for ureadahead ...Processing triggers for man-db ...Setting up libcups2 (1.5.3-0ubuntu8) ...Setting up libtiff4 (3.9.5-2ubuntu1.5) ...Setting up rsyslog (5.8.6-1ubuntu8.2) ...rsyslog stop/waitingrsyslog start/running, process 18216Setting up python-apt-common (0.8.3ubuntu7.1) ...Setting up python-apt (0.8.3ubuntu7.1) ...Setting up btsync (1.0.134-4~precise) ...* Starting P2P file synchronisation daemon(s)...* Autostarting btsync instance 'debconf-default'Processing triggers for libc-bin ...ldconfig deferred processing now taking placeThank you for your help! Link to comment Share on other sites More sharing options...
Recommended Posts