-
Notifications
You must be signed in to change notification settings - Fork 428
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
[Bug]: Unexpected error: Error: 260002: password is empty
when using env variables
#3369
Comments
Error: 260002: password is empty
when using env variables
Hi @sharanya-ve 👋
Did this happen after an upgrade? If it's running fine in CI/CD, this looks like a misconfiguration. This log entry just informs that no TOML config file was found, and it's a fallback to an empty config. This config is then overridden by env and Terraform values. I just tested it with the same setup, and I also see this log, but I authenticate correctly. Please test something like |
Thank you! I think you're right - that test worked so it's a configuration issue on my end. I'll troubleshoot on my own sorry for the false alarm! |
I'm finding something similar with 1.0.2. I'm getting |
I am using the account locator format (xy12345.us-east-1.aws) RE: https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region I previously had SNOWFLAKE_ACCOUNT and SNOWFLAKE_REGION set in my environment. I've tried setting SNOWFLAKE_ACCOUNT_NAME="xy12345" and SNOWFLAKE_ORGANIZATION_NAME="ASDFGHJ" but am getting a failure:
|
I just found this comment #3198 (comment) I think I had my accountname wrong.. trying again.. |
Had my account name wrong. That resolved my issue. Thanks @sfc-gh-asawicki ! |
Terraform CLI Version
v1.10.5
Terraform Provider Version
v1.0.2
Company Name
No response
Terraform Configuration
Category
category:provider_config
Object type(s)
No response
Expected Behavior
I would expect this configuration to authenticate to Snowflake correctly. According to the documentation for the latest version, the provider should be able to get the password from the
SNOWFLAKE_PASSWORD
env variable and takes precedence over credentials in a config file.https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs#order-precedence
Actual Behavior
I am getting the following error:
Error: 260002: password is empty
. I confirmed that the variable was set correctly by runningecho $SNOWFLAKE_PASSWORD
.Seeing the following line in the debug logs so it looks like this may be due to not having a config file - according to the docs I shouldn't need one if I have an env var set.
[DEBUG] No Snowflake config file found, returning empty config: could not load config file: open /<path>/.snowflake/config: no such file or directory
Steps to Reproduce
terraform init
terraform plan
- it fails to authenticate to Snowflake here.How much impact is this issue causing?
Medium
Logs
No response
Additional Information
This seems to be new (as of the last 3 or so days). I'm running into this error locally but our CICD process seems fine.
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: