gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
8.09k stars 981 forks source link

423 Locked error since version 0.67.5 #3430

Closed Duvieusam closed 1 month ago

Duvieusam commented 1 month ago

Describe the bug

Since version 0.67.5 we experience an error during init phase. We are running terragrunt in Gitlab CI job.

Here is the output:

16:45:14.648 INFO   [account_sandbox] Caching terraform providers for ./account_sandbox
16:45:16.309 STDERR [account_sandbox] terraform: ╷
16:45:16.309 STDERR [account_sandbox] terraform: │ Error: Failed to install provider
16:45:16.309 STDERR [account_sandbox] terraform: │ 
16:45:16.309 STDERR [account_sandbox] terraform: │ Error while installing cloudflare/cloudflare v4.42.0: could not query
16:45:16.309 STDERR [account_sandbox] terraform: │ provider registry for registry.terraform.io/cloudflare/cloudflare: 423
16:45:16.309 STDERR [account_sandbox] terraform: │ Locked
16:45:16.309 STDERR [account_sandbox] terraform: ╵
16:45:16.379 ERROR  [account_sandbox] terraform invocation failed in ./account_sandbox stderr=
╷
│ Error: Failed to install provider
│ 
│ Error while installing cloudflare/cloudflare v4.42.0: could not query
│ provider registry for registry.terraform.io/cloudflare/cloudflare: 423
│ Locked
╵

The job was working before version 0.67.5.

Steps To Reproduce

Here is the command line that led to the error:

terragrunt run-all plan
      --terragrunt-exclude-dir "/builds/cloudflare/tf-cloudflare/account_zzpool*"
      --terragrunt-exclude-dir "/builds/cloudflare/tf-cloudflare/account_zzpool*/*"
      --terragrunt-strict-include
      --terragrunt-include-dir "/builds/cloudflare/tf-cloudflare/account_*-dev/*/*/cdn"
      --terragrunt-include-dir "/builds/cloudflare/tf-cloudflare/account_*-dev/*/token"
      --terragrunt-include-dir "/builds/cloudflare/tf-cloudflare/account_sandbox/*/*/cdn"
      --terragrunt-include-dir "/builds/cloudflare/tf-cloudflare/account_sandbox/*/token"
      --terragrunt-include-dir "/builds/cloudflare/tf-cloudflare/account_*-dev"
      --terragrunt-include-dir "/builds/cloudflare/tf-cloudflare/account_sandbox"
      --terragrunt-include-dir "/builds/cloudflare/tf-cloudflare/account_*-dev/*"
      --terragrunt-include-dir "/builds/cloudflare/tf-cloudflare/account_sandbox/*"

Versions

Additional context

I do think that the error may comes from the way Gitlab runners handle ouput logs. This may not be detected correctly by the regular expression that tests terraform init the first time.

levkohimins commented 1 month ago

Hi @Duvieusam, thanks for the reporting, this is known issue #3420, we are working on a fix. This error message does not affect the workflow in any way, just ignore it.

weisdd commented 1 month ago

@levkohimins The annoying side-effect is that it results in failed GitHub jobs even though, like you mentioned, there is no real failure. So, it's great to know that someone's already working on a fix :)

image
joshbsemperis commented 1 month ago

This is a major issue, please fix this ASAP

asvataa commented 1 month ago

+1

levkohimins commented 1 month ago

Resolved in v0.68.0-beta2024100801 release.