Pluralith / pluralith-cli

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

Cannot generate graph on M1 Mac #131

Open Rintarooo opened 1 year ago

Rintarooo commented 1 year ago

I followed docs and successfully installed pluralith CLI on M1 Max Mac . Then, I tried to generate graph but it failed and output the following error.

$ pluralith graph        
parsing response failed -> GetGitHubRelease: %!w(<nil>)
⠿ Initiating Graph ⇢ Posting Diagram To Pluralith Dashboard

→ Authentication
  ✔ API key is valid, you are authenticated!

→ Plan
  ✘ Couldn't Generate Local Execution Plan

Error: No configuration files

Plan requires configuration to be present. Planning without a configuration
would mark everything for destruction, which is normally not what is desired.
If you would like to destroy everything, run plan with the -destroy option.
Otherwise, create a Terraform configuration file (.tf file) and try again.

running terraform plan failed -> GenerateGraph: RunPlan: exit status 1

I think Graph Module Version: Not Installed below is likely to be a problem. How do I install Graph Module on M1 Max Mac? Is this a problem related to supporting M1 Mac?

$ pluralith version
parsing response failed -> GetGitHubRelease: %!w(<nil>)
 _
|_)|    _ _ |._|_|_ 
|  ||_|| (_||| | | |

→ CLI Version: 0.2.2
→ Graph Module Version: Not Installed

My Environment

doniz commented 1 year ago

In my case I get:

➜  pluralith graph
parsing response failed -> GetGitHubRelease: %!w(<nil>)
⠿ Initiating Graph ⇢ Posting Diagram To Pluralith Dashboard

→ Authentication
  ✔ API key is valid, you are authenticated!

→ Plan
  ✔ Local Execution Plan Generated
  ✔ Local Plan Cache Created
  ✔ Secrets Stripped
  - Cost Calculation Skipped

→ Graph
  ✘ Local Diagram Generation Failed

generating diagram failed -> GenerateGraph: running CLI command failed -> GenerateDiagram: fork/exec /Users/HIDDEN/Pluralith/bin/pluralith-cli-graphing: no such file or directory

Environment:

doniz commented 1 year ago

In my case I get:

➜  pluralith graph
parsing response failed -> GetGitHubRelease: %!w(<nil>)
⠿ Initiating Graph ⇢ Posting Diagram To Pluralith Dashboard

→ Authentication
  ✔ API key is valid, you are authenticated!

→ Plan
  ✔ Local Execution Plan Generated
  ✔ Local Plan Cache Created
  ✔ Secrets Stripped
  - Cost Calculation Skipped

→ Graph
  ✘ Local Diagram Generation Failed

generating diagram failed -> GenerateGraph: running CLI command failed -> GenerateDiagram: fork/exec /Users/HIDDEN/Pluralith/bin/pluralith-cli-graphing: no such file or directory

Environment:

  • Macbook Pro 2020
  • Apple M1
  • Sonoma 14.0 (23A344)

Ok, I found accidentally there is another CLI tool for graph which needs to be installed: https://github.com/Pluralith/pluralith-cli-graphing-release (in documentation barely saying about to install this graph module), however I still get errors:

➜ pluralith install graph-module

parsing response failed -> GetGitHubRelease: %!w(<nil>)
 _
|_)|    _ _ |._|_|_
|  ||_|| (_||| | | |

Installing Latest Graph Module

✘ Parsing request result failed
parsing response failed -> GetGitHubRelease: %!w(<nil>)

➜  pluralith version
parsing response failed -> GetGitHubRelease: %!w(<nil>)
 _
|_)|    _ _ |._|_|_
|  ||_|| (_||| | | |

→ CLI Version: 0.2.2
→ Graph Module Version: Not Installed
michaelbutler commented 1 year ago

Getting these same errors. Also found the pluralith install graph-module thing via some manual investigation, and indeed seeing the same GetGitHubRelease parsing errors which prevent any of this from working... hmm. It's alpha software, perhaps download and earlier release?

sean-akatsuki commented 1 year ago

same problem, you will find it always tried to download graph-module from a server, but always failed because of 503service not avaible. stop wasting your time on this product.

ysirman commented 11 months ago

I have successfully run the pluralith graph command by manually downloading.

  1. Download from https://github.com/Pluralith/pluralith-cli-graphing-release/releases
  2. Rename the binary to pluralith-cli-graphing
  3. Move the downloaded binary to ~/Pluralith/bin/
  4. Run chmod +x ~/Pluralith/bin/pluralith-cli-graphing
  5. Run pluralith version

Then you can see Graph Module Version: 0.2.1


%pluralith version
parsing response failed -> GetGitHubRelease: %!w(<nil>)
 _
|_)|    _ _ |._|_|_
|  ||_|| (_||| | | |

→ CLI Version: 0.2.2
→ Graph Module Version: 0.2.1
gouravjoshicldcvr commented 11 months ago

I tried you do the same but for me not working parsing response failed -> GetGitHubRelease: %!w() |)| |.|| | |||| (_||| | | |

→ CLI Version: 0.2.2 → Graph Module Version: Not Installed

lukaszrosiak commented 11 months ago

Just rename ~/Pluralith/bin/pluralith_cli_graphing to pluralith-cli-graphing

jordandakota commented 6 months ago

Tried this on windows, can run --local-only but fails to upload to pluralith dashboard without.