How to fix nginx error logs

0

Hi,

We need urgent help. We are getting the following nginx error logs while running our Android app which is keeping the app loading time too high. And very frequently app is getting down. The logs are mentioned here.

  1. [error] 4537#0: *140191 recv() failed (104: Connection reset by peer) while reading response header from upstream,
  2. [error] 4538#0: *140575 recv() failed (104: Connection reset by peer) while reading response header from upstream,
  3. [error] 4537#0: *140520 recv() failed (104: Connection reset by peer) while reading response header from upstream,
  4. [error] 4538#0: *140587 recv() failed (104: Connection reset by peer) while reading response header from upstream,
  5. [error] 4539#0: *140944 recv() failed (104: Connection reset by peer) while reading response header from upstream,
  6. [error] 4540#0: *140942 recv() failed (104: Connection reset by peer) while reading response header from upstream,
  7. [error] 4538#0: *141259 recv() failed (104: Connection reset by peer) while reading response header from upstream,
  8. [error] 4538#0: *141241 recv() failed (104: Connection reset by peer) while reading response header from upstream,

Appreciate your urgent attention on above errors.

Thank in advance,

asked a year ago235 views
1 Answer
0

What language do you use for your backend? If it's PHP, you may be able to fix the problem by reading this https://serverfault.com/questions/543999/104-connection-reset-by-peer-while-reading-response-header-from-upstream-nginx

usually it's about nginx not being able to connect to the upstream (your backend application)

try to restart your backend, if the problem persists, look at the logs of those with whom you launched your backend, this one may not have enough RAM, in which case you will have an error 137

Did I help you?

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions