fabio icon indicating copy to clipboard operation
fabio copied to clipboard

Fatal Error setsockopt: connection reset by peer

Open dmarov opened this issue 5 years ago • 2 comments

I've been trying to get fabio working in production. I've tested it with curl and It works great. But when i redirected http trafic to fabio it crashes with fatal error.

2019/01/25 10:17:41 [FATAL] set tcp 192.168.0.1:9999->5.200.56.244:43273: setsockopt: connection reset by peer
2019/01/25 10:17:41 [INFO] consul: Deregistering "fabio"
2019/01/25 10:17:41 [INFO] consul: Deregistering fabio
2019/01/25 10:17:41 [FATAL] ui: http: Server closed

I also tried to run it with daemon

daemon -r fabio

so it starts again after crash. It works but i don't think this is right. Output is:

2019/01/25 10:25:00 [ERR] Failed to read proxy prefix: read tcp 192.168.0.1:9999->5.200.56.244:57638: read: connection reset by peer
2019/01/25 10:25:02 [ERR] Failed to read proxy prefix: read tcp 192.168.0.1:9999->5.200.56.244:57663: read: connection reset by peer
2019/01/25 10:25:04 [ERR] Failed to read proxy prefix: read tcp 192.168.0.1:9999->5.200.56.244:57673: read: connection reset by peer
2019/01/25 10:25:06 [FATAL] set tcp 192.168.0.1:9999->5.200.56.244:57674: setsockopt: connection reset by peer

root@gateway:~ # fabio --version 1.5.9

dmarov avatar Jan 25 '19 07:01 dmarov

I have the same problem. We had changed and added a number of service when we got this:

Sep 27 14:07:34 proxy fabio[79651]: 2022/09/27 14:07:34 [FATAL] set tcp 127.0.0.1:9999->172.16.2.24:45630: setsockopt: connection reset by peer
Sep 27 14:07:34 proxy fabio[79651]: 2022/09/27 14:07:34 [INFO] consul: Deregistering "fabio"
Sep 27 14:07:34 proxy consul[484]: 2022-09-27T14:07:34.907+0200 [INFO]  agent: Deregistered service: service=fabio-proxy.hq.ismobile.com-9998

So this shuts fabio down.

lastcmaster avatar Sep 27 '22 12:09 lastcmaster

I have the same problem. 2023/05/26 01:34:01 [ERROR] read tcp 10.111.45.112:32283->10.111.45.35:8020: read: connection reset by peer

vampireslove avatar Jul 27 '23 03:07 vampireslove