Kirjoittaja Aihe: Bittorrent trackkeri (bttrack) ongelma.  (Luettu 4372 kertaa)

Pavao

  • Käyttäjä
  • Viestejä: 61
  • Arch Linux
    • Profiili
Bittorrent trackkeri (bttrack) ongelma.
« : 05.01.07 - klo:21.23 »
Elikkä haluaisin saada oman bittorrent trackkerin toimimaan ubuntussa. Tarkoituksena on että se helpottaisi omien tiedostojen jakamista kavereille.

Olen yrittänyt viritellä bittorrent paketin mukana tulevaa bttrack ohjelmaa. Sain sen puoli vuotta sitten toimimaankin pöytäkone-dapperilla kirjoittamalla komentoriviltä komennon bttrack ja jotain parametrejä (en muista enää). Nyt kun tarkoituksena olisi saada samainen komento toimimaan serverikoneessa niin ei enää onnistukkaan.
Koodia: [Valitse]
paavo@kebab2:/$ bttrack --dfile /home/paavo/.bttrack/d.file
Traceback (most recent call last):
  File "/usr/bin/bttrack", line 10, in ?
    track(argv[1:])
  File "/usr/lib/python2.4/site-packages/BitTorrent/track.py", line 498, in track
    t = Tracker(config, r)
  File "/usr/lib/python2.4/site-packages/BitTorrent/track.py", line 143, in __init__
    tempstate = bdecode(ds)
  File "/usr/lib/python2.4/site-packages/BitTorrent/bencode.py", line 66, in bdecode
    raise ValueError
ValueError
Sama ilmoitus tulee myös roottina eli ei pitäis olla tiedostojen oikeuksista kiinnni.

/usr/bin/bttrack tiedoston sisältö, jossa toi vika näyttäis olevan. En ole muokannut tiedostoa mitenkään asennuksen jälkeen kun en ymmärrä yhtään mitään sisällöstä.
Koodia: [Valitse]

#!/usr/bin/python

# Written by Bram Cohen
# see LICENSE.txt for license information

from sys import argv
from BitTorrent.track import track

if __name__ == '__main__':
    track(argv[1:])

laitan tähän vielä lisäksi /etc/default/bittorrent tiedoston sisällön kun se näyttäis olevan se missä suurin osa noista säädöistä on. Tätä olen mukannut. Lähinnä noita START_BTTRACK ja DFILE kohtia.

Koodia: [Valitse]

# Default configuration for bittorrent tracker, bttrack

# If you want the bittorrent tracker to run, switch this to 1.
START_BTTRACK=1

# Set any bttrack option --foo by defining the variable FOO to the argument
# you'd like to pass with the --foo option.  See `man bttrack` for a detailed
# discussion of the options.

# Persistent state file
DFILE=/home/paavo/.bttrack/d.file

# Port defaults to 80, which tends to be inconvenient
PORT=6969

# Only allow downloads for .torrent files in this directory
ALLOWED_DIR=/home/paavo/torrentit/

# The following options do not correspond to bttrack options; they influence how
# bttrack's init script starts the daemon.

# Run under this uid.  Must have access to all files and directories involved,
# naturally, but should otherwise have minimal privileges to minimize any
# security risk.
DAEMONUSER=bittorrent

# chroot to this directory before starting the daemon.  This can also help keep
# the daemon secure, but may interact with all sorts of file locations in
# unexpected ways.
#DAEMONCHROOT=/var/local/lib/bttrack-sandbox

# Move to this directory before starting the daemon.  This may be useful in
# conjunction with DAEMONCHROOT.
#DAEMONCHDIR=/var/local/lib/bttrack-sandbox

# Run the daemon at this "nice" priority.  Setting a positive value here will
# dissuade the system from giving all its CPU time to bttrack requests from the
# network.
DAEMONNICE=5

# Append log output from daemon to this file.  Make sure this log is rotated
# from time to time so it doesn't fill up your disk.  The daemon will of course
# need write access to the log file.
DAEMONLOGFILE=/var/log/bttrack.bittorrent.log

Olisin todella iloinen jos joku osaisi neuvoa ton kanssa tai jos osaa vinkata jonkun toisen (mahdollisesti helpomman) bittorrent trackkerin.

En ole onnistunut löytämään pahemmin ohjeita ton bttrackin pyörittämiseen.

http://www.ubuntuforums.org/showthread.php?t=108788

Tuolla kerrotaan että miksi se ei lähde käyntiin alussa vaikka puoliks niin ilmoittaakin. Tota apuna käyttäen editoin  hieman noita tiedostoja, jotka tossa toka vikassa viestissä mainitaan, mutta ei ole auttanut.

Serverikoneessa on siis dapperin LAMP-serveriasennus.

Kiitos jo etukäteen.
"Children are smarter than any of us.
Know how I know that?
I don't know one child with a full time job and children."

Bill Hicks