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,

질문됨 일 년 전246회 조회
1개 답변
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?

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠