pabot icon indicating copy to clipboard operation
pabot copied to clipboard

[WinError 10061] No connection could be made because the target machine actively refused it

Open mate0515 opened this issue 4 years ago • 3 comments

Pabot Version: 2.1.0 RobotFramework Version: 3.2.2 Python 3.7.4

This error randomly shows up when running tests with pabot from Jenkins:

Traceback (most recent call last): File "C:\Python37\lib\site-packages\pabot\pabot.py", line 220, in execute_and_wait_with item.execution_item.type != "test", File "C:\Python37\lib\site-packages\pabot\pabot.py", line 294, in _try_execute_and_wait is_ignored = _is_ignored(plib, caller_id) File "C:\Python37\lib\site-packages\pabot\pabot.py", line 355, in _is_ignored return plib.run_keyword("is_ignored_execution", [caller_id], {}) File "C:\Python37\lib\site-packages\robot\libraries\Remote.py", line 106, in run_keyword result = RemoteResult(self._client.run_keyword(name, args, kwargs)) File "C:\Python37\lib\site-packages\robot\libraries\Remote.py", line 264, in run_keyword raise RuntimeError(message) RuntimeError: Connection to remote server broken: [WinError 10061] No connection could be made because the target machine actively refused it

mate0515 avatar Jan 21 '22 13:01 mate0515

Any ideas where the problem can be?

mate0515 avatar Feb 24 '22 10:02 mate0515

I run into this issue when stopping the tests with Ctrl-C and starting them again. To avoid this issue, I have to wait one minute or two before restarting the tests.

Your case may be different: is your pabot server on the local machine? Is it a firewalling problem? Please supply the options with which you started your tests, especially the --pabotlib, server etc. options (with obfuscated IP address).

stonux avatar Aug 23 '22 13:08 stonux