dbt-labs / dbt-labs/dbt-adapters

[Bug] Failed to delete credential in the keyring - after enabling MFA

Open
#982 4 comments 5 reactions 0 assignees View on GitHub
pkg:dbt-snowflake triage:product type:bug
Dominant language
Python
Stars
233
Forks
362
Avg merge
3d 22h
Merged PRs (30d)
9

Description

### Is this a new bug?

- [x] I believe this is a new bug
- [x] I have searched the existing issues, and I could not find an existing issue for this bug

### Which packages are affected?

- [ ] dbt-adapters
- [ ] dbt-tests-adapter
- [ ] dbt-athena
- [ ] dbt-athena-community
- [ ] dbt-bigquery
- [ ] dbt-postgres
- [ ] dbt-redshift
- [x] dbt-snowflake
- [ ] dbt-spark

### Current Behavior

No dbt command is working as I can't connect to Snowflake.

### Expected Behavior

Connect to Snowflake

### Steps To Reproduce

My `profiles.yml` has the following setup:

```
authenticator: username_password_mfa
reuse_connections: true
```

### Relevant log output

```shell
ERROR:snowflake.connector.auth._auth:Failed to delete credential in the keyring: err=[.EU-WEST-1.SNOWFLAKECOMPUTING.COM:DNAWROT:SNOWFLAKE-PYTHON-DRIVER:MFATOKEN]
```

### Environment

```markdown
- OS: Windows 11
- Python: 3.12.3
- dbt: 1.9.3
- dbt-snowflake: 1.9.2
```

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.