polypush135

polypush135

How to Node.connect to a node spun up by edeliver/distilery?

I’ve been having an issue connecting to a remove node.

note: xxx is my ip for my server

[error] ** System NOT running to use fully qualified hostnames **
** Hostname xx.xxx.xxx is illegal **

I’m currently using edeliver to deploy to my server and noticed that it (“edeliver”) rewrites the vm.args on every mix edeliver restart|start|stop

The name is set to be app_name@127.0.0.1

I’m also noticing that I can’t find a way to set the name in vm.args via /rel/config.exs or /.deliver/config

And as one last opservation I noticed that there is a discrepancy in the vm.args cookies vs ~/.erlang.cookie
In this case which cookie should I be using?

Most Liked

OvermindDL1

OvermindDL1

It randomizes ports, you need to constrain it to a range. Here’s a mailing list thread about it:

gregvaughn

gregvaughn

I wish I had a quick and easy solution. I’ve faced your difficulties, but I’ve not delved into the details I’ve seen in some blogs (and now books) to make it clean. You can set the nodename in distillery, which should be covered well in its hexdocs. I have settled for ssh-ing to the server in question and running bin/myappname remote_console to use the distillery script to connect a hidden beam node to the production vm.

polypush135

polypush135

Whooohooo, ssh port-forwarding for the win!!
Thank you Erich Kist!
This is what I’ve been trying to do all day

Last Post!

NobbZ

NobbZ

If the name of a node is it’s IP, it will only bind to exactly this IP. So you need to be sure you can reach that IP from your current network. Things are easier when you use actual resolvable hostnames.

Where Next?

Popular in Questions Top

vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
Brian
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
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
romenigld
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

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vertexbuffer
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
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New

We're in Beta

About us Mission Statement