cardano-node icon indicating copy to clipboard operation
cardano-node copied to clipboard

[BUG] - Submit api "Network.Socket.bind: resource busy (Address in use)"

Open Fell-x27 opened this issue 1 year ago • 8 comments

External

Area Other Any other topic (Delegation, Ranking, ...).

Summary When trying to run two instances(preprod+preview) of cardano-submit-api with the same IP but different ports, one of them throws the error: Network.Socket.bind: resource busy (Address in use).

Steps to reproduce

  1. Start cardano-node in the preview network on 127.0.0.1:5003
  2. Start cardano-node in the preprod network on 127.0.0.1:5002
  3. Start submit-api in the preview network on 127.0.0.1:8997
  4. Start submit-api in the preprod network on 127.0.0.1:8998
  5. Check the console.

Expected behavior The check for availability should take the port into account. Both instances should be able to run in parallel.

System info (please complete the following information):

  • OS Name: Ubuntu
  • OS Version: 22.04
  • Node version cardano-node 9.1.1 - linux-x86_64 - ghc-8.10

Additional context Two cardano-node instances for different networks are running on 127.0.0.1 on different ports. The cardano-submit-api instances are also running on 127.0.0.1 on different ports. No matter the order in which they are started, only the one that was started first will work. I don't remember this behavior occurring in previous versions.

Fell-x27 avatar Sep 13 '24 14:09 Fell-x27

Solution: the --metrics-port argument should be specified with a unique number.

But I still think that it shouldn't be a stopper. Maybe there should be a warning, like the Node does, but not a crash.

Fell-x27 avatar Sep 15 '24 12:09 Fell-x27

We are able to reproduce the issue as reported when running multiple node instances but using different port numbers.

Proper error messages or documentation should be provided to include metrics-port, or even better; we should be able to run in parallel with just enough configuration.

krunks-dev avatar Sep 16 '24 19:09 krunks-dev

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Oct 17 '24 02:10 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Nov 23 '24 02:11 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

pewpew

Fell-x27 avatar Nov 24 '24 20:11 Fell-x27

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Dec 26 '24 01:12 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Jan 27 '25 01:01 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Feb 28 '25 01:02 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Apr 05 '25 02:04 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar May 09 '25 02:05 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Jun 15 '25 02:06 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Jul 18 '25 02:07 github-actions[bot]

.

rdlrt avatar Jul 18 '25 07:07 rdlrt

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Aug 25 '25 02:08 github-actions[bot]

bump

Fell-x27 avatar Aug 27 '25 09:08 Fell-x27

@carbolymer - would you know if this is even on the radar? shouldnt be a huge task, feels a bit weird to keep bumping for close to a year without any reaction

rdlrt avatar Aug 27 '25 10:08 rdlrt

We haven't forgot about it. I'll have a look this week.

carbolymer avatar Aug 27 '25 13:08 carbolymer