Onor.io

Onor.io

Livebook Failure On MacOSX

I’m trying to run Livebook locally on MacOSX. It was working on Friday and I’d guess the most likely cause of failure is some setting the corporate folks have changed. What I want to find out is if there’s any way I can gather more information on the failure.

I get a -1 when I attempt to start it. The following is in the log file:

[LivebookLauncher] release pid: 51007

ERROR!!! [Livebook] Your hostname “xxxxxxx” does not resolve to a loopback address (127.0.0.0/8),
which indicates something wrong in your OS configuration, or EPMD is not running.

Make sure your computer’s name resolves locally or start Livebook using a long distribution name. Please try one of the fixes below:

  • If you are using the Livebook App, please open up a bug report.

  • If you are using Livebook’s CLI, consider using longnames:

    livebook server --name livebook@127.0.0.1
    
  • If you are running it from source, do instead:

    MIX_ENV=prod elixir --name livebook@127.0.0.1 -S mix phx.server
    

[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed

I removed my actual host name from the log (if you’re wondering why my hostname is “xxxxx”).

I tried manually starting EPMD. No error but it didn’t fix the issue either.

I’ve tried uninstalling and reinstalling Livebook and that doesn’t do it. I’ve done a bit of digging and in my case the host name does not resolve to 127.0.0.1 (which strikes me as kind of odd). This is why I think it’s some sort of corporation setting. I mean if I ping hostname it doesn’t show me 127.0.0.1

Anyone have a notion of what I should be looking at to gather more detail on this problem?

Most Liked

w0rd-driven

w0rd-driven

How are you running Livebook? I ask because in the app I believe epmd is embedded so restarting a global version likely doesn’t do much.

Have you tried restarting or turning WiFi off and on again to try to see if you get a different IP or perhaps corp settings were reverted? If ping hostname resolves as hex like 0000:0000:0000:0000 then it’s likely trying to resolve as the ipv6 version of localhost.

w0rd-driven

w0rd-driven

Yeah that’s weird. Maybe corporate reverted whatever changes broke it? It definitely sounds network related but that’s a big bucket to troubleshoot on its own.

You could try running ifconfig and store the output in a text file. That should tell you all the network interfaces and ip addresses associated for a working state. Then if/when this happens again you can run the command to compare what changed. For most networks, only the IP addresses change over time. You can run the command with arguments to focus on just localhost but there may be things you can spot on the other interfaces.

According to GitHub - livebook-dev/livebook: Interactive and collaborative code notebooks for Elixir - built with Phoenix LiveView there is a LIVEBOOK_IP variable you can bind to. It mentions needing a valid ipv4 or ipv6 address but you could try binding it to your corporate network IP address next time. My guess is something about the address it detected didn’t seem valid for whatever reason. I don’t know how or if it’s possible to change these settings for the app. It may be possible to set it in a terminal window and then use open /Applications/Livebook.app to affect the context the app uses. That may not work and require the CLI version to modify those env variables.

Where Next?

Popular in Questions Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "eq...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41454 115
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30840 112
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

We're in Beta

About us Mission Statement