1 (18.03.2011 19:57:14 отредактировано tyrnov)

Установил все по ману http://blog.korphome.ru/2010/12/20/gent … rutorrent/
Веб интерфейс запускается но кидаю файл .torrent и закачка не начинается.
Конфиг .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/torrent/torrent_auto_load/*.torrent

#лог файл
execute_log = /home/chipset/torrent/rtorrent.log

#номер порта (или нескольких портов) который открывает клиент для обмена данными
port_range = 40890-40890

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

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

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

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

scgi_port = localhost:5000

И при запуске командой  rtorrent в терминале выдается:

 Консоль:
(19:54:47) Using 'epoll' based polling.
(19:54:47) Could not read resource file: ~/.rtorrent.rc

Так понимаю не может прочитать конфиг.
Как поправить. И заставить качать наконец то а то пол дня возился уже.

ОС: Gentoo/Funtoo

2

Покажите

 Консоль:
ls -al ~/.rtorrent.rc

Был, был и весь вышел...

3

Какой то странный вывод этой команды от пользователя:

 Консоль:

~ $ ls -al ~/.rtorrent.rc
-rw-r--r-- 1 root chipset 1553 Мар 18 19:05 /home/chipset/.rtorrent.rc

А вот от рута

 Консоль:

# ls -al ~/.rtorrent.rc
ls: невозможно получить доступ к /root/.rtorrent.rc: Нет такого файла или каталога

ОС: Gentoo/Funtoo

4 (19.03.2011 09:53:08 отредактировано Lupo Alberto)

tyrnov пишет:

А вот от рута

Это понятно, команда смотрит в домашнем — «~» — каталоге root'а, а там этого файла и нет.
rtorrent вы запускаете от root'а? IMHO, это неправильно.
Попробуйте выполнить от root'а

chmod chipset:chipset /home/chipset/.rtorrent.rc

И команду rtorrent запускайте от пользователя chipset

Был, был и весь вышел...

5 (19.03.2011 09:56:13 отредактировано tyrnov)

 Консоль:
# chmod chipset:chipset /home/chipset/.rtorrent.rc
chmod: неверный режим: «chipset:chipset»

 Консоль:

$ rtorrent
rtorrent: Error in option file: ~/.rtorrent.rc:23: Command "execute_log" does not exist.

ОС: Gentoo/Funtoo

6

tyrnov пишет:

chmod: неверный режим: «chipset:chipset»

Это я ещё не проснулся  oO

chown chipset:chipset /home/chipset/.rtorrent.rc
Был, был и весь вышел...

7 (19.03.2011 09:59:00 отредактировано Lupo Alberto)

tyrnov пишет:

rtorrent: Error in option file: ~/.rtorrent.rc:23: Command "execute_log" does not exist.

Попробуйте (от пользователя!)

mkdir -p /home/chipset/torrent/
Был, был и весь вышел...

8

mkdir -p /home/chipset/torrent/ сделал это но эта папка там была точно

ОС: Gentoo/Funtoo

9

chown chipset:chipset /home/chipset/.rtorrent.rc

Это теперь выполнилось от пользователя теперь выдает:

$ rtorrent 
rtorrent: Error in option file: ~/.rtorrent.rc:23: Command "execute_log" does not exist.
ОС: Gentoo/Funtoo

10

tyrnov, а дефолтный конфигурационный файл для rtorrent глянуть можно?

Был, был и весь вышел...

11

+ открыть спойлер

#минимальное число пиров на торрент
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/torrent/torrent_auto_load/*.torrent

#лог файл
execute_log = /home/chipset/torrent/rtorrent.log

#номер порта (или нескольких портов) который открывает клиент для обмена данными
port_range = 40890-40890

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

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

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

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

scgi_port = localhost:5000

ОС: Gentoo/Funtoo

12

tyrnov пишет:

rtorrent: Error in option file: ~/.rtorrent.rc:23: Command "execute_log" does not exist.

Строчку (# execute_log = /home/chipset/torrent/rtorrent.log)  в конфигурационном файле попробуйте закомментировать.

Был, был и весь вышел...

13

tyrnov, это не дефолтный конфиг, а уже настроенный.
Покажите вывод команды

equery f net-p2p/rtorrent
Был, был и весь вышел...

14

Закоментил запустился. Выдает так:

(10:04:48) Using 'epoll' based polling.
(10:04:48) XMLRPC initialized with 531 functions.
(10:04:48) The SCGI socket is bound to a specific network device yet may still pose a security risk, consider using 'scgi_loc

Но не вижу закачки а файл лежит .torrent в нужной папке

ОС: Gentoo/Funtoo

15

equery f net-p2p/rtorrent
[ Searching for packages matching net-p2p/rtorrent... ]
* Contents of net-p2p/rtorrent-0.8.6-r1:
/etc
/etc/conf.d
/etc/conf.d/rtorrentd
/etc/init.d
/etc/init.d/rtorrentd
/usr
/usr/bin
/usr/bin/rtorrent
/usr/share
/usr/share/doc
/usr/share/doc/rtorrent-0.8.6-r1
/usr/share/doc/rtorrent-0.8.6-r1/AUTHORS.bz2
/usr/share/doc/rtorrent-0.8.6-r1/README.bz2
/usr/share/doc/rtorrent-0.8.6-r1/TODO.bz2
/usr/share/doc/rtorrent-0.8.6-r1/rtorrent.rc.bz2
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/rtorrent.1.bz2
ОС: Gentoo/Funtoo

16

Покажите вывод команды

ls -al /home/torrent/torrent_auto_load/
Был, был и весь вышел...

17

Это лог через веб интерфейс выдает:

[19.03.2011 07:07:49] WebUI started.
[19.03.2011 07:07:49] JS error: [http://localhost/rutorrent/ : 1] Uncaught SyntaxError: Unexpected token <
[19.03.2011 07:07:49] Bad response from server: (0 [null,getuisettings])
[19.03.2011 07:07:49] Bad response from server: (0 [error,getuisettings])
ОС: Gentoo/Funtoo

18

Поправил не много под свой адрес:

$ ls -al /home/chipset/torrent/torrent_auto_load/
итого 24
drwxr-xr-x 2 chipset chipset  4096 Мар 18 19:13 .
drwxr-xr-x 4 chipset chipset  4096 Мар 19 10:03 ..
-rw-r--r-- 1 chipset chipset 15426 Мар 18 18:52 1.torrent
ОС: Gentoo/Funtoo

19

tyrnov пишет:

/usr/share/doc/rtorrent-0.8.6-r1/rtorrent.rc.bz2

Этот файл скиньте куда-нибудь.
Ну и выполните

man  rtorrent | col -bfx > rtorrent-man.txt
wgetpaste rtorrent-man.txt
Был, был и весь вышел...

20

http://paste.pocoo.org/show/355927/

ОС: Gentoo/Funtoo

21

+ открыть спойлер

# 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

ОС: Gentoo/Funtoo

22

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

/etc/init.d/rtorrentd start

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

Был, был и весь вышел...

23 (19.03.2011 13:40:39 отредактировано Lupo Alberto)

tyrnov пишет:

rtorrent: Error in option file: ~/.rtorrent.rc:23: Command "execute_log" does not exist.

Нашёл вот:

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

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

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

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

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

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

Был, был и весь вышел...

24

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

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

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

ОС: Gentoo/Funtoo

25 (19.03.2011 17:09:55 отредактировано Lupo Alberto)

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, обычный пользователь)?
Торрент файлы как получаете?

Был, был и весь вышел...

26 (04.06.2011 14:14:38 отредактировано tyrnov)

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

+ открыть спойлер
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

+ открыть спойлер
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";

?>
ОС: Gentoo/Funtoo

27 (04.06.2011 14:17:05 отредактировано tyrnov)

от рута

(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

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

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

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

[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 и конфигурационный файл переменные как я понял совпадают

ОС: Gentoo/Funtoo

28

tyrnov, покажите

 Консоль:
lsof -i :5000

Был, был и весь вышел...

29

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

ОС: Gentoo/Funtoo

30

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

ОС: Gentoo/Funtoo