Pluralith / pluralith-cli

A tool for Terraform state visualisation and automated generation of infrastructure documentation
https://www.pluralith.com
Mozilla Public License 2.0
776 stars 54 forks source link

reading cache from disk failed #94

Open 2Daeyoung opened 1 year ago

2Daeyoung commented 1 year ago

Can you check what it means below?

Is it because the terraform state code is big? Please let me know and fix plz.

→ Plan ✔ Execution Plan Generated ✔ Plan Cache Created ✔ Secrets Stripped

→ Graph ✔ Diagram Generated ✘ Posting Run To Pluralith Dashboard Failed reading cache from disk failed -> PostGraph: open /Users/dae/Desktop/test/ucmp-terraform-dev/UCMP-RESOURCE/.pluralith/pluralith.cache.json: no such file or directory

2Daeyoung commented 1 year ago

pluralith.plan.bin pluralith.state.json files have been created except for cache file

DanThePutzer commented 1 year ago

@2Daeyoung yes you guessed correctly, this usually happens when the state is rather large and our graphing algorithm silently fails.

Would you be open to run pluralith strip in your current project, inspect the hashed state and share it with @PhiWeber via phi@pluralith.com if you deem it safe? That would be super helpful in finding the exact issue that causes the graphing algorithm to fail.

2Daeyoung commented 1 year ago

I'm so sorry. This code is for our company, so it should not be send out. T_T

DanThePutzer commented 1 year ago

@2Daeyoung the pluralith strip command hashes all identifiable information locally and only keeps the general structure of the state the same, so no sensitive data would be shared with us, but of course please only share if you feel comfortable with it! :)

We'll keep improving the graphing algorithm in the meantime and the issue might disappear with one of the improvements we release 👍

dsfrederic commented 1 year ago

Experiencing the same issue.

Is there a workaround for this?

yuta-mizushima-kobushime commented 1 year ago

I am facing the same issue.

T-MOTOSEKO commented 1 year ago

I'm facing the exact same problem.

Saku3449 commented 4 months ago

I'm facing the same issue. In my case, I ran that command against the following init.tf file

provider "aws" {}

module "generated_resource" {
  source = "./generated/"
}