Bonjour a tous.
Voila déjà plusieurs semaines que j utilise sans souci un Kimsufi sous Debian 7.5 stable (Wheezy) (64bits) installé avec le script automatique d'ex_rat (
http://mondedie.fr/d/5399 ) et deux user configurés.
Tout fonctionnait a merveille jusqu'à hier. Sans aucune manipulation ou action de quelque nature, j ai cette erreur qui est apparue :
[11.01.2015 10:34:36] WebUI started.
[11.01.2015 10:34:37] FILE MANAGER ignited
[11.01.2015 10:34:37] 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>
Bon pas trés doué, je cherche un peu et je tombe sur ce sujet qui traite du même souci :
http://mondedie.fr/d/5413 .
et je tente le Fix indiqué :
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)
nano /etc/php5/fpm/pool.d/www.conf :
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
; - 'chdir'
; - 'php_values'
; - 'php_admin_values'
; When not set, the global prefix (or /usr) applies instead.
; Note: This directive can also be relative to the global prefix.
; Default Value: none
;prefix = /path/to/pools/$pool
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
user = www-data
group = www-data
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all IPv4 addresses on a
; specific port;
; '[::]:port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1:9000
; Set listen(2) backlog.
; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
;listen.backlog = 65535
; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
; must be separated by a comma. If this value is left blank, connections will be
; accepted from any ip address.
; Default Value: any
;listen.allowed_clients = 127.0.0.1
; Specify the nice(2) priority to apply to the pool processes (only if set)
; The value can vary from -19 (highest priority) to 20 (lower priority)
; Note: - It will only work if the FPM master process is launched as root
; - The pool processes will inherit the master process priority
; unless it specified otherwise
pm.max_children = 5
...
nano /etc/nginx/conf.d/php :
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
J'ai aussi suivi ce fix :
http://mondedie.fr/d/5427
Mais rien y change.
Un peu dépité, je décide de tout réinstaller ce matin, toujours avec le script automatique, ré-applique le fix, mais je retrouve la même erreur.
Du coup je me décide a venir chercher un peu d'aide.
je vous mets mes fichiers d'error sous le user principal :
nano /var/log/nginx/rutorrent-error.log :
2015/01/11 09:30:07 [error] 4131#0: *20 FastCGI sent in stderr: "PHP message: PHP Warning: fopen(/var/www/rutorrent/share/users/uxxx/settings/uisettings.json): failed to open stream: No such file or directory in /var/www/rutorrent/php/getsettings.php on line 7" while reading response header from upstream, client: 88.167.XXX.XX, server: _, request: "POST /rutorrent/php/getsettings.php HTTP/1.1", upstream:"fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:30:08 [error] 4132#0: *14 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 88.167.XXX.XX, server: _, request: "POST /UXXX HTTP/1.1", upstream: "scgi://127.0.0.1:5001", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:47:43 [error] 4131#0: *159 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 88.167.XXX.XX, server: _, request: "POST /UXXX HTTP/1.1", upstream: "scgi://127.0.0.1:5001", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:50:31 [error] 4133#0: *206 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 88.167.XXX.XX, server: _, request: "POST /UXXX HTTP/1.1", upstream: "scgi://127.0.0.1:5001", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:51:21 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170741 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:51:31 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170742 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:51:41 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170743 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:51:51 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170744 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:52:01 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170745 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:52:11 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170746 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:52:21 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170747 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:52:31 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170748 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:52:41 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170749 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:52:51 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170750 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:53:01 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170751 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:53:11 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170752 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:53:21 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170753 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:53:31 [crit] 4133#0: *212 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 88.167.XXX.XX, server: _, request: "GET /rutorrent/plugins/diskspace/action.php?_=1420966170754 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
2015/01/11 09:54:46 [error] 10027#0: *5 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 88.167.XXX.XX, server: _, request: "POST /UXXX HTTP/1.1", upstream: "scgi://127.0.0.1:5001", host: "37.187.XXX.XXX", referrer: "https://37.187.XXX.XXX/rutorrent/"
nano /var/log/nginx/error.log :
2015/01/11 09:23:55 [emerg] 14148#0: open() "/etc/nginx/conf.d/php-manager" failed (2: No such file or directory) in /etc/nginx/sites-enabled/rutorrent.conf:102
2015/01/11 09:26:42 [emerg] 17520#0: unexpected end of file, expecting "}" in /etc/nginx/sites-enabled/rutorrent.conf:109
Voilà, j avoue ne plus savoir trop quoi faire.
Merci de votre aide et bon Dimanche a tous.