Coder Social home page Coder Social logo

Comments (2)

jtcohen6 avatar jtcohen6 commented on July 30, 2024 1

@billy1s I'm not sure what's going on here. The codepath you're seeing is:

https://github.com/dbt-labs/dbt/blob/9e796671dd55d4781284d36c035d1db19641cd80/plugins/postgres/dbt/adapters/postgres/connections.py#L127-L135

This error message is coming straight from pycopg2, the library dbt uses to connect to Postgres + Redshift. I did some quick searching for psycopg2 ssl error unsupported method, but I didn't find any obvious leads. Without better visibility into the psycopg2 logs, it's hard to know what's going on here.

Until we have a better understanding of the underlying issue, or even what its error code is, I'm hesitant to consider it a transient error—that is, silently catch and retry—though that might be the ultimate resolution here (#3303).

Something we could consider doing is adding psycogp2 to the list of logger.getlogger().setLevel() calls here, so that you can show debug-level psycopg2 logs by setting an env var:

https://github.com/dbt-labs/dbt/blob/9e796671dd55d4781284d36c035d1db19641cd80/core/dbt/logger.py#L629-L642

(@kwigley @leahwicz An aside: We'll need to figure out how to lightly refactor this code post-#3361, so that the env vars + log level setting for adapter plugins does not happen inside core/dbt.logger.py.)

I do see that you're using dbt v0.16.1, which is fairly old. I don't think we've touched this code much in the past several releases, and every version of dbt-postgres from v0.16 to v0.20 has the same dependency requirement of psycopg2~=2.8. Still, it never hurts to try upgrading to a newer version.

from dbt-redshift.

github-actions avatar github-actions commented on July 30, 2024

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days.

from dbt-redshift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.