No longer able to connect local Livebook to remote Fly.io node #1666
-
Note: I posted about this on ElixirForum, but enough time has gone by that I think it makes sense to post here as well. (Perhaps it made sense at the beginning!) This is a lightly-edited version of that post. Hi friends, I wanted to solicit some advice on how to debug an attached node connection issue I’ve started to experience with Livebook. Context & setupThis setup was previously working. In fact, I posted on ElixirForum to share how I got it set up and the script I was using to start the Livebook server with the correct flags. Sometime in the last couple of weeks, this setup has stopped working. I’ll describe exactly what I’m seeing a bit further down. To get it out of the way, here are the versions of everything I’m using:
Other bits and bobs:
Description of issueAfter launching the Livebook server, opening a notebook, and attempting to connect to the attached node, Livebook hangs until the terminal eventually reports this error:
Critically, I am able to connect to the node manually through IEx. I can start a local iex using the following command, connect to the remote node, and run some code through
I’m not really sure where to go from here. Any suggestions would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 26 replies
-
I guess the biggest question is if you are sure Livebook is being started with inet6. Can you connect to Livebook itself through IEx? |
Beta Was this translation helpful? Give feedback.
-
Everything's working again! This had nothing at all to do with Livebook, but instead was the result of a change in WSL2 that caused packets over a certain size to fail over Wireguard. Thanks for @josevalim's help, I was able to go "lower and lower" until I finally had a pretty easy-to-run test:
The problem appeared to be that the MTU was set lower than the amount required by Wireguard. |
Beta Was this translation helpful? Give feedback.
Everything's working again!
This had nothing at all to do with Livebook, but instead was the result of a change in WSL2 that caused packets over a certain size to fail over Wireguard. Thanks for @josevalim's help, I was able to go "lower and lower" until I finally had a pretty easy-to-run test: