Some time back, the root user password has been changed.After that while contacting nginx server, the connection was not established. Restarting the php5-fpm has resolved that issue.But we are getting ‘Connection reset by peer’ error while making post calls to the server. We are using node js server in the backend.
boot.log shows :
You are required to change your password immediately (root enforced) su: Authentication token is no longer valid; new one required (Ignored) Cloud-init v. 0.7.5 running ‘modules:config’ at Sun, 22 Jan 2017 11:53:15 +0000. Up 10.82 seconds.
php5-fpm log shows:
[15-Feb-2017 06:40:05] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful
[15-Feb-2017 06:40:16] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful
[15-Feb-2017 15:21:29] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @Seetha93,
I know this question is bit old in terms of how fast stuff are evolving, but I still think it’s good to have it cleared up, so, looking for answers on the web, I came up with the following three possibilities:
The error provided suggests the issue is coming from PHP-FPM. You’ll need to enable the catch_workers_output
module. This can be set
in /etc/php5/fpm/pool.d/www.conf
. As soon as you do, restart the service and check your php5-fpm.log. Check the log and it should provide more descriptive errors.
Regards, KDSys
nginx/error.log shows :
recv() failed (104: Connection reset by peer) while reading response header from upstream, client: x.x.x.x, server: www.xxxx.com, request: “POST /api/auth/register HTTP/1.1”, upstream: “http://127.0.0.1:8080/api/some-api/apiName”, host: “www.xxxxx.com”, referrer: “https://www.xxxx.com/someService”