Berks on Windows error


#1

I am trying to upload some cookbook via berkshelf with no luck.

I can knife upload the cookbook to the server, but when I exec berks upload it fails with the following error:

E, [2014-06-09T14:01:33.793841 #12828] ERROR – :
Ridley::Errors::HTTPBadRequest: {“error”:[“Bad checksums!”]}
E, [2014-06-09T14:01:33.794841 #12828] ERROR – :
C:/Users/pimenm/.gem/gems/ridley-4.0.0/lib/ridley/middleware/chef_response.rb:24:in
`on_complete’

berks install works just fine.

Any pointers would be greatly appreciated.


Thanks,

Mark


#2

Mark, did you ever figure this one out? I’m running into the same issue on
Windows 7.

On Mon, Jun 9, 2014 at 11:14 AM, Mark Pimentel markpimentel22@gmail.com
wrote:

I am trying to upload some cookbook via berkshelf with no luck.

I can knife upload the cookbook to the server, but when I exec berks upload it fails with the following error:

E, [2014-06-09T14:01:33.793841 #12828] ERROR – :
Ridley::Errors::HTTPBadRequest: {“error”:[“Bad checksums!”]}
E, [2014-06-09T14:01:33.794841 #12828] ERROR – :
C:/Users/pimenm/.gem/gems/ridley-4.0.0/lib/ridley/middleware/chef_response.rb:24:in
`on_complete’

berks install works just fine.

Any pointers would be greatly appreciated.


Thanks,

Mark


#3

I finally figured it out. I had defined a BERKSHELF_PATH environment
variable to be C:.berkshelf in order to workaround berkshelf #1307
https://github.com/berkshelf/berkshelf/issues/1307.

I changed that variable to instead be C:/.berkshelf and berks upload is
no longer failing with the “Bad checksums!” error.

On Wed, Sep 24, 2014 at 9:37 AM, Greg Barker fletch@fletchowns.net wrote:

Mark, did you ever figure this one out? I’m running into the same issue on
Windows 7.

On Mon, Jun 9, 2014 at 11:14 AM, Mark Pimentel markpimentel22@gmail.com
wrote:

I am trying to upload some cookbook via berkshelf with no luck.

I can knife upload the cookbook to the server, but when I exec berks upload it fails with the following error:

E, [2014-06-09T14:01:33.793841 #12828] ERROR – :
Ridley::Errors::HTTPBadRequest: {“error”:[“Bad checksums!”]}
E, [2014-06-09T14:01:33.794841 #12828] ERROR – :
C:/Users/pimenm/.gem/gems/ridley-4.0.0/lib/ridley/middleware/chef_response.rb:24:in
`on_complete’

berks install works just fine.

Any pointers would be greatly appreciated.


Thanks,

Mark