Not able to attach to Elixir node with Livebook on Fly

This worked for me (got the idea from this post):

  • run fly config save -a <name of the Livebook app> in an empty directory
  • in fly.toml, add the following line to the [env] section:
  ERL_AFLAGS = "-proto_dist inet6_tcp"

(there was already a line elixir_erl_optio_ns = "-proto_dist inet6_tcp" in this section, but (a) there’s a typo? and (b) even w/o the typo, it seemed to have no effect?)

  • run fly deploy -i livebook/livebook

Once the app is redeployed, Livebook should be able to attach to other nodes.

2 Likes