Skeptic

What is the correct way to install on Raspberry Pi

16 posts in this topic

Hi folks,

I was wondering if there is an official and recent guide (2016) to install Btsync on Raspberry Pi.

From what I could gather, there are two ways:

1. Via official repo. Info source: http://blog.bittorrent.com/2016/02/18/official-linux-packages-for-sync-now-available/

This method installs fine for me, but web ui is not accessible

sudo sh -c 'echo "deb http://linux-packages.getsync.com/btsync/deb btsync non-free" > /etc/apt/sources.list.d/btsync.list'

wget -qO - http://linux-packages.getsync.com/btsync/key.asc | sudo apt-key add -

sudo apt-get update

sudo apt-get install btsync

2. Via dpkg and official deb package. Source: https://forum.resilio.com/topic/42569-latest-desktop-build-238/

This method assume "pi" as a default user, and I haven't figured it out how to run and install on OSMC. I tried editing /etc/init.d/btsync but confused as I believe Debian is not using init.d anymore and it is all via systemd?

cd ~/
sudo mkdir Temp
cd Temp
sudo wget https://download-cdn.getsync.com/2.3.8/PiWD/bittorrent-sync-pi-server_2.3.8_armhf.deb
sudo dpkg –i ~/Temp/bittorrent-sync-pi-server_2.3.8_armhf.deb

Your help is appreciated.

Share this post


Link to post
Share on other sites

Good Morning !

I'm also looking for your help.

I'm not a Sysadmin but I think I can move around with command line, etc.

I have couple of raspberry PI 2 which I will like to use as BTSYNC cloud.

Till today I have installed few services, but new BTSYNC installation way is driving me nuts.

If I follow the method #1 (via official repo), everything seems okay until next reboot when the BTSYNC service won't restart.

Is there somebody can tell me what he has done to make it running successfully ? I mean apart the instructions stated here :

http://blog.bittorrent.com/2016/02/18/official-linux-packages-for-sync-now-available/

I search all around for an updated HOW TO guide but fail to find so I don't know where I'm mistaking.

Thanks a lot

P.

Share this post


Link to post
Share on other sites

@brokenby2703

You need to enable the service "sudo systemctl enable btsync" . did you do that? 

What you have installed on your RPi - Raspbian with default pi user, or osmc, or openelec, or anything else? 

Share this post


Link to post
Share on other sites
19 minutes ago, Helen said:

What you have installed on your RPi - Raspbian with default pi user, or osmc, or openelec, or anything else? 

and check what is happening to the service with "sudo service btsycn status", see the output, and try to start in manually with 'sudo service btsync start" 

and please confirm, how you actually did install it with official instruction from our blog or that unofficial from wiki?? 

Share this post


Link to post
Share on other sites

Something awful happening.

(1) New fresh RASPBIAN JESSIE install. Just burned a new SD card.
(2) Raspberry boot up -> sudo rasp-config as usual.
(3) Reboot
(4) sudo apt-get update
(5) sudo apr-get upgrade to have the latest packaged 
(6) ...then followed your 4 steps installation as above.

First 3 okay.
But when I do "sudo apt-get install btsycn"....

sudo apt-get install btsync

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following NEW packages will be installed:

  btsync

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Need to get 4,506 kB of archives.

After this operation, 6,786 kB of additional disk space will be used.

Get:1 http://linux-packages.getsync.com/btsync/deb/ btsync/non-free btsync armhf 2.3.8-1 [4,506 kB]

Fetched 4,506 kB in 9s (498 kB/s)                                                                                    

Selecting previously unselected package btsync.

(Reading database ... 31158 files and directories currently installed.)

Preparing to unpack .../btsync_2.3.8-1_armhf.deb ...

Unpacking btsync (2.3.8-1) ...

Processing triggers for systemd (215-17+deb8u4) ...

Setting up btsync (2.3.8-1) ...

Job for btsync.service failed. See 'systemctl status btsync.service' and 'journalctl -xn' for details.

invoke-rc.d: initscript btsync, action "start" failed.

dpkg: error processing package btsync (--configure):

 subprocess installed post-installation script returned error exit status 1

Processing triggers for systemd (215-17+deb8u4) ...

Errors were encountered while processing:

 btsync

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

 

 

 

sudo systemctl status btsync.service 

btsync.service - BitTorrent Sync service

   Loaded: loaded (/lib/systemd/system/btsync.service; disabled)

   Active: failed (Result: start-limit) since Fri 2016-07-22 10:33:51 UTC; 4min 55s ago

     Docs: http://help.getsync.com/

  Process: 828 ExecStart=/usr/bin/btsync --config /etc/btsync/config.json (code=killed, signal=ILL)

  Process: 825 ExecStartPre=/bin/chown -R btsync:btsync /var/run/btsync (code=exited, status=0/SUCCESS)

  Process: 822 ExecStartPre=/bin/mkdir -p /var/run/btsync (code=exited, status=0/SUCCESS)

 

Jul 22 10:33:51 raspberrypi-nas systemd[1]: Unit btsync.service entered failed state.

Jul 22 10:33:51 raspberrypi-nas systemd[1]: btsync.service holdoff time over, scheduling restart.

Jul 22 10:33:51 raspberrypi-nas systemd[1]: Stopping BitTorrent Sync service...

Jul 22 10:33:51 raspberrypi-nas systemd[1]: Starting BitTorrent Sync service...

Jul 22 10:33:51 raspberrypi-nas systemd[1]: btsync.service start request repeated too quickly, refusing to start.

Jul 22 10:33:51 raspberrypi-nas systemd[1]: Failed to start BitTorrent Sync service.

Jul 22 10:33:51 raspberrypi-nas systemd[1]: Unit btsync.service entered failed state.

 

 

 

sudo journalctl -xn

-- Logs begin at Fri 2016-07-22 10:28:17 UTC, end at Fri 2016-07-22 10:42:30 UTC. --

Jul 22 10:33:51 raspberrypi-nas systemd[1]: Unit btsync.service entered failed state.

Jul 22 10:33:54 raspberrypi-nas sudo[643]: pam_unix(sudo:session): session closed for user root

Jul 22 10:38:47 raspberrypi-nas sudo[842]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/systemctl status b

Jul 22 10:38:47 raspberrypi-nas sudo[842]: pam_unix(sudo:session): session opened for user root by pi(uid=0)

Jul 22 10:38:47 raspberrypi-nas sudo[842]: pam_unix(sudo:session): session closed for user root

Jul 22 10:41:20 raspberrypi-nas sudo[860]: pi : TTY=pts/0 ; PWD=/etc/btsync ; USER=root ; COMMAND=/usr/bin/nano -w /et

Jul 22 10:41:20 raspberrypi-nas sudo[860]: pam_unix(sudo:session): session opened for user root by pi(uid=0)

Jul 22 10:42:15 raspberrypi-nas sudo[860]: pam_unix(sudo:session): session closed for user root

Jul 22 10:42:30 raspberrypi-nas sudo[868]: pi : TTY=pts/0 ; PWD=/etc/btsync ; USER=root ; COMMAND=/bin/journalctl -xn

Jul 22 10:42:30 raspberrypi-nas sudo[868]: pam_unix(sudo:session): session opened for user root by pi(uid=0)

 

Share this post


Link to post
Share on other sites

1) link the libs, if they aren't yet.

sudo ln -s /lib/arm-linux-gnueabihf/ld-linux.so.3 /lib/ld-linux.so.3

then 2) cd /usr/bin/ and try to launch the binary manually (./btsync ). You will most likely get Segmentation fault . rename btsync to some btsync1 (mv btsync btsync1) 

then, you will need sudo here and further, 3) wget https://download-cdn.getsync.com/2.3.8/linux-arm/BitTorrent-Sync_arm.tar.gz , 

4) untar it with some tar zxvf  BitTorrent-Sync_arm.tar.gz. 

and then make sure you do sudo systemctl enable btsync , and then sudo service btsync start. 

P.S. instead of arm build you might need armf 

Share this post


Link to post
Share on other sites

Hello @Helen,

before trying to follow your latest instructions, just to comment on @brokenby2703 's latest post:

I am having exactly the same problem, and exactly the same error messages.

Checking your first step before executing it, my "ld-linux.so.3" is currently linked to "/lib/ld-linux-armhf.so.3". And "ld-linux-armhf.so.3" is linked to "/lib/arm-linux-gnueabihf/ld-2.19.so".

So if I executed your link, I would be replacing at least partially the existing links. And I suppost I should expect some consequences, right? Not sure if I should just do it :/

Regards,
Sebastian

P.S.: I am also following core dump failure in raspberry pi - seems like it is related.

Edited by sklus
Checked out additional information in other post, maybe related

Share this post


Link to post
Share on other sites

@skuls

the linked comment and my suggestion are basically the same - using arm binary, replace that manually. But note that mine is published in summer when there was no Resilio Sync yes, so they refer to BitTorrent Sync. 

Share this post


Link to post
Share on other sites

I wrote a complete tutorial on how to install Resilio on Raspberry 3, mounting an external USB Drive as well as some of the issues I had. I hope it is of use. 

http://jaimejim.github.io/raspberri-resilio/

Currently I am thinking of under-clocking it, as I am still having some problems with the overheat while syncing:

pi@raspberrypi:~ $ vcgencmd measure_temp

temp=73.1'C

Share this post


Link to post
Share on other sites

@jjaime Looks really nice instruction. Although, I wonder why have you decide to choose a plain binary placement installation, rather than using our debian package?

Share this post


Link to post
Share on other sites

@RomanZ well, to be honest I didn't know you have that option. I just added that information to the instructions. Thanks for letting me know!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now