mdxp/knife-backup

/backup_export.rb:48:in `run': undefined method `keys'

Closed this issue · 5 comments

I am trying run knife backup export on a chef 0.10.10 server, and I got the following errors, do you have any ideas?

knife backup export -D chef-backup/ -VV
DEBUG: Using configuration from /home/taklwu/.chef/knife.rb
/var/lib/gems/1.8/gems/knife-backup-0.0.5/lib/chef/knife/backup_export.rb:48:in run': undefined methodkeys' for #Array:0x7f0884bf9148 (NoMethodError)
from /usr/lib/ruby/vendor_ruby/chef/knife.rb:402:in run_with_pretty_exceptions' from /usr/lib/ruby/vendor_ruby/chef/knife.rb:168:inrun'
from /usr/lib/ruby/vendor_ruby/chef/application/knife.rb:123:in `run'
from /usr/bin/knife:24

FYI, the knife-backup version caused is 0.0.5, but it works with 0.0.3. should it be the latest chef version 10.xx.xx+ needs keys for nodes, cookbooks, etc?

Thanks,
Stephen

mdxp commented

0.0.4 should work also probably. Can you pls. tell me what ruby version are you running?

the ruby version is 1.8.7. (they are kinda old)

mdxp commented

Can you please try it out with 0.0.6 and let me know.

yup, it works perfectly fine with v0.0.6!