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,

feita há um ano246 visualizações
1 Resposta
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 há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas