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

elastic alert crush #31

Open
Frapschen opened this issue Dec 4, 2023 · 0 comments
Open

elastic alert crush #31

Frapschen opened this issue Dec 4, 2023 · 0 comments

Comments

@Frapschen
Copy link

elastic alert crush when es ip is not available:

time="2023-12-03 14:54:19" level="error" msg="insight-es-k8s-logs-alias : dial tcp 172.16.222.10:30626: connect: cannot assign requested address"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1889f4d]

goroutine 199 [running]:
github.com/openinsight-proj/elastic-alert/pkg/utils/xelastic.(*ElasticClientV7).CountByDSL(0xc0004dc108, {0xc00057d100, 0x19}, {0xc000fb1200, 0x230})
	/app/pkg/utils/xelastic/elastic_client_v7.go:64 +0x38d
github.com/openinsight-proj/elastic-alert/pkg/boot.(*ElasticAlert).runRuleQuery(0xc0002c72c0, 0xc000c78d80)
	/app/pkg/boot/run.go:247 +0x64b
github.com/openinsight-proj/elastic-alert/pkg/boot.(*ElasticAlert).eval(0x0?, 0xc000c78d80)
	/app/pkg/boot/run.go:151 +0x38
reflect.Value.call({0x1a00020?, 0xc001024060?, 0x13?}, {0x1d28b98, 0x4}, {0xc001034090, 0x1, 0x1?})
	/usr/local/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1a00020?, 0xc001024060?, 0x4f60a6?}, {0xc001034090?, 0xc0004376a4?, 0x4f6025?})
	/usr/local/go/src/reflect/value.go:368 +0xbc
github.com/go-co-op/gocron.callJobFuncWithParams({0x1a00020?, 0xc001024060?}, {0xc0010240f0, 0x1, 0xc000437588?})
	/go/pkg/mod/github.com/go-co-op/[email protected]/gocron.go:106 +0x155
github.com/go-co-op/gocron.runJob({{{0x0, 0x0}, {0x0, 0x0}}, {0x1a00020, 0xc001024060}, {0xc0010240f0, 0x1, 0x1}, 0x0, ...})
	/go/pkg/mod/github.com/go-co-op/[email protected]/executor.go:75 +0x66
github.com/go-co-op/gocron.(*jobFunction).singletonRunner(0xc0004e02d0)
	/go/pkg/mod/github.com/go-co-op/[email protected]/executor.go:94 +0x138
created by github.com/go-co-op/gocron.(*executor).runJob
	/go/pkg/mod/github.com/go-co-op/[email protected]/executor.go:167 +0x290
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1889f4d]

goroutine 210 [running]:
github.com/openinsight-proj/elastic-alert/pkg/utils/xelastic.(*ElasticClientV7).CountByDSL(0xc000904098, {0xc0008a2500, 0x19}, {0xc0010fcfc0, 0x201})
	/app/pkg/utils/xelastic/elastic_client_v7.go:64 +0x38d
github.com/openinsight-proj/elastic-alert/pkg/boot.(*ElasticAlert).runRuleQuery(0xc0002c72c0, 0xc000306b40)
	/app/pkg/boot/run.go:247 +0x64b
github.com/openinsight-proj/elastic-alert/pkg/boot.(*ElasticAlert).eval(0x0?, 0xc000306b40)
	/app/pkg/boot/run.go:151 +0x38
reflect.Value.call({0x1a00020?, 0xc001024200?, 0x13?}, {0x1d28b98, 0x4}, {0xc000fa8450, 0x1, 0x1?})
	/usr/local/go/src/reflect/value.go:584 +0x8c5
reflect.Value.Call({0x1a00020?, 0xc001024200?, 0x4f60a6?}, {0xc000fa8450?, 0xc00103f6a4?, 0x4f6025?})
	/usr/local/go/src/reflect/value.go:368 +0xbc
github.com/go-co-op/gocron.callJobFuncWithParams({0x1a00020?, 0xc001024200?}, {0xc001024290, 0x1, 0xc00103f588?})
	/go/pkg/mod/github.com/go-co-op/[email protected]/gocron.go:106 +0x155
github.com/go-co-op/gocron.runJob({{{0x0, 0x0}, {0x0, 0x0}}, {0x1a00020, 0xc001024200}, {0xc001024290, 0x1, 0x1}, 0x0, ...})
	/go/pkg/mod/github.com/go-co-op/[email protected]/executor.go:75 +0x66
github.com/go-co-op/gocron.(*jobFunction).singletonRunner(0xc000056960)
	/go/pkg/mod/github.com/go-co-op/[email protected]/executor.go:94 +0x138
created by github.com/go-co-op/gocron.(*executor).runJob
	/go/pkg/mod/github.com/go-co-op/[email protected]/executor.go:167 +0x290
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant