killerkiara

killerkiara

Hello everyone!

This is my first post, I hope I will be able to make it useful to others as well.

I am trying to setup a connection to the cloud analytical DB Snowflake (https://www.snowflake.com/en/) from a Phoenix app using Snowflex (https://github.com/pepsico-ecommerce/snowflex).

I followed the readme on the Snowflex page, but when I run my server locally I keep getting the following error:

[warning] Unable to connect to snowflake: '[Snowflake][ODBC] (10380) Unable to establish connection with data source. Missing settings: {[SERVER]} SQLSTATE IS: 08001 Connection to database failed.'

I am using:

MacOS 12.6 (Apple Silicon M1)

Erlang version 25.1.1, installed with asdf to have ODBC

Elixir version 1.14.2, installed with asdf

Unixodbc 2.3.12 (installed through Homebrew following the Snowflex readme).

This is how my config file looks like for development, with placeholder secrets. I just need to test pushing some data from local for the time being.

config :snowflex, driver: "/opt/snowflake/snowflakeodbc/lib/libSnowflake.dylib"

config :my_app, SnowflakeConnection,
  connection: [
      server: "snowflake-server-address",
      role: "DEV",
      warehouse: "name-of-warehouse",
      uid: "user",
      pwd: "pwd"
  ]

I have looked extensively, but did not find any similar error for a Phoenix app and I don’t know what to do to fix it.

Showing Posts 1 to 10

dimitarvp

dimitarvp

It would be easier for readers if you copy-pasted the errors into a code-formatted ``` block and not post screenshot with a tiny font.

That being said, also please post your configuration so potential helpers can try and offer you modifications.

killerkiara

killerkiara OP

Thanks a lot @dimitarvp . I have edited my post with the proper formatting for the error message.
What else is needed in terms of providing a configuration, other than the info I posted? Do you mean my mix file? Thanks a lot for trying to help!

dimitarvp

dimitarvp

I meant what is in your config/*.exs files that relate to connecting to Snowflake.

killerkiara

killerkiara OP

@dimitarvp , I added what I have in my config/dev.exs. Only trying to connect from local for now.

dimitarvp

dimitarvp

Admittedly I never worked with Snowflake but have you tried connecting to it outside Elixir, with some dedicated tool? Similar to how people test connecting to their Postgres DB with the psql CLI tool.

killerkiara

killerkiara OP

yes, I just tested the actual connection with a Snowflake tool called snowsql that works just like psql and I can connect without any issue, using the same connection data I am using in my config file. I very much think the issue is in the ODBC setup on my local machine, but I am not being able to debug it as there are so many different pieces that need to work together.

Thanks a lot anyways for your time and your suggestions on how to improve my question.

cevado

cevado

what is the name of your app? is it really :my_app? if not, then the config is pruned.

killerkiara

killerkiara OP

Hi @cevado. No, I just substituted the real name of the app. Is it important what it is called?

dimitarvp

dimitarvp

Highly likely I am afraid. I gave up using ODBC long time ago (more than a decade) but I understand – work is work.

Hope you fix it.

killerkiara

killerkiara OP

I will share a solution in case I am able to make it work, might help others. I have not found much info anywhere so I collected my courage to write a post here :slight_smile:

Where Next? Top

Trending in Questions Top

katta
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
peck
Hi everyone. My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
achenet
Hello, I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind. However, when I launch mix phx.server, I get an error...
New
bradley
I really like the adapter patterns that ecto, nebulex, waffle, etc. use and would love find something similar for a key management servic...
New
unaware8150
Hello folks! So at work, we are seeing some situations where we have to define some “fixed” strings that are used across the codebase in...
New
Cxx-mlr
I’m working on a small exercise involving update_in/3, and I came up with this solution: data = %{ name: "Periodic Table", category:...
New
Alvinkariuki
How Can I Optimise Compile Time Dependencies I have been building an elixir application for about 2 years now. Many modules and files ha...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews