Salut à tous !

J'ai un serveur dédié chez Online.net sous Debian 7 AMD64, et j'ai suivis ce tuto pour me faire une seedbox.
Lorsque j'essaye de me loguer dessus, le journal m'affiche ça :

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 donc redémarré rtorrent avec service <username>-rtorrent restart

Et là le journal m'affiche dans un carré rouge qui est resté à peine 2 seconde et dans le journal ceci :
Bad response from server: (502 [error,list]) <!DOCTYPE html> <html> <head> <title>Error</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>An error occurred.</h1> <p>Sorry, the page you are looking for is currently unavailable.<br/> Please try again later.</p> <p>If you are the system administrator of this resource then you should check the <a href="http://nginx.org/r/error_log">error log</a> for details.</p> <p><em>Faithfully yours, nginx.</em></p> </body> </html>
Je ne pense pas être le premier à qui cela arrive et j'ai surement fais un erreur de syntaxe quelque part mais où ? J'ai vérifié tous mes fichiers de configuration.
Salut
Regardes ton fichier de log déjà, ça devrait te donner une piste:
nano /var/log/nginx/rutorrent-error.log
et vérifie tout les endroits où tu devrais éditer une numéro de port {500x} pour commencer
Ex.
Pour être sur de ne faire aucunes erreur, j'ai formaté mon serveur et réinstallé un Debian 7 "propre".
J'ai refais le tuto de A à Z et cette fois ci j'ai ça dans le journal :

[03.05.2014 20:08:24] WebUI started.
[03.05.2014 20:08:24] Bad response from server: (500 [error,getplugins])
[03.05.2014 20:08:24] Bad response from server: (500 [error,getuisettings])
ex_rat wrote:Regardes ton fichier de log déjà, ça devrait te donner une piste:
nano /var/log/nginx/rutorrent-error.log
Bizarrement lorsque j'ouvre Putty et me log, Putty se ferme d'un coup dès que j'entre le mdp de mon user
C'est normal pour Putty, ton utilisateur rutorrent n'a pas accès en ssh directement par sécurité.
Connecte toi en root pour pouvoir regarder tes logs et vérifier tes fichiers.
Ex.
hi. i have the same problem with these errors:
[07.05.2014 12:52:30] WebUI started.
[07.05.2014 12:52:30] Bad response from server: (502 [error,getplugins]) <!DOCTYPE html> <html> <head> <title>Error</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>An error occurred.</h1> <p>Sorry, the page you are looking for is currently unavailable.<br/> Please try again later.</p> <p>If you are the system administrator of this resource then you should check the <a href="http://nginx.org/r/error_log">error log</a> for details.</p> <p><em>Faithfully yours, nginx.</em></p> </body> </html>
[07.05.2014 12:52:30] Bad response from server: (502 [error,getuisettings]) <!DOCTYPE html> <html> <head> <title>Error</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>An error occurred.</h1> <p>Sorry, the page you are looking for is currently unavailable.<br/> Please try again later.</p> <p>If you are the system administrator of this resource then you should check the <a href="http://nginx.org/r/error_log">error log</a> for details.</p> <p><em>Faithfully yours, nginx.</em></p> </body> </html> 

i used script from http://mondedie.fr/d/5399
my logs:
/var/log/nginx/rutorrent-error.log
2014/05/07 05:52:29 [crit] 46619#0: *3 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.189.1, server: _, request: "GET /rutorrent/php/getplugins.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.189.136", referrer: "https://192.168.189.136/rutorrent/"
2014/05/07 05:52:29 [crit] 46619#0: *4 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.189.1, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.189.136", referrer: "https://192.168.189.136/rutorrent/"
/var/log/nginx/error.log
2014/05/07 05:35:55 [emerg] 27135#0: unexpected end of file, expecting "}" in /etc/nginx/sites-enabled/rutorrent.conf:65
2014/05/07 05:51:12 [emerg] 46490#0: unexpected end of file, expecting "}" in /etc/nginx/sites-enabled/rutorrent.conf:75
ps. I tested this script on VMware Player 6 with Debian 7 64-bits (root)
thank you for any help.
Hello,
Did you check permissions on your files ?
hi,

post this file : /etc/nginx/sites-enabled/rutorrent.conf
The script has problems with virtualization, sorry but no solution for php5-fpm error (for this moment).
Ex.
ex_rat wrote:The script has problems with virtualization, sorry but no solution for php5-fpm error (for this moment).
Ex.
i see.
@corentin80
/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;
        client_max_body_size 10M;
        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;
                log_not_found off;
        }
        ## début config accueil serveur ##
        location ^~ / {
        root /var/www/base;
        include /etc/nginx/conf.d/php;
        include /etc/nginx/conf.d/cache;
        satisfy any;
        allow all;
        }
        ## fin config accueil serveur ##
        ## début config rutorrent ##
        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 seedbox-manager ##
        location ^~ /seedbox-manager {
            alias /var/www/seedbox-manager/public;
            include /etc/nginx/conf.d/php-manager;
            include /etc/nginx/conf.d/cache;
        }
        ## fin config seedbox-manager ##
        ## user configuration
        location /ADMIN {
            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_admin";
        }
}
no errors i think, perhaps a result of the problem with the virtualization
basher wrote:ok. do you know any good tutorial with rtorrent that i could use on virtual debian ?
not sure but the "old" tutorial with lighttpd here.... http://mondedie.fr/d/81
Ex.
can you test this configuration ?
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;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
}
Magicalex wrote:can you test this configuration ?
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;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
}
still the same problem
[07.05.2014 14:11:40] WebUI started.
[07.05.2014 14:11:40] Bad response from server: (502 [error,getplugins]) <!DOCTYPE html> <html> <head> <title>Error</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>An error occurred.</h1> <p>Sorry, the page you are looking for is currently unavailable.<br/> Please try again later.</p> <p>If you are the system administrator of this resource then you should check the <a href="http://nginx.org/r/error_log">error log</a> for details.</p> <p><em>Faithfully yours, nginx.</em></p> </body> </html>
[07.05.2014 14:11:40] Bad response from server: (502 [error,getuisettings]) <!DOCTYPE html> <html> <head> <title>Error</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>An error occurred.</h1> <p>Sorry, the page you are looking for is currently unavailable.<br/> Please try again later.</p> <p>If you are the system administrator of this resource then you should check the <a href="http://nginx.org/r/error_log">error log</a> for details.</p> <p><em>Faithfully yours, nginx.</em></p> </body> </html> 
you have restart nginx?
service nginx restart
Magicalex wrote:you have restart nginx?
service nginx restart
after any changes, yes
Send you your error_log provide by nginx plz!