Hi, recently I switched from distillery to use Mix releases and I noticed I cannot do remote profiling using observer over SSH tunneling anymore. Basically when I am on distillery, what I will do is:
epmd -nameson the remote server to get the port number, referred as PORT below
- on a local terminal, setup ssh tunneling
ssh -N -L PORT:localhost:PORT -L 4369:localhost:4369 ec2-user@server
- on another local terminal,
erl -name email@example.com -setcookie 'cookie_here' -run observer
- The observer pops up and I would press Node -> Connect and input
firstname.lastname@example.org it would work.
Now when I am on Elixir 1.9 I followed the same steps but I kept getting a
pang, Connect Failed error on the observer window. I did some digging and I thought it might have something to do with
RELEASE_DISTRIBUTION env var so I added the following code before running
export RELEASE_DISTRIBUTION="name" export RELEASE_NAME="myapp" export RELEASE_NODE="email@example.com" export RELEASE_COOKIE="COOKIE_HERE"
But still, same error. Any ideas how I can debug this?