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!
A member called meLIanTQ seems have the solution.

You must use a socket that listening in a port and no a socket that listening in a file.

For fix, you do:

-Stop PHP : service php5-fpm stop
-Edit the file : /etc/php5/fpm/pool.d/www.conf
-Replace listen = /var/run/php5-fpm.sock by listen = 127.0.0.1:9000
-Uncomment three lines in the same file:
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
-Reboot php (service php5-fpm restart)

Now, let's to nginx

-Stop nGinx: service nginx stop
-Edit /etc/nginx/conf.d/php
-Replace fastcgi_pass unix:/var/run/php5-fpm.sock; by fastcgi_pass 127.0.0.1:9000;
And finally, reboot nginx (service nginx restart)

This lines should fix your trouble
BXT wrote:A member called meLIanTQ seems have the solution.

You must use a socket that listening in a port and no a socket that listening in a file.

For fix, you do:

-Stop PHP : service php5-fpm stop
-Edit the file : /etc/php5/fpm/pool.d/www.conf
-Replace listen = /var/run/php5-fpm.sock by listen = 127.0.0.1:9000
-Uncomment three lines in the same file:
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
-Reboot php (service php5-fpm restart)

Now, let's to nginx

-Stop nGinx: service nginx stop
-Edit /etc/nginx/conf.d/php
-Replace fastcgi_pass unix:/var/run/php5-fpm.sock; by fastcgi_pass 127.0.0.1:9000;
And finally, reboot nginx (service nginx restart)

This lines should fix your trouble 🙂
It's working
[07.05.2014 21:27:51] WebUI started.
[07.05.2014 21:27:54] FILE MANAGER ignited
Thanks to You and to meLIanTQ
ps. ex_rat you should add this fix to your script if possible.
Effectivement je viens d'avoir cette erreur après avoir mis a jour mon serveur.
Et le fix de meLIanTQ vient de résoudre le soucis.

Merci pour le partage.
Guys I have big problem. After I restarted my local seedbox, rutorrent has no connection to rtorrent. How to solve this ?
Check if rtorrent is still launch?

ps -aux | grep rtorrent with the user that launch it.
Everything is fine. I just installed updated version of Script d'installation automatique ruTorrent & Seedbox-Manager. Thanks ex_rat for update.
EDIT. If anyone will be have the same problem use this method posted by ex_rat
killall --user <username> rtorrent
killall --user <username> screen
rm /home/<username>/.session/rtorrent.lock

/etc/init.d/<username>-rtorrent start
or
service <username>-rtorrent start
un an plus tard
Bonjour !
(Désolé si je ne poste pas au bon endroit si tel est le cas)

J'ai eu une erreur 502 aussi, et je ne sais pas comment la résoudre...
[10.09.2015 15:18:55] Bad response from server: (502 [error,getplugins]) Bad Gateway
[10.09.2015 15:18:55] 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> 
Je suis un noob, et je ne sais pas quoi faire

Je viens de check le error log, voici ce qu'il contient...
2015/09/10 15:06:50 [error] 2172#0: *209469 recv() failed (104: Connection reset by peer) while reading respon$
2015/09/10 15:13:27 [error] 2170#0: *209516 recv() failed (104: Connection reset by peer) while reading respon$
2015/09/10 15:14:58 [error] 29369#0: *4 recv() failed (104: Connection reset by peer) while reading response h$
2015/09/10 15:15:58 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:16:09 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:16:19 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:16:29 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:16:39 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:16:49 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:16:59 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:17:09 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:17:20 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:17:30 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:17:40 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:17:50 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:18:00 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:18:10 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:18:20 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$
2015/09/10 15:18:30 [crit] 29369#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or dir$

J'ai 2To de données dessus, ça m'embêterait de ré-installer
Bon bah finalement, j'ai tout relancé :
service php5-fpm restart
service nginx restart
service ssh restart
service jimtor-rtorrent restart
Et ça remarche, merci aux nombreux ( ) qui m'ont aidé
Salut
C'est un forum d'entraide, pas une hotline, si personne n'a d'idées ou de réponses, bah faut être patient...
Ex.
4 mois plus tard
Bonjour j'ai la même erreur :
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>
[13.01.2016 13:52:44] 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>
[13.01.2016 13:54:50] 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> 

Merci à -----arckosfr-----

Problème résolu, solution : vider le cache du navigateur