Questions tagged [epmd]

epmd is a small name server used by Erlang programs when establishing distributed Erlang communications.

This daemon acts as a name server on all hosts involved in distributed Erlang computations. When an Erlang node starts, the node has a name and it obtains an address from the host OS kernel. The name and the address are sent to the epmd daemon running on the local host. In a TCP/IP environment, the address consists of the IP address and a port number. The name of the node is an atom on the form of Name@Node. The job of the epmd daemon is to keep track of which node name listens on which address. Hence, epmd map symbolic node names to machine addresses.

The TCP/IP epmd daemon actually only keeps track of the Name (first) part of an Erlang node name, the Host part (whatever is after the @ is implicit in the node name where the epmd daemon was actually contacted, as is the IP address where the Erlang node can be reached. Consistent and correct TCP naming services are therefore required for an Erlang network to function correctly.

From: http://www.erlang.org/doc/man/epmd.html

26 questions
22
votes
8 answers

epmd error for host myhost: address (cannot connect to host/port) on windows 10

I am trying to install rabbitmq. The installation of both erlang i.e OTP 18.1 file was done successfulyl and also rabbitmq installation completed successfully. But when I try to connect rabbitmq, I get the following error: C:\Program Files…
Antarjot
  • 306
  • 1
  • 2
  • 9
9
votes
1 answer

Is there a way to stop Erlang servers from automatically starting epmd?

Erlang servers will automatically spawn epmd (the Erlang port mapper daemon) if it isn't already running. I would prefer to manage epmd using systemd as a separate service. This is so that if I have multiple Erlang servers running on one host…
jcollie
  • 648
  • 1
  • 5
  • 15
6
votes
1 answer

Connecting a local Elixir/Erlang to a running application inside a Docker container

I've got an Elixir application running inside a Docker container (in my laptop). The Elixir application was executed with the following command: iex \ --name test@1.2.3.4 \ --cookie secret \ --erl '-kernel inet_dist_listen_min 9000' \ --erl…
Sasha Fonseca
  • 2,257
  • 23
  • 41
6
votes
0 answers

RabbitMQ - Shutdown epmd.exe along with service

Does anyone knows how to setup RabbitMQ so that epmd.exe is shutdown along with the RabbitMQ service? This post seems to indicate it is not possible: Is there a way to stop Erlang servers from automatically starting epmd? Otherwise said, there's…
Joe
  • 2,496
  • 1
  • 22
  • 30
4
votes
2 answers

Starting the erlang VM without epmd

I'm trying to startup epmd separately from the erlang vm, in order to do monitoring on the connection handling. This works fine, except for cases when the vm starts up before epmd. Is there a way to make the erlang vm start without it starting the…
Martin Kristiansen
  • 9,875
  • 10
  • 51
  • 83
3
votes
1 answer

Connecting to production node when short name is set

I am running an Elixir app on my 3 servers. I recently needed to connect nodes so that I can sync something between them, and for that I set short names for each node. I am using Edeliver/Distillery to generate release and deploy. I copied…
vfsoraki
  • 2,186
  • 1
  • 20
  • 45
3
votes
2 answers

Multiple RabbitMQ instances on the same server and epmd

I have a production and staging website on the same server and I want each of them to use separate RabbitMQ instance. I'm using one RabbitMQ installation and I'm running two RabbitMQ instances, where each of the two RabbitMQ instances is set up to…
ozren1983
  • 1,891
  • 1
  • 16
  • 34
2
votes
1 answer

How to configure docker to expose an Erlang node?

I wrote a simple docker image which starts up an Erlang node (rebar3 release, console launch mode). It starts fine and lets me ping the node from within the container. However, I can't get erl shell to ping it from the host — it simply returns pang…
radrow
  • 6,419
  • 4
  • 26
  • 53
2
votes
1 answer

Erlang Node with non-Default EPMD port doesn't respond to ping anymore

If I start my single node application the ping succeeds on the default EPMD port 4369. If I now change the port with ERL_EPMD_PORT: 44370 to a different one I'm not able to connect to it anymore. EPMD is listening on 44370. After some debugging I…
Lukas Kirner
  • 3,989
  • 6
  • 23
  • 30
2
votes
0 answers

Epmd is not shared between docker with --net option

I was trying to understand a little more about the epmd and playing with docker. My idea was to run two dockers using --net=host options like this: docker run -i -t --net=host elixir iex --sname node1 --cookie cookie docker run -i -t --net=host…
jkmrto
  • 104
  • 1
  • 6
2
votes
1 answer

RabbitMQ on Windows 10 - unable to connect to epmd: adress (cannot connect to host/port)

I've been unsuccessfully struggling to get RabbitMQ working again on my machine for some time. It was installed and working then something went wrong. I've uninstalled and then installed v3.8.0 (with Erlang version 22). I've run rabbitmq-service.bat…
Matt Hogan-Jones
  • 2,981
  • 1
  • 29
  • 35
2
votes
1 answer

Sending message to remote node port(s) in erlang

When sending a message between two remote nodes. Does erlang:send use a single port like the one for epmd?
Marfeyh
  • 66
  • 4
1
vote
0 answers

Remote Erlang node debugging not working using OTP Debugger

Setup: I am using the OTP Debugger for debugging an Erlang process as explained in https://www.erlang.org/doc/apps/debugger/debugger_chapter.html I started epmd using epmd -daemon -d. I started the application in a separate node as follows; $ erl…
Bhuvan
  • 370
  • 9
1
vote
0 answers

Multiple zombie process of epmd daemon in docker RabbitMQ container causes unhealthy healthcheck

i have a probleme with RabbitMQ and EPMD Daemon, i'm using RabbitMQ 3.10.11 in docker on system os Fedora Core OS. Since my last udpade of system 37.20230110.3.1 i noticed that my docker healthcheck is unhealthy after two days running normaly. After…
1
vote
0 answers

Failing to connect to my RabbitMQ node thats being run on a VM using erl from my host machine

I'm needing to create a basic CTF using docker-compose that will be spun up on a separate machine. I have been given a service that I have to misconfigure, which will lead to a second vulnerability to get the flag or root etc. My service is Erlang's…
Dovendyr
  • 11
  • 1
1
2