• Seedbox
  • [Discussion] Installer ruTorrent sur Debian 8 (nginx & php-fpm)

après ./configure tu as un message d'erreur?
Merci pour la réponse rapide

je ne pense pas avoir d'erreur pour le ./configure
/tmp/libtorrent­0.12.2# ./configure

checking for a BSD­compatible install... /usr/bin/install ­c

checking whether build environment is sane... yes

checking for a thread­safe mkdir ­p... /bin/mkdir ­p

checking for gawk... no

checking for mawk... mawk

checking whether make sets $(MAKE)... yes

checking build system type... x86_64­unknown­linux­gnu

checking host system type... x86_64­unknown­linux­gnu

checking for style of include used by make... GNU

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts ­g... yes

checking for gcc option to accept ISO C89... none needed

checking dependency style of gcc... gcc3

checking for a sed that does not truncate output... /bin/sed

checking for grep that handles long lines and ­e... /bin/grep

checking for egrep... /bin/grep ­E

checking for ld used by gcc... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for /usr/bin/ld option to reload object files... ­r

checking for BSD­compatible nm... /usr/bin/nm ­B

checking whether ln ­s works... yes

checking how to recognize dependent libraries... pass_all

checking how to run the C preprocessor... gcc ­E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking dlfcn.h usability... yes

checking dlfcn.h presence... yes

checking for dlfcn.h... yes

checking for g++... g++

checking whether we are using the GNU C++ compiler... yes

checking whether g++ accepts ­g... yes

checking dependency style of g++... gcc3

checking how to run the C++ preprocessor... g++ ­E

checking for g77... no

checking for xlf... no

checking for f77... no

checking for frt... no

checking for pgf77... no

checking for cf77... no

checking for fort77... no

checking for fl32... no

checking for af77... no

checking for xlf90... no

checking for f90... no

checking for pgf90... no

checking for pghpf... no

checking for epcf90... no

checking for gfortran... no

checking for g95... no

checking for xlf95... no

checking for f95... no

checking for fort... no

checking for ifort... no

checking for ifc... no

checking for efc... no

checking for pgf95... no

checking for lf95... no

checking for ftn... no

checking whether we are using the GNU Fortran 77 compiler... no

checking whether  accepts ­g... no

checking the maximum length of command line arguments... 1572864

checking command to parse /usr/bin/nm ­B output from gcc object... ok

checking for objdir... .libs

checking for ar... ar

checking for ranlib... ranlib

checking for strip... strip

checking if gcc supports ­fno­rtti ­fno­exceptions... no

checking for gcc option to produce PIC... ­fPIC

checking if gcc PIC flag ­fPIC works... yes

checking if gcc static flag ­static works... yes

checking if gcc supports ­c ­o file.o... yes

checking whether the gcc linker (/usr/bin/ld ­m elf_x86_64) supports shared libraries... yes

checking whether ­lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... no

configure: creating libtool

appending configuration tag "CXX" to libtool

checking for ld used by g++... /usr/bin/ld ­m elf_x86_64

checking if the linker (/usr/bin/ld ­m elf_x86_64) is GNU ld... yes

checking whether the g++ linker (/usr/bin/ld ­m elf_x86_64) supports shared libraries...

yes

checking for g++ option to produce PIC... ­fPIC

checking if g++ PIC flag ­fPIC works... yes

checking if g++ static flag ­static works... yes

checking if g++ supports ­c ­o file.o... yes

checking whether the g++ linker (/usr/bin/ld ­m elf_x86_64) supports shared libraries...

yes

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

appending configuration tag "F77" to libtool

checking whether we are using the GNU C++ compiler... (cached) yes

checking whether g++ accepts ­g... (cached) yes

checking dependency style of g++... (cached) gcc3

checking whether byte ordering is bigendian... no

checking the byte alignment... none needed

checking for user­defined CXXFLAGS... user­defined "­g ­O2"

checking for TR1 support... yes

checking for special C compiler options needed for large files... no

checking for _FILE_OFFSET_BITS value needed for large files... no

checking for epoll support... yes

checking for long... yes

checking size of long... 8

checking sys/vfs.h usability... yes

checking sys/vfs.h presence... yes

checking for sys/vfs.h... yes

checking sys/statvfs.h usability... yes

checking sys/statvfs.h presence... yes

checking for sys/statvfs.h... yes

checking sys/statfs.h usability... yes

checking sys/statfs.h presence... yes

checking for sys/statfs.h... yes

checking for statvfs... ok

checking if compiler supports __attribute__((visibility("default")))... yes

checking for pkg­config... /usr/bin/pkg­config

checking pkg­config is at least version 0.9.0... yes

checking for OPENSSL... yes

checking for STUFF... yes

checking for madvise... yes

checking signedness of mincore parameter... unsigned

checking for proper overloaded template function disambiguation... yes

checking if compiler supports __attribute__((unused))... yes

configure: creating ./config.status

config.status: creating libtorrent.pc

config.status: creating Makefile

config.status: creating src/Makefile

config.status: creating src/torrent/Makefile

config.status: creating src/torrent/peer/Makefile

config.status: creating src/torrent/data/Makefile

config.status: creating src/data/Makefile

config.status: creating src/dht/Makefile

config.status: creating src/download/Makefile

config.status: creating src/net/Makefile

config.status: creating src/protocol/Makefile

config.status: creating src/tracker/Makefile

config.status: creating src/utils/Makefile

config.status: creating config.h

config.status: executing depfiles commands
Merci.
Bonjour à tous,

J'ai un petit soucis lors à la suite de l'install. Quand je veux relancer nginx j'ai :
root@Serveur:~# service nginx restart
[....] Restarting nginx: nginxnginx: [emerg] unknown directive "serveur1" in /etc/nginx/sites-enabled/cakebox.conf:3
nginx: configuration file /etc/nginx/nginx.conf test failed
Dans nom du serveur je dois mettre quoi ? hostname, adresse IP, nom de mon serveur chez mon hébergeur ?

Merci d'avance
Salut
Pour Cakebox d'après le tuto, il faut obligatoirement avoir un nom de domaine perso pour pouvoir créer au préalable un sous-domaine cakebox.toto.com
server_name cakebox.domaine.fr; ## sous domaine obligatoire
Ex.
J'ai le nom de domaine mais par contre il n'est pas rooter sur mon serveur et j'ai pas compris non plus comment on faisait pour le rooter ....
On en a parlé sur un autre topic y'a pas longtemps
http://mondedie.fr/d/5342
Je sais pas où est ton nom de domaine mais en gros c'est pareil partout.
dans ton manager tu dois avoir un truc appelé +/- "Zone DNS"
La dedans tu vas créer une entrée => "Type A"
ton-domaine.com => IP_Serveur
et pareil pour l'autre
cakebox.ton-domaine.com => IP_Serveur

Après faut attendre 24h pour être sur de la propagation DNS donc efface le fichier cakebox.conf, tu le referas après tout ça (et restart nginx pour avoir accès à ta box en attendant)
Ex.
Edit: chez ovh, ça ressemble à ça: http://www.ratbox.nl/md/ovh.png
Alors mon nom de domaine est hébergé chez gandi et voici la manip que j'ai faite :




Vu que j'y connais pas grand chose, ça semble être correcte ?

Gaume.
seedbox => http// c'est me parait moyen ça
Je connais pas l'interface Gandi

Tentes plutôt de faire que des "Type A"
domaine.com => IP serveur (pour pouvoir personnaliser le reverse-dns du serveur après )
seedbox.domaine.com => IP Serveur
cakebox.domaine.com => IP Serveur

Si tu veux tu peux me montrer tes captures d'écran non flouté en mp après, histoire que je vois mieux le bricolage
Ex.
J'ai refait une install propre tout à bien roulé
Bonjour

Je viens de suivre le tuto, tout s'est parfaitement déroulé, sauf pour mediainfo, quand je check un fichier voilà l'erreur :
mediainfo: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/libmediainfo.so.0)
Je ne sais pas d'où ça peut venir

Le serveur était neuf, Debian 7 64 bits
Bonjour j'ai 1 bug
filemanager: Le plug-in ne fonctionnera pas. Le serveur web ne peut pas accéder au(x) programme(s) externe(s). (unzip).
unzip deja installer
config.php configurer
et l’erreur est toujours présent

voila ma configuration
<?php
$topDirectory = '/home/debi';
$scgi_port = 5001;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/DEB0';
$topDirectory = '/home/debi/torrents';
$pathToExternals = array(
                "php"  => '/usr/bin/php',                       // Something like /usr/bin/php. If empty, will be found in PATH.
                "curl" => '/usr/bin/curl',                      // Something like /usr/bin/curl. If empty, will be found in PATH.
                "gzip" => '/bin/gzip',                  // Something like /usr/bin/gzip. If empty, will be found in PATH.
                "id"   => '/usr/bin/id',                        // Something like /usr/bin/id. If empty, will be found in PATH.
                "stat" => '/usr/bin/stat',                      // Something like /usr/bin/stat. If empty, will be found in PATH.
                "bzip2" => '/bin/bzip2',
                "unzip" => '/usr/bin/unzip'
        );
?>
merci d'avance
Dans le tuto c'est très bien expliqué, la config du plugin filemanager se fait dans le fichier config du filemanager
Je suis a la recherche des lumières d'un pro de cakebox car je sèche sur mon problème.

Je m'explique, tout ce passe parfaitement bien jusqu'a ce que j'arrive sur la fin du tuto et que je lance la commande :
service nginx restart
J'ai ce joli message qui s'affiche :
root@Serveur:/var/www/cakebox# service nginx restart
[....] Restarting nginx: nginxnginx: [emerg] unknown directive "gaume" in /etc/nginx/sites-enabled/cakebox.conf:3
nginx: configuration file /etc/nginx/nginx.conf test failed
Et voici mon fichier config :
server {
    listen 80;
    serveur cakebox.#########.me; ## sous domaine obligatoire

    root /var/www/cakebox/public;
    index index.php;

    auth_basic "seedbox";
    auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";

    charset utf-8;
    include /etc/nginx/conf.d/cache;

    access_log /var/log/nginx/cakebox-access.log;
    error_log /var/log/nginx/cakebox-error.log;

    location = / {
        try_files @site @site;
    }

    location / {
        try_files $uri $uri/ @site;
    }

    location /*monuser*/ {
        alias /home/*monuser*/torrents/;
        add_header Content-Disposition "attachment";
        satisfy any;
        allow all;
    }

    ## etc si d'autre utilisateur ##

    location @site {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root/index.php;
        fastcgi_param APPLICATION_ENV production;

        ## uncomment when running via https
        ## fastcgi_param HTTPS on;
    }
}

Comment faire pour que ça marche ??

Merci d'avance
@Magicalex c'est possible de faire un demon multi utilisateur ? ou sais vraiment 1 demon par utilisateur
D'après l'erreur c'est une erreur sur la ligne 3 soit server cakebox.ndd.tld car c'est server_name cakebox.ndd.tld
genmaster wrote:@Magicalex c'est possible de faire un demon multi utilisateur ? ou sais vraiment 1 demon par utilisateur
non rtorrent ne sait pas faire ça.
hydrog3n wrote:D'après l'erreur c'est une erreur sur la ligne 3 soit server cakebox.ndd.tld car c'est server_name cakebox.ndd.tld
c'est bien là qu'est tout le problème (je viens de retester), peut un porte le nom que je mets j'ai toujours cette erreur O_o . J'ai essayé le nom de chez sys, mon hostname, mon nom d'utilasateur, pas de nom du tout (serveur_name) et j'ai toujours le même problème .....
Grâce à Ex tout fonctionne ce coup là.

Un grand merci
Bonjour,

Merci pour le tuto, j'ai il me semble bien suivi toutes les instructions, lorsque je vais sur rutorrent j'ai une erreur 403 dans les logs.
Après avoir fait un :
cat /var/log/nginx/rutorrent-error.log | tail -15
J'obtiens ceci :
2014/03/29 07:40:26 [error] 8331#0: *331 FastCGI sent in stderr: "PHP message: PHP Warning:  strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/rutorrent/php/util.php on line 452" while reading response header from upstream, client: XX.XX.XX.XX, server: _, request: "POST /rutorrent/plugins/chat/action.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "XX.XX.XX.XX", referrer: "http://XX.XX.XX.XX/rutorrent/"
Il me parle d'un date.timezone à la ligne 452, mais il n'y rien de ce type dans le fichier qu'il pointe (/var/www/rutorrent/php/util.php).

Donc voilà, si quelqu'un peut m'aider à résoudre mon problème, ça serait sympa

Merci d'avance
Salut
Ça viendrait pas d'un loupé de cette partie du tuto ?
Je crois que c'est le seul truc qui parle de time_zone, donc à vérifier
=======================================

modification du php.ini ( correction de la date, et suppression de X-Powered-By dans l'entête http)
nano /etc/php5/fpm/php.ini
trouver les lignes suivante et remplacer par les bonnes valeurs
expose_php = Off
upload_max_filesize = 10M
date.timezone = Europe/Paris
et on redémarre php-fpm
service php5-fpm restart
=========================================
Ex.
Merci pour l'aide Ex.

J'ai réglé mon soucis de date, j'avais oublié d'enlever le ";" devant le date.timezone.

Par contre j'ai toujours mon erreur 403 dans les logs j'ai maintenant ça :
2014/03/29 08:12:02 [error] 8331#0: *1098 no user/password was provided for basic authentication, client: XX.XX.XX.XX, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", host: "XX.XX.XX.XX", referrer: "http://XX.XX.XX.XX/rutorrent/"
2014/03/29 08:12:05 [error] 8331#0: *1098 no user/password was provided for basic authentication, client: XX.XX.XX.XX, server: _, request: "POST /rutorrent/plugins/trafic/action.php HTTP/1.1", host: "XX.XX.XX.XX", referrer: "http://XX.XX.XX.XX/rutorrent/"
2014/03/29 08:12:05 [error] 8331#0: *1100 no user/password was provided for basic authentication, client: XX.XX.XX.XX, server: _, request: "POST /ANT0 HTTP/1.1", host: "XX.XX.XX.XX", referrer: "http://XX.XX.XX.XX/rutorrent/"
2014/03/29 08:12:06 [error] 8331#0: *1100 open() "/etc/nginx/passwd/rutorrent_passwd_antonin" failed (2: No such file or directory), client: XX.XX.XX.XX, server: _, request: "POST /ANT0 HTTP/1.1", host: "XX.XX.XX.XX", referrer: "http://XX.XX.XX.XX/rutorrent/"
J'imagine en lisant les erreurs à un problème de mot de passe, quel partie du tuto dois-je refaire ?
Peut on effacer un user entièrement et recommencer ?

Merci.
Quand je suis la procédure du changement de mot de passe du serveur web, la première commande :
htpasswd -s /etc/nginx/passwd/rutorrent_passwd_<username> <username>
La console me répond :
htpasswd: cannot modify file /etc/nginx/passwd/rutorrent_passwd_antonin; use '-c' to create it
Dois-je modifier la commande et mettre :
htpasswd -s -c /etc/nginx/passwd/rutorrent_passwd_<username> <username>
Merci
je suis pas certain sur le coup mais d'après le man:
OPTIONS
-c Create the passwdfile. If passwdfile already
exists, it is deleted first.
donc je mettrais que :
htpasswd -c /etc/nginx/passwd/rutorrent_passwd_<username> <username>
et avant de relancer le truc, vérifie dans ton rutorrent.conf que tu as bien modifié sans erreur cette partie la:
 location /<UU>0 {
        include scgi_params;
        scgi_pass 127.0.0.1:500{x}; #ou socket : unix:/home/username/.session/username.socket
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_<username>";
    }
C'est bon ça marche !

j'ai effectivement mis :
htpasswd -c /etc/nginx/passwd/rutorrent_passwd_<username> <username>
htpasswd /etc/nginx/passwd/rutorrent_passwd <username>
et enfin restart nginx
service nginx restart
et tout fonctionne à merveille !

par contre en lisant le tuto le -s permettait l'encryption en sha1, c'est un problème ?

Merci pour ton aide Ex.
J'étais en train de me poser la question justement pour le -s...
Je pense pas que ce soit un gros soucis, touche à rien pour l'instant si ça marche, Magicalex donnera surement son avis sur la question quand il passera.
Voir la manip' pour rectifier le coup si c'est nécessaire
Ex.

Edit: Je viens de voir que la page du Man de htpasswd que j'ai regardé date de février 1997, y'a peut-être eu un peu de neuf depuis
Coucou tout le monde !

Première chose , nikel le Tuto

Par contre j'ai besoin d'une âme charitable car là je bloque sérieux

Vu que je suis sous VM, voici à deux reprises que je recommence à zéro mais toujours le même souci au final.

Ma VM : Debian 7.4 X64 -- 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux

Le problème : Absence du menu (qui à mon avis est en liaison avec mon user qui doit foirer quelque part) ainsi que dans le log juste après le start de la machine : 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 vérifié, re vérifié, mais je trouve pas ou est mon erreur.



Une personne pour m'aider svp?
D'avance merci
Kéro - www.jediscute.org

PS: Au cas ou, je dispose de Skype -> je_discute
Salut
Le process de résolution de la légendaire erreur de l'ancien tuto doit toujours être d'actualité.

tu passes sur ton user avec su user suivi de rtorrent
=>
rtorrent se lance: vérifier le script tonuser-rtorrent et vérifier crontab.
rtorrent ne se lance pas: lire l'erreur et vérifier le .rtorrent.rc de l'user.
(exit pour sortir)

Ça te donnera peut-être déjà un début de piste (loupé sur la plage de port dans .rtorrent.rc) ou un port 500{x} oublié ou commun à plusieurs users.
Plus qu'à chercher la boulette et pas oublier de relancer rtorrent si tu fais une modif avec service tonuser-rtorrent restart
Ex.
Merci Ex !
Je vais suivre cette piste
Je reviens aux news dès que j'ai, j’espère, résolu mon souci

Kéro
Bon comme prévu, j'ai effectivement une erreur au lancement du client.
rtorrent: Error in option file: ~/.rtorrent.rc:1: Could not prepare socket for listening: Ne peut attribuer l'adresse demandée
J'ai modifié le port vu que j'avais le 5001 et je l'ai remplacé par 5003. Soucis identique après reboot

Voici ma config concernant le socket :

User : seedbox
Nombre de user : 1 seul

/var/www/rutorrent/conf/users/seedbox/config.php
<?php
$topDirectory = '/home/seedbox';
$scgi_port = 5003;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/SEE0';
/etc/nginx/sites-enabled/rutorrent.conf
    location /SEE0 {
        include scgi_params;
        scgi_pass 127.0.0.1:5003; #ou socket : unix:/home/username/.session/use$
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_seedbox";
    }
/home/seedbox/.rtorrent.rc
scgi_port = 127.0.0.1:5003
encoding_list = UTF-8
port_range = 45000-65000
Je suis bon pourtant non?
Je vois pas d'erreur dans ce que tu as posté, pour moi tout est ok
J'ai pas de soluce là, va falloir attendre un autre avis désolé.
Y'a peut-être une ruse de port induit par le fait que tu sois sur une vm mais là je peux rien te dire de plus
Ex.
C'est ce que je me disais aussi...
Le "truc" qui me chipote, c'est l'erreur : Could not prepare socket for listening

Dans le rutorrent.conf, il y a une variable #ou socket : unix:/home/username/.session/use$

Je vais regarder de ce coté là au cas ou.
Merci quand même pour ton aide

PS: au pire, je passe par le socket Unix à la place du TCP ? : http://mondedie.fr/d/5350
Salut,

Ton message indique bien qu'il y a un soucis avec la première ligne de ton fichier .rtorrent.rc soit le port du scgi. Tu peux essayer de voir qu'est-ce qui utilise ce port en tapant lsof -i :5003. Tu es bien sur que ton rtorrent n'est pas déjà lancé ? Regarde avec htop ou top.

Sinon passe par les fichiers socket, tu seras sûr que cela fonctionnera.

++ Nico
Bonjour Nico,

Merci pour ta réponse.
Concernant les ports, j'ai rien justement qui l'utilise. J'ai même testé d'autres ports dans la config 5000 ou 5005 voir d'autres encore plus "exotique" mais même résultat .
Pour le socket, oui, je vais tester si j'arrive pas à mes fins.

Le problème est tellement connu (dixit Google) et pourtant tout le monde patauge complètement.
Pour info, je tourne en VM sur un Esxi d'Online.

A bientôt (en espérant trouver mon problème)
Bonjour à tous,

Tout d'abord, merci pour ce magnifique tuto.
J'ai une seedbox depuis samedi et impossible de trouver un tuto qui fonctionne parfaitement. J'ai dû recommencer au moins 5-6 fois...

Cependant, bien que tout semblait bien fonctionner, j'ai un message d'erreur dans rutorrent. Mais trop la flemme de recommencer une énième fois et de me heurter encore à des problèmes !

Voici mon message d'erreur dans rutorrent après authentification réussie (http ou https) :
[03.04.2014 00:16:08] WebUI started.
[03.04.2014 00:16:10] Bad response from server: (404 [error,list]) <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx</center> </body> </html>
[03.04.2014 00:16:10] FILE MANAGER ignited
[03.04.2014 00:18:10] Bad response from server: (404 [error,list]) <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx</center> </body> </html>
[03.04.2014 00:20:10] Bad response from server: (404 [error,list]) <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx</center> </body> </html>
[03.04.2014 00:22:10] Bad response from server: (404 [error,list]) <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx</center> </body> </html>
[03.04.2014 00:24:10] Bad response from server: (404 [error,list]) <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx</center> </body> </html> 

Et là, ce que me retournes les logs :


root@xxx:/var/log/nginx# cat rutorrent-error.log

2014/04/03 00:30:13 [error] 5103#0: *186 open() "/etc/nginx/html/FRE0" failed (2: No such file or directory), client: 78.244.21.233, server: _, request: "POST /FRE0 HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/rutorrent/"
2014/04/03 00:32:13 [error] 5103#0: *186 open() "/etc/nginx/html/FRE0" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "POST /FRE0 HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/rutorrent/"
2014/04/03 00:34:13 [error] 5103#0: *326 open() "/etc/nginx/html/FRE0" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "POST /FRE0 HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/rutorrent/"
2014/04/03 00:36:13 [error] 5103#0: *326 open() "/etc/nginx/html/FRE0" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "POST /FRE0 HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/rutorrent/"
2014/04/03 00:38:13 [error] 5103#0: *424 open() "/etc/nginx/html/FRE0" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "POST /FRE0 HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/rutorrent/"
2014/04/03 00:40:13 [error] 5103#0: *424 open() "/etc/nginx/html/FRE0" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "POST /FRE0 HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/rutorrent/"
2014/04/03 00:42:13 [error] 5103#0: *424 open() "/etc/nginx/html/FRE0" failed (2: No such file or directory), client: x.x.x.x, server: _, request: "POST /FRE0 HTTP/1.1", host: "x.x.x.x", referrer: "http://x.x.x.x/rutorrent/"

Mes fichiers conf :

*nano /etc/nginx/nginx.conf
user nginx;
worker_processes auto;

pid /var/run/nginx.pid;
events { worker_connections 1024; }

http {
    include /etc/nginx/mime.types;
    default_type  application/octet-stream;

    access_log /var/log/nginx/access.log combined;
    error_log /var/log/nginx/error.log error;

    sendfile on;
    keepalive_timeout 20;
    keepalive_disable msie6;
    keepalive_requests 100;
    tcp_nopush on;
    tcp_nodelay off;
    server_tokens off;

    gzip on;
    gzip_buffers 16 8k;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_min_length 20;

*nano /etc/nginx/conf.d/php
location ~ \.php$ {
        fastcgi_index index.php;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include /etc/nginx/fastcgi_params;
}

*nano /etc/nginx/conf.d/cache
location ~* \.(jpg|jpeg|gif|css|png|js|woff|ttf|svg|eot)$ {
    expires 7d;
    access_log off;
}

location ~* \.(eot|ttf|woff|svg)$ {
    add_header Acccess-Control-Allow-Origin *;
}

*nano /etc/nginx/sites-enabled/rutorrent.conf
server {
    listen 80 default_server;
    listen 443 default_server ssl;
    server_name _;
    index index.html index.php;
    charset utf-8;

    ssl_certificate /etc/nginx/ssl/server.crt;
    ssl_certificate_key /etc/nginx/ssl/server.key;

    access_log /var/log/nginx/rutorrent-access.log combined;
    error_log /var/log/nginx/rutorrent-error.log error;

    error_page 500 502 503 504 /50x.html;
    location = /50x.html { root /usr/share/nginx/html; }

    auth_basic "seedbox";
    auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";

    location = /favicon.ico {
        access_log off;
        return 204;
    }

    ## début config rutorrent ##

   location /<FRE>0 {
        include scgi_params;
        scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_fred";
    }

    location ^~ /rutorrent {
        root /var/www;
        include /etc/nginx/conf.d/php;
        include /etc/nginx/conf.d/cache;

        location ~ /\.svn {
                deny all;
        }

        location ~ /\.ht {
                deny all;
        }
    }

    location ^~ /rutorrent/conf/ {
        deny all;
    }

    location ^~ /rutorrent/share/ {
        deny all;
    }

    ## fin config rutorrent ##

    ## Début config cakebox 2.8 ##

#    location ^~ /cakebox {
#       root /var/www/;
#       include /etc/nginx/conf.d/php;
#       include /etc/nginx/conf.d/cache;
#    }

#    location /cakebox/downloads {
#       root /var/www;
#       satisfy any;
#       allow all;
#    }

    ## fin config cakebox 2.8 ##

    ## début config seedbox manager ##

#    location ^~ / {
#       root /var/www/manager;
#       include /etc/nginx/conf.d/php;
#       include /etc/nginx/conf.d/cache;
#    }

#    location ^~ /conf/ {
#       root /var/www/manager;
#       deny all;
#    }

    ## fin config seedbox manager ##

}

*nano /etc/logrotate.d/nginx
/var/log/nginx/*.log {
        daily
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 640 root
        sharedscripts
        postrotate
                [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
        endscript
}

*nano /home/fred/.rtorrent.rc
scgi_port = 127.0.0.1:5001
encoding_list = UTF-8
port_range = 45000-65000
port_random = no
check_hash = no
directory = /home/fred/torrents
session = /home/fred/.session
encryption = allow_incoming, try_outgoing, enable_retry
schedule = watch_directory,1,1,"load_start=/home/fred/watch/*.torrent"
schedule = untied_directory,5,5,"stop_untied=/home/fred/watch/*.torrent"
use_udp_trackers = yes
dht = off
peer_exchange = no
min_peers = 10
max_peers = 300
min_peers_seed = 10
max_peers_seed = 200
max_uploads = 15
execute = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php fred &}
schedule = espace_disque_insuffisant,1,30,close_low_diskspace=500M

*nano /etc/nginx/sites-enabled/rutorrent.conf
server {
    listen 80 default_server;
    listen 443 default_server ssl;
    server_name _;
    index index.html index.php;
    charset utf-8;

    ssl_certificate /etc/nginx/ssl/server.crt;
    ssl_certificate_key /etc/nginx/ssl/server.key;

    access_log /var/log/nginx/rutorrent-access.log combined;
    error_log /var/log/nginx/rutorrent-error.log error;

    error_page 500 502 503 504 /50x.html;
    location = /50x.html { root /usr/share/nginx/html; }

    auth_basic "seedbox";
    auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";

    location = /favicon.ico {
        access_log off;
        return 204;
    }

    ## début config rutorrent ##

   location /<FRE>0 {
        include scgi_params;
        scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_fred";
    }

    location ^~ /rutorrent {
        root /var/www;
        include /etc/nginx/conf.d/php;
        include /etc/nginx/conf.d/cache;

        location ~ /\.svn {
                deny all;
        }

        location ~ /\.ht {
                deny all;
        }
    }

    location ^~ /rutorrent/conf/ {
        deny all;
    }

    location ^~ /rutorrent/share/ {
        deny all;
    }

    ## fin config rutorrent ##

    ## Début config cakebox 2.8 ##

#    location ^~ /cakebox {
#       root /var/www/;
#       include /etc/nginx/conf.d/php;
#       include /etc/nginx/conf.d/cache;
#    }

#    location /cakebox/downloads {
#       root /var/www;
#       satisfy any;
#       allow all;
#    }

    ## fin config cakebox 2.8 ##

    ## début config seedbox manager ##

#    location ^~ / {
#       root /var/www/manager;
#       include /etc/nginx/conf.d/php;
#       include /etc/nginx/conf.d/cache;
#    }

#    location ^~ /conf/ {
#       root /var/www/manager;
#       deny all;
#    }

    ## fin config seedbox manager ##

}

*nano /var/www/rutorrent/conf/users/<username>/config.php
<?php
$topDirectory = '/home/fred';
$scgi_port = 5001<?php
$topDirectory = '/home/fred';
$scgi_port = 5001;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/FRE0';

*nano /var/www/rutorrent/conf/users/<username>/plugins.ini
[default]
enabled = user-defined
canChangeToolbar = yes
canChangeMenu = yes
canChangeOptions = yes
canChangeTabs = yes
canChangeColumns = yes
canChangeStatusBar = yes
canChangeCategory = yes
canBeShutdowned = yes
[ipad]
enabled = yes
[httprpc]
enabled = no
[retrackers]
enabled = no
[rpc]
enabled = no
[rutracker_check]
enabled = no

*nano /etc/init.d/<username>-rtorrent
#!/bin/bash

### BEGIN INIT INFO
# Provides:                rtorrent
# Required-Start:
# Required-Stop:
# Default-Start:          2 3 4 5
# Default-Stop:          0 1 6
# Short-Description:  Start daemon at boot time
# Description:           Start-Stop rtorrent user session
### END INIT INFO

user="fred"

# the full path to the filename where you store your rtorrent configuration
config="/home/fred/.rtorrent.rc"

# set of options to run with
options=""

# default directory for screen, needs to be an absolute path
base="/home/fred"

# name of screen session
srnname="rtorrent"

# file to log to (makes for easier debugging if something goes wrong)
logfile="/var/log/rtorrentInit.log"
#######################
###END CONFIGURATION###
#######################
PATH=/usr/bin:/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin
DESC="rtorrent"
NAME=rtorrent
DAEMON=$NAME
SCRIPTNAME=/etc/init.d/$NAME

checkcnfg() {
    exists=0
    for i in `echo "$PATH" | tr ':' '\n'` ; do
        if [ -f $i/$NAME ] ; then
            exists=1
            break
        fi
    done
    if [ $exists -eq 0 ] ; then
        echo "cannot find rtorrent binary in PATH $PATH" | tee -a "$logfile" >&2
        exit 3
    fi
    if ! [ -r "${config}" ] ; then
        echo "cannot find readable config ${config}. check that it is there and permissions are appropriate" | tee -a "$logfile" >&2
        exit 3
    fi
    session=`getsession "$config"`
    if ! [ -d "${session}" ] ; then
        echo "cannot find readable session directory ${session} from config ${config}. check permissions" | tee -a "$logfile" >&2
        exit 3

        fi

}

d_start() {

  [ -d "${base}" ] && cd "${base}"

  stty stop undef && stty start undef
  su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "screen -dm -S ${srnname} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
  su -c "screen -S "${srnname}" -X screen rtorrent ${options} 2>&1 1>/dev/null" ${user} | tee -a "$logfile" >&2
}

d_stop() {
    session=`getsession "$config"`
    if ! [ -s ${session}/rtorrent.lock ] ; then
        return
    fi
    pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9]//g"`
    if ps -A | grep -sq ${pid}.*rtorrent ; then # make sure the pid doesn't belong to another process
        kill -s INT ${pid}
    fi
}

getsession() {
    session=`cat "$1" | grep "^[[:space:]]*session[[:space:]]*=" | sed "s/^[[:space:]]*session[[:space:]]*=[[:space:]]*//" `
    echo $session
}

checkcnfg

case "$1" in
  start)
    echo -n "Starting $DESC: $NAME"
    d_start
    echo "."
    ;;
  stop)
    echo -n "Stopping $DESC: $NAME"
    d_stop
    echo "."
    ;;
  restart|force-reload)
    echo -n "Restarting $DESC: $NAME"
    d_stop
    sleep 1
    d_start
    echo "."
    ;;
  *)
    echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
    exit 1
    ;;
esac

exit 0

Déolé pour la longueur du post mais je voulais donner tous les détails possibles afin d'éviter des échanges inutiles.
Bien évidemment, avant de poster ce message, j'ai tenté les solutions proposées ici mais toutes ont été infructueuses.
Il me semble avoir pourtant bien suivi attentivement à la lettre et étape par étape le tuto donc je ne vois absolument pas d'où peut venir mon message d'erreur.
Je suis informaticien de formation mais mes compétences en Linux ne sont pas assez solides pour le troubleshooting.

Merci par avance en espérant qu'une personne bienveillante trouveras la solution à mon problème


PS: je suis tout à fait disposer à fournir mes identifiants de ma seedbox à un administrateur en PM si cela lui est plus utile.
Salut
Alors ce que je vois dans l'ordre

- nano /etc/nginx/nginx.conf
Il manque la fin du fichier là donc erreur de copié/collé ici ou sur le serveur, à vérifier !
(tu devrais avoir ça à la fin) :
gzip_proxied any;
    gzip_types text/plain text/css application/json  application/x-javascript text/xml application/xml application/xml+rss  text/javascript;
    gzip_vary on;

    include /etc/nginx/sites-enabled/*.conf;
}
- nano /etc/nginx/sites-enabled/rutorrent.conf
Tu as une erreur, remplace:
## début config rutorrent ##

   location /<FRE>0 {
par
## début config rutorrent ##

   location /FRE0 {
- Question pour tes noms de fichier :
nano /var/www/rutorrent/conf/users/<username>/config.php
nano /var/www/rutorrent/conf/users/<username>/plugins.ini
nano /etc/init.d/<username>-rtorrent
Sur le serveur, c’est bien ? =>
nano /var/www/rutorrent/conf/users/fred/config.php
nano /var/www/rutorrent/conf/users/fred/plugins.ini
nano /etc/init.d/fred-rtorrent
Parce que les autres noms de fichiers sont bien modifié donc j'ai un doute
Si boulette de nom :
mv /etc/init.d/<username>-rtorrent /etc/init.d/fred-rtorrent
et ainsi de suite...

- nano /var/www/rutorrent/conf/users/<username>/config.php (en plus du nom) :
Erreur de copié/collé
<?php
$topDirectory = '/home/fred';
$scgi_port = 5001<?php
$topDirectory = '/home/fred';
$scgi_port = 5001;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/FRE0';
juste mettre :
<?php
$topDirectory = '/home/fred';
$scgi_port = 5001;
$scgi_host = '127.0.0.1';
$XMLRPCMountPoint = '/FRE0';
- En cas d'erreur de nom sur <username>-rtorrent Vérifier que tu n'as pas fait la même dans crontab -e à la fin du tuto.

Une fois tout ça rectifié, redémarre rtorrent et nginx ou reboot le tout et dis nous si y'a du mieux.
Ex.
Bonjour à tous,

Tout d'abord, merci ex_rat pour ta réponse rapide, fonctionnelle et d'être aussi matinale

Tout fonctionne nickel !!😀🆒

Pour toutes les erreurs de copier-coller, elle n'étaient présentes que ici, dans mes fichiers conf tout était bon (pour config.php, nginx.conf)

Concernant l'emplacement de ces fichiers avec le bon user, tout était ok encore une fois (pour nano /var/www/rutorrent/conf/users/fred/config.php, nano /var/www/rutorrent/conf/users/fred/plugins.ini, nano /etc/init.d/fred-rtorrent)

Finalement, il y avait bien une erreur à ce niveau : nano /etc/nginx/sites-enabled/rutorrent.conf

Il y avait comme tu l'as remarqué :
    ## début config rutorrent ##

    location /<FRE0> {
        include scgi_params;
        scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/use$
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_fred";
    }
A la place de : Omission du retrait des crochets entre FRE0
    ## début config rutorrent ##

    location /FRE0 {
        include scgi_params;
        scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/use$
        auth_basic "seedbox";
        auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_fred";
    }
Puis j'ai redémarré les services :

*fred-rtorrent
*nginx


Mon problème semblait venir juste de cette petite erreur d'inadvertance... Comme quoi, même si on semble s'appliquer à la tâche et bien faire, on n'est pas exempt de commettre des fautes

Merci mille fois car depuis 5 jours je bataillais pour faire fonctionner ma seedbox


PS: Pour une prise en compte du ratio sur T411, il suffit bien juste d'ajouter dans la partie cookie de rutorrent ces infos (www.t411.me|uid=XXX😜ass=XXX;authKey=XXX) en remplaçant les XXX par les bonnes infos me concernant et se trouvant dans les cookies de mon navigateur (Firefox entre autre) ? Car je n'ai pas l'impression que mon ratio bouge... Merci par avance

PS2: je ne pourrai vérifier que ce soir tard car je ne serai pas capable de le faire dans la journée ;🙂
Cool

Pour T411, j'ai jamais bricolé quoi que ce soit à par leur signaler que j'avais une box mais j'utilise pas vraiment donc ça à peut-être changé et je voudrais pas t'induire en erreur.
Ex.
Merci quand même

Mais finalement j'ai vu que mon ratio avait augmenté mais de seulement 0,01% alors que j'ai uploaded 10x la taille du fichier en question...

J'espère que quelqu'un saura m'apporter les réponses à ça avec les bons paramètres

Merci encore
Bonsoir,

Depuis hier j'ai un petit problème avec cakebox. J'ai :

Une erreur est survenue (Erreur 500)

Une idée ??

Merci d'avance

Ps: J'ai restart nginx mais ça n'a rien changé.