Btsync On Debian Api Key Issues


suhrim

Recommended Posts

@RomanZ 

BtSync daemon is not running when I use API key in .conf file. When string with API commented daemon working fine.

 

sync:

[20140819 15:35:11.970] total physical memory 536870912 max disk cache 2097152[20140819 15:35:11.998] Using IP address 192.168.0.133[20140819 15:35:12.006] Loading config file version 1.3.109[20140819 15:35:12.070] Loaded folder /home/r3m/public/btsync/UpdatePack7R2[20140819 15:35:12.127] Loaded folder /home/r3m/public/btsync/ UpdatePack-XPSP3-Rus Live[20140819 15:35:13.099] Invalid API key. Terminating[20140819 15:35:14.237] UPnP: Device error "http://192.168.0.107:2869/upnphost/udhisapi.dll?content=uuid:74e938d3-7a75-4e88-93c1-0c650ea0f36b": (-2) [20140819 15:35:15.101] Shutdown. Saving config sync.dat

I attach my conf file.

debconf-default.zip

Link to comment
Share on other sites

  • 2 weeks later...

@RomanZ 

BtSync daemon is not running when I use API key in .conf file. When string with API commented daemon working fine.

 

sync:

[20140819 15:35:11.970] total physical memory 536870912 max disk cache 2097152[20140819 15:35:11.998] Using IP address 192.168.0.133[20140819 15:35:12.006] Loading config file version 1.3.109[20140819 15:35:12.070] Loaded folder /home/r3m/public/btsync/UpdatePack7R2[20140819 15:35:12.127] Loaded folder /home/r3m/public/btsync/ UpdatePack-XPSP3-Rus Live[20140819 15:35:13.099] Invalid API key. Terminating[20140819 15:35:14.237] UPnP: Device error "http://192.168.0.107:2869/upnphost/udhisapi.dll?content=uuid:74e938d3-7a75-4e88-93c1-0c650ea0f36b": (-2) [20140819 15:35:15.101] Shutdown. Saving config sync.dat

I attach my conf file.

 

If (as the name suggests) the supplied configuration file is the system (debconf) maintained configuration file for the default instance, it shows a serious anomaly.

 

"storage_path" : "/home/r3m/public/btsync",

 

The installer (debconf) creates the configuration file with the following value:

 

"storage_path" : "/var/lib/btsync",

 

Since there is no possibility to configure this value in debconf, this means that the file was changed manually. The comments at the top of the file say:

 

// DO NOT EDIT THIS FILE MANUALLY - SERIOUSLY!!!//// THIS FILE WILL BE OVERWRITTEN AT EVERY UPDATE// OR RECONFIGURATION SO DO NOT EVEN TRY IT//// USE dpkg-reconfigure btsync INSTEAD TO MODIFY// THE CONFIGURATION

 

Apart the fact that you blatantly ignored what was written there, the path you entered as storage_path seems not to be only a directory dedicated to keep all internal functional data of BitTorrent Sync. At least the name of the directory suggests that maybe that path is also one of your shared directories. In that case this will probably create a huge mess on your system and could be also the cause of several malfunctions.

 

In case you specified in debconf NOT to create a default instance, and took only a previously created configuration file as template for your personal configuration, you should at least name it differently (e.g. myspecialconf.conf)  in order to avoid conflicts with a subsequently created default instance (in fact your file would be overwritten). But please remember: storage_path is the location that BitTorrent Sync uses to store all internal data. It should be a dedicated directory not used by anything other and the BitTorrent Sync process must have full access to that directory. 

Link to comment
Share on other sites

@tuxpoldo

 

I moved all data to 

/var/lib/btsync

and reconfigured via

dpkg-reconfigure btsync

but btsync still not running with API key. Without it - running fine.

 

sync.log

[20140901 13:52:49.527] total physical memory 536870912 max disk cache 2097152[20140901 13:52:49.531] Using IP address 192.168.0.133[20140901 13:52:49.535] Loading config file version 1.3.109[20140901 13:52:49.541] Loaded folder /home/r3m/public/btsync/UpdatePack7R2[20140901 13:52:49.547] Loaded folder /home/r3m/public/btsync/ UpdatePack-XPSP3-Rus Live[20140901 13:52:50.548] Invalid API key. Terminating[20140901 13:52:52.585] Shutdown. Saving config sync.dat
Link to comment
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.