BT Sync communication error after update (SOLVED)

Hi Guys

Last night I ran a software update and since then Bt Sync wont start, it shows up in the panel with an exclamation mark indicating an error and the option to open the Web UI is greyed out, if I stop BT Sync and restart it from the terminal I get this error,

raeme@Linux1 ~ $ btsync stop
graeme@Linux1 ~ $ btsync start
graeme@Linux1 ~ $ By using this application, you agree to our Privacy Policy, Terms of Use and End User License Agreement.
http://www.bittorrent.com/legal/privacy
http://www.bittorrent.com/legal/terms-of-use
http://www.bittorrent.com/legal/eula

BitTorrent Sync forked to background. pid = 6568. default port = 8888
WARNING:root:Communication Error caught, displaying error message
WARNING:root:Communication Error caught, displaying error message
WARNING:root:Communication Error caught, displaying error message
WARNING:root:Communication Error caught, displaying error message

it will work fine however if I start it from the menu (Menu>Internet>BitTorrent Sync Web UI)

I turned on debug logging and and submitted the log to pastebin

Any help would be much appreciated

Many thanks

Graeme

May need to have a dealy built into its autostart … it sounds like it may be coming up before networking.

Do you know how it autostarts ?

It has a similar issue to the one I had with BT Sync auto starting after I upgraded to Peppermint 5 which you helped me with, I followed your instructions for auto starting here http://linuxforums.org.uk/index.php?topic=11918.0

Many thanks

Graeme

Try this:

gedit ~/.config/autostart/btsync-autostart.desktop

and change:-

[Desktop Entry]
Type=Application
Name=BitTorrent Sync Autostart
Comment=Start btsync at login
Exec=bash -c "btsync start"
Terminal=false

to:-

[Desktop Entry]
Type=Application
Name=BitTorrent Sync Autostart
Comment=Start btsync at login
Exec=bash -c "sleep 20 ; btsync start"
Terminal=false

SAVE the file.

Log off/on to test

Bear in mind btsync won’t start for 20 seconds

Ok

I tried that but unfortunately I still have the same problem, this has also happened to my wifes PC after the same update, the odd thing is I’ve been on the BTSync forums and nobody else seems to have reported it

Many thanks

Graeme

Hmm … so running

btsync start

works ?

graeme@Linux1 ~ $ btsync start
btsync-agent already running - nothing to do
graeme@Linux1 ~ $ btsync stop
graeme@Linux1 ~ $ btsync start
graeme@Linux1 ~ $ By using this application, you agree to our Privacy Policy, Terms of Use and End User License Agreement.
http://www.bittorrent.com/legal/privacy
http://www.bittorrent.com/legal/terms-of-use
http://www.bittorrent.com/legal/eula

BitTorrent Sync forked to background. pid = 10703. default port = 8888
WARNING:root:Communication Error caught, displaying error message
WARNING:root:Communication Error caught, displaying error message
WARNING:root:Communication Error caught, displaying error message
I'm probably misunderstanding this but the above output lists default port =8888 but /home/graeme/.config/btsync/btsync-auto-conf as port 9999
//!/usr/lib/btsync-user/btsync-agent --config
//
// configuration for the btsync agent running in the
// user environment
{
	"device_name" : "Linux1 - graeme",
	"pid_file" : "/home/graeme/.config/btsync/btsync.pid",
        "storage_path" : "/home/graeme/.btsync",
        "listening_port" : 0,
        "check_for_updates" : false,
        "use_upnp" : true,
        "download_limit" : 0,
        "upload_limit" : 0,
        "webui" :
	{
		"listen" : "127.0.0.1:9999"
	}
}

Graeme

When you said:

it will work fine however if I start it from the menu (Menu>Internet>BitTorrent Sync Web UI)

What did that mean ? … what command does that run ?
(you can find this by right-clicking the menu item, selecting Properties > Desktop Entry … and seeing what is in the “Command:” entry).

What did that mean ?

What I meant was it was opening the interface

what command does that run ?

sensible-browser http://127.0.0.1:9999

Graeme

I posted this issue to the official BTSync forums it appears this is a known bug and will be fixed in the next update (whenever that is)

The problem is due to an incompatibility between btsync-user and BitTorrent Sync 1.4. See Issue #155 - the problem will be fixed in the next release.

If you are impatient, you should give btsync-gui a try. You can find more information in this topic. The installation of btsync-gui automatically replaces btsync-user and migrates the configuration:
sudo apt-get install btsync-gui
WARNING: Please keep in mind, that migrating back to btsync-user is not straightforward and requires manual interventions!

Here’s the bug report

So I either install btsync-gui or wait till a fix

Many thanks

Graeme

So they released an update for one component without updating the other ? … or are they separate projects ?

They want to discontinue btsync-user Web Ui and move Linux users over to BTSync-GUI because the Web UI is considered a security risk, and it bring Linux users more in line with Windows & MAC users, which is all good and well but they still pushed out a bad update whatever way you look at it

Anyway thanks again for your help

Graeme

have you tried btsync-gui ?

have you tried btsync-gui ?

Yeah sorry I should have mentioned that, I installed BTSync-gui and it works fine although it’s still at the alpha stage, so I’ll likely see a few updates in the near future, hopefully none of them break anything :slight_smile:

Graeme

Cool … at least it’s working :slight_smile: