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
connection refused when running init -upgrade
with provider cache
#3123
Comments
I just tried export TERRAGRUNT_PROVIDER_CACHE=1
export TERRAGRUNT_PARALLELISM=5
terragrunt run-all init -upgrade --terragrunt-working-dir ${{ inputs.dir }}
terragrunt run-all providers lock -platform=darwin_amd64 -platform=linux_amd64 -platform=darwin_arm64 --terragrunt-working-dir ${{ inputs.dir }} with the same result |
Hi @norman-zon, thanks for the full log, it's really helpful. We are still working on improving Terragrunt Provider Cache, so critical errors in the logs are not yet obvious enough.
This is most likely due to the fact that There are two ways to solve the issue:
terraform {
required_providers {
fastly = {
source = "registry.terraform.io/fastly/fastly"
}
}
} |
@norman-zon, please do not close this issue. I will change the behavior of signature verification so that it does not lead to a critical error, but only a notification. |
@levkohimins I do use "http://127.0.0.1:44237/v1/providers//registry.opentofu.org/hashicorp/time/versions":
dial tcp 127.0.0.1:44237: connect: connection refused Furthermore when trying to recreate the behaviour in a minimal example and only using |
I didn't find any errors in your logs. But in any case, as I said earlier, use the full path in the source attribute |
I'm a little confused. The error I am seeing is Here is an example debug-log of a run using This leads me to believe the cause for the The screenshot shows the missing signature as a warning, but not resulting in an error |
Hope this clears things up for you:
|
Hi @norman-zon, Could you confirm that the issue has been resolved at least as of version v0.58.9? |
Describe the bug
Running
terragrunt init -upgrade
withTERRAGRUNT_PROVIDER_CACHE=1
fails in CI due to refused connection.Steps To Reproduce
That's tricky. I could not reproduce in a minimal example. This only seems to happen in our production setup.
The error:
Expected behavior
Terragrunt starts the cache server and is able to serve providers from there.
Nice to haves
10_Lock Providers (._projects-team-interactive) _ Lock Providers.txt
Versions
Additional context
I'm sorry I can't provide a reproducible example. Hopefully the logs are helpful.
The text was updated successfully, but these errors were encountered: