• Seedbox
  • Probleme de liaison Rtorrent/Rutorrent

Bonjour à tous,

Après avoir longuement googlé pour trouver la solution, impossible de m'en sortir...
Depuis hier mon RUtorrent ne marche plus j’accède difficilement à la page web mais impossible de voir mes torrent.

[13.07.2014 13:41:59] WebUI started.
[13.07.2014 13:43:00] Lien incorrect avec rTorrent. Vérifier qu'il est bien en cours d'exécution. Vérifier la configuration de $scgi_port et de $scgi_host dans config.php et scgi_port dans le fichier de configuration de rTorrent.

J'ai essayé moulte choses mais rien de concluant. Pouvez vous m'aider ?

Un grand merci par avance.
root@xxxxxx:~# nmap localhost

Starting Nmap 6.00 ( http://nmap.org ) at 2014-07-13 14:01 CEST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000045s latency).
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 994 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
22/tcp   open  ssh
53/tcp   open  domain
80/tcp   open  http
443/tcp  open  https
1723/tcp open  pptp
Voila le contenu de mon .rtorrent.rc
schedule = chmod,0,0,"execute=chmod,777,/home/xxxxx/.session/gaz.socket"
execute = {sh,-c,rm -f /home/xxxxx/.session/gaz.socket}
scgi_local = /home/xxxxx/.session/gaz.socket
execute = {sh,-c,chmod 0666 /home/xxxxx/.session/gaz.socket}
encoding_list = UTF-8
port_range = 45000-65000
port_random = no
check_hash = no
directory = /home/xxxxx/torrents
session = /home/xxxxx/.session
encryption = allow_incoming, try_outgoing, enable_retry
schedule = watch_directory,1,1,"load_start=/home/xxxxx/watch/*.torrent"
schedule = untied_directory,5,5,"stop_untied=/home/xxxxx/watch/*.torrent"
use_udp_trackers = yes
dht = off
peer_exchange = no
execute = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php xxxxxx &}

Fais un ps -aux | grep rtorrent
root@xxxxx:/home/gazpatch# ps -aux | grep rtorrent
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
gazpatch  4093  0.0  0.0  27888  1552 ?        Ss   Jul12   0:06 SCREEN -dm -S rtorrent
gazpatch 25349  0.1  1.1 309676 47744 pts/2    Ssl+ 14:18   0:02 rtorrent
root     26920  0.0  0.0   6556   624 pts/0    S+   14:47   0:00 grep --color=auto rtorrent
Donc ton rTorrent est bien lancé, pas de problème dans ton rtorrent.rc visiblement, je checkerai au niveau de ruTorrent dans conf/config.php && conf/users/tonuser/config.php
Voilà mon config.php
<?php
        // configuration parameters

        // for snoopy client
        @define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0', true);
        @define('HTTP_TIME_OUT', 30, true);     // in seconds
        @define('HTTP_USE_GZIP', true, true);
        $httpIP = null;                         // IP string. Or null for any.

        @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);

        $schedule_rand = 10;                    // rand for schedulers start, +0..X seconds

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

        $saveUploadedTorrents = true;           // Save uploaded torrents to profile/torrents directory or not
        $overwriteUploadedTorrents = false;     // Overwrite existing uploaded torrents in profile/torrents directory or make unique name

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

        $scgi_port = 5000;
        $scgi_host = "127.0.0.1";

        // 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";

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

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

        $localhosts = array(                    // list of local interfaces
                "127.0.0.1",
                "localhost",
        );

        $profilePath = '../share';              // Path to user profiles
        $profileMask = 0777;                    // Mask for files and directory creation in user profiles.
                                                // Both Webserver and rtorrent users must have read-write access to it.
                                                // For example, if Webserver and rtorrent users are in the same group then the value may be 0770.

Et le users/.../config.php
<?php
$topDirectory = '/home/gazpatch';
$scgi_port = 0;
$scgi_host = "unix:///home/gazpatch/.session/gaz.socket";
$XMLRPCMountPoint = "/GAZ0";
?>
N'y a t il pas un problème de port ? Je vois le scgi_port à 0 dans le dernier post alors qu'il est à 5000 dans celui d'avant et il n'apparait pas dans le nmap localhost ?
Juste pour info je n'ai absolument rien fais alors que tout fonctionne depuis 10 mois sans probleme et depuis hier c'est hs.
Merci de ton aide Bxt.
Modifie ton $scgi_port && $scgi_host de ton premier config.php par le 2eme que tu m'as link
Je viens de la faire suivi d'un restart de rtorrent et lighttpd, petite lueure d'espoir quand j'ai vu mes torrents revenir dans RUtorrent (mais en echec) et aprés un contol F5 je reviens au point de départ.
J'ai exactement le même problème.

Pas de soucis pendant 3-4 mois et paf v'la que ça tombe
Si vous avez des torrents provenants de FTDB :

Je vous conseille de supprimer votre .session, vous n'aurez malheureusement plus aucun torrent dans ruTorrent, mais de très fortes chance que votre problème soit régler.
Tu penses que je peux delete entièrement mon .session sans probleme ?
Perso, j'ai save mes .sessions, jvais voir trouver un log pour lire c'est torrent et remettre ensuite ce hors FTDB
BXT, le problème semble résolu pour moi en partie.
Après avoir modifié mon config.php comme tu me l'as demandé, ça ne fonctionnait toujours pas.
Mais après avoir lu ton dernier post, j'ai refais un :
root@xxxxx:/home/gazpatch/.session# rm rtorrent.lock
Après avoir Ctrl F5 mon chrome, je retrouve tous mes torrents dans la liste !
Tous les FTDB sont en rouge par contre.
jewem wrote:BXT, le problème semble résolu pour moi en partie.
Après avoir modifié mon config.php comme tu me l'as demandé, ça ne fonctionnait toujours pas.
Mais après avoir lu ton dernier post, j'ai refais un :
root@xxxxx:/home/gazpatch/.session# rm rtorrent.lock
Après avoir Ctrl F5 mon chrome, je retrouve tous mes torrents dans la liste !
Tous les FTDB sont en rouge par contre.

J'ai parlé trop vite, cela recommence. Tu me confirmes que je peux delete entierement mon .session ?
root@xxxxx:/home/gazpatch# service gaz.rtord restart
cannot find readable session directory /home/gazpatch/.session from config /home/gazpatch/.rtorrent.rc. check permissions
Je pensais les fichiers dans .session moi xD

mkdir /home/gazpatch/.session
chown gazpatch:gazpatch /home/gazpatch/.session
chmod -R 755 /home/gazpatch/.session

Et relance ta commande 😛