Dynamic calls to the server throws (104: Connection reset by peer) while reading response header from upstream.How to fix this error.

February 15, 2017 506 views
Nginx Node.js Ubuntu

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
Cloud-init v. 0.7.5 running 'modules:config' at Sun, 22 Jan 2017 11:53:15 +0000. Up 10.82 seconds.

  • Stopping Handle applying cloud-config^[[74G[ OK ] ^[[32m[PM2] ^[[39mSpawning PM2 daemon ^[[32m[PM2] ^[[39mPM2 Successfully daemonized ^[[32m[PM2] ^[[39mResurrecting ^[[32m[PM2] ^[[39mRestoring processes located in /root/.pm2/dump.pm2 ^[[31m[PM2][ERROR] ^[[39mNo processes saved; DUMP file doesn't exist
  • Restoring resolver state... ^[[128G ^M^[[122G[ OK ]
  • Starting authentication failure monitor fail2ban ^[[128G ^M^[[122G[ OK ]
  • Stopping System V runlevel compatibility^[[74G[ OK ]

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

1 comment
Be the first one to answer this question.