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

web: runtime error: invalid memory address or nil pointer dereference #3566

Closed
Dominik-K opened this Issue Dec 8, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@Dominik-K
Copy link
Contributor

Dominik-K commented Dec 8, 2017

What did you do?
We didn't use the Prometheus website directly. Grafana queries Prometheus constantly for our live dashboard.

What did you expect to see?
Normal resource usage, no panic log ;-)

What did you see instead? Under which circumstances?

Prometheus logged this panic:

level=error ts=2017-12-05T09:22:36.84401431Z caller=stdlib.go:89 component=web caller="http: panic serving 10.0.0.226:55730" msg="runtime error: invalid memory address or nil pointer dereference"

, but seems to recover it. Around 11 minutes later, it logged many query timeouts:

level=warn ts=2017-12-05T09:33:34.155483363Z caller=manager.go:312 component="rule manager" […] msg="Evaluating rule failed" […] err="query timed out in query queue"

Directly after the panic, the memory usage raised and the CPU usage dropped significantly:

prometheus_resource-usage_2017-12-05

Prometheus was running since 2017-12-01 19:11 UTC (86h11m).

The same error happened today:

level=error ts=2017-12-08T10:37:30.750758496Z caller=stdlib.go:89 component=web caller="http: panic serving 10.0.0.226:49188" msg="runtime error: invalid memory address or nil pointer dereference"
level=warn ts=2017-12-08T10:49:30.384532964Z caller=manager.go:312 component="rule manager" […] msg="Evaluating rule failed" […] err="query timed out in query queue"

prometheus_resource-usage_2017-12-08

Prometheus was running since 2017-12-07 12:54:27 UTC (19h43m).

Environment

  • System information:

    Inside container: Linux 4.4.15-25.57.amzn1.x86_64 x86_64

  • Prometheus version:

    Docker image: prom/prometheus v2.0.0 Image ID: 67141fa03496 created 4 weeks ago

    prometheus, version 2.0.0 (branch: HEAD, revision: 0a74f98)
    build user: root@615b82cb36b6
    build date: 20171108-07:11:59
    go version: go1.9.2

  • Prometheus configuration file:
    Will provide them if necessary.

  • Logs:
    see above

It's maybe related to #3412

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 8, 2017

This smells like a null pointer down in storage.

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Aug 7, 2018

This issue being reported against v2.0.0, can you reproduce it with the latest Prometheus version (v2.3.2)?

@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Aug 24, 2018

since it is such an old issue and haven't received a reply lets close and will revisit if needed.

@Dominik-K

This comment has been minimized.

Copy link
Contributor Author

Dominik-K commented Oct 2, 2018

It didn't occur again, currently running on v2.3.0. It wasn't reproducible, either. So, it's fine that you closed it 👍

@krasi-georgiev

This comment has been minimized.

Copy link
Member

krasi-georgiev commented Oct 2, 2018

thanks, appreciated the update!

@lock lock bot locked and limited conversation to collaborators Mar 31, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.