Skip to content

Instantly share code, notes, and snippets.

@aigoncharov
Created March 31, 2017 07:51
Show Gist options
  • Save aigoncharov/b6dd5d1b8e46e3dcda5ad5b2237cce2b to your computer and use it in GitHub Desktop.
Save aigoncharov/b6dd5d1b8e46e3dcda5ad5b2237cce2b to your computer and use it in GitHub Desktop.
=================================== ERRORS ====================================
[windows2012Test] ________________ ERROR at setup of testStartNewAgentOnUsedPort ________________
[windows2012Test]
[windows2012Test] ha = HA(host='0.0.0.0', port=6714)
[windows2012Test]
[windows2012Test] def checkPortAvailable(ha):
[windows2012Test] """Checks whether the given port is available"""
[windows2012Test] sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
[windows2012Test] try:
[windows2012Test] > sock.bind(ha)
[windows2012Test] E OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted
[windows2012Test]
[windows2012Test] C:\Users\jenkins\master14\lib\site-packages\plenum\common\util.py:269: OSError
[windows2012Test]
[windows2012Test] During handling of the above exception, another exception occurred:
[windows2012Test]
[windows2012Test] emptyLooper = <plenum.common.looper.Looper object at 0x000000C64B640080>
[windows2012Test] tdirWithPoolTxns = 'c:\\tmp\\pytest-of-jenkins\\pytest-1797\\10'
[windows2012Test]
[windows2012Test] @pytest.fixture(scope="module")
[windows2012Test] def agentStarted(emptyLooper, tdirWithPoolTxns):
[windows2012Test] > runAgent(emptyLooper, tdirWithPoolTxns, agentPort, "Agent0")
[windows2012Test]
[windows2012Test] sovrin_client\test\cli\test_agent_startup.py:34:
[windows2012Test] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[windows2012Test] sovrin_client\test\cli\test_agent_startup.py:27: in runAgent
[windows2012Test] agent = agent or getNewAgent(name, basedir, port, wallet)
[windows2012Test] sovrin_client\test\cli\test_agent_startup.py:21: in getNewAgent
[windows2012Test] return createAgent(name, wallet, basedirpath=basedir, port=port)
[windows2012Test] sovrin_client\test\agent\acme.py:141: in createAcme
[windows2012Test] basedirpath, port, clientClass=TestClient)
[windows2012Test] sovrin_client\agent\agent.py:232: in createAgent
[windows2012Test] loop=loop)
[windows2012Test] sovrin_client\test\agent\acme.py:28: in __init__
[windows2012Test] portParam or port, loop=loop)
[windows2012Test] sovrin_client\test\agent\base_agent.py:37: in __init__
[windows2012Test] portParam or port, loop=loop)
[windows2012Test] C:\Users\jenkins\master14\lib\site-packages\plenum\test\testable.py:64: in initOnly
[windows2012Test] return func(self, *args, **kwargs)
[windows2012Test] sovrin_client\agent\agent.py:192: in __init__
[windows2012Test] Agent.__init__(self, name, basedirpath, client, port, loop=loop)
[windows2012Test] C:\Users\jenkins\master14\lib\site-packages\sovrin_common\strict_types.py:57: in type_checker
[windows2012Test] result = function(*args, **kwargs)
[windows2012Test] sovrin_client\agent\agent.py:44: in __init__
[windows2012Test] checkPortAvailable(HA("0.0.0.0", port))
[windows2012Test] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[windows2012Test]
[windows2012Test] ha = HA(host='0.0.0.0', port=6714)
[windows2012Test]
[windows2012Test] def checkPortAvailable(ha):
[windows2012Test] """Checks whether the given port is available"""
[windows2012Test] sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
[windows2012Test] try:
[windows2012Test] sock.bind(ha)
[windows2012Test] except OSError as exc:
[windows2012Test] if exc.errno in [
[windows2012Test] errno.EADDRINUSE, errno.EADDRNOTAVAIL,
[windows2012Test] WS_SOCKET_BIND_ERROR_ALREADY_IN_USE,
[windows2012Test] WS_SOCKET_BIND_ERROR_NOT_AVAILABLE
[windows2012Test] ]:
[windows2012Test] > raise PortNotAvailable(ha)
[windows2012Test] E plenum.common.exceptions.PortNotAvailable: port not available: HA(host='0.0.0.0', port=6714)
[windows2012Test]
[windows2012Test] C:\Users\jenkins\master14\lib\site-packages\plenum\common\util.py:276: PortNotAvailable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment