Service Unavailable

santovito

Verified User
Joined
Nov 23, 2008
Messages
143
Hi everyone,

I've a problem with a customer: sometime in a part of his website (piwik admin cp) there is there is this error:

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

If I type:
systemctl restart php-fpm55

problem was fixed for sometime.

how can I fix this problem permanently?

Thank You

Vito
 
Hello,

To fix it permanently you should read apache/nginx error logs and see what is wrong. If you are short of RAM then you should either optimize your server or add more RAM.

There is nothing else I could say regarding your issue without knowing details. I need to see logs so I could help you further.
 
Hi zEitEr,

in the logs there are:

=========
[Fri Apr 03 11:09:00.274958 2015] [proxy_fcgi:error] [pid 13315:tid 140416162686720] [client xx.xx.xx.xx:52856] AH01067: Failed to read FastCGI header
[Fri Apr 03 11:09:00.274997 2015] [proxy_fcgi:error] [pid 13315:tid 140416162686720] (104)Connection reset by peer: [client xx.xx.xx.xx:52856] AH01075: Error dispatching request to :
[Fri Apr 03 11:11:07.965012 2015] [proxy_fcgi:error] [pid 13315:tid 140416036796160] [client xx.xx.xx.xx:58897] AH01067: Failed to read FastCGI header
[Fri Apr 03 11:11:07.965054 2015] [proxy_fcgi:error] [pid 13315:tid 140416036796160] (104)Connection reset by peer: [client xx.xx.xx.xx:58897] AH01075: Error dispatching request to :
[Fri Apr 03 11:11:09.832001 2015] [proxy_fcgi:error] [pid 13315:tid 140416187864832] [client xx.xx.xx.xx:58898] AH01067: Failed to read FastCGI header
[Fri Apr 03 11:11:09.832061 2015] [proxy_fcgi:error] [pid 13315:tid 140416187864832] (104)Connection reset by peer: [client xx.xx.xx.xx:58898] AH01075: Error dispatching request to :
[Fri Apr 03 11:11:32.925097 2015] [proxy_fcgi:error] [pid 13315:tid 140416020010752] [client xx.xx.xx.xx:58899] AH01067: Failed to read FastCGI header
[Fri Apr 03 11:11:32.925135 2015] [proxy_fcgi:error] [pid 13315:tid 140416020010752] (104)Connection reset by peer: [client xx.xx.xx.xx:58899] AH01075: Error dispatching request to :
[Fri Apr 03 11:11:34.136651 2015] [proxy_fcgi:error] [pid 13315:tid 140416070366976] [client xx.xx.xx.xx:58900] AH01067: Failed to read FastCGI header
[Fri Apr 03 11:11:34.136718 2015] [proxy_fcgi:error] [pid 13315:tid 140416070366976] (104)Connection reset by peer: [client xx.xx.xx.xx:58900] AH01075: Error dispatching request to :
[Fri Apr 03 12:53:59.963353 2015] [proxy_fcgi:error] [pid 13315:tid 140416112330496] [client xx.xx.xx.xx:59787] AH01067: Failed to read FastCGI header
[Fri Apr 03 12:53:59.963391 2015] [proxy_fcgi:error] [pid 13315:tid 140416112330496] (104)Connection reset by peer: [client xx.xx.xx.xx:59787] AH01075: Error dispatching request to :
[Fri Apr 03 12:54:01.581944 2015] [proxy_fcgi:error] [pid 13315:tid 140416238221056] [client xx.xx.xx.xx:59788] AH01067: Failed to read FastCGI header
[Fri Apr 03 12:54:01.581989 2015] [proxy_fcgi:error] [pid 13315:tid 140416238221056] (104)Connection reset by peer: [client xx.xx.xx.xx:59788] AH01075: Error dispatching request to :
[Fri Apr 03 13:31:55.283168 2015] [proxy_fcgi:error] [pid 13315:tid 140416020010752] [client xx.xx.xx.xx:60934] AH01067: Failed to read FastCGI header
[Fri Apr 03 13:31:55.283210 2015] [proxy_fcgi:error] [pid 13315:tid 140416020010752] (104)Connection reset by peer: [client xx.xx.xx.xx:60934] AH01075: Error dispatching request to :
[Fri Apr 03 14:19:58.208055 2015] [proxy_fcgi:error] [pid 13314:tid 140416333743872] [client xx.xx.xx.xx:58815] AH01067: Failed to read FastCGI header
===============

but I don't know if this error is the effective cause of "service unaviable" or this is different problem
 
It looks like a similar issue I had in the past, I'm not sure of the exact cause but I believe it was a problem with OPcache in combination with PHP-FPM (and probably some other factors). If you have OPcache enabled in CB try to disable it, rebuild php and check if you still get the error.

Also keep an eye on your /var/log/messages as segfaults might show up when you get the error, e.g:
Code:
kernel: [4120948.221885] php-fpm56[5059]: segfault at ffffffff ip 00000000007c9b66 sp 00007fff615be988 error 4 in php-fpm56[400000+a09000]

You can somewhat check what caused the segfault by using 'addr2line -e filename address', so for the log above it would be:
Code:
addr2line -e /usr/local/php56/bin/php56 00000000007c9b66
 
Back
Top