Skip to content

fix: don't connect to the epmd daemon#553

Open
doorgan wants to merge 1 commit intomainfrom
doorgan/dont-connect-epmd
Open

fix: don't connect to the epmd daemon#553
doorgan wants to merge 1 commit intomainfrom
doorgan/dont-connect-epmd

Conversation

@doorgan
Copy link
Copy Markdown
Collaborator

@doorgan doorgan commented Apr 3, 2026

Fix #552

#339 already did most of this, but missed two places where we would still try to use the default epmd daemon:

  • :erl_epmd.register_node makes the node join the epmd cluster, which has proven to cause issues with our custom setup. I don't fully understand the mechanism, but the observed effect is that project nodes can't connect to the manager node nor with eachother.
  • There is a remaining :erl_epmd.port_please call. It should not be reached and it does not make the current node join the epmd cluster, but it still tries to reach the epmd daemon and I think that should be avoided as much as possible

That said, it's been a long time since I've been able to reproduce that error, and I couldn't do it so far today. I think the issue is being connected to EPMD based on my previous experience with that kind of trace. It's that, and the fact that expert is still connecting to epmd when it should not:

✦ ❯ epmd -names
epmd: up and running on port 4369 with data:
name expert-project-sourceror-26930 at port 55567
name expert-project-rainet-55311 at port 55566
name expert-manager-rainet-55311 at port 55535
name expert-manager-sourceror-26930 at port 55533
name expert-project-use_references-28058 at port 63147
name expert-manager-use_references-28058 at port 63145
name expert-project-engine-13612 at port 53734
name expert-project-main-40757 at port 52990
name expert-project-secondary-46962 at port 52980
name expert-project-monorepo_test-54379 at port 52966
name expert-manager-monorepo_test-54379 at port 52912
name expert-project-main-10873 at port 61870
name expert-project-umbrella-35374 at port 61864
name expert-manager-umbrella-35374 at port 61775
name expert-project-rainet-6647 at port 61653
name expert-manager-rainet-6647 at port 61576
name expert-project-forge-17118 at port 61539
name expert-project-expert-11330 at port 61487
name expert-manager-expert-11330 at port 61485

@doorgan doorgan changed the title fix: don't connect to epmd fix: don't connect to the epmd daemon Apr 3, 2026
@katafrakt
Copy link
Copy Markdown
Contributor

Pardon my ignorance, as I don't know a lot about epmd. There are also defdelegates at the end of the file that delegate to :erl_empd, for example listen_port_lease or address_please. Aren't they potentially going to cause problems too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Engine shut down unexpectedly: no connection between project node and manager node

2 participants