Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various tests: hub.herald.session - ERROR - TCP server failed to listen on 127.0.0.1:50002 :OSError(98, "error while attempting to bind on address ('127.0.0.1', 50002): address already in use") #101

Closed
moodyjon opened this issue Sep 21, 2022 · 2 comments · Fixed by #102
Assignees

Comments

@moodyjon
Copy link
Contributor

moodyjon commented Sep 21, 2022

https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165

4439 test_source_filter (integration.claims.test_claim_commands.ClaimSearchCommand) ... 2022-09-21 00:47:00,475 - asyncio - WARNING - Executing <Task pending coro=<CommandTestCase.asyncSetUp() running at /home/runner/work/lbry-sdk/lbry-sdk/lbry/testcase.py:415> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/futures.py:351, <TaskWakeupMethWrapper object at 0x7f5af08fd450>()] created at /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py:395> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py:157] created at /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py:566> took 0.504 seconds
[4440](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4441)
2022-09-21 00:47:01,495 - elasticsearch - WARNING - GET http://localhost:9200/_template/783bfa0b44764850859fa3e1d4f4daf4claims [status:404 request:0.003s]
[4441](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4442)
2022-09-21 00:47:02,147 - asyncio - WARNING - Executing <Task pending coro=<CommandTestCase.asyncSetUp() running at /home/runner/work/lbry-sdk/lbry-sdk/lbry/testcase.py:415> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/futures.py:351, <TaskWakeupMethWrapper object at 0x7f5af05b3850>()] created at /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py:395> cb=[_run_until_complete_cb() at /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py:157] created at /opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py:566> took 0.210 seconds
[4442](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4443)
2022-09-21 00:47:02,659 - hub.herald.session - ERROR - TCP server failed to listen on 127.0.0.1:50002 :OSError(98, "error while attempting to bind on address ('127.0.0.1', 50002): address already in use")
[4443](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4444)
2022-09-21 00:47:02,787 - lbry.wallet.network - WARNING - Connecting to localhost:50002 failed
[4444](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4445)
2022-09-21 00:47:02,787 - lbry.wallet.network - WARNING - failed to connect to any spv servers, retrying later
[4445](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4446)
2022-09-21 00:47:32,802 - lbry.wallet.network - WARNING - Connecting to localhost:50002 failed
[4446](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4447)
2022-09-21 00:47:32,802 - lbry.wallet.network - WARNING - failed to connect to any spv servers, retrying later
[4447](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4448)
2022-09-21 00:48:02,814 - lbry.wallet.network - WARNING - Connecting to localhost:50002 failed
[4448](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4449)
2022-09-21 00:48:02,814 - lbry.wallet.network - WARNING - failed to connect to any spv servers, retrying later
[4449](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4450)
2022-09-21 00:48:32,827 - lbry.wallet.network - WARNING - Connecting to localhost:50002 failed
[4450](https://github.com/moodyjon/lbry-sdk/actions/runs/3094377560/jobs/5007689165#step:11:4451)
2022-09-21 00:48:32,827 - lbry.wallet.network - WARNING - failed to connect to any spv servers, retrying later
@moodyjon
Copy link
Contributor Author

One in a unit test:
https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192

478
======================================================================
[479](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:480)
ERROR: test_multiple_servers (tests.unit.torrent.test_tracker.UDPTrackerClientTestCase)
[480](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:481)
----------------------------------------------------------------------
[481](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:482)
Traceback (most recent call last):
[482](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:483)
  File "/home/runner/work/lbry-sdk/lbry-sdk/lbry/testcase.py", line 138, in run
[483](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:484)
    self.loop.run_until_complete(self.asyncSetUp())
[484](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:485)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
[485](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:486)
    return future.result()
[486](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:487)
  File "/home/runner/work/lbry-sdk/lbry-sdk/tests/unit/torrent/test_tracker.py", line 16, in asyncSetUp
[487](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:488)
    await self.add_server()
[488](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:489)
  File "/home/runner/work/lbry-sdk/lbry-sdk/tests/unit/torrent/test_tracker.py", line 23, in add_server
[489](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:490)
    transport, _ = await self.loop.create_datagram_endpoint(lambda: server, local_addr=("127.0.0.1", port))
[490](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:491)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py", line 1256, in create_datagram_endpoint
[491](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:492)
    raise exceptions[0]
[492](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:493)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py", line 1240, in create_datagram_endpoint
[493](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:494)
    sock.bind(local_address)
[494](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:495)
OSError: [Errno 98] Address already in use
[495](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:496)

[496](https://github.com/moodyjon/lbry-sdk/actions/runs/3094272495/jobs/5007471192#step:9:497)
----------------------------------------------------------------------

@moodyjon
Copy link
Contributor Author

Another:
https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932

130
test_announces (integration.datanetwork.test_file_commands.FileCommands) ... 2022-09-21 12:52:16,499 - elasticsearch - WARNING - GET http://localhost:9200/_template/662c3de460dc44eea267e690507f71c8claims [status:404 request:0.003s]
[131](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:132)
2022-09-21 12:52:17,575 - hub.herald.session - ERROR - TCP server failed to listen on 127.0.0.1:50002 :OSError(98, "error while attempting to bind on address ('127.0.0.1', 50002): address already in use")
[132](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:133)
2022-09-21 12:52:17,785 - lbry.wallet.network - WARNING - Connecting to localhost:50002 failed
[133](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:134)
2022-09-21 12:52:17,785 - lbry.wallet.network - WARNING - failed to connect to any spv servers, retrying later
[134](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:135)
2022-09-21 12:52:47,797 - lbry.wallet.network - WARNING - Connecting to localhost:50002 failed
[135](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:136)
2022-09-21 12:52:47,798 - lbry.wallet.network - WARNING - failed to connect to any spv servers, retrying later
[136](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:137)
2022-09-21 12:53:17,809 - lbry.wallet.network - WARNING - Connecting to localhost:50002 failed
[137](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:138)
2022-09-21 12:53:17,809 - lbry.wallet.network - WARNING - failed to connect to any spv servers, retrying later
[138](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:139)
2022-09-21 12:53:47,823 - lbry.wallet.network - WARNING - Connecting to localhost:50002 failed
[139](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:140)
2022-09-21 12:53:47,823 - lbry.wallet.network - WARNING - failed to connect to any spv servers, retrying later
2997
======================================================================
[2998](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:2999)
ERROR: test_announces (integration.datanetwork.test_file_commands.FileCommands)
[2999](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:3000)
----------------------------------------------------------------------
[3000](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:3001)
Traceback (most recent call last):
[3001](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:3002)
  File "/home/runner/work/lbry-sdk/lbry-sdk/lbry/testcase.py", line 138, in run
[3002](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:3003)
    self.loop.run_until_complete(self.asyncSetUp())
[3003](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:3004)
  File "/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
[3004](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:3005)
    return future.result()
[3005](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:3006)
concurrent.futures._base.CancelledError
[3006](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:3007)

[3007](https://github.com/moodyjon/lbry-sdk/actions/runs/3097875361/jobs/5015074932#step:11:3008)
----------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant