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

Check failed to run: can't modify frozen String #105

Open
TC-robV opened this issue Jul 9, 2020 · 1 comment
Open

Check failed to run: can't modify frozen String #105

TC-robV opened this issue Jul 9, 2020 · 1 comment

Comments

@TC-robV
Copy link

TC-robV commented Jul 9, 2020

for 2 of the checks i get an error. all the other checks run fine.

this one i can't even get a help screen to show anything throws this.

#check-kube-service-available.rb
Check failed to run: can't modify frozen String, ["/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:315:in build_option_arguments'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:269:in block (2 levels) in opt_parser'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:268:in each'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:268:in block in opt_parser'", "/usr/local/lib/ruby/2.5.0/optparse.rb:1062:in initialize'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:263:in new'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:263:in opt_parser'", "/usr/local/bundle/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:230:in parse_options'", "/usr/local/bundle/gems/sensu-plugin-4.0.0/lib/sensu-plugin/cli.rb:16:in initialize'", "/usr/local/bundle/gems/sensu-plugins-kubernetes-5.0.1/lib/sensu-plugins-kubernetes/cli.rb:82:in initialize'", "/usr/local/bundle/gems/sensu-plugin-4.0.0/lib/sensu-plugin/cli.rb:58:in new'", "/usr/local/bundle/gems/sensu-plugin-4.0.0/lib/sensu-plugin/cli.rb:58:in block in class:CLI'"]

for this one i can get the help but once i pass in the url and token i get this.

#check-kube-nodes-ready.rb -s https://kubernetes.default.svc/api --token-file /var/run/secrets/kubernetes.io/serviceaccount/token
Check failed to run: can't modify frozen String, ["/usr/local/bundle/gems/sensu-plugins-kubernetes-5.0.1/bin/check-kube-nodes-ready.rb:78:in rescue in run'", "/usr/local/bundle/gems/sensu-plugins-kubernetes-5.0.1/bin/check-kube-nodes-ready.rb:60:in run'", "/usr/local/bundle/gems/sensu-plugin-4.0.0/lib/sensu-plugin/cli.rb:59:in `block in class:CLI'"]

ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]

@rgarcia89
Copy link

@TC-robV have you found a solution for this?

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