LinuxForum.Fans
Тема

rTorrent + ruTorrent не видит файлов .torrent

Автор: tyrnov 39 сообщений 16935 просмотров
#141792
Показать

# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.

# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100

# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
#max_peers_seed = 50

# Maximum number of simultanious uploads per torrent.
#max_uploads = 15

# Global upload and download rate in KiB. "0" for unlimited.
#download_rate = 0
#upload_rate = 0

# Default directory to save the downloaded torrents.
#directory = ./

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
#session = ./session

# Watch a directory for new torrents, and stop those that have been
# deleted.
#schedule = watch_directory,5,5,load_start=./watch/*.torrent
#schedule = untied_directory,5,5,stop_untied=

# Close torrents when diskspace is low.
#schedule = low_diskspace,5,60,close_low_diskspace=100M

# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"

# The ip address reported to the tracker.
#ip = 127.0.0.1
#ip = rakshasa.no

# The ip address the listening socket and outgoing connections is
# bound to.
#bind = 127.0.0.1
#bind = rakshasa.no

# Port range to use for listening.
#port_range = 6890-6999

# Start opening ports at a random position within the port range.
#port_random = no

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
#check_hash = no

# Set whetever the client should try to connect to UDP trackers.
#use_udp_trackers = yes

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa

# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
# encryption = allow_incoming,enable_retry,prefer_plaintext

# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
# dht = auto

# UDP port to use for DHT.
#
# dht_port = 6881

# Enable peer exchange (for torrents not marked private)
#
# peer_exchange = yes

#
# Do not modify the following parameters unless you know what you're doing.
#

# Hash read-ahead controls how many MB to request the kernel to read
# ahead. If the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read
# pages in memory thus end up trashing.
#hash_read_ahead = 10

# Interval between attempts to check the hash, in milliseconds.
#hash_interval = 100

# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
#hash_max_tries = 10
#141828

tyrnov, я так понимаю, вы запустили rtorrentd?

text

/etc/init.d/rtorrentd start

Покажите файл /etc/conf.d/rtorrentd

#141832
tyrnov написал:
rtorrent: Error in option file: ~/.rtorrent.rc:23: Command "execute_log" does not exist.

Нашёл вот:

text
# В новых версиях команда запысывается так:
log.execute = /home/my_name/rtorrent.log

Попробуйте ещё команду

text
schedule = watch_directory,5,5,load_start=/home/torrent/torrent_auto_load/*.torrent

записать так (исправить путь и заключить в кавычки)

text
schedule = watch_directory,5,5,"load_start=/home/chipset/torrent_auto_load/*.torrent"

Если после исправления команды логирования появятся логи, покажите их.

#141841

Не логи пусты. после такого исправления. А при запуске в консоле:

text
(14:14:51) Using 'epoll' based polling.
(14:14:51) Could not read resource file: ~/.rtorrent.rc

http://paste.pocoo.org/show/355989/ а это конфиг сейчас.

#141922
Lupo Alberto написал:
tyrnov, я так понимаю, вы запустили rtorrentd?

/etc/init.d/rtorrentd start

Покажите файл /etc/conf.d/rtorrentd
tyrnov написал:
(14:14:51) Could not read resource file: ~/.rtorrent.rc

Есть этот файл или нет, права доступа к нему?
От чьего имени запускаете (root, обычный пользователь)?
Торрент файлы как получаете?

#167528

cat /etc/conf.d/rtorrentd
USER="chipset"
HOME_DIR="/home/chipset"

Показать
text

cat /home/chipset/.rtorrent.rc
#минимальное число пиров на торрент
min_peers = 1

#максимальное число пиров на торрент max_peers = 1000

#максимальная скорость загрузки download_rate = 0

#максимальная скорость отдачи. 0 - не ограничена upload_rate = 0

#каталог для сохранения закачек или откуда буду сидироваться торренты. directory = /home/chipset/torrent

#каталог куда будет сохраняться состояние торрентов session = /home/chipset/torrent/_incoming

#rtorrent каждые 5 секунд проверяет этот каталог на новые *.torrent файлы и если они есть то ставит их на закачку schedule = watch_directory,5,5,load_start=/home/chipset/torrent/torrent_auto_load/*.torrent

#лог файл #execute_log = /home/chipset/torrent/rtorrent.log log.execute = /home/chipset/rtorrent.log #номер порта (или нескольких портов) который открывает клиент для обмена данными port_range = 40890-40890

#случайный выбор порта для обмена данными. В данном случае он отключён port_random = no

#проверять хэш торрента после закачки check_hash = yes

#использовать udp use_udp_trackers = yes

#сохранять сессию session_save = yes

scgi_port = localhost:5000

Показать
text

cat /var/www/localhost/htdocs/rutorrent/conf/config.php
<?php
        // configuration parameters

// for snoopy client @define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true); @define('HTTP_TIME_OUT', 30, true); // in seconds @define('HTTP_USE_GZIP', true, true);

@define('RPC_TIME_OUT', 5, true); // in seconds

@define('LOG_RPC_CALLS', false, true); @define('LOG_RPC_FAULTS', true, true);

// for php @define('PHP_USE_GZIP', false, true); @define('PHP_GZIP_LEVEL', 2, true);

$do_diagnostic = true; $log_file = '/tmp/errors.log'; // path to log file (comment or make empty to disable logging) $saveUploadedTorrents = true;

$topDirectory = '/'; // Upper available directory. Absolute path with trail slash. $forbidUserSettings = false;

$scgi_port = 5000; $scgi_host = "localhost";

$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!

$pathToExternals = array( "php" => '', // Something like /usr/bin/php. If empty, will be founded in PATH. "curl" => '', // Something like /usr/bin/curl. If empty, will be founded in PATH. "gzip" => '', // Something like /usr/bin/gzip. If empty, will be founded in PATH. "id" => '', // Something like /usr/bin/id. If empty, will be founded in PATH. "stat" => '', // Something like /usr/bin/stat. If empty, will be founded in PATH. );

// For web->rtorrent link through unix domain socket // (scgi_local in rtorrent conf file), change variables // above to something like this: // // $scgi_port = 0; // $scgi_host = "unix:///tmp/rpc.socket";

?>

#167530

от рута

text

(13:52:30) Using 'epoll' based polling.
(13:52:30) Could not read resource file: ~/.rtorrent.rc
[Throttle off/off KB] [Rate   0.0/  0.0 KB] [Port: 6977] [U 0/0] [D 0/0] [H 0/3

от chipset

text

rtorrent
rtorrent: Could not lock session directory: "/home/chipset/torrent/_incoming/", Отказано в доступе

Тоесть от пользователя и не запускается даже. Файлы получаю закидаваю по фтп и перемещаю в нужную папку через mc

Лог вебинтерфейса такой:

text

[04.06.2011 13:49:06] WebUI started.
[04.06.2011 13:49:06] Нет связи с rTorrent. Проверьте, запущен ли он. Проверьте, что параметры $scgi_port и $scgi_host в файле config.php совпадают со значением переменной scgi_port в файле конфигурации rTorrent.

Хотя в предыдущем посте выложил config.php и конфигурационный файл переменные как я понял совпадают

#167539

tyrnov, покажите
[console]lsof -i :5000[/console]

#167549

lsof -i :5000
bash: lsof: команда не найдена

#167552

Поставил выдает lsof -i :5000 пустоту

#167560
tyrnov написал:
Поставил выдает lsof -i :5000 пустоту

А netstat -pan --inet | grep 5000?

#167563

netstat -pan --inet | grep 5000
netstat: no support for `AF INET (sctp)' on this system.

#167565

А просто
[console]netstat -pan --inet[/console]

#167566
Показать
text
netstat -pan --inet
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      3759/mysqld
tcp        0      0 0.0.0.0:51413           0.0.0.0:*               LISTEN      23969/transmission-
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      3816/sshd
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      3995/cupsd
tcp        0      0 0.0.0.0:9091            0.0.0.0:*               LISTEN      23969/transmission-
tcp        0      0 192.168.1.111:47629     192.168.1.1:5431        TIME_WAIT   -
tcp        0     52 192.168.1.111:22        91.203.64.10:1470       ESTABLISHED 23126/sshd: chipset
tcp        0      0 192.168.1.111:47627     192.168.1.1:5431        CLOSE_WAIT  25388/transmission-
tcp        0      0 192.168.1.111:47630     192.168.1.1:5431        TIME_WAIT   -
tcp        0      0 192.168.1.111:47628     192.168.1.1:5431        TIME_WAIT   -
tcp        0      0 192.168.1.111:47626     192.168.1.1:5431        TIME_WAIT   -
tcp        0      0 192.168.1.111:47625     192.168.1.1:5431        TIME_WAIT   -
tcp        0      0 192.168.1.111:32956     192.168.1.1:5431        CLOSE_WAIT  23969/transmission-
tcp        0      0 192.168.1.111:22        91.203.64.10:1710       ESTABLISHED 10525/sshd: chipset
tcp        0      0 192.168.1.111:9091      91.203.64.10:2386       ESTABLISHED 23969/transmission-
netstat: no support for `AF INET (sctp)' on this system.

#167567
tyrnov написал:
Показать

netstat -pan --inet
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 3759/mysqld
tcp 0 0 0.0.0.0:51413 0.0.0.0:* LISTEN 23969/transmission-
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3816/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3995/cupsd
tcp 0 0 0.0.0.0:9091 0.0.0.0:* LISTEN 23969/transmission-
tcp 0 0 192.168.1.111:47629 192.168.1.1:5431 TIME_WAIT -
tcp 0 52 192.168.1.111:22 91.203.64.10:1470 ESTABLISHED 23126/sshd: chipset
tcp 0 0 192.168.1.111:47627 192.168.1.1:5431 CLOSE_WAIT 25388/transmission-
tcp 0 0 192.168.1.111:47630 192.168.1.1:5431 TIME_WAIT -
tcp 0 0 192.168.1.111:47628 192.168.1.1:5431 TIME_WAIT -
tcp 0 0 192.168.1.111:47626 192.168.1.1:5431 TIME_WAIT -
tcp 0 0 192.168.1.111:47625 192.168.1.1:5431 TIME_WAIT -
tcp 0 0 192.168.1.111:32956 192.168.1.1:5431 CLOSE_WAIT 23969/transmission-
tcp 0 0 192.168.1.111:22 91.203.64.10:1710 ESTABLISHED 10525/sshd: chipset
tcp 0 0 192.168.1.111:9091 91.203.64.10:2386 ESTABLISHED 23969/transmission-
netstat: no support for `AF INET (sctp)' on this system.

tyrnov написал:
/var/www/localhost/htdocs/rutorrent/conf/config.php

А разве не должен быть запущен какой-либо веб-сервер?

#167568

Апач работает и вебинтерфейс на нем открывается же

#167571

lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
apache2 3867 root 6u IPv6 6973 0t0 TCP *:http (LISTEN)
apache2 3875 apache 6u IPv6 6973 0t0 TCP *:http (LISTEN)
apache2 3884 apache 6u IPv6 6973 0t0 TCP *:http (LISTEN)

#167572
tyrnov написал:
Апач работает и вебинтерфейс на нем открывается же

Что-то в выводе netstat этого не видно :o

#167573

В следующем видно lsof -i :80

Войдите или зарегистрируйтесь, чтобы ответить.