Erlang distribution and the box's epmd listen on every interface with the cookie this repo publishes (mcl_tube on 0.0.0.0, cookie mcl_tube) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (defect): mcl-tube's Erlang distribution and the epmd it starts listen only on loopback, and no shipped file names a cookie, so neither a node started from this repo nor the box's shared epmd can be reached from the LAN with a published cookie.
What is wrong (measured 2026-11-23, read-only, while probing macula-services/mcl-mail#17)
Containerfile:67bakesENV MCL_COOKIE=mcl_tube, anddeploy/docker-compose.yml:72hard-codesMCL_COOKIE=mcl_tube.config/vm.args.src:3reads-setcookie ${MCL_COOKIE}. Neither file has-kernel inet_dist_use_interfaceorERL_EPMD_ADDRESS. Compose:27usesnetwork_mode: host.sudo ss -ltnpshows mcl_tube's beam.smp (-name mcl_tube@127.0.0.1) on0.0.0.0:46253(dist) and0.0.0.0:8493.epmd -daemon(pid 1710, started 2026-11-08) is a child of mcl_tube's beam and sits in the mcl-tube container's cgroup. It listens on0.0.0.0:4369and[::]:4369. Every other host-networked BEAM service on the box (mcl-mail, mcl-chess) registers with it, so this epmd stays on every interface until mcl-tube setsERL_EPMD_ADDRESS, whatever those services do.The fix exists in the class
mcl-chess (mcl-om#24) carries it, and macula-services/mcl-mail#17 ports it:
ENV ERL_EPMD_ADDRESS=127.0.0.1in the image,-kernel inet_dist_use_interface {127,0,0,1}invm.args.src, no cookie in any shipped file, and a service test asserting the pins.Done when
ss -ltnon a box running mcl-tube shows its dist port on 127.0.0.1, and the epmd it starts on 127.0.0.1 only.Found by Jupiter during mcl-mail#17 step 1. Refs macula-services/mcl-mail#17.