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

Can't listen on /ip4/xx.xx.xx.xx/tcp/30355/ws #525

Open
stakeworks opened this issue Apr 24, 2024 · 2 comments
Open

Can't listen on /ip4/xx.xx.xx.xx/tcp/30355/ws #525

stakeworks opened this issue Apr 24, 2024 · 2 comments

Comments

@stakeworks
Copy link

After upgrading to v0.6.1 en restarting the Tanssi node:

2024-04-24 10:05:16 [Relaychain] discovered: 12D3KooWRA4E6C6oqEYZELFYs2WNTTuGk3B7bPoVJgftFmUKmGRr /ip4/xx.xx.xx.xx/tcp/30333
2024-04-24 10:05:16 [Orchestrator] discovered: 12D3KooWRA4E6C6oqEYZELFYs2WNTTuGk3B7bPoVJgftFmUKmGRr /ip4/xx.xx.xx.xx/tcp/30333
2024-04-24 10:05:42 [Container-3054] discovered: 12D3KooWRA4E6C6oqEYZELFYs2WNTTuGk3B7bPoVJgftFmUKmGRr /ip4/xx.xx.xx.xx/tcp/30333
**2024-04-24 10:05:52 [Container-3085] Can't listen on /ip4/xx.xx.xx.xx/tcp/30355/ws because: Other(Custom { kind: Other, error: Custom { kind: Other, error: Other(Left(Left(Left(Left(Left(Transport(Transport(Os { code: 98, kind: AddrInUse, message: "Address already in use" })))))))) } })**
2024-04-24 10:05:52 [Container-3085] discovered: 12D3KooWRA4E6C6oqEYZELFYs2WNTTuGk3B7bPoVJgftFmUKmGRr /ip4/xx.xx.xx.xx/tcp/30333
2024-04-24 10:06:12 [Container-3085] 🎁 Prepared block for proposing at 694388 (2 ms) [hash: 0xbc435f14cefb1f149943d39ec92db536f86f6fd7495862ef095eec39dedc2a02; parent_hash: 0x3804…c957; extrinsics (4): [0xb59c…e47e, 0xb6e6…0e98, 0x3894…323a, 0xca7a…4230]
2024-04-24 10:06:12 [Container-3085] 🔖 Pre-sealed block for proposal at 694388. Hash now 0x611494ddf5c1b02d421aec467e6c0184995b3545b86b1a286f1a774fa4272ebb, previously 0xbc435f14cefb1f149943d39ec92db536f86f6fd7495862ef095eec39dedc2a02.
2024-04-24 10:06:12 [Container-3085] PoV size { header: 0.298828125kb, extrinsics: 12.744140625kb, storage_proof: 7.0927734375kb }
2024-04-24 10:06:12 [Container-3085] Compressed PoV size: 16.9306640625kb
2024-04-24 10:06:12 [Container-3085] 🎁 Prepared block for proposing at 694388 (3 ms) [hash: 0x66b3a3fbbd654b6f7c328ea80d8fda294c133297d2ba8ba5b6beeb0c7531a55f; parent_hash: 0x3804…c957; extrinsics (4): [0xdab0…04af, 0x4bc5…3d0b, 0x6b59…715c, 0xca7a…4230]
@tmpolaczyk
Copy link
Collaborator

Hi, this means that the container-3085 failed to start its p2p server. The error is that the port is already used, but not sure what is using it, it could be the other container or it could be another process. This can cause problems if you are trying to run a public node, because it will not be able to accept inbound connections, but the node should work ok without it

You can try to change the port using --port 12345 flag (you need to pass that to container flags, so after the first -- but before the second --).

@stakeworks
Copy link
Author

stakeworks commented May 1, 2024

Could it be a timing issue? Node restarted and it looks like it first connects to Container-3054, 10 seconds later tries to connect to Container-3085 which first doesn't succeed. 20 seconds later it does connect to Container-3085 and proposes a block.

2024-04-24 10:05:42 [Container-3054] discovered: 12D3KooWRA4E6C6oqEYZELFYs2WNTTuGk3B7bPoVJgftFmUKmGRr /ip4/xx.xx.xx.xx/tcp/30333
2024-04-24 10:05:52 [Container-3085] Can't listen on /ip4/xx.xx.xx.xx/tcp/30355/ws because: Other(Custom { kind: Other, error: Custom { kind: Other, error: Other(Left(Left(Left(Left(Left(Transport(Transport(Os { code: 98, kind: AddrInUse, message: "Address already in use" })))))))) } })
2024-04-24 10:05:52 [Container-3085] discovered: 12D3KooWRA4E6C6oqEYZELFYs2WNTTuGk3B7bPoVJgftFmUKmGRr /ip4/xx.xx.xx.xx/tcp/30333
2024-04-24 10:06:12 [Container-3085] 🎁 Prepared block for proposing at 694388 (2 ms) [hash: 0xbc435f14cefb1f149943d39ec92db536f86f6fd7495862ef095eec39dedc2a02; parent_hash: 0x3804…c957; extrinsics (4): [0xb59c…e47e, 0xb6e6…0e98, 0x3894…323a, 0xca7a…4230]

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

2 participants