failed (104: Connection reset by peer) while proxying connection

Mauro Tridici mauro.tridici at cmcc.it
Fri May 21 09:16:46 UTC 2021


Dear Users,

I’m noticing a these error messages in /var/log/nginx/error.log.

021/05/21 10:57:25 [error] 21145#0: *7 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 10:58:07 [error] 21145#0: *9 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 10:58:46 [error] 21145#0: *11 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 10:59:19 [error] 21145#0: *13 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 10:59:57 [error] 21145#0: *15 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 11:00:55 [error] 21145#0: *17 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 11:01:38 [error] 21145#0: *19 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 11:02:33 [error] 21145#0: *21 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 11:03:06 [error] 21145#0: *23 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 11:03:39 [error] 21145#0: *25 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321
2021/05/21 11:04:33 [error] 21145#0: *27 recv() failed (104: Connection reset by peer) while proxying connection, client: public_ip, server: 0.0.0.0:5044, upstream: "private_ip:5044", bytes from/to client:321/7709, bytes from/to upstream:7709/321

Basically, it seems that the error is related to a particular (authorized) IP address.
This remote FILEBEAT client is sending data to LOGSTASH server via NGINX.

Do you some suggestion to fix this annoying issue?

Thank you in advancee,
Mauro


More information about the nginx mailing list