Issue: Redix connection


I have a Phoenix app already running and now I’m trying to add a caching layer using redis. I have the redis server running the same org as phoenix app but I am not able to connect to it from Elixir IEX console. I am able to ssh into the redis server and use the redis-cli with no problems.

Here is what I’m trying

{:ok, conn} = Redix.start_link(redis://

Redix.command(conn, ["AUTH", "my_secret_pass"])

I keep getting {:error, %Redix.ConnectionError{reason: :closed}}

Has anyone able to successfully use Redis and Phoenix app on

I found solution here. Accessing redis cluster from Phoenix/Elixir App

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.