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

Tool not finishing correctly #38

Open
phazeight opened this issue Apr 24, 2024 · 6 comments
Open

Tool not finishing correctly #38

phazeight opened this issue Apr 24, 2024 · 6 comments
Assignees

Comments

@phazeight
Copy link

Hey, really excited to try this tool but I can't seem to get it to work.

Trying to run it using a plan file this is the command I'm doing

inkdrop tfplan --detailed --debug

and the logs make it look like it sees real resources in my plan, and its trying to do things (opens the broweser chrome window on locahost:300 and such) , but it inevitably just hangs and never shows a complete render.

Any ideas based off these logs?

Here is the first section

Diagram renderer running on localhost:3000
Computing terraform graph...
LOG: Detailed view is on.
LOG: Unchanged resources are hidden.
LOG: Full opacity for unchanged resources is off.
LOG: Terraform plan detected.
LOG: Adding main resource: module.app_config.module.secret.aws_secretsmanager_secret.this
LOG: Adding main resources...
LOG: Adding main resource: module.acm.module.acm.aws_acm_certificate.this

and here is the end

LOG: Removing inactive secondary resource: module.server_alb_logs_s3.module.s3.aws_s3_bucket_lifecycle_configuration.this
LOG: Removing inactive secondary resource: module.server_alb_logs_s3.module.s3.aws_s3_bucket_replication_configuration.this
LOG: Removing inactive secondary resource: module.server_alb_logs_s3.module.s3.aws_s3_bucket_website_configuration.this
LOG: Removing inactive resources... Done.
LOG: Removing inactive secondary resource: module.server_alb_logs_s3.module.s3.aws_s3_bucket_versioning.this
LOG: Removing unchanged main resource: module.acm.module.acm.aws_acm_certificate.this
LOG: Removing unchanged main resource: module.r53.module.zones.aws_route53_zone.this
LOG: Removing unchanged resources... Done.
LOG: Computing connections...
LOG: Removing unchanged resources...
LOG: Computing connections... Done.

there are a bunch of logs in the middle regarding resources that don't seem relevant to post here (removing inactive resources, aggregating and such) but let me know if you want to see those too.

@albschi albschi self-assigned this Apr 25, 2024
@albschi
Copy link
Contributor

albschi commented Apr 25, 2024

Hey, thanks for reporting!

When it opens localhost:3000 on your browser, do you see a completely white page, or a whiteboard with no resources?
Do you see any errors in the browser console?

@kjm0001
Copy link

kjm0001 commented May 11, 2024

I am having same issues, and I can see the sidebar navigation, but the whiteboard is empty

@phazeight
Copy link
Author

sorry got lost in the shuffle, will get back to this shortly with much more details

@JanRK
Copy link

JanRK commented May 15, 2024

I have the same issue. It doesn't show anything on a plan with over 100 changes.
inkdrop plan.out --debug --show-unchanged --telemetry-off --detailed
image

Nothing special in console
image

@albschi
Copy link
Contributor

albschi commented May 16, 2024

@phazeight The issue in your case was probably related to a bug that couldn't render nested modules with the same name (module.acm.module.acm from what I can read in your logs). This should be fixed in 1.1.46

@kjm0001 and @JanRK, your problem is likely something different, though. Would you mind sharing a file containing the whole --debug output?

@phazeight
Copy link
Author

phazeight commented May 16, 2024

okay gonna give it a shot

EDIT:
YO its working much better now! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants