New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent problem with DB connection while using Snowflake and SSO #2742
Comments
Hi Jeremy,
Our tech team have told me the token cache has been turned on for our account. I am using snowflake connector python version 2.3.1, and I still see numerous popup authentication tabs opened in my Chrome. Is there a way to verify?
From: Jeremy Cohen [mailto:notifications@github.com]
Sent: 08 September 2020 22:32
To: fishtown-analytics/dbt <dbt@noreply.github.com>
Cc: ddppi <ji.peng@outlook.com>; Mention <mention@noreply.github.com>
Subject: Re: [fishtown-analytics/dbt] Intermittent problem with DB connection while using Snowflake and SSO (#2742)
Thanks for opening @ddppi<https://github.com/ddppi>. We've been seeing some issues lately with Snowflake + browser auth.
Have you turned on the allow_id_token parameter in your Snowflake account (docs<https://docs.snowflake.com/en/sql-reference/parameters.html#allow-id-token>)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2742 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AM6SDLRO6EUPLGQRGHKCTRTSEYP4PANCNFSM4Q7T34SA>.
|
Hmm. I don't know that this would be the culprit, but it's worth saying that we've pinned |
ok, will create another virtual environment in conda and try that. In my research, I also get to know that for token caching to work, I need to have the package "secure-local-storage" installed when I install snowflake-connector-python. However, I can't run I also reduce the threads to 1 in profiles.yml, as I think it would only run 1 model at a time? However, it doesn't help either. |
Not sure I can be helpful around how to install that optional package manually on your machine. It looks like it's the same in v2.2.10, though. |
Close the issue. After I got the optional package installed, the problem seemed gone. |
I had the same issue. Did the same: and it worked. |
Hi,
I am using Window 10 + Anaconda (Python 3.7.6) + DBT (v0.18.0) to access Snowflake.
When I do DBT run, I don't have any problem while using username/password in profiles.yml. However, when I switch to SSO, I always have intermittent problem and the run fails half way, and the error message is
In the web browser, I can see the page opens up site
https://.snowflakecomputing.com/fed/login
saying
Redirecting to Snowflake client in 1 seconds...
, then the site is redirected to
http://localhost:/?token=
but I gets the error message on the webpage saying
This site can't be reached
My colleagues seem to get the same problem. Any suggestions, or what information could be helpful to trace the problem?
thanks,
The text was updated successfully, but these errors were encountered: