Search code examples
pythontwistedbuildbottwisted.webtwisted.internet

How to fix Twisted python Connection to the other side was lost in a non-clean fashion?


I am using buildbot as my CI. Its is built using twisted python.

My build worker is getting lost approximately after 10 minutes.

My network is fine, but wanted to know why my worker is getting lost.

I want to know in what circumstances we will see this kind of error in twisted python.

Error:

remoteFailed: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion.

Solution

  • If you see deconnections, and there is no clue in both twisted.log of the master and the worker, then your problem is the networking.

    You may have some firewall in between which close long running tcp connections or something.

    I would advise to run tcpdump at both sides, and see who is sending the RST packet