petrus-jvrensburg
Help running livebook on Fly
I used livebook 0.12.1 on fly previously, using the approach set out here: Deploy Livebook on Fly.io · Fly Docs
But now, trying the same approach with the latest version of livebook, I get an error in the UI whenever I try to execute a cell:
Connecting runtime failed - Elixir terminated unexpectedly, please check your logs for errors. Reason: normal
Any ideas what I might be missing? This is my fly.toml:
[build]
image = 'ghcr.io/livebook-dev/livebook'
[env]
ELIXIR_ERL_OPTIONS = '-proto_dist inet6_tcp'
LIVEBOOK_DATA_PATH = '/data'
LIVEBOOK_HOME = '/data'
LIVEBOOK_IP = '::'
LIVEBOOK_ROOT_PATH = '/data'
PORT = '8080'
[[mounts]]
source = 'data'
destination = '/data'
initial_size = '10gb'
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'off'
auto_start_machines = false
min_machines_running = 0
processes = ['app']
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
Marked As Solved
jonatanklosko
Creator of Livebook
We no longer pass ELIXIR_ERL_OPTIONS to the runtime node. Please change ELIXIR_ERL_OPTIONS to ERL_AFLAGS and try again. The Fly guide has been updated to do that : )
1
Also Liked
petrus-jvrensburg
That was it. Thanks @jonatanklosko !
1
Popular in Questions
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
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service.
Currently when I de...
New
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible.
total = 10
while total != 0
...
New
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
Hey all,
I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: )
Hello all, this is ...
New
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
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
In Ruby, I can go:
User.find_by(email: "foobar@email.com").update(email: "hello@email.com")
How can I do something similar in Elixir? ...
New
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
I would like to know what is the best IDE for elixir development?
New
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
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
Hi all,
I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I'm trying to use Postg...
New
Hey all,
I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Hi everyone!
I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New







