Skip to content

panic: [gossip] duplicate channel nflog:10130 after restart alertmanager #899

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

Closed
lelenanam opened this issue Jul 24, 2018 · 2 comments · Fixed by #929
Closed

panic: [gossip] duplicate channel nflog:10130 after restart alertmanager #899

lelenanam opened this issue Jul 24, 2018 · 2 comments · Fixed by #929
Labels
component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. type/bug

Comments

@lelenanam
Copy link
Contributor

panic: [gossip] duplicate channel nflog:10130

goroutine 42 [running]:
github.com/weaveworks/cortex/vendor/github.com/weaveworks/mesh.(*Router).NewGossip(0xc42028c000, 0xc445340c93, 0xb, 0xc35460, 0xc443b2f480, 0x0, 0x0)
    /go/src/github.com/weaveworks/cortex/vendor/github.com/weaveworks/mesh/router.go:136 +0x399
github.com/weaveworks/cortex/pkg/alertmanager.(*gossipFactory).newGossip(0xc4202609e0, 0xc445340c93, 0xb, 0xc35460, 0xc443b2f480, 0x0, 0x0)
    /go/src/github.com/weaveworks/cortex/pkg/alertmanager/mesh.go:182 +0xf6
github.com/weaveworks/cortex/pkg/alertmanager.New.func1(0xc35460, 0xc443b2f480, 0xb78600, 0xc445624150)
    /go/src/github.com/weaveworks/cortex/pkg/alertmanager/alertmanager.go:72 +0x59
github.com/weaveworks/cortex/vendor/github.com/prometheus/alertmanager/nflog.WithMesh.func1(0xc443b2f480, 0xc443b2f480, 0x410928)
    /go/src/github.com/weaveworks/cortex/vendor/github.com/prometheus/alertmanager/nflog/nflog.go:173 +0x3b
github.com/weaveworks/cortex/vendor/github.com/prometheus/alertmanager/nflog.New(0xc42044b9c0, 0x6, 0x6, 0x0, 0x0, 0x0, 0x0)
    /go/src/github.com/weaveworks/cortex/vendor/github.com/prometheus/alertmanager/nflog/nflog.go:252 +0xdb
github.com/weaveworks/cortex/pkg/alertmanager.New(0xc4455e6b40, 0xc4455e6b40, 0x5, 0xbac2bd)
    /go/src/github.com/weaveworks/cortex/pkg/alertmanager/alertmanager.go:70 +0x5c4
github.com/weaveworks/cortex/pkg/alertmanager.(*MultitenantAlertmanager).newAlertmanager(0xc420268680, 0xc42046a850, 0x5, 0xc44539cf50, 0xc44539cf50, 0x0, 0x0)
    /go/src/github.com/weaveworks/cortex/pkg/alertmanager/multitenant.go:476 +0x113
github.com/weaveworks/cortex/pkg/alertmanager.(*MultitenantAlertmanager).setConfig(0xc420268680, 0xc42046a850, 0x5, 0x0, 0xc4201bf380, 0x0, 0x0, 0x0, 0x0)
    /go/src/github.com/weaveworks/cortex/pkg/alertmanager/multitenant.go:457 +0x63b
github.com/weaveworks/cortex/pkg/alertmanager.(*MultitenantAlertmanager).addNewConfigs(0xc420268680, 0xc4200b4690)
    /go/src/github.com/weaveworks/cortex/pkg/alertmanager/multitenant.go:386 +0x280
github.com/weaveworks/cortex/pkg/alertmanager.(*MultitenantAlertmanager).Run(0xc420268680)
    /go/src/github.com/weaveworks/cortex/pkg/alertmanager/multitenant.go:298 +0x85
created by main.main
    /go/src/github.com/weaveworks/cortex/cmd/alertmanager/main.go:50 +0x250

It happed before (July 12 for example):
screen shot 2018-07-24 at 10 21 09 am

@bboreham
Copy link
Contributor

bboreham commented Aug 6, 2018

Note the mesh code will be removed if we address #793

@tomwilkie tomwilkie added the component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. label Aug 24, 2018
@bboreham
Copy link
Contributor

bboreham commented Aug 8, 2019

The incidence of this went down dramatically after #1558 was merged, suggesting it was linked to high numbers of gossip channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants