/backup_export.rb:48:in `run': undefined method `keys'
taklwu opened this issue · 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 method
keys' 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:in
run'
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
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)
Can you please try it out with 0.0.6 and let me know.
yup, it works perfectly fine with v0.0.6!