-
Notifications
You must be signed in to change notification settings - Fork 435
Installation FAQ
We believe these issues should no longer occur on the latest Livebook version. If they do happen, please open an issue.
Prior to v0.13
There may be different root causes for the problem above. Please find the subsection that applies to you.
This may be caused by a faulty hostname configuration. You can verify if that's the case by opening the macOS Terminal application:
$ scutil --get HostName
If it prints "HostName: not set" or it prints a hostname made of only numbers or invalid characters, then the issue is confirmed. To address this, you can set the Hostname to _
and let macOS fill it in for you:
$ sudo scutil --set HostName _
Alternatively, you can set your hostname explicitly:
$ sudo scutil --set HostName my-machine
Prompt your password and you should be good to go.
DNS configuration on some flavors of Windows may create an issue with loopback resolution. If you see the "hostname does not resolve to a loopback address" error in the log (typically found at C:\Users\[username]\AppData\Local\Livebook\Logs\Livebook.log
), the hosts file on your system might be misconfigured or missing entries. You should check if there's an entry for localhost
mapped to 127.0.0.1
.
- Open Notepad as an administrator (right-click on Notepad and select 'Run as administrator')
- In Notepad, open the file
C:\Windows\System32\drivers\etc\hosts
- Look for a line that reads
127.0.0.1 localhost
(it might be commented out). If it's not there, simply add it - Save the file and exit Notepad
- Reboot Windows
Some VPNs, such as Cisco Any Connect, may block or disable the loopback address. Therefore, you must configure Desktop to use longnames.
-
If you are using Livebook Desktop on Windows, create a file named ".livebookdesktop.bat" in your User Profile folder with the following contents:
set LIVEBOOK_DISTRIBUTION=name set [email protected]
-
If you are using Livebook Desktop on macOS, create a file named ".livebookdesktop.sh" at your User Home with the following contents:
export LIVEBOOK_DISTRIBUTION=name export [email protected]
-
If you are using Livebook's CLI or from source, consider using longnames:
$ livebook server --name [email protected] $ elixir --name [email protected] -S mix phx.server
If you are seeing this message, this means epmd
is either not installed, not running, or behind a firewall. Open up the macOS terminal and type epmd
directly. The command should succeed or ask for the required permissions if not. If the command is not available, make sure your Erlang installation has all necessary packages.