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

panic: runtime error: invalid memory address or nil pointer dereference #47

Closed
grafanalf opened this issue Oct 4, 2021 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@grafanalf
Copy link

I am getting the following panic from Rover:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x758fa8]

goroutine 1 [running]:
main.(*rover).GenerateResourceOverview(0xc000214000)
	/src/rso.go:166 +0x1168
main.(*rover).generateAssets(0xc000214000)
	/src/main.go:172 +0x167
main.main()
	/src/main.go:118 +0xa19

However, terraform plan works just fine, but it prints the following warning at the end:

Plan: 0 to add, 0 to change, 3 to destroy.

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.

Any ideas?

@im2nguyen im2nguyen added the bug Something isn't working label Oct 4, 2021
@grafanalf
Copy link
Author

I think this might be a duplicate of issue #26

@Yashfork
Copy link

Yashfork commented Feb 7, 2022

Hi @im2nguyen ,

While running docker run, I'm getting the above panic error. Any suggestions on what could be done to mitigate this issue

@im2nguyen
Copy link
Owner

Hi @Yashfork, can you provide more context so I can reproduce your error?

It'll be nice to understand what the plan does (create, update, destroy) and the error logs.

@dorinand
Copy link

dorinand commented Apr 1, 2022

@im2nguyen I encounter the same issue. I have plan in json format. I run it with command:

docker run --rm -it -p 9000:9000 -v $(pwd):/src im2nguyen/rover:v0.3.2 -planJSONPath /src/plan.json
2022/04/01 08:42:40 Starting Rover...
2022/04/01 08:42:40 Using provided JSON plan...
2022/04/01 08:42:40 Generating resource overview...
2022/04/01 08:42:40 No submodule configurations found...
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-asg-terminating
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-asg-total-nlm
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-cpu-usage
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-cpu-usage-nlm
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-total-requests-finished-error
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-waf-counted
2022/04/01 08:42:40 Continuing without loading module from filesystem: lambda-async-calls-handler
2022/04/01 08:42:40 Continuing without loading module from filesystem: license-server-asg
2022/04/01 08:42:40 Continuing without loading module from filesystem: license-server-asg.lb
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-fsx-free-space
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-license-check
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-memory-usage-nlm
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-total-requests-failed-start
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-asg-pending
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-asg-pending-nlm
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-asg-terminating-nlm
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-asg-total
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-memory-usage
2022/04/01 08:42:40 Continuing without loading module from filesystem: mps-asg
2022/04/01 08:42:40 Continuing without loading module from filesystem: mps-asg.lb
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-alb-5xx
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-alb-healthy
2022/04/01 08:42:40 Continuing without loading module from filesystem: monitor-waf-blocked
2022/04/01 08:42:40 Continuing without loading module from filesystem: tags
2022/04/01 08:42:40 Continuing without loading module from filesystem: waf2-lb
2022/04/01 08:42:40 Generating resource map...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0xa5a148]

goroutine 1 [running]:
main.(*rover).GenerateModuleMap(0xc000105200, 0xc000517ba0, {0x0, 0x0})
	/src/map.go:250 +0xd88
main.(*rover).GenerateMap(0xc000105200)
	/src/map.go:343 +0x1d1
main.(*rover).generateAssets(0x0)
	/src/main.go:193 +0xd4
main.main()
	/src/main.go:138 +0xcbb

Tried version v0.3.1 but the result is the same.

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

4 participants