MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: zhenhai on 2016-03-04, 04:20:14

Title: php-fpm do not work on slave
Post by: zhenhai on 2016-03-04, 04:20:14
after I add a domain for one client located in slave server, I found that no client_name.conf exist in /etc/php-fpm.d/ directory. 
Title: Re: php-fpm do not work on slave
Post by: zhenhai on 2016-03-04, 04:28:50
after I add a domain for one client located in slave server, I found that no client_name.conf exist in /etc/php-fpm.d/ directory.
I debug the code,and I found that
the call stack as follow:
web__lib.php ->createPhpFpmConfig ->getUserList

the issue is getUserList return empty array
Title: Re: php-fpm do not work on slave
Post by: MRatWork on 2016-03-04, 05:07:15
Do you mean inside /etc/php-fpm.d/ ?.
Title: Re: php-fpm do not work on slave
Post by: zhenhai on 2016-03-04, 05:24:56
Do you mean inside /etc/php-fpm.d/ ?.

YES
Title: Re: php-fpm do not work on slave
Post by: zhenhai on 2016-03-04, 05:33:30
it seems that  function getUserList  excute
"select nname,cttype from client where syncserver = 'slave_ip'"
from mysql server located in salve instead of master.
Title: Re: php-fpm do not work on slave
Post by: zhenhai on 2016-03-04, 05:37:46
it seems that  function getUserList  excute
"select nname,cttype from client where syncserver = 'slave_ip'"
from mysql server located in salve instead of master.

query from  mysql located in slave  return empty array, but query from master is right
Title: Re: php-fpm do not work on slave
Post by: MRatWork on 2016-03-05, 04:00:33
I will investigate it.