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,

已提問 1 年前檢視次數 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?

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南