• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue recv() failed (104: Connection reset by peer) while reading response header from upstream

doubledeckcafe

New Pleskian
Hi we are getting this error a couple of times since we moved our client's website to a new server.

-----------------------------------------------------------------------------------------------------------
Source:
nginx error

Message:
11335#0: *5300222 recv() failed (104: Connection reset by peer) while reading response header from upstream ngi
-----------------------------------------------------------------------------------------------------------

I would like to know what is exactly happening and what we can do to prevent this error.

For your information the PHP settings are:
-------------------------------------------------------------------------------------------------------------
PHP version : 5.6.30 run PHP as FPM application served by nginx
memory limit 128M
max_execution_time 60 (It was 30 this morning but since this error we have changed to 60)
max_input_time : 60
pos_max_size : 8M
upload_max_filesize 2M
opcache.enable on
-----------------------------------------------------------------------------------------------------------

Thanks in advance
 
Please check the Apache error_log file at the same time when the error is recorded in the nginx log file. There should be a PHP error logged. The most likely problem is that a PHP script does not produce any output, so that the connection to the backend times out. The second likely reason is that 127.0.0.1 and the public IPv4 address were not whitelisted in the Plesk Fail2Ban configuration, so that randomly an IP block for localhost or the server's own IPv4 is triggered.
 
Back
Top