tuxpoldo

Debian And Ubuntu Server Unofficial Packages For Bittorrent Sync

Recommended Posts

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 variable
invoke-rc.d: initscript btsync, action "start" failed.
dpkg: error processing btsync (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
btsync
E: 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 variable
invoke-rc.d: initscript btsync, action "start" failed.
dpkg: error processing btsync (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
btsync

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

purchase a raspberry pi :-)

Seriously, I could do it for you, but when I launch:

$ fakeroot debian/rules binary

on my raspberry pi, I get

dh 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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

My Linksys NSLU2 is running Debian. It has problems finding the btsync package:

# uname -a

Linux 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.list

deb http://debian.yeasoft.net/btsync squeeze main contrib non-free

deb-src http://debian.yeasoft.net/btsync squeeze main contrib non-free

# apt-get update | grep btsync

Ign http://debian.yeasoft.net/btsync/ squeeze/contrib Translation-en

Ign http://debian.yeasoft.net/btsync/ squeeze/main Translation-en

Ign http://debian.yeasoft.net/btsync/ squeeze/non-free Translation-en

W: 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 btsync

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Unable to locate package btsync

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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 line


CREDENTIALS=`expr match "${1}" ${BASENAME}'\.\([a-z,0-9,_,\.]*\)\.'${CONFIG_EXT}`

to


CREDENTIALS=`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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Rasperry Pi Dummy instructions (raspbmc) would be wonderfull ... 8) I installed everything manual - but that's not really user friendly ..8)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Packages updated to 1.0.134

In Debian there are now also packages for armhf and armel.

I still get this error message from "apt-get update":

# apt-get update | grep btsync

Ign http://debian.yeasoft.net/btsync/ squeeze/contrib Translation-en

Ign http://debian.yeasoft.net/btsync/ squeeze/main Translation-en

Ign http://debian.yeasoft.net/btsync/ squeeze/non-free Translation-en

W: 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.

#

Share this post


Link to post
Share on other sites

I still get this error message from "apt-get update":

...

Ign http://debian.yeasoft.net/btsync/ squeeze/contrib Translation-en

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...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Updated all distributions to 1.0.134-3 - added armel version for squeeze

btsync (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

Share this post


Link to post
Share on other sites

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... Done

Extracting 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 directory

invoke-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:

btsync

E: Sub-process /usr/bin/dpkg returned an error code (1)

E: Some packages could not be upgraded.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 btsync

2. Are you able to stop the service manually? Find it out by executing:


sudo service btsync stop

3. What's the name of the configuration file? Find it out by executing:


ls -la /etc/btsync

On my systems it seem to work:


yeasoft-gate2 ~ # apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-headers-server linux-image-server linux-server
The following packages will be upgraded:
btsync libcups2 libtiff4 python-apt python-apt-common rsyslog
6 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/waiting
rsyslog start/running, process 18216
Setting 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 place

Thank you for your help!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.