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

Tee
can someone please explain to me how Enum.reduce works with maps
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
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
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
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
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
idi527
I’ve been re-reading swift book again and noticed that multiline strings there don’t have a trailing line break, unlike in elixir iex(2)...
New

Other popular topics Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
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
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New

We're in Beta

About us Mission Statement