Skip to content
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

Empty azure_login client_id and client_secret results in "db connection failed after 30s timeout" #25

Closed
teplyuska opened this issue Dec 13, 2021 · 2 comments

Comments

@teplyuska
Copy link

teplyuska commented Dec 13, 2021

While developing pipelines to run terraform, a state file was accidentally saved with empty client_id and client_secret in azure_login.

When running "terraform plan" the refresh would result in "db connection failed after 30s timeout"

It might be helpful to others if this scenario resulted in another error message.

version 0.2.4

@ramondeklein
Copy link

ramondeklein commented Jul 27, 2022

I have the same issue after the MSSQL_CLIENT_SECRET was rotated. This resulted in the same problem. I updated the client secret in the state file (it may occur multiple times). After fixing the client secret in the state file, it all worked again.

Note that if you store the state in a remote backend (i.e. Azure storage account), then make sure you update the secret in the remote state.

@gperezivo
Copy link

I have the same issue after the MSSQL_CLIENT_SECRET was rotated. This resulted in the same problem. I updated the client secret in the state file (it may occur multiple times). After fixing the client secret in the state file, it all worked again.

Note that if you store the state in a remote backend (i.e. Azure storage account), then make sure you update the secret in the remote state.

Thanks, you save my day!

@magne magne closed this as completed Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants