ian-darby

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

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: Phoenix/Elixir -- [error] [libcluster:render] lookup against *-discovery failed nxdomain - Render Examples - Render

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

Where Next?

Popular in Questions Top

aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3268 119930 1237
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New

We're in Beta

About us Mission Statement