I'm getting "Protocol 'inet_tcp': the name derpy_tools@south-blue seems to be in use by another Erlang node"

Hey Guys,

I’m trying to do a blue-green deployment in a local Linux server before deploying for real, but running into an error:

Protocol 'inet_tcp': the name derpy_tools@south-blue seems to be in use by another Erlang node

I copied the _build/prod to two separate folders and then I tried to start by passing in appropriate ENV variables. Like different PORT, and different SECRET_KEY_BASE.

However, I don’t know how to specify the name of the Erlang node.

I tried: --sname blue-server@south-blue

But it didn’t work.

https://hexdocs.pm/mix/Mix.Tasks.Release.html#module-environment-variables

1 Like