suhrim

Btsync On Debian Api Key Issues

Recommended Posts

You need an api key to get it working right? Got a key from bittorrent but it still says invalid api key in the logs.

 

Requested the key from:

http://www.bittorrent.com/sync/developers

and the keys looks something like this:

XOCRD6XRFD5HXCLW7WD5XBI52YPKEGARFK3SFE6BSEVRQIVXQNMMLNEXO6PPXB4IG6XXO25CQQ4KFBRDYCXK2W4KR7NXM3XMYE7MYBENETLG6X43FUGY5PDE27ALK6L6YAC3WVA

 

this is not my real key though I have edited it a bit.

 

[20140621 00:30:11.016] Invalid API key. Terminating
 
any ideas? have I missed something trivial there?

Share this post


Link to post
Share on other sites

@suhrim

 

I suggest that you've copypasted the key to avoid any possible typos. Please also make sure that the text editor did not put any extra line breaks in the API key.

 

If all of the above is not the case - please send me your config file with the key, I'll test it in my lab. Please use syncapp@bittorrent.com mail address and refer to this forum topic.

Share this post


Link to post
Share on other sites

@suhrim

 

I suggest that you've copypasted the key to avoid any possible typos. Please also make sure that the text editor did not put any extra line breaks in the API key.

 

If all of the above is not the case - please send me your config file with the key, I'll test it in my lab. Please use syncapp@bittorrent.com mail address and refer to this forum topic.

Thanks for the respons.

 

I run dpkg-reconfigure btsync to configure and pasted the API key from the mail I got. When looking in the config file afterwords I can't see any extra characters of line breaks in the api key. I'm mailing you my config file now.

Share this post


Link to post
Share on other sites

@suhrim

 

Your API key is okay and is not blocked. Even more, your config file started in my lab with almost no changes (have to adjust storage path). 

 

Aren't you using any proxy / firewall that might change / corrupt the traffic? Also, which platform do you run API?

Share this post


Link to post
Share on other sites

@suhrim

 

Try stopping all instances and run a new one from console, like:

killall btsync./btsync --no-daemon --config <config_path_and_filename>

Share this post


Link to post
Share on other sites

@RomanZ

 

I installed btsync on another network and it worked without problems there. 

 

either there are some problems with my isp or my router (EdgeRouter Lite v1.4.1).

 

I will try to put my server at home on a public ip and see if that works.

Share this post


Link to post
Share on other sites

@RomanZ

 

I have tried putting the server at home on a public ip and it still doesn't work. The one I installed at work is configured the same way and it works there. What host is used for verifying thet api key? I would like to test if I can contact it from my isp at home.

Share this post


Link to post
Share on other sites

 

@suhrim

 

Try stopping all instances and run a new one from console, like:

killall btsync./btsync --no-daemon --config <config_path_and_filename>
root@nas:/usr/lib/btsync# ./btsync-daemon --nodaemon --config /etc/btsync/debconf-default.conf
Warning: config option 'lan_use_tcp' is deprecated
total physical memory 536870912 max disk cache 2097152
Using IP address 83.254.XXX.XX
Loading config file version 1.3.105
Loaded folder /mnt/media/johan/foton
Invalid API key. Terminating
Shutdown. Saving config sync.dat
root@nas:/usr/lib/btsync#
 
what hostname does it verify the api key against? I would like to check if I can contact tha host at all.

Share this post


Link to post
Share on other sites

logged traffik when restarting the service.

 

18:00:29.415107 IP 8.8.8.8.53 > 192.168.10.32.34965: 20696 3/0/0 CNAME syncdev-1159813985.us-east-1.elb.amazonaws.com., A 50.16.235.95, A 50.17.249.15 (129)
18:00:29.448157 IP 8.8.8.8.53 > 192.168.10.32.39291: 64680 3/0/0 CNAME syncdev-1159813985.us-east-1.elb.amazonaws.com., A 50.16.235.95, A 50.17.249.15 (129)
18:00:29.605404 IP 50.16.235.95.443 > 192.168.10.32.54110: Flags [s.], seq 1340296521, ack 1218851029, win 14480, options [mss 1460,sackOK,TS val 249083623 ecr 374119,nop,wscale 8], length 0
18:00:29.717213 IP 50.16.235.95.443 > 192.168.10.32.54110: Flags [.], ack 322, win 61, options [nop,nop,TS val 249083651 ecr 374147], length 0
18:00:30.075726 IP 50.16.235.95.443 > 192.168.10.32.54110: Flags [F.], seq 4274, ack 1307, win 77, options [nop,nop,TS val 249083741 ecr 374236], length 0

Share this post


Link to post
Share on other sites

@suhrim

 

Thanks, no need to connect. One of our support engineers will contact you and help locating the issue - you'll need to assist in running couple of builds with extra debugging information.

Share this post


Link to post
Share on other sites

@suhrim

 

When you get the testing builds from the support engineer, you can replace the binary installed by the package. The binary you will get, is named "btsync". You have to move it in place of the binary installed by the package and then restart the service. Assuming you are in the same directory where you unpacked the binary, you should perform the following commands if you are logged in as root:

service btsync stopmv btsync /usr/lib/btsync-common/btsync-coreservice btsync start
 

or the following commands, if you are logged in as a regular user:

 

sudo service btsync stopsudo mv btsync /usr/lib/btsync-common/btsync-coresudo service btsync start

Share this post


Link to post
Share on other sites

Hello

 

Sorry for my absence I haven't really had any time for this.

 

My troubles seems to be related to my hardware in some way. I'm going to try to install on another machine that has the same Asus motherboard as I have in my server.

 

Asus E35M1-I with latest bios and 8Gb of ram.

 

I did run memtest on it for more than 12 hours without errors and everything else works fine.


I tried with the file you sent me again (I had to upgrade glibc to a newer version) it works however.

Share this post


Link to post
Share on other sites

I have same issue as TC.

[20140726 21:49:12.929] Invalid API key. Terminating

Who can I send my API to check if it works?

 

What hardware are you using?

Share this post


Link to post
Share on other sites

I meant motherboard/cpu/ram not linux version.

Ah, sorry :)

 

CPU AMD Athlon 64 Processor 3200+

MB AsRock AM2NG6G-VSTA

RAM DDR-II 2GB Kingston KVR800 D2N6/2G

HDD 320GB Hitachi HTS725032A9A364

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.