-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
vCenter failed to receive VMs metrics panic runtime error invalid memory address or nil pointer dereference #34343
Comments
Pinging code owners for receiver/vcenter: @djaglowski @schmikei @StefanKurek. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Thanks for filing @shacharSirotkin, is that the full stack trace from the panic? It would be helpful to have more specific information about where the panic occurred in |
@shacharSirotkin Hey! I'd love to take a look at this, if you could please supply the full stack trace from the panic you see. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
hey ya'll (@BominRahmani), I am not the OP, but I am experiencing the same issue, oddly only in one of my vcenters (assuming that something is unique about this vcenter or the objects located within), here is my full stack trace:
Let me know what else I can provide, thanks! |
@bmhkb4 |
Through trial and error I was able to find the configuration in vcenter causing the issue: These vms were orphaned, likely due to a ESX Host crash. After cleaning them up it works fine. Thanks! |
Component(s)
vCenter receiver
What happened?
Description
I tried to config a vcenterreciver and got a stack trace of runtime error saying:
panic: runtime error: invalid memory address or nil pointer dereference.
Steps to Reproduce
Install otel-collector-contrib on your PC and use a config.yaml to receive metrics from vCenter in version 7.0.3
Expected Result
normal metrics of vcenter
Actual Result
panic: runtime error: invalid memory address or nil pointer dereference.
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/vcenterreceiver.(*vcenterMetricScraper).buildVMMetrics()
.....
Collector version
0.105.0
Environment information
Environment
Windows 10 Enterprise
OpenTelemetry Collector configuration
Log output
panic: runtime error: invalid memory address or nil pointer dereference. github.com/open-telemetry/opentelemetry-collector-contrib/receiver/vcenterreceiver.(*vcenterMetricScraper).buildVMMetrics() .....
Additional context
No response
The text was updated successfully, but these errors were encountered: