0.10 knife errors uploading cookbook to 0.10 server


#1

I upgraded my workstation to chef 0.10 (via gems) awhile ago, and
knife has been working fine with our 0.9.16 server. However, after
upgrading the server to 0.10 we’re now getting this error when we try
to upload cookbooks:

/Library/Ruby/Gems/1.8/gems/chef-0.10.0/lib/chef/cookbook_uploader.rb:137:in
uploader_function_for': undefined local variable or methodui’ for
#Chef::CookbookUploader:0x1021a1938 (NameError)

Any ideas?

-J


#2

The underlying problem was actually an error related to upload that
then triggered the “undefined local variable or method `ui’” error
when it tried to report the upload error. Re-running “gem install
chef” seems to have cleared the underlying problem, but it still looks
like the trap code on 137 in cookbook_uploader.rb is referencing an
unknown module ui.

-J

On Tue, May 17, 2011 at 1:51 PM, Jason J. W. Williams
jasonjwwilliams@gmail.com wrote:

I upgraded my workstation to chef 0.10 (via gems) awhile ago, and
knife has been working fine with our 0.9.16 server. However, after
upgrading the server to 0.10 we’re now getting this error when we try
to upload cookbooks:

/Library/Ruby/Gems/1.8/gems/chef-0.10.0/lib/chef/cookbook_uploader.rb:137:in
uploader_function_for': undefined local variable or methodui’ for
#Chef::CookbookUploader:0x1021a1938 (NameError)

Any ideas?

-J


#3

On Tuesday, May 17, 2011 at 1:34 PM, Jason J. W. Williams wrote:
The underlying problem was actually an error related to upload that

then triggered the “undefined local variable or method `ui’” error
when it tried to report the upload error. Re-running “gem install
chef” seems to have cleared the underlying problem, but it still looks
like the trap code on 137 in cookbook_uploader.rb is referencing an
unknown module ui.

-J

Yes, a patch has been submitted for this already, I forget if it’s been merged, but it’s definitely scheduled to be fixed for 0.10.2


Dan DeLeo