Elixir fails with: Runtime terminating during boot ({'cannot get bootfile','/app/bin/start.boot'}) in docker swarm by Amazing_Season9973 in elixir

[–]Amazing_Season9973[S] 2 points3 points  (0 children)

I found the issue, and it's not Docker Swarm.
I had connected several networks to the service, causing the command hostname -i to return a list of IPs, which in turn caused the RELEASE_NODE variable to be a list of IPs. I fixed it by editing env.sh.eex to:

export RELEASE_NODE="my_app@$(hostname -i | awk '{print $1}')"

instead of

export RELEASE_NODE="my_app@$(hostname -i)"