Author Topic: Error php-fpm whmcs 503 Service Unavailable  (Read 12699 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error php-fpm whmcs 503 Service Unavailable
« on: May 26, 2020, 12:50:50 AM »
I have a serious problem in my whmcs when using php-fpm.

I updated my server so that the webservice forces use for php-fpm, I use the pro license. In the google-chrome inspection console it talks about error 503, in the error log it reports the following error:

  [proxy_fcgi: error] [pid 48744: tid 140059009345280] (104) Connection reset by peer: [client] AH01075: Error dispatching request to:

Please someone give me a light on this problem I have tried several solutions like increasing max_children, request_terminate_timeout and apache proxytimeout but nothing has changed.
Thank you in advance for your help.

Offline
****
Re: Error php-fpm whmcs 503 Service Unavailable
« Reply #1 on: May 26, 2020, 01:01:14 AM »
systecmctl start php-fpm(version)  ex: php-fpm73
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: Error php-fpm whmcs 503 Service Unavailable
« Reply #2 on: May 26, 2020, 11:40:09 AM »
Hello friend,

sorry if i didn't explain it properly. The problem is not that php-fpm starts or not, whmcs runs practically normal, it only has problems in some functions, the 503 return I have is when I try to execute, for example, the suspension of an account, the page is in loop with no return none, only on the chrome inspection console.

Offline
*
Re: Error php-fpm whmcs 503 Service Unavailable
« Reply #3 on: June 02, 2020, 08:43:57 PM »
Hi guys,

Here is the solution to my problem, if someone has the same question as mine.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

In short, my problem was not in navigating whmcs, but in some functions such as suspension and account creation. The service was actually executed on the server but whmcs did not receive the return.


The error log returned the following:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

[Tue Jun 02 15:51:28.730550 2020] [proxy_fcgi:error] [pid 41392:tid 140348181440256] [client 1.1.1.1:37024] AH01067: Failed to read FastCGI header, referer: https://www.dominio.com.br/whmcs/admin/clientsservices.php?userid=1
[Tue Jun 02 15:51:28.730589 2020] [proxy_fcgi:error] [pid 41392:tid 140348181440256] (104)Connection reset by peer: [client 1.1.1.1:37024] AH01075: Error dispatching request to : , referer: https://www.dominio.com.br/whmcs/admin/clientsservices.php?userid=1

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

And my browser reported an error on the inspection - 503 service unavailable.

Practically whmcs was not receiving the response from the server because the webservice service was restarted at the time of the request, I don't know why but this is a php-fpm configuration.

Several forums said to increase the webservice timeout the request_timeout of the php-fpm pool but the only directive that needs to be changed is process_control_timeout.

just add this in php-fpm.conf
I added 10s to the value and it worked normal.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
before:
include = /opt/alt/php-fpm73/usr/etc/php-fpm.d /*.conf

after:
process_control_timeout = 10s
include = /opt/alt/php-fpm73/usr/etc/php-fpm.d /*.conf
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Hope this helps.



Offline
*
Re: Error php-fpm whmcs 503 Service Unavailable
« Reply #4 on: January 13, 2021, 04:42:31 PM »
I have been experiencing the same issue.

Code: [Select]
process_control_timeout = 10s
Setting the above in php-fpm.conf partially fixed the issue. Now suspending/unsuspending account through WHMCS works fine. But still seeing the following error when trying to accept new order (creating new hosting account) from WHMCS.

Code: [Select]
[Wed Jan 13 21:14:22.441491 2021] [proxy_fcgi:error] [pid 19466:tid 140073714579200] [client xx.xx.xx.xx:52568] AH01067: Failed to read FastCGI header, referer: https://whmcsdomain.com/admin/orders.php?action=view&id=3
[Wed Jan 13 21:14:22.441570 2021] [proxy_fcgi:error] [pid 19466:tid 140073714579200] (104)Connection reset by peer: [client xx.xx.xx.xx:52568] AH01075: Error dispatching request to : , referer: https://whmcsdomain.com/admin/orders.php?action=view&id=3

Can anyone please suggest how to fix this?

Offline
*****
Re: Error php-fpm whmcs 503 Service Unavailable
« Reply #5 on: January 14, 2021, 09:49:15 AM »
Hello

Increase the wait time a little more and try again, remember to restart the php for it to take the changes