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: 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

Where Next?

Popular in Questions Top

chokchit
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2733ms. You can configure how long re...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New

Other popular topics Top

chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
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
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement