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

Terragrunt with/without cache very slow #3447

Open
joshbsemperis opened this issue Sep 29, 2024 · 5 comments
Open

Terragrunt with/without cache very slow #3447

joshbsemperis opened this issue Sep 29, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@joshbsemperis
Copy link

Describe the bug

Since upgrading to Mac OSX 15.0 i have had very slow terragrunt run times, minutes for what used to be not even seconds. I am currently using Apple Silicon, if thats relevant. Running the TF state lock and release with Azure Blob is getting stuck and sometimes takes 5 minutes to lock or release.

Versions

  • Terragrunt version: terragrunt version 0.67.12
  • OpenTofu/Terraform version: Terraform v1.9.6 on darwin_arm64
  • Environment details (Ubuntu 20.04, Windows 10, etc.): Mac OSX 15.0 Apple Silicon
@joshbsemperis joshbsemperis added the bug Something isn't working label Sep 29, 2024
@denis256
Copy link
Member

denis256 commented Sep 29, 2024

Hi,
try running with --terragrunt-log-level debug to get more insights on what it takes more time to execute

More insights how to debug execution in:
https://terragrunt.gruntwork.io/docs/features/debugging/

@josh-padnick
Copy link
Contributor

FYI, we're seeing this with other users as well. For anyone who has access to the Gruntwork Community Slack workspace, see https://gruntwork-community.slack.com/archives/CHH9Y3Z62/p1727904354746019.

@gchiesa
Copy link

gchiesa commented Oct 4, 2024

We are also observing in the recent version a performance degradation, it seems related to #3441 or some other caching mechanism is not working properly

@denis256 denis256 self-assigned this Oct 4, 2024
@oleksandrsv
Copy link

Same issue here, 0.45.6.

@oleksandrsv
Copy link

Initializing the backend...

Initializing provider plugins...
- Reusing previous version of hashicorp/aws from the dependency lock file
- Using previously-installed hashicorp/aws v5.70.0

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
DEBU[0008] Copying lock file from /Users/oleksandr/Git/service/.terragrunt-cache/gGNb5Obmge953iorH-dffjmjDtM/FXLLX2_sKTFe8Wo5i_vXe4_ZS1o/modules/database-us/elasticache/service/.terraform.lock.hcl to /Users/oleksandr/Git/service  prefix=[/Users/oleksandr/Git/service] 
DEBU[0008] Running command: terraform plan -input=false  prefix=[/Users/oleksandr/Git/service] 
╷
│ Error: timeout while waiting for plugin to start
│ 
│ 
╵

Planning failed. Terraform encountered an error while generating this plan.

ERRO[0075] Terraform invocation failed in /Users/oleksandr/Git/service/.terragrunt-cache/gGNb5Obmge953iorH-dffjmjDtM/FXLLX2_sKTFe8Wo5i_vXe4_ZS1o/modules/database-us/elasticache/service  prefix=[/Users/oleksandr/Git/service] 
ERRO[0075] 1 error occurred:
        * [/Users/oleksandr/Git/service/.terragrunt-cache/gGNb5Obmge953iorH-dffjmjDtM/FXLLX2_sKTFe8Wo5i_vXe4_ZS1o/modules/database-us/elasticache/service] exit status 1

terragrunt version v0.45.16

Terraform v1.5.1
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v5.70.0

MacOS 15.0 (24A335) M2 Pro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants