# dbt not connecting to snowflake from ubuntu

**URL:** <https://discourse.getdbt.com/t/dbt-not-connecting-to-snowflake-from-ubuntu/19015>\
**Category:** Help\
**Tags:** snowflake, dbt-core\
**Created:** [April 13, 2025, 12:43am UTC](https://discourse.getdbt.com/t/dbt-not-connecting-to-snowflake-from-ubuntu/19015 "2025-04-13T00:43:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![acsekhar2000](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@acsekhar2000](https://discourse.getdbt.com/u/acsekhar2000)\
**Post date:** [April 13, 2025, 12:43am UTC](https://discourse.getdbt.com/t/dbt-not-connecting-to-snowflake-from-ubuntu/19015/1 "2025-04-13T00:43:00Z")

</div>

## I am trying to use dbt with snowflake. Installed everything and when I run “dbt debug” it is throwing the error

(Caused by NewConnectionError(‘\<snowflake.connector.vendored.urllib3.connection.HTTPSConnection object at 0x7fe604c831c0\>: Failed to establish a new connection: [Errno -2] Name or service not known’))

OS=ubuntu  
python ==3.10.12  
dbt-core==1.9.4  
dbt-snowflake==1.9.2  
snowflake-connector-python==3.14.0

I could connect to snowflake using UI and the .profiles file is correct. The same file was used by someone else and it worked for them

appreciate your help

## What I’ve already tried

debt debug  
updated no\_proxy and NO\_PROXY

## Some example code or error messages

```auto
--my profiles file
ap:
  outputs:
    dev:
      account: mycompany.us-east-1.privatelink
      authenticator: externalbrowser
      database: MYDB
      role: MYROLE
      schema: TRGT
      threads: 1
      type: snowflake
      user: myname@mycompany.com
      warehouse: mywarehouse
  target: dev

```

---

<div class="post-metadata">

**Author:** ![Priest](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Priest](https://discourse.getdbt.com/u/Priest)\
**Post date:** [April 18, 2025, 2:11pm UTC](https://discourse.getdbt.com/t/dbt-not-connecting-to-snowflake-from-ubuntu/19015/2 "2025-04-18T14:11:25Z")

</div>

I think its the account. I dont think you need to use the full account info, just the name.
