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

ERROR: for bob-lnd ... Error starting userland proxy: listen tcp4 0.0.0.0:38882: bind: address already in use #47

Open
antonilol opened this issue Oct 4, 2022 · 1 comment

Comments

@antonilol
Copy link

antonilol commented Oct 4, 2022

ERROR: for bob-lnd  Cannot start service bob-lnd: driver failed programming external connectivity on endpoint bob-lnd.sphinx (f3203a19e10b8f065727923e0a9fcec427180a8d857a4005517a31f81f609b79): Error starting userland proxy: listen tcp4 0.0.0.0:38882: bind: address already in use

sometimes at random an integration test in sphinx-relay fails early because a port is already in use
this is always the same port (38882) and it's always bob-lnd
EDIT: just saw this also for dave... there must be something with this port range

can this port be changed to something different?

relevant code:

$ grep -rn 38882
lnd/setup/nodes/proxynodes.js:55:    hostname: "bob-lnd.sphinx:38882",
lnd/setup/nodes/nodes.js:50:    hostname: "bob-lnd.sphinx:38882",
lnd/setup/bob.conf:5:restlisten=0.0.0.0:38882
docker-compose.yml:37:      - 38882:38882
alts/proxy.yml:37:      - 38882:38882
alts/no-tribes.yml:38:      - 38882:38882
alts/no-alice.yml:37:      - 38882:38882
@antonilol
Copy link
Author

i ran lsof -i -P -n in an integration test workflow (3rd item) and yes, ports in this range are in use

COMMAND    PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
Runner.Li 2162 runner   88u  IPv6  30941      0t0  TCP 10.1.0.10:38330->13.107.42.16:443 (ESTABLISHED)
Runner.Li 2162 runner   94u  IPv6  30942      0t0  TCP 10.1.0.10:38320->13.107.42.16:443 (ESTABLISHED)
Runner.Li 2162 runner   96u  IPv6  30648      0t0  TCP 10.1.0.10:38332->13.107.42.16:443 (ESTABLISHED)
Runner.Wo 2180 runner   95u  IPv6  30693      0t0  TCP 10.1.0.10:38342->13.107.42.16:443 (ESTABLISHED)
Runner.Wo 2180 runner  111u  IPv6  30704      0t0  TCP 10.1.0.10:38346->13.107.42.16:443 (ESTABLISHED)
Runner.Wo 2180 runner  125u  IPv6  31607      0t0  TCP 10.1.0.10:38350->13.107.42.16:443 (ESTABLISHED)

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

No branches or pull requests

1 participant