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,

preguntada hace un año246 visualizaciones
1 Respuesta
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?

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas