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

Livebook server not starting [Windows] (not WSL2) #212

Closed
Akteivias opened this issue Aug 1, 2022 · 3 comments
Closed

Livebook server not starting [Windows] (not WSL2) #212

Akteivias opened this issue Aug 1, 2022 · 3 comments

Comments

@Akteivias
Copy link
Contributor

Akteivias commented Aug 1, 2022

Describe the issue
When livebook server start.livemd is called Livebook could not start distributed node.

Note: This is a Livebook known issue (196, 194, 1042) that happens when some erlang files don't show a dialog for its firewall approval on the first Livebook execution after being installed.

As there is no windows version for asdf, my tools setup was done with Chocolately and NVM.

Solution proposal
Add a Windows-specific solution for this behavior on documentation:

  • Before calling Livebook, execute on terminal iex --sname test
  • On appearing Windows firewall dialog, approve permission for epmd.exe
  • Both erl.exe and epmd.exe should appear on firewall-allowed apps

Environment
OS: Windows 11
Erlang/OTP: 24 [erts-12.0]
Elixir 1.13.3 (compiled with Erlang/OTP 22)

Reproduction Steps (If Applicable)
Steps to reproduce the behavior:

  1. Oen command line (CMD/PowerShell)
  2. From the beta_curriculum project folder execute livebook server start.livemd

Expected behavior
Curriculum Liveboook server should start and load the curriculum.

Actual behavior
Curriculum Liveboook is not started.

Screenshots/Logs

C:\Users\Oct\Elixir\DockYard-Academy\beta_curriculum>livebook server start.livemd

ERROR!!! [Livebook] Could not start distributed node: {{:shutdown, {:failed_to_start_child, :net_kernel, {:EXIT, :nodistribution}}}, {:child, :undefined, :net_sup_dynamic, {:erl_distribution, :start_link, [[:livebook_7isuoce5, :shortnames, 15000], false, :net_sup_dynamic]}, :permanent, false, 1000, :supervisor, [:erl_distribution]}}
@BrooklinJazz
Copy link
Collaborator

Hi @Octavio-GH! Would you be interested in making a PR to add this to the Troubleshooting section of the README?

@Akteivias
Copy link
Contributor Author

Sure, on it.

Is Chocolately(Elixir/Erlang) / NVM(Node.js) a good toolset for Windows, or will it be deprecated to use WSL2 in this project? A standardized setup for Windows could be helpful.

@BrooklinJazz
Copy link
Collaborator

BrooklinJazz commented Aug 1, 2022

Thank you! Let me know if I can help at all!

I've been thinking about this but haven't come to a solid conclusion yet. I need more feedback from other Windows users not using WSL2 (I use WSL2).

Personally, I think that WSL2 is the most reliable Windows setup for Elixir. It's also less headache when setting up prerequisites like Postgres, Phoenix, etc. It's certainly the recommended setup for students.

However, I'm worried about alienating Windows users or creating a large barrier to entry in front of new developers, so I'm hesitant to require it. If it's not too much effort to support folks on Windows w/Chocolately then I'd like to where possible.

That said, I'd love to create a standard setup on Windows guide that walks through setting up the course and WSL2. In general, we could use some better setup guides for each OS.

Akteivias added a commit to Akteivias/beta_curriculum that referenced this issue Aug 1, 2022
- Added a specific Windows (not WSL2) subsection under Troubleshooting.
- Added solution for Livebook server not starting [Windows] (not WSL2)
DockYard-Academy#212
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