Can't install nimble_parsec

I am trying to use nimble_parsec (GitHub - dashbitco/nimble_parsec: A simple and fast library for text-based parser combinators) in my livebook via Mix.install. Unfortunately it times out during execution and lands me back to the livebook index page.

I created the machine using Livebook · Launch on Can I add the dependancy via the command line somehow? Do I need to scale up the server from the free tier?


2022-03-27T11:59:56Z runner[662b8deb] lhr [info]Starting instance
2022-03-27T11:59:57Z runner[662b8deb] lhr [info]Configuring virtual machine
2022-03-27T11:59:57Z runner[662b8deb] lhr [info]Pulling container image
2022-03-27T11:59:58Z runner[662b8deb] lhr [info]Unpacking image
2022-03-27T11:59:58Z runner[662b8deb] lhr [info]Preparing kernel init
2022-03-27T11:59:58Z runner[662b8deb] lhr [info]Setting up volume 'livebook_data'
2022-03-27T12:00:00Z runner[662b8deb] lhr [info]Configuring firecracker
2022-03-27T12:00:00Z runner[662b8deb] lhr [info]Starting virtual machine
2022-03-27T12:00:00Z app[662b8deb] lhr [info]Starting init (commit: 6f9865f)...
2022-03-27T12:00:00Z app[662b8deb] lhr [info]Mounting /dev/vdc at /data w/ uid: 0, gid: 0 and chmod 0755
2022-03-27T12:00:00Z app[662b8deb] lhr [info]Preparing to run: `/app/bin/livebook start` as root
2022-03-27T12:00:00Z app[662b8deb] lhr [info]2022/03/27 12:00:00 listening on [fdaa:0:567c:a7b:28df:0:b67a:2]:22 (DNS: [fdaa::3]:53)
2022-03-27T12:00:01Z app[662b8deb] lhr [info]Reaped child process with pid: 553, exit code: 0
2022-03-27T12:00:02Z app[662b8deb] lhr [info]12:00:02.135 [notice]     :alarm_handler: {:set, {:system_memory_high_watermark, []}}
2022-03-27T12:00:02Z app[662b8deb] lhr [info][Livebook] Application running at http://localhost:8080
2022-03-27T12:00:02Z app[662b8deb] lhr [info]Reaped child process with pid: 574 and signal: SIGUSR1, core dumped? false

Scaling the memory of the app from 256MB to 512MB ram fixed the issue. I guess that is going to take me out of the free tier though. Scaling back down to 256MB afterward seems to reset the app and puts me back to square 1 unfortunately.

We’re working on enabling swap via a setting, but in the meantime you can do it on your own in an entry point before your main command.

1 Like

Thanks for the suggestion, unfortunately because I created the app using the “Launch on” link for Livebook I don’t have a local copy and have no idea how to edit the dockerfile. I have looked on the docs for flyctl but don’t see anything obvious. Is there someway to git clone my own launched app?