KMinion is a feature-rich Prometheus exporter for Apache Kafka written in Go. It is lightweight and highly configurable so that it will meet your requirements.
MIT License
601
stars
123
forks
source link
error while authenticate with kerberos - invalid memory address or nil pointer dereference #221
hi,
I try to run kminion docker container to connect to kafka with SSL and kerberos
the kminion fail with error : "panic: runtime error: invalid memory address or nil pointer dereference"
docker compose:
log :
{"level":"info","ts":1689066537.979094,"caller":"app/config.go:62","msg":"the env variable 'CONFIG_FILEPATH' is not set, therefore no YAML config will be loaded"} {"level":"info","ts":"2023-07-11T09:08:57.979Z","logger":"main","msg":"started kminion","version":"v2.2.5","built_at":"2023-06-14"} {"level":"info","ts":"2023-07-11T09:08:57.979Z","logger":"main","msg":"connecting to Kafka seed brokers, trying to fetch cluster metadata","seed_brokers":"mwhlcmdadh81.amdocs.com:9093"} {"level":"debug","ts":"2023-07-11T09:08:57.982Z","logger":"main.kgo_client","msg":"opening connection to broker","addr":"mwhlcmdadh81.amdocs.com:9093","broker":"seed 0"} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kafka_hooks","msg":"kafka connection succeeded","host":"mwhlcmdadh81.amdocs.com","dial_duration":0.007114817} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"connection opened to broker","addr":"mwhlcmdadh81.amdocs.com:9093","broker":"seed 0"} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"issuing api versions request","broker":"seed 0","version":3} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"wrote ApiVersions v3","broker":"seed 0","bytes_written":35,"write_wait":0.000025955,"time_to_write":0.000053539,"err":null} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"read ApiVersions v3","broker":"seed 0","bytes_read":352,"read_wait":0.000105362,"time_to_read":0.000164665,"err":null} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"beginning sasl authentication","broker":"seed 0","addr":"mwhlcmdadh81.amdocs.com:9093","mechanism":"GSSAPI","authenticate":false}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x700ca6]
goroutine 42 [running]:
github.com/jcmturner/gokrb5/v8/client.(Client).IsConfigured(0x7eb39b482908055b?)
/go/pkg/mod/github.com/jcmturner/gokrb5/v8@v8.4.4/client/client.go:140 +0x26
github.com/twmb/franz-go/pkg/sasl/kerberos.k.Authenticate(0xc32e82?, {0xd33198, 0xc000315040}, {0xc000313480, 0x1c})
/go/pkg/mod/github.com/twmb/franz-go/pkg/sasl/kerberos@v1.1.0/kerberos.go:134 +0x178
github.com/twmb/franz-go/pkg/kgo.(brokerCxn).doSasl(0xc000440000, 0x0)
/go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:832 +0x66
github.com/twmb/franz-go/pkg/kgo.(brokerCxn).sasl(0xc000440000)
/go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:828 +0x84f
github.com/twmb/franz-go/pkg/kgo.(brokerCxn).init(0xc000440000, 0x0)
/go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:687 +0x26b
github.com/twmb/franz-go/pkg/kgo.(broker).loadConnection(0xc000368580, {0xd33198, 0xc000315130}, {0xd37bf0, 0xc000337350})
/go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:522 +0x274
github.com/twmb/franz-go/pkg/kgo.(broker).handleReq(0xc000368580, {
hi, I try to run kminion docker container to connect to kafka with SSL and kerberos the kminion fail with error : "panic: runtime error: invalid memory address or nil pointer dereference"
docker compose:![image](https://github.com/redpanda-data/kminion/assets/43230370/8a7e1426-b917-4f7e-9673-65b23b06c2f8)
log : {"level":"info","ts":1689066537.979094,"caller":"app/config.go:62","msg":"the env variable 'CONFIG_FILEPATH' is not set, therefore no YAML config will be loaded"} {"level":"info","ts":"2023-07-11T09:08:57.979Z","logger":"main","msg":"started kminion","version":"v2.2.5","built_at":"2023-06-14"} {"level":"info","ts":"2023-07-11T09:08:57.979Z","logger":"main","msg":"connecting to Kafka seed brokers, trying to fetch cluster metadata","seed_brokers":"mwhlcmdadh81.amdocs.com:9093"} {"level":"debug","ts":"2023-07-11T09:08:57.982Z","logger":"main.kgo_client","msg":"opening connection to broker","addr":"mwhlcmdadh81.amdocs.com:9093","broker":"seed 0"} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kafka_hooks","msg":"kafka connection succeeded","host":"mwhlcmdadh81.amdocs.com","dial_duration":0.007114817} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"connection opened to broker","addr":"mwhlcmdadh81.amdocs.com:9093","broker":"seed 0"} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"issuing api versions request","broker":"seed 0","version":3} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"wrote ApiVersions v3","broker":"seed 0","bytes_written":35,"write_wait":0.000025955,"time_to_write":0.000053539,"err":null} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"read ApiVersions v3","broker":"seed 0","bytes_read":352,"read_wait":0.000105362,"time_to_read":0.000164665,"err":null} {"level":"debug","ts":"2023-07-11T09:08:57.989Z","logger":"main.kgo_client","msg":"beginning sasl authentication","broker":"seed 0","addr":"mwhlcmdadh81.amdocs.com:9093","mechanism":"GSSAPI","authenticate":false} panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x700ca6] goroutine 42 [running]: github.com/jcmturner/gokrb5/v8/client.(Client).IsConfigured(0x7eb39b482908055b?) /go/pkg/mod/github.com/jcmturner/gokrb5/v8@v8.4.4/client/client.go:140 +0x26 github.com/twmb/franz-go/pkg/sasl/kerberos.k.Authenticate(0xc32e82?, {0xd33198, 0xc000315040}, {0xc000313480, 0x1c}) /go/pkg/mod/github.com/twmb/franz-go/pkg/sasl/kerberos@v1.1.0/kerberos.go:134 +0x178 github.com/twmb/franz-go/pkg/kgo.(brokerCxn).doSasl(0xc000440000, 0x0) /go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:832 +0x66 github.com/twmb/franz-go/pkg/kgo.(brokerCxn).sasl(0xc000440000) /go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:828 +0x84f github.com/twmb/franz-go/pkg/kgo.(brokerCxn).init(0xc000440000, 0x0) /go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:687 +0x26b github.com/twmb/franz-go/pkg/kgo.(broker).loadConnection(0xc000368580, {0xd33198, 0xc000315130}, {0xd37bf0, 0xc000337350}) /go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:522 +0x274 github.com/twmb/franz-go/pkg/kgo.(broker).handleReq(0xc000368580, {
{0xd33198, 0xc000315130}, {0xd37bf0, 0xc000337350}, 0xc00030d620, {0xc12364ea7a884fcf, 0x4cc120, 0x11e2500}}) /go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:289 +0x105 github.com/twmb/franz-go/pkg/kgo.(broker).handleReqs(0xc000368580, {{0xd33198, 0xc000315130} , {0xd37bf0, 0xc000337350}, 0xc00030d620, {0xc12364ea7a884fcf, 0x4cc120, 0x11e2500}}) /go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:273 +0xbd created by github.com/twmb/franz-go/pkg/kgo.(broker).do /go/pkg/mod/github.com/twmb/franz-go@v1.13.3/pkg/kgo/broker.go:247 +0x229