visilogo

General FAQ's and tips

 

Question: How to start two trackers on the same server?

Answer: You must run different configuration files and different tables. Although it's recommended the use of different databases, you can use the same database and specify a different table prefix in one of the xbt_tracker.conf files. Don't forget to user different ports for each tracker (Thanks for major9 to remember this part)

Example:

Tracker 1: xbt_tracker

Tracker 2: xbt_tracker --conf_file xbt_tracker2.conf

Tracker 1 configuration file (xbt_tracker.conf)
1
2
3
4
5
mysql_host = localhost
mysql_user = xbt_tracker
mysql_password = xbt_tracker
mysql_database = xbt_tracker
mysql_table_prefix = tracker1_
Tracker 2 configuration file (xbt_tracker2.conf)
1
2
3
4
5
mysql_host = localhost
mysql_user = xbt_tracker
mysql_password = xbt_tracker
mysql_database = xbt_tracker
mysql_table_prefix = tracker2_

 


Question: What is this new torrent_pass_version that people are talking about?

Answer: In the past XBT Tracker was using one passkey per user and using it on all the torrents for that user. With the torrent_pass_version it's possible to specify a different torrent_pass for each torrent within the same user. Every time a user downloads a torrent, the tracker adds a new torrent_pass to the torrent file. Please see the example on how to use it.

Example:

1
2
3
4
5
6
$site_key = xbt_config.torrent_pass_private_key; // the value of torrent_pass_private_key that is stored in the xbt_config table
$info_hash = '22d3fa31c4ca81e36f8f2359e93e4d8c0169381a'; // the torrent info_hash
$torrent_pass_version = xbt_users.torrent_pass_version; // the torrent_pass_version that is stored in the xbt_users table for the user in question
$uid = xbt_users.uid; // the uid (userid) in the xbt_users table for the user in question

$passkey =sprintf('%08x%s', $uid, substr(sha1(sprintf('%s %d %d %s', $site_key, $torrent_pass_version, $uid, pack('H*', $info_hash))), 0, 24));

The annouce_url that will be inside the torrent file will be something like:

http://trackerurl:trackerport/$passkey/announce

 

 


Question: My xbt_files_users is getting bigger by the day. Can I clean some old records?

Answer: As the running of the tracker increases the data in xbt_files_users increases running into 10000s of unwanted data. You can prune out the unwanted data by running a cron to remove the records of users who are inactive. For more info check out IPBTracker's cron file.

Note: This Q&A was suggested by Jaggi. All credits go to him.

 

If you have more Tip's or questions feel free to user to "Contact Me" link above.