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 in client.go:102 when remote write given nil URL. #3016

Closed
tomwilkie opened this Issue Aug 2, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@tomwilkie
Copy link
Member

tomwilkie commented Aug 2, 2017

From: https://groups.google.com/forum/#!msg/prometheus-users/ty8tRkLpm3A/YHEvye7gBAAJ

# Remote write configuration (for Graphite, OpenTSDB, or InfluxDB).

remote_write:

  - url: "https://192.168.0.219/write"
#    scheme: https
  - tls_config:
      insecure_skip_verify: true
INFO[0000] Starting prometheus (version=1.7.1, branch=master, revision=3afb3fffa3a29c3de865e1172fb740442e9d0133)  source="main.go:88"
INFO[0000] Build context (go=go1.8.3, user=root@0aa1b7fc430d, date=20170612-11:44:05)  source="main.go:89"
INFO[0000] Host details (Linux 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 amu-opr01 (none))  source="main.go:90"
INFO[0000] Loading configuration file prometheus.yml     source="main.go:252"
INFO[0000] Loading series map and head chunks...         source="storage.go:428"
INFO[0000] 0 series loaded.                              source="storage.go:439"
INFO[0000] Starting target manager...                    source="targetmanager.go:63"
INFO[0000] Listening on :9090                            source="web.go:259"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x166a1e1]

goroutine 158 [running]:
github.com/prometheus/prometheus/storage/remote.(*Client).Store(0xc4203c7000, 0xc42233c800, 0x64, 0x80, 0x0, 0x0)
        /go/src/github.com/prometheus/prometheus/storage/remote/client.go:102 +0x671
github.com/prometheus/prometheus/storage/remote.(*shards).sendSamplesWithBackoff(0xc42052d7c0, 0xc42233c800, 0x64, 0x80)
        /go/src/github.com/prometheus/prometheus/storage/remote/queue_manager.go:492 +0xbb
github.com/prometheus/prometheus/storage/remote.(*shards).sendSamples(0xc42052d7c0, 0xc42233c800, 0x64, 0x80)
        /go/src/github.com/prometheus/prometheus/storage/remote/queue_manager.go:479 +0x6d
github.com/prometheus/prometheus/storage/remote.(*shards).runShard(0xc42052d7c0, 0x0)
        /go/src/github.com/prometheus/prometheus/storage/remote/queue_manager.go:465 +0x28c
created by github.com/prometheus/prometheus/storage/remote.(*shards).start
        /go/src/github.com/prometheus/prometheus/storage/remote/queue_manager.go:415 +0x54
@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 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.