btsyncindicator
btsyncindicator copied to clipboard
Communication Error after updating to BitTorrent Sync 1.4
Reported by forum user krychek:
I'm having a problem on two Ubuntu 14.04 boxes after the latest btsync update:
hostname$ btsync start hostname$ BitTorrent Sync forked to background. pid = 8506. default port = 8888 WARNING:root:Communication Error caught, displaying error message WARNING:root:Communication Error caught, displaying error message
I also have an exclamation mark in the btsync icon and and error message: Communication Error 400.
I tried to reproduce it. It's tricky. First of all, this little bastard wants the EULA to be accepted. Second I'm not sure, if he wants to work without credentials... After configuring manually with known credentials and accepting EULA and having a config file with the correct credentials:
INFO:root:Opening config file /home/leo/.config/btsync/btsync-auto.conf
INFO:root:Config loaded
INFO:root:Creating menu
INFO:root:Menu initalisation complete
/usr/lib/btsync-user/btsyncindicator.py:138: Warning: /build/buildd-glib2.0_2.33.12+really2.32.4-5-i386-eISom6/glib2.0-2.33.12+really2.32.4/./gobject/gsignal.c:2459: signal `child-added' is invalid for instance `0x94ae020'
self.ind.set_menu(self.menu)
INFO:root:Requesting Token from http://127.0.0.1:9999/gui/token.html
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
DEBUG:requests.packages.urllib3.connectionpool:"POST /gui/token.html?t=1409874293.31 ('HTTP/1.1',)" 200 121
INFO:root:Token response <Response [200]>
INFO:root:HTML Response <html><div id='token' style='display:none;'>O7jxgBtOGVeL-8rZA3fCLQ_HBvDCGRN5_CkEaxd1UeF-puRT1mtrQHX5CFQAAAAA</div></html>
INFO:root:Token O7jxgBtOGVeL-8rZA3fCLQ_HBvDCGRN5_CkEaxd1UeF-puRT1mtrQHX5CFQAAAAA Retrieved
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
DEBUG:requests.packages.urllib3.connectionpool:"GET /gui/?action=license&token=O7jxgBtOGVeL-8rZA3fCLQ_HBvDCGRN5_CkEaxd1UeF-puRT1mtrQHX5CFQAAAAA ('HTTP/1.1',)" 400 46
WARNING:root:Communication Error caught, displaying error message
DEBUG:root:Setting icon to /usr/share/icons/hicolor/22x22/status/btsync-error
INFO:root:Requesting Token from http://127.0.0.1:9999/gui/token.html
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
DEBUG:requests.packages.urllib3.connectionpool:"POST /gui/token.html?t=1409874295.31 ('HTTP/1.1',)" 200 121
INFO:root:Token response <Response [200]>
INFO:root:HTML Response <html><div id='token' style='display:none;'>SfkC2vVmNMkz5w2UF27Lo3Tjx0fYDz5ZILm2cm2yGO-SFM7L0OSgsXf5CFQAAAAA</div></html>
INFO:root:Token SfkC2vVmNMkz5w2UF27Lo3Tjx0fYDz5ZILm2cm2yGO-SFM7L0OSgsXf5CFQAAAAA Retrieved
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
DEBUG:requests.packages.urllib3.connectionpool:"GET /gui/?action=license&token=SfkC2vVmNMkz5w2UF27Lo3Tjx0fYDz5ZILm2cm2yGO-SFM7L0OSgsXf5CFQAAAAA ('HTTP/1.1',)" 400 46
WARNING:root:Communication Error caught, displaying error message
As I'm not using btsync anymore (I've migrated to syncthing) I can't really investigate this, but if anyone wants to submit a Pull Request I'll happily review it and merge it in.