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

Error: exception: undefined method `sort' for nil:NilClass #24

Open
MrMoronIV opened this issue Oct 15, 2019 · 3 comments
Open

Error: exception: undefined method `sort' for nil:NilClass #24

MrMoronIV opened this issue Oct 15, 2019 · 3 comments

Comments

@MrMoronIV
Copy link

I have ACL enabled on my kafka cluster and try to use:

./metrics-consumer.rb -g readMsg

It gives back:

Error: exception: undefined method `sort' for nil:NilClass

The group exists, do I need to give permissions to a specific user or what is the approach I need to take? Using confluent-kafka version 5.3.1 (latest as of now)

@MrMoronIV
Copy link
Author

Same for, but with more error output:

 ./check-consumer-lag.rb -g readMsg
Error: exception: undefined method `sort' for nil:NilClass - ["/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-kafka-0.12.2/bin/check-consumer-lag.rb:68:in `kafka_topics'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-kafka-0.12.2/bin/check-consumer-lag.rb:93:in `run'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-1.4.7/lib/sensu-plugin/cli.rb:58:in `block in <class:CLI>'"]
ConsumerLagCheck CRITICAL

@obazoud
Copy link
Owner

obazoud commented Oct 15, 2019

It is related to this line https://github.com/obazoud/sensu-plugins-kafka/blob/master/bin/check-consumer-lag.rb#L68
Maybe the kafka consumer group does not exist.

@MrMoronIV
Copy link
Author

As I said, the group exists. Plaintext is not enabled, only SASL and SSL_SASL, I guess I need ti authenticate somehow?

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

2 participants