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

DiedDisconnect due to IPv6 localhost resolution #389

Open
2jacobtan opened this issue Aug 17, 2022 · 0 comments
Open

DiedDisconnect due to IPv6 localhost resolution #389

2jacobtan opened this issue Aug 17, 2022 · 0 comments

Comments

@2jacobtan
Copy link

2jacobtan commented Aug 17, 2022

Summary

Minimal example fails when nodes are using IPv6 localhost addresses.

Context

I tried the minimal example at https://hackage.haskell.org/package/distributed-process-simplelocalnet-0.2.4/docs/Control-Distributed-Process-Backend-SimpleLocalnet.html

It works fine on my Windows computer using WSL2 (Windows subsystem for Linux).

But on Linux (Fedora 36), it fails with DiedDisconnect.

Eventually I realised on Linux the nodes are assigned IPv6 localhost addresses (::1).

temporary fix

Disable IPv6 on Linux:
https://www.techrepublic.com/article/how-to-disable-ipv6-on-linux/

extra reference

past me discovered that Linux would bind localhost as IPv6 only

https://www.reddit.com/r/haskell/comments/6emo9g/comment/did1j1m/

request

Perhaps note this down under the troubleshooting section in the doc at https://hackage.haskell.org/package/distributed-process-simplelocalnet-0.2.4/docs/Control-Distributed-Process-Backend-SimpleLocalnet.html .

@LaurentRDC LaurentRDC transferred this issue from haskell-distributed/distributed-process-simplelocalnet Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants