I'm trying to get snowsql
working locally on my machine but I cannot log into my database because it requires that I authenticate with my google account for SSO. The documentation says to use the --authenticator externalbrowser
option which should open a local browser and ask me to sign on but that doesn't happen, nothing happens.
Example:
$ snowsql -o log_level=DEBUG -a <account> -u <gmail> --authenticator externalbrowser
Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again...
No browser windows open. Pressing CTRL+C
does not abort snowsql; I must run pkill to kill it. The last of my logs show
2021-06-17 14:48:12,211 (222954/MainThread) snowflake.connector.network DEBUG network:940 - SUCCESS
2021-06-17 14:48:12,212 (222954/MainThread) snowflake.connector.network DEBUG network:1096 - Active requests sessions: 0, idle: 1
2021-06-17 14:48:12,212 (222954/MainThread) snowflake.connector.network DEBUG network:642 - ret[code] = None, after post request
2021-06-17 14:48:12,212 (222954/MainThread) snowflake.connector.auth_webbrowser DEBUG auth_webbrowser:123 - step 2: open a browser
2021-06-17 14:48:12,237 (222954/MainThread) snowflake.connector.auth_webbrowser DEBUG auth_webbrowser:136 - step 3: accept SAML token
platform:
- Platform is Arch Linux (kernel version 5.12.10)
- Default browser is
BROWSER=/usr/bin/firefox
snowsql --version
says 1.2.15- Installed via snowflake-client AUR package. (Which currently says version 1.2.14 but I believe
snowsql
updated itself to 1.2.15.)
~/.snowsql/config
to~/.local/share/snosql.log
because it was defaulting to../snowsql.log
which could be/home/snowsql.log
which it couldn't write to. – Spang1.2.15
,BROWSER=/usr/bin/firefox
platform is Arch Linux installed using this package aur.archlinux.org/packages/snowflake-client . Which is on 1.2.14 but the snowsql binary updated itself. – Spangsnowsql
1.2.21 – Ballplayer