ian-darby
Libcluster on render.com -- lookup against *-discovery failed nxdomain
Has anyone successfully deployed a clustered Phoenix 1.7 app on render.com recently? I’m having trouble getting it working and their support hasn’t responded any of the channels I’ve used to try and get help.
Here’s my situation –
I’m on Elixir 1.14.3/OTP 25.2 and running Phoenix 1.7.0-rc2,and libcluster 3.3.2.
I’m trying to stand up an elixir cluster by following the example here: Deploy a Distributed Elixir Cluster | Render.
I’m getting an error on deploy: [error] [libcluster:render] lookup against [app-name]-discovery failed: :nxdomain
I found someone with a (possibly) similar issue here, but the response was to take the issue offline: Cannot cluster elixir - nxdomain failure when finding discovery service
Any advice or tips would be much appreciated!
Marked As Solved
ian-darby
With the help of an engineer at Render, I was able to sort out this issue. Here’s a link to the thread on the Render forum for posterity: https://community.render.com/t/phoenix-elixir-error-libcluster-render-lookup-against-discovery-failed-nxdomain/9182
The TLDR:
The issue was on my end. I was using the bin/app_name start without setting the PHX_SERVER=true env var. I should have been using the bin/server command to start the app, which sets that env var automatically.
Here’s my fork of the render example clustering app, running in clustered mode on phoenx 1.7.0.rc-2 for anyone who may find it useful: GitHub - ian-darby/elixir_cluster_render_example: Distributed Elixir Cluster on Render with libcluster and Mix Releases
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








