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: Automate code & data workflows with interactive Elixir notebooks · GitHub 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.

Last Post!

dan-teitsort

dan-teitsort

Same problem here on an M1 macbook.

Turning off my wifi did not help. Neither did turning wifi back on.

Turned off my VPN, and then it worked. Turned VPN back on, and it is still working.

Where Next?

Popular in Questions Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
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, "equa...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54921 245
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
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 42533 114
New

We're in Beta

About us Mission Statement