Trying to connect a local Livebook to a production app following this guide
fly dig TXT _apps.internal -o personal
Update available 0.0.297-pre-2 -> v0.0.297.
Run "fly version update" to upgrade.
;; opcode: QUERY, status: NOERROR, id: 31921
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;_apps.internal. IN TXT
;; ANSWER SECTION:
_apps.internal. 5 IN TXT "REDACTED,REDACTED-db"
setting up cookie and re-deploy
fly ssh console
connecting to the remote node using private IP address and cookie in livebook fails
Any troubleshooting pointers are greatly appreciated! Thx!!
@kkonstant thx a lot for your reply!
(1) “node name” → Thx for pointing this out. That was not obvious to me. Made the changes and redeployed
(2) “ssh console” → cool
Node.self produces exactly the same output that I am using for the
Name connection parameter in Livebook (IE: node name@ipv6)
I scrolled past this in the guide:
ERL_AFLAGS="-proto_dist inet6_tcp" livebook server --name email@example.com
It works now! Not sure if (1) was necessary, but thanks a lot for chiming in!!
Sorry for the confusion, I thought you were using fly.io’s Livebook launcher - it would’ve been able to connect to any node (well, provided the right cookie and all that) as long as both apps are in the same organization (= share the same internal network).
Glad it’s working now!
(Path.expand(__DIR__) <> "/priv/someFile")
** (File.Error) could not stream “/Users/bla/someFile”: no such file or directory
Does Livebook give you a convenient way to utilize the local file system?
IE: I am doing some exploratory testing with my app. I do not want to constantly deploy and move files to the container and run stuff like seeds.exs.
I would like to just consume local csv/json files and pipe the data to the production app
(alternatively: might just use kino and copy and paste the data into an input field)