csuriano23
Remote debugging elixir on docker container
Hi there,
on my macbook pro (OS Big Sur / Darwin 20.3.0) I am trying to setup the erlang observer on an elixir app running in a local docker container.
On container shell I can successfully run:
iex --name myserver@127.0.0.1 --cookie mycookie -S mix phx.server
and even:
iex --name someproc@127.0.0.1 --cookie mycookie -e "Node.connect(:'myserver@127.0.0.1')" -S mix run --no-start
The nodes can successfully see each other.
The container remaps the EPMD port from 4369 to 43691 and I’d like to launch a local shell like this:
iex --name user@127.0.0.1 --cookie mycookie -e "Node.connect(:'myserver@127.0.0.1')" -S mix run --no-start
but even if the repl starts, the Node.connect / Node.ping to myserver@127.0.0.1 fails.
The most complete guide I’ve found in order to accomplish this goal is here, but I don’t know if - following that - it is correct to use 127.0.0.1 as REMOTE_HOST and even trying I cannot reach in the new shell the remote process.
Any clues/suggestions?
Thank you
Carlo
Popular in Questions
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
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
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database.
Dep...
New
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
I am trying to run a deploy with docker and I successfully runned with this command:
docker build -t romenigld/blog-prod .
but when I t...
New
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
What is most correct way to open, read and parse JSON file with poison?
For example if we have example.json file in root of some projec...
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 a User schema with a :from_id field set to type :string:
defmodule TweetBot.Repo.Migrations.CreateUsers do
use Ecto.Migration
...
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
Other popular topics
Update:
How to use the Blogs & Podcasts section
You can post links to your blog posts or podcasts either in one of the Official Blog...
New
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
What is the proper way to load a module from a file in to IEX?
In the python world, doing something like this pretty standard:
from ....
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
Hi,
I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
I tried installing
elixir 1.11.2
erlang 23.3.4
via asdf in my zsh shell. Enabled the versions locally and globally.
When I list them ...
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
Hey :wave:t3: Elixir community,
I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New








