-
Notifications
You must be signed in to change notification settings - Fork 0
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
Invalid memory address or nil pointer dereference #12
Comments
I'm not sure whats wrong with just that, please try this version (docker image also available) and run it with debug log ( |
Same results and no new log info
|
looks like you are running the old version, please make sure to run the version I mentioned before, you should see the following log |
My bad. We vendor charts and I accidently change the tag in the default values yaml and not the one we provide. Still blowing up but some more info possible
I'm guessing the issue is this? |
correct, what is your ec2 instance type? is it |
should just be c2. Trying to view what all is in the struct but I don't know go so fumbling my way through |
some debut output I added. Everything looks correct except the last one.. but i guess it probably didn't get through everything
|
the only info I could find on |
Well we aren't using an cc2 instance that I know of.. Especially if they've been removed. Any ideas why you aren't having the problem? |
because |
Ah that makes sense. Though doesn't make sense why aws returns it at all. |
Well I saw the ignores but ended up with this still
|
sorry for the issues and thank you for testing and reporting it back! that is the crash I mentioned on the other PR that I still haven't figured out but it should work mostly fine (should only crash eventually), I've added some checks to try to make it not crash but I can't invest more time on it today |
My day is pretty much spent.. I'll poke around and see if I can magically figure the issue out. I put it at about a 0.000000001% chance considering I don't know go at all |
Just loaded rc2 and I see this |
Just going to add on here. I can make another ticket if you want. We have a z1d.6xlarge instance right now but that is not on the metrics page. Been running for 38m so definitely should have updated.. Ok I just restarted it and it appears it loaded that instance now.. I'm guessing it's not updating it's instance list after the initial start. |
hey @eric-engberg , I've just released a new version with a few improvements, feel free to check it |
Just tried installing and I'm getting this error
`time="2023-06-27T01:28:54Z" level=info msg="Starting EKS Cost Exporter. [log-level=info]"
time="2023-06-27T01:28:56Z" level=info msg="Retrieving EC2 Instance Types took 1.443560543s"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x21d3f68]
goroutine 1 [running]:
github.com/AndreZiviani/eks-cost-exporter/exporter.Metrics.getNormalizedCost(...)
/app/exporter/ec2.go:70
github.com/AndreZiviani/eks-cost-exporter/exporter.(*Metrics).GetOnDemandPricing(0xc000170380, {0x2afd590, 0xc000056038})
/app/exporter/ec2.go:136 +0x928
github.com/AndreZiviani/eks-cost-exporter/exporter.(*Metrics).GetInstances(0xc00005a00b?, {0x2afd590, 0xc000056038})
/app/exporter/ec2.go:35 +0x9b
github.com/AndreZiviani/eks-cost-exporter/exporter.(*Metrics).init(0xc000170380, {0x2afd590, 0xc000056038})
/app/exporter/metrics.go:53 +0x205
github.com/AndreZiviani/eks-cost-exporter/exporter.NewMetrics({0x2afd590, 0xc000056038}, 0x27a78b8?, {0x3acec80, 0x0, 0x0}, {0x3acec80, 0x0, 0x0})
/app/exporter/metrics.go:28 +0x1a9
main.main()
/app/main.go:50 +0x249 `
The text was updated successfully, but these errors were encountered: