# Berks upload error

**URL:** <https://discourse.chef.io/t/berks-upload-error/6574>\
**Category:** Chef Infra (archive)\
**Created:** [May 13, 2015, 7:19pm UTC](https://discourse.chef.io/t/berks-upload-error/6574 "2015-05-13T19:19:20Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 13, 2015, 7:19pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/1 "2015-05-13T19:19:20Z")

</div>

Hey All,

I’m just setting up a new chef server (inside a vpc) and I’m having trouble  
uploading the cookbooks with berks from my workstation:

Banks-2:base mlindsay$ berks upload -c ~/.berkshelf/vpc.json

E, [2015-05-13T12:14:00.542111 #16190] ERROR – :  
Ridley::Errors::HTTPInternalServerError: {“error”:[“internal service  
error”]}

E, [2015-05-13T12:14:00.542241 #16190] ERROR – :  
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_response.rb:24:in  
`on\_complete’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:9:in  
`block in call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:57:in  
`on\_complete’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
`call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
`call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
`call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_auth.rb:74:in  
`call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in  
`call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/rack\_builder.rb:139:in  
`build\_response’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in  
`run\_request’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/connection.rb:104:in  
`run\_request’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:177:in  
`put’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
`public\_send’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
`dispatch’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
`dispatch’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
`block in invoke’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
`block in task’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
`block in task’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
`block in initialize’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
`block in create’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
`block in initialize’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
`block in get\_thread’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
`call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
`block in create’

(celluloid):0:in `remote procedure call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
`value’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
`method\_missing’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell\_proxy.rb:17:in  
`_send_’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:41:in  
`_send_’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:140:in  
`method\_missing’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
`public\_send’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
`dispatch’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
`dispatch’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
`block in invoke’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
`block in task’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
`block in task’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
`block in initialize’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
`block in create’

(celluloid):0:in `remote procedure call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
`value’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
`method\_missing’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:132:in  
`raw\_request’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:123:in  
`request’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/sandbox\_resource.rb:46:in  
`commit’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
`public\_send’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
`dispatch’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
`dispatch’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
`block in invoke’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
`block in task’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
`block in task’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
`block in initialize’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
`block in create’

(celluloid):0:in `remote procedure call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
`value’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
`method\_missing’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/chef\_objects/sandbox\_object.rb:53:in  
`commit’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/cookbook\_resource.rb:227:in  
`upload’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
`public\_send’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
`dispatch’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
`dispatch’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
`block in invoke’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
`block in task’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
`block in task’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
`block in initialize’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
`block in create’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
`block in initialize’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
`block in get\_thread’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
`call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
`block in create’

(celluloid):0:in `remote procedure call’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
`value’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
`method\_missing’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:54:in `block  
(2 levels) in upload’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in `each’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in `block  
in upload’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/client.rb:36:in  
`open’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley.rb:51:in  
`open’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf.rb:157:in  
`ridley\_connection’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:49:in `upload’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:36:in `run’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb:542:in  
`upload’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:208:in `upload’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in  
`run’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in  
`invoke\_command’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in  
`dispatch’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:52:in `dispatch’

/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in  
`start’

/opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:27:in `execute!’

/opt/chefdk/embedded/apps/berkshelf/bin/berks:5:in `\<top (required)\>’

/opt/chefdk/bin/berks:37:in `load’

/opt/chefdk/bin/berks:37:in `’

I haven’t had any luck googling the error for a solution.

Any thoughts?

- Michael

---

<div class="post-metadata">

**Author:** ![sdelano](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/sdelano/32/35_2.png) [@sdelano](https://discourse.chef.io/u/sdelano)\
**Post date:** [May 13, 2015, 8:00pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/2 "2015-05-13T20:00:33Z")

</div>

Hi Michael,

The error `{“error”:[“internal service error”]}` is coming from the Chef Server, so the rest of that output is just Berks sending you a stacktrace.

In order to get closer to the root of the issue, you’ll need to provide some logs from the Chef Server. From the stacktrace, this appears to be happening when making a cookbook upload request: [https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60](https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60)

You can find the relevant logs from the Chef Server in /var/log/opscode/opscode-erchef/requests.log.\*

To filter them down, you should be able to grep for status=500, which is the corresponding error code. A message about what failed should be in the erchef log and should help us track down the issue.

Thanks!

—  
Stephen Delano - Engineering Lead, Chef

On Wed, May 13, 2015 at 12:19 PM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
wrote:

> Hey All,  
> I'm just setting up a new chef server (inside a vpc) and I'm having trouble  
> uploading the cookbooks with berks from my workstation:  
> Banks-2:base mlindsay$ berks upload -c ~/.berkshelf/vpc.json  
> E, [2015-05-13T12:14:00.542111 #16190] ERROR -- :  
> Ridley::Errors::HTTPInternalServerError: {"error":["internal service  
> error"]}  
> E, [2015-05-13T12:14:00.542241 #16190] ERROR -- :  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_response.rb:24:in  
> `on_complete' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:9:in `block in call'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:57:in  
> `on_complete' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> `call' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_auth.rb:74:in  
> `call' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in `call'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/rack\_builder.rb:139:in  
> `build_response' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in `run\_request'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/connection.rb:104:in  
> `run_request' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:177:in `put'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> `public_send' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> `dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> `block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> `block in initialize' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_thread.rb:21:in `block in create'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> `block in initialize' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor_system.rb:32:in `block in get\_thread'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> `call' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:130:in `block in create'  
> (celluloid):0:in `remote procedure call' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> `method_missing' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell_proxy.rb:17:in `_send_'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:41:in  
> `_send_' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool_manager.rb:140:in `method\_missing'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> `public_send' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> `dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> `block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> `block in initialize' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'  
> (celluloid):0:in `remote procedure call' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> `method_missing' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:132:in `raw\_request'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:123:in  
> `request' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/sandbox_resource.rb:46:in `commit'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> `public_send' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `dispatch'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> `dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in `block in invoke'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> `block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in `block in task'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> `block in initialize' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:in `block in create'  
> (celluloid):0:in `remote procedure call' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in `value'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> `method_missing' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/chef_objects/sandbox_object.rb:53:in `commit'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/cookbook\_resource.rb:227:in  
> `upload' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in `public\_send'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> `dispatch' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in `dispatch'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> `block in invoke' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in `block in task'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> `block in task' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in `block in initialize'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> `block in create' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread_handle.rb:13:in `block in initialize'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> `block in get_thread' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:130:in `call'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> `block in create' (celluloid):0:in `remote procedure call'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> `value' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync_proxy.rb:33:in `method\_missing'  
> /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:54:in `block (2 levels) in upload' /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in `each'  
> /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in `block in upload' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/client.rb:36:in `open'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley.rb:51:in  
> `open' /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf.rb:157:in `ridley\_connection'  
> /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:49:in `upload' /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:36:in `run'  
> /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb:542:in  
> `upload' /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:208:in `upload'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in  
> `run' /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke\_command'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in  
> `dispatch' /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:52:in `dispatch'  
> /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in  
> `start' /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:27:in `execute!'  
> /opt/chefdk/embedded/apps/berkshelf/bin/berks:5:in `<top (required)>' /opt/chefdk/bin/berks:37:in `load'  
> /opt/chefdk/bin/berks:37:in `'  
> I haven't had any luck googling the error for a solution.  
> Any thoughts?
> 
> - Michael

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 13, 2015, 8:26pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/3 "2015-05-13T20:26:47Z")

</div>

Hey Stephen,

Thanks for getting back to me... Is this the kind of thing you are looking  
for?

==\> /var/log/opscode/opscode-erchef/crash.log \<==

2015-05-13 20:17:17 =ERROR REPORT====

Checking presence of checksum: \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for  
org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
taken longer than 5000 ms

2015-05-13 20:17:17 =ERROR REPORT====

Checking presence of checksum: \<\<"668e14353b42023b737efa15b3c675b9"\>\> for  
org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
taken longer than 5000 ms

==\> /var/log/opscode/opscode-erchef/current \<==

2015-05-13\_20:17:17.33628 [error] Checking presence of checksum:  
\<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
\<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
longer than 5000 ms

2015-05-13\_20:17:17.33629

==\> /var/log/opscode/opscode-erchef/erchef.log \<==

2015-05-13 20:17:17.330 [error] Checking presence of checksum:  
\<\<"668e14353b42023b737efa15b3c675b9"\>\> for org  
\<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
longer than 5000 ms

followed by this

==\> /var/log/opscode/opscode-erchef/crash.log \<==

2015-05-13 20:17:22 =ERROR REPORT====

{\<\<"method=PUT;  
path=/organizations/metrodigi/sandboxes/d81dca36ec74c00114c5f3438e323f7d;  
status=500;  
"\>\>,{error,{throw,{checksum\_check\_error,23},[{chef\_wm\_named\_sandbox,validate\_checksums\_uploaded,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,142}]},{chef\_wm\_named\_sandbox,from\_json,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,97}]},{webmachine\_resource,resource\_call,3,[{file,"src/webmachine\_resource.erl"},{line,186}]},{webmachine\_resource,do,3,[{file,"src/webmachine\_resource.erl"},{line,142}]},{webmachine\_decision\_core,resource\_call,1,[{file,"src/webmachine\_decision\_core.erl"},{line,48}]},{webmachine\_decision\_core,accept\_helper,1,[{file,"src/webmachine\_decision\_core.erl"},{line,616}]},{webmachine\_decision\_core,decision,1,[{file,"src/webmachine\_decision\_core.erl"},{line,521}]},{webmachine\_decision\_core,handle\_request,2,[{file,"src/webmachine\_decision\_core.erl"},{line,33}]}]}}}

Here's a note, during my install, in order to get chef-server-ctl to work I  
had to:

sudo chmod 0644 /etc/opscode/pivotal.pem

should I have not used sudo when I: chef-solo -o  
'recipe[chef-server::default]' -j dna.json ?

Thanks,

- Michael

On Wed, May 13, 2015 at 1:00 PM, Stephen Delano [stephen@opscode.com](mailto:stephen@opscode.com) wrote:

> Hi Michael,
> 
> The error `{“error”:[“internal service error”]}` is coming from the Chef  
> Server, so the rest of that output is just Berks sending you a stacktrace.
> 
> In order to get closer to the root of the issue, you’ll need to provide  
> some logs from the Chef Server. From the stacktrace, this appears to be  
> happening when making a cookbook upload request:  
> [https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60](https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60)
> 
> You can find the relevant logs from the Chef Server in  
> /var/log/opscode/opscode-erchef/requests.log.\*
> 
> To filter them down, you should be able to grep for status=500, which is  
> the corresponding error code. A message about what failed should be in the  
> erchef log and should help us track down the issue.
> 
> Thanks!
> 
> —  
> Stephen Delano - Engineering Lead, Chef
> 
> On Wed, May 13, 2015 at 12:19 PM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
> wrote:
> 
> > Hey All,
> > 
> > I'm just setting up a new chef server (inside a vpc) and I'm having  
> > trouble uploading the cookbooks with berks from my workstation:
> > 
> > Banks-2:base mlindsay$ berks upload -c ~/.berkshelf/vpc.json
> > 
> > E, [2015-05-13T12:14:00.542111 #16190] ERROR -- :  
> > Ridley::Errors::HTTPInternalServerError: {"error":["internal service  
> > error"]}
> > 
> > E, [2015-05-13T12:14:00.542241 #16190] ERROR -- :  
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_response.rb:24:in  
> > `on\_complete'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:9:in  
> > `block in call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:57:in  
> > `on\_complete'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > `call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > `call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > `call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_auth.rb:74:in  
> > `call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in  
> > `call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/rack\_builder.rb:139:in  
> > `build\_response'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in  
> > `run\_request'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/connection.rb:104:in  
> > `run\_request'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:177:in  
> > `put'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > `public\_send'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > `dispatch'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > `dispatch'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > `block in invoke'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > `block in task'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > `block in task'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > `block in initialize'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > `block in create'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > `block in initialize'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > `block in get\_thread'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > `call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > `block in create'
> > 
> > (celluloid):0:in `remote procedure call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > `value'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > `method\_missing'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell\_proxy.rb:17:in  
> > `_send_'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:41:in  
> > `_send_'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:140:in  
> > `method\_missing'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > `public\_send'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > `dispatch'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > `dispatch'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > `block in invoke'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > `block in task'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > `block in task'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > `block in initialize'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > `block in create'
> > 
> > (celluloid):0:in `remote procedure call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > `value'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > `method\_missing'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:132:in  
> > `raw\_request'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:123:in  
> > `request'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/sandbox\_resource.rb:46:in  
> > `commit'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > `public\_send'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > `dispatch'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > `dispatch'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > `block in invoke'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > `block in task'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > `block in task'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > `block in initialize'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > `block in create'
> > 
> > (celluloid):0:in `remote procedure call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > `value'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > `method\_missing'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/chef\_objects/sandbox\_object.rb:53:in  
> > `commit'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/cookbook\_resource.rb:227:in  
> > `upload'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > `public\_send'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > `dispatch'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > `dispatch'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > `block in invoke'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > `block in task'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > `block in task'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > `block in initialize'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > `block in create'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > `block in initialize'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > `block in get\_thread'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > `call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > `block in create'
> > 
> > (celluloid):0:in `remote procedure call'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > `value'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > `method\_missing'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:54:in  
> > `block (2 levels) in upload'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in `each'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in  
> > `block in upload'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/client.rb:36:in  
> > `open'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley.rb:51:in  
> > `open'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf.rb:157:in  
> > `ridley\_connection'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:49:in  
> > `upload'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:36:in `run'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb:542:in  
> > `upload'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:208:in `upload'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in  
> > `run'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in  
> > `invoke\_command'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in  
> > `dispatch'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:52:in `dispatch'
> > 
> > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in  
> > `start'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:27:in `execute!'
> > 
> > /opt/chefdk/embedded/apps/berkshelf/bin/berks:5:in `\<top (required)\>'
> > 
> > /opt/chefdk/bin/berks:37:in `load'
> > 
> > /opt/chefdk/bin/berks:37:in `'
> > 
> > I haven't had any luck googling the error for a solution.
> > 
> > Any thoughts?
> > 
> > - Michael

---

<div class="post-metadata">

**Author:** ![sdelano](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/sdelano/32/35_2.png) [@sdelano](https://discourse.chef.io/u/sdelano)\
**Post date:** [May 13, 2015, 8:48pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/4 "2015-05-13T20:48:47Z")

</div>

Thanks Michael,

A few more things:

- Does the same error (or at least a similar failure) occur when you run a `knife cookbook upload`?

- From the Chef Server, what is the output of the `chef-server-ctl status` command? Is the bookshelf service running? I expect it is if you’ve gotten this far.

- What are the contents of your /etc/opscode/chef-server.rb configuration file (on the Chef Server)?

Thanks!

—  
Stephen Delano - Engineering Lead, Chef

On Wed, May 13, 2015 at 1:27 PM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
wrote:

> Hey Stephen,  
> Thanks for getting back to me... Is this the kind of thing you are looking  
> for?  
> ==\> /var/log/opscode/opscode-erchef/crash.log \<==  
> 2015-05-13 20:17:17 =ERROR REPORT====  
> Checking presence of checksum: \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for  
> org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
> taken longer than 5000 ms  
> 2015-05-13 20:17:17 =ERROR REPORT====  
> Checking presence of checksum: \<\<"668e14353b42023b737efa15b3c675b9"\>\> for  
> org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
> taken longer than 5000 ms  
> ==\> /var/log/opscode/opscode-erchef/current \<==  
> 2015-05-13\_20:17:17.33628 [error] Checking presence of checksum:  
> \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
> \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> longer than 5000 ms  
> 2015-05-13\_20:17:17.33629  
> ==\> /var/log/opscode/opscode-erchef/erchef.log \<==  
> 2015-05-13 20:17:17.330 [error] Checking presence of checksum:  
> \<\<"668e14353b42023b737efa15b3c675b9"\>\> for org  
> \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> longer than 5000 ms  
> followed by this  
> ==\> /var/log/opscode/opscode-erchef/crash.log \<==  
> 2015-05-13 20:17:22 =ERROR REPORT====  
> {\<\<"method=PUT;  
> path=/organizations/metrodigi/sandboxes/d81dca36ec74c00114c5f3438e323f7d;  
> status=500;  
> "\>\>,{error,{throw,{checksum\_check\_error,23},[{chef\_wm\_named\_sandbox,validate\_checksums\_uploaded,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,142}]},{chef\_wm\_named\_sandbox,from\_json,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,97}]},{webmachine\_resource,resource\_call,3,[{file,"src/webmachine\_resource.erl"},{line,186}]},{webmachine\_resource,do,3,[{file,"src/webmachine\_resource.erl"},{line,142}]},{webmachine\_decision\_core,resource\_call,1,[{file,"src/webmachine\_decision\_core.erl"},{line,48}]},{webmachine\_decision\_core,accept\_helper,1,[{file,"src/webmachine\_decision\_core.erl"},{line,616}]},{webmachine\_decision\_core,decision,1,[{file,"src/webmachine\_decision\_core.erl"},{line,521}]},{webmachine\_decision\_core,handle\_request,2,[{file,"src/webmachine\_decision\_core.erl"},{line,33}]}]}}}  
> Here's a note, during my install, in order to get chef-server-ctl to work I  
> had to:  
> sudo chmod 0644 /etc/opscode/pivotal.pem  
> should I have not used sudo when I: chef-solo -o  
> 'recipe[chef-server::default]' -j dna.json ?  
> Thanks,
> 
> - Michael  
> On Wed, May 13, 2015 at 1:00 PM, Stephen Delano [stephen@opscode.com](mailto:stephen@opscode.com) wrote:
> 
> > Hi Michael,
> > 
> > The error `{“error”:[“internal service error”]}` is coming from the Chef  
> > Server, so the rest of that output is just Berks sending you a stacktrace.
> > 
> > In order to get closer to the root of the issue, you’ll need to provide  
> > some logs from the Chef Server. From the stacktrace, this appears to be  
> > happening when making a cookbook upload request:  
> > [https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60](https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60)
> > 
> > You can find the relevant logs from the Chef Server in  
> > /var/log/opscode/opscode-erchef/requests.log.\*
> > 
> > To filter them down, you should be able to grep for status=500, which is  
> > the corresponding error code. A message about what failed should be in the  
> > erchef log and should help us track down the issue.
> > 
> > Thanks!
> > 
> > —  
> > Stephen Delano - Engineering Lead, Chef
> > 
> > On Wed, May 13, 2015 at 12:19 PM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
> > wrote:
> > 
> > > Hey All,
> > > 
> > > I'm just setting up a new chef server (inside a vpc) and I'm having  
> > > trouble uploading the cookbooks with berks from my workstation:
> > > 
> > > Banks-2:base mlindsay$ berks upload -c ~/.berkshelf/vpc.json
> > > 
> > > E, [2015-05-13T12:14:00.542111 #16190] ERROR -- :  
> > > Ridley::Errors::HTTPInternalServerError: {"error":["internal service  
> > > error"]}
> > > 
> > > E, [2015-05-13T12:14:00.542241 #16190] ERROR -- :  
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_response.rb:24:in  
> > > `on\_complete'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:9:in  
> > > `block in call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:57:in  
> > > `on\_complete'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > `call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > `call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > `call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_auth.rb:74:in  
> > > `call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in  
> > > `call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/rack\_builder.rb:139:in  
> > > `build\_response'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in  
> > > `run\_request'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/connection.rb:104:in  
> > > `run\_request'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:177:in  
> > > `put'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > `public\_send'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > `dispatch'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > `dispatch'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > `block in invoke'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > `block in task'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > `block in task'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > `block in initialize'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > > `block in create'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > > `block in initialize'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > > `block in get\_thread'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > `call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > `block in create'
> > > 
> > > (celluloid):0:in `remote procedure call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > `value'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > `method\_missing'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell\_proxy.rb:17:in  
> > > `_send_'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:41:in  
> > > `_send_'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:140:in  
> > > `method\_missing'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > `public\_send'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > `dispatch'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > `dispatch'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > `block in invoke'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > `block in task'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > `block in task'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > `block in initialize'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > > `block in create'
> > > 
> > > (celluloid):0:in `remote procedure call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > `value'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > `method\_missing'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:132:in  
> > > `raw\_request'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:123:in  
> > > `request'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/sandbox\_resource.rb:46:in  
> > > `commit'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > `public\_send'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > `dispatch'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > `dispatch'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > `block in invoke'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > `block in task'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > `block in task'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > `block in initialize'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > > `block in create'
> > > 
> > > (celluloid):0:in `remote procedure call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > `value'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > `method\_missing'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/chef\_objects/sandbox\_object.rb:53:in  
> > > `commit'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/cookbook\_resource.rb:227:in  
> > > `upload'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > `public\_send'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > `dispatch'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > `dispatch'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > `block in invoke'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > `block in task'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > `block in task'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > `block in initialize'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > > `block in create'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > > `block in initialize'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > > `block in get\_thread'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > `call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > `block in create'
> > > 
> > > (celluloid):0:in `remote procedure call'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > `value'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > `method\_missing'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:54:in  
> > > `block (2 levels) in upload'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in `each'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in  
> > > `block in upload'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/client.rb:36:in  
> > > `open'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley.rb:51:in  
> > > `open'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf.rb:157:in  
> > > `ridley\_connection'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:49:in  
> > > `upload'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:36:in `run'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb:542:in  
> > > `upload'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:208:in `upload'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in  
> > > `run'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in  
> > > `invoke\_command'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in  
> > > `dispatch'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:52:in `dispatch'
> > > 
> > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in  
> > > `start'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:27:in `execute!'
> > > 
> > > /opt/chefdk/embedded/apps/berkshelf/bin/berks:5:in `\<top (required)\>'
> > > 
> > > /opt/chefdk/bin/berks:37:in `load'
> > > 
> > > /opt/chefdk/bin/berks:37:in `'
> > > 
> > > I haven't had any luck googling the error for a solution.
> > > 
> > > Any thoughts?
> > > 
> > > - Michael

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 13, 2015, 10:25pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/5 "2015-05-13T22:25:20Z")

</div>

So, because all of my cookbooks depend on other cookbooks had to find one  
that I depended on that nothing else did so...

1. knife cookbook upload

Banks-2:md-chef mlindsay$ git clone [git@github.com](mailto:git@github.com):  
opscode-cookbooks/users.git

Cloning into 'users'...

remote: Counting objects: 468, done.

remote: Total 468 (delta 0), reused 0 (delta 0), pack-reused 468

Receiving objects: 100% (468/468), 94.43 KiB | 0 bytes/s, done.

Resolving deltas: 100% (176/176), done.

Checking connectivity... done.

Banks-2:md-chef mlindsay$ knife cookbook upload users -c ~/.chef/knife.rb

_ERROR:_ knife encountered an unexpected error

This may be a bug in the 'cookbook upload' knife command or plugin

Please collect the output of this command with the `-VV` option before  
filing a bug report.

Exception: NoMethodError: undefined method `source\_url' for  
#Chef::Cookbook::Metadata:0x007fd59a168ee8

Banks-2:md-chef mlindsay$ knife cookbook upload users -c ~/.chef/knife.rb  
-VV

DEBUG: No chefignore file found at /Users/mlindsay/chefignore no files will  
be ignored

/Users/mlindsay/md-chef/users/metadata.rb:8:in `from_file': undefined method `source\_url' for #Chef::Cookbook::Metadata:0x007f9751ace960  
(NoMethodError)

from /opt/chefdk/embedded/apps/chef/lib/chef/mixin/from\_file.rb:30:in  
`instance\_eval'

from /opt/chefdk/embedded/apps/chef/lib/chef/mixin/from\_file.rb:30:in  
`from\_file'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:172:in  
`apply\_ruby\_metadata'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:110:in  
`block in metadata'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:107:in  
`each'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:107:in  
`metadata'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:99:in  
`block in cookbook\_version'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:88:in  
`tap'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:88:in  
`cookbook\_version'

from /opt/chefdk/embedded/apps/chef/lib/chef/cookbook\_loader.rb:95:in  
`load\_cookbook'

from /opt/chefdk/embedded/apps/chef/lib/chef/cookbook\_loader.rb:103:in `'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:171:in  
`block in cookbooks\_to\_upload'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:168:in  
`each'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:168:in  
`cookbooks\_to\_upload'

from  
/opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:206:in  
`warn\_about\_cookbook\_shadowing'

from /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:96:in  
`run'

from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:493:in  
`run\_with\_pretty\_exceptions'

from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:174:in `run'

from /opt/chefdk/embedded/apps/chef/lib/chef/application/knife.rb:139:in  
`run'

from /opt/chefdk/embedded/apps/chef/bin/knife:25:in `\<top (required)\>'

from /opt/chefdk/bin/knife:34:in `load'

from /opt/chefdk/bin/knife:34:in `'

1. 

root@chef:/home/ubuntu# chef-server-ctl status

run: bookshelf: (pid 6463) 14882s; run: log: (pid 5272) 15207s

1. 

# AUTO-GENERATED BY CHEF - DO NOT MODIFY

topology "standalone"

api\_fqdn "[chef.DOMAIN.com](http://chef.DOMAIN.com)"

On Wed, May 13, 2015 at 1:48 PM, Stephen Delano [stephen@opscode.com](mailto:stephen@opscode.com) wrote:

> Thanks Michael,
> 
> A few more things:
> 
> - Does the same error (or at least a similar failure) occur when you run a  
> `knife cookbook upload`?
> - From the Chef Server, what is the output of the `chef-server-ctl status`  
> command? Is the bookshelf service running? I expect it is if you’ve gotten  
> this far.
> - What are the contents of your /etc/opscode/chef-server.rb configuration  
> file (on the Chef Server)?
> 
> Thanks!
> 
> —  
> Stephen Delano - Engineering Lead, Chef
> 
> On Wed, May 13, 2015 at 1:27 PM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
> wrote:
> 
> > Hey Stephen,
> > 
> > Thanks for getting back to me... Is this the kind of thing you are  
> > looking for?
> > 
> > ==\> /var/log/opscode/opscode-erchef/crash.log \<==
> > 
> > 2015-05-13 20:17:17 =ERROR REPORT====
> > 
> > Checking presence of checksum: \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for  
> > org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
> > taken longer than 5000 ms
> > 
> > 2015-05-13 20:17:17 =ERROR REPORT====
> > 
> > Checking presence of checksum: \<\<"668e14353b42023b737efa15b3c675b9"\>\> for  
> > org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
> > taken longer than 5000 ms
> > 
> > ==\> /var/log/opscode/opscode-erchef/current \<==
> > 
> > 2015-05-13\_20:17:17.33628 [error] Checking presence of checksum:  
> > \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
> > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > longer than 5000 ms
> > 
> > 2015-05-13\_20:17:17.33629
> > 
> > ==\> /var/log/opscode/opscode-erchef/erchef.log \<==
> > 
> > 2015-05-13 20:17:17.330 [error] Checking presence of checksum:  
> > \<\<"668e14353b42023b737efa15b3c675b9"\>\> for org  
> > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > longer than 5000 ms
> > 
> > followed by this
> > 
> > ==\> /var/log/opscode/opscode-erchef/crash.log \<==
> > 
> > 2015-05-13 20:17:22 =ERROR REPORT====
> > 
> > {\<\<"method=PUT;  
> > path=/organizations/metrodigi/sandboxes/d81dca36ec74c00114c5f3438e323f7d;  
> > status=500;  
> > "\>\>,{error,{throw,{checksum\_check\_error,23},[{chef\_wm\_named\_sandbox,validate\_checksums\_uploaded,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,142}]},{chef\_wm\_named\_sandbox,from\_json,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,97}]},{webmachine\_resource,resource\_call,3,[{file,"src/webmachine\_resource.erl"},{line,186}]},{webmachine\_resource,do,3,[{file,"src/webmachine\_resource.erl"},{line,142}]},{webmachine\_decision\_core,resource\_call,1,[{file,"src/webmachine\_decision\_core.erl"},{line,48}]},{webmachine\_decision\_core,accept\_helper,1,[{file,"src/webmachine\_decision\_core.erl"},{line,616}]},{webmachine\_decision\_core,decision,1,[{file,"src/webmachine\_decision\_core.erl"},{line,521}]},{webmachine\_decision\_core,handle\_request,2,[{file,"src/webmachine\_decision\_core.erl"},{line,33}]}]}}}
> > 
> > Here's a note, during my install, in order to get chef-server-ctl to work  
> > I had to:
> > 
> > sudo chmod 0644 /etc/opscode/pivotal.pem
> > 
> > should I have not used sudo when I: chef-solo -o  
> > 'recipe[chef-server::default]' -j dna.json ?
> > 
> > Thanks,
> > 
> > - Michael
> > 
> > On Wed, May 13, 2015 at 1:00 PM, Stephen Delano [stephen@opscode.com](mailto:stephen@opscode.com)  
> > wrote:
> > 
> > > Hi Michael,
> > > 
> > > The error `{“error”:[“internal service error”]}` is coming from the Chef  
> > > Server, so the rest of that output is just Berks sending you a stacktrace.
> > > 
> > > In order to get closer to the root of the issue, you’ll need to provide  
> > > some logs from the Chef Server. From the stacktrace, this appears to be  
> > > happening when making a cookbook upload request:  
> > > [berkshelf/lib/berkshelf/uploader.rb at master · berkshelf/berkshelf · GitHub](https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60)
> > > 
> > > You can find the relevant logs from the Chef Server in  
> > > /var/log/opscode/opscode-erchef/requests.log.\*
> > > 
> > > To filter them down, you should be able to grep for status=500, which is  
> > > the corresponding error code. A message about what failed should be in the  
> > > erchef log and should help us track down the issue.
> > > 
> > > Thanks!
> > > 
> > > —  
> > > Stephen Delano - Engineering Lead, Chef
> > > 
> > > On Wed, May 13, 2015 at 12:19 PM, Michael Lindsay \<  
> > > [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)\> wrote:
> > > 
> > > > Hey All,
> > > > 
> > > > I'm just setting up a new chef server (inside a vpc) and I'm having  
> > > > trouble uploading the cookbooks with berks from my workstation:
> > > > 
> > > > Banks-2:base mlindsay$ berks upload -c ~/.berkshelf/vpc.json
> > > > 
> > > > E, [2015-05-13T12:14:00.542111 #16190] ERROR -- :  
> > > > Ridley::Errors::HTTPInternalServerError: {"error":["internal service  
> > > > error"]}
> > > > 
> > > > E, [2015-05-13T12:14:00.542241 #16190] ERROR -- :  
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_response.rb:24:in  
> > > > `on\_complete'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:9:in  
> > > > `block in call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:57:in  
> > > > `on\_complete'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > > `call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > > `call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > > `call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_auth.rb:74:in  
> > > > `call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in  
> > > > `call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/rack\_builder.rb:139:in  
> > > > `build\_response'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in  
> > > > `run\_request'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/connection.rb:104:in  
> > > > `run\_request'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:177:in  
> > > > `put'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > `public\_send'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > `block in invoke'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > `block in task'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > `block in task'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > `block in initialize'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > > > `block in create'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > > > `block in initialize'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > > > `block in get\_thread'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > `call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > `block in create'
> > > > 
> > > > (celluloid):0:in `remote procedure call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > `value'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > `method\_missing'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell\_proxy.rb:17:in  
> > > > `_send_'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:41:in  
> > > > `_send_'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:140:in  
> > > > `method\_missing'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > `public\_send'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > `block in invoke'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > `block in task'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > `block in task'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > `block in initialize'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > > > `block in create'
> > > > 
> > > > (celluloid):0:in `remote procedure call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > `value'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > `method\_missing'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:132:in  
> > > > `raw\_request'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:123:in  
> > > > `request'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/sandbox\_resource.rb:46:in  
> > > > `commit'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > `public\_send'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > `block in invoke'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > `block in task'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > `block in task'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > `block in initialize'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > > > `block in create'
> > > > 
> > > > (celluloid):0:in `remote procedure call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > `value'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > `method\_missing'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/chef\_objects/sandbox\_object.rb:53:in  
> > > > `commit'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/cookbook\_resource.rb:227:in  
> > > > `upload'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > `public\_send'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > `block in invoke'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > `block in task'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > `block in task'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > `block in initialize'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > > > `block in create'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > > > `block in initialize'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > > > `block in get\_thread'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > `call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > `block in create'
> > > > 
> > > > (celluloid):0:in `remote procedure call'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > `value'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > `method\_missing'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:54:in  
> > > > `block (2 levels) in upload'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in  
> > > > `each'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in  
> > > > `block in upload'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/client.rb:36:in  
> > > > `open'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley.rb:51:in  
> > > > `open'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf.rb:157:in  
> > > > `ridley\_connection'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:49:in  
> > > > `upload'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:36:in  
> > > > `run'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb:542:in  
> > > > `upload'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:208:in `upload'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in  
> > > > `run'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in  
> > > > `invoke\_command'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:52:in  
> > > > `dispatch'
> > > > 
> > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in  
> > > > `start'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:27:in  
> > > > `execute!'
> > > > 
> > > > /opt/chefdk/embedded/apps/berkshelf/bin/berks:5:in `\<top (required)\>'
> > > > 
> > > > /opt/chefdk/bin/berks:37:in `load'
> > > > 
> > > > /opt/chefdk/bin/berks:37:in `'
> > > > 
> > > > I haven't had any luck googling the error for a solution.
> > > > 
> > > > Any thoughts?
> > > > 
> > > > - Michael

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 14, 2015, 5:11pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/6 "2015-05-14T17:11:30Z")

</div>

A little more about my set up.

The chef server installed by solo is 12.0.8 running on Ubuntu 14.04. As I  
mentioned previously, the only thing special that I did was `sudo chmod 0644 /etc/opscode/pivotal.pem` in order to get chef-server-ctl to run.

I'm running The client I am using was previously pointing chef server  
11.1.3. And in fact, I'm using the -c option to load a vpc config file  
(for both knife and berks). I know that one difference now (could just be  
how it was set up the first time) is that I need to add  
'/organizations/ORGNAME' to my vpc\_knife.rb file. With this in place I can  
`knife ssl check -c ~/.chef/vpc_knife.rb` and get a client list. I'm still  
trying to tweak the berkshelf settings.

On Wed, May 13, 2015 at 3:25 PM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
wrote:

> So, because all of my cookbooks depend on other cookbooks had to find one  
> that I depended on that nothing else did so...
> 
> 1. knife cookbook upload
> 
> Banks-2:md-chef mlindsay$ git clone [git@github.com](mailto:git@github.com):  
> opscode-cookbooks/users.git
> 
> Cloning into 'users'...
> 
> remote: Counting objects: 468, done.
> 
> remote: Total 468 (delta 0), reused 0 (delta 0), pack-reused 468
> 
> Receiving objects: 100% (468/468), 94.43 KiB | 0 bytes/s, done.
> 
> Resolving deltas: 100% (176/176), done.
> 
> Checking connectivity... done.
> 
> Banks-2:md-chef mlindsay$ knife cookbook upload users -c ~/.chef/knife.rb
> 
> _ERROR:_ knife encountered an unexpected error
> 
> This may be a bug in the 'cookbook upload' knife command or plugin
> 
> Please collect the output of this command with the `-VV` option before  
> filing a bug report.
> 
> Exception: NoMethodError: undefined method `source\_url' for  
> #Chef::Cookbook::Metadata:0x007fd59a168ee8
> 
> Banks-2:md-chef mlindsay$ knife cookbook upload users -c ~/.chef/knife.rb  
> -VV
> 
> DEBUG: No chefignore file found at /Users/mlindsay/chefignore no files  
> will be ignored
> 
> /Users/mlindsay/md-chef/users/metadata.rb:8:in `from_file': undefined method `source\_url' for #Chef::Cookbook::Metadata:0x007f9751ace960  
> (NoMethodError)
> 
> from /opt/chefdk/embedded/apps/chef/lib/chef/mixin/from\_file.rb:30:in  
> `instance\_eval'
> 
> from /opt/chefdk/embedded/apps/chef/lib/chef/mixin/from\_file.rb:30:in  
> `from\_file'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:172:in  
> `apply\_ruby\_metadata'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:110:in  
> `block in metadata'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:107:in  
> `each'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:107:in  
> `metadata'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:99:in  
> `block in cookbook\_version'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:88:in  
> `tap'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:88:in  
> `cookbook\_version'
> 
> from /opt/chefdk/embedded/apps/chef/lib/chef/cookbook\_loader.rb:95:in  
> `load\_cookbook'
> 
> from /opt/chefdk/embedded/apps/chef/lib/chef/cookbook\_loader.rb:103:in `'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:171:in  
> `block in cookbooks\_to\_upload'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:168:in  
> `each'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:168:in  
> `cookbooks\_to\_upload'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:206:in  
> `warn\_about\_cookbook\_shadowing'
> 
> from  
> /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:96:in `run'
> 
> from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:493:in  
> `run\_with\_pretty\_exceptions'
> 
> from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:174:in `run'
> 
> from /opt/chefdk/embedded/apps/chef/lib/chef/application/knife.rb:139:in  
> `run'
> 
> from /opt/chefdk/embedded/apps/chef/bin/knife:25:in `\<top (required)\>'
> 
> from /opt/chefdk/bin/knife:34:in `load'
> 
> from /opt/chefdk/bin/knife:34:in `'
> 
> 1. 
> 
> root@chef:/home/ubuntu# chef-server-ctl status
> 
> run: bookshelf: (pid 6463) 14882s; run: log: (pid 5272) 15207s
> 
> 1. 
> 
> # AUTO-GENERATED BY CHEF - DO NOT MODIFY
> 
> topology "standalone"
> 
> api\_fqdn "[chef.DOMAIN.com](http://chef.DOMAIN.com)"
> 
> On Wed, May 13, 2015 at 1:48 PM, Stephen Delano [stephen@opscode.com](mailto:stephen@opscode.com)  
> wrote:
> 
> > Thanks Michael,
> > 
> > A few more things:
> > 
> > - Does the same error (or at least a similar failure) occur when you run  
> > a `knife cookbook upload`?
> > - From the Chef Server, what is the output of the `chef-server-ctl status` command? Is the bookshelf service running? I expect it is if you’ve  
> > gotten this far.
> > - What are the contents of your /etc/opscode/chef-server.rb configuration  
> > file (on the Chef Server)?
> > 
> > Thanks!
> > 
> > —  
> > Stephen Delano - Engineering Lead, Chef
> > 
> > On Wed, May 13, 2015 at 1:27 PM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
> > wrote:
> > 
> > > Hey Stephen,
> > > 
> > > Thanks for getting back to me... Is this the kind of thing you are  
> > > looking for?
> > > 
> > > ==\> /var/log/opscode/opscode-erchef/crash.log \<==
> > > 
> > > 2015-05-13 20:17:17 =ERROR REPORT====
> > > 
> > > Checking presence of checksum: \<\<"5b259a23bcccc6be76de01d811162d36"\>\>  
> > > for org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
> > > taken longer than 5000 ms
> > > 
> > > 2015-05-13 20:17:17 =ERROR REPORT====
> > > 
> > > Checking presence of checksum: \<\<"668e14353b42023b737efa15b3c675b9"\>\>  
> > > for org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
> > > taken longer than 5000 ms
> > > 
> > > ==\> /var/log/opscode/opscode-erchef/current \<==
> > > 
> > > 2015-05-13\_20:17:17.33628 [error] Checking presence of checksum:  
> > > \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
> > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > longer than 5000 ms
> > > 
> > > 2015-05-13\_20:17:17.33629
> > > 
> > > ==\> /var/log/opscode/opscode-erchef/erchef.log \<==
> > > 
> > > 2015-05-13 20:17:17.330 [error] Checking presence of checksum:  
> > > \<\<"668e14353b42023b737efa15b3c675b9"\>\> for org  
> > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > longer than 5000 ms
> > > 
> > > followed by this
> > > 
> > > ==\> /var/log/opscode/opscode-erchef/crash.log \<==
> > > 
> > > 2015-05-13 20:17:22 =ERROR REPORT====
> > > 
> > > {\<\<"method=PUT;  
> > > path=/organizations/metrodigi/sandboxes/d81dca36ec74c00114c5f3438e323f7d;  
> > > status=500;  
> > > "\>\>,{error,{throw,{checksum\_check\_error,23},[{chef\_wm\_named\_sandbox,validate\_checksums\_uploaded,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,142}]},{chef\_wm\_named\_sandbox,from\_json,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,97}]},{webmachine\_resource,resource\_call,3,[{file,"src/webmachine\_resource.erl"},{line,186}]},{webmachine\_resource,do,3,[{file,"src/webmachine\_resource.erl"},{line,142}]},{webmachine\_decision\_core,resource\_call,1,[{file,"src/webmachine\_decision\_core.erl"},{line,48}]},{webmachine\_decision\_core,accept\_helper,1,[{file,"src/webmachine\_decision\_core.erl"},{line,616}]},{webmachine\_decision\_core,decision,1,[{file,"src/webmachine\_decision\_core.erl"},{line,521}]},{webmachine\_decision\_core,handle\_request,2,[{file,"src/webmachine\_decision\_core.erl"},{line,33}]}]}}}
> > > 
> > > Here's a note, during my install, in order to get chef-server-ctl to  
> > > work I had to:
> > > 
> > > sudo chmod 0644 /etc/opscode/pivotal.pem
> > > 
> > > should I have not used sudo when I: chef-solo -o  
> > > 'recipe[chef-server::default]' -j dna.json ?
> > > 
> > > Thanks,
> > > 
> > > - Michael
> > > 
> > > On Wed, May 13, 2015 at 1:00 PM, Stephen Delano [stephen@opscode.com](mailto:stephen@opscode.com)  
> > > wrote:
> > > 
> > > > Hi Michael,
> > > > 
> > > > The error `{“error”:[“internal service error”]}` is coming from the  
> > > > Chef Server, so the rest of that output is just Berks sending you a  
> > > > stacktrace.
> > > > 
> > > > In order to get closer to the root of the issue, you’ll need to provide  
> > > > some logs from the Chef Server. From the stacktrace, this appears to be  
> > > > happening when making a cookbook upload request:  
> > > > [https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60](https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60)
> > > > 
> > > > You can find the relevant logs from the Chef Server in  
> > > > /var/log/opscode/opscode-erchef/requests.log.\*
> > > > 
> > > > To filter them down, you should be able to grep for status=500, which  
> > > > is the corresponding error code. A message about what failed should be in  
> > > > the erchef log and should help us track down the issue.
> > > > 
> > > > Thanks!
> > > > 
> > > > —  
> > > > Stephen Delano - Engineering Lead, Chef
> > > > 
> > > > On Wed, May 13, 2015 at 12:19 PM, Michael Lindsay \<  
> > > > [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)\> wrote:
> > > > 
> > > > > Hey All,
> > > > > 
> > > > > I'm just setting up a new chef server (inside a vpc) and I'm having  
> > > > > trouble uploading the cookbooks with berks from my workstation:
> > > > > 
> > > > > Banks-2:base mlindsay$ berks upload -c ~/.berkshelf/vpc.json
> > > > > 
> > > > > E, [2015-05-13T12:14:00.542111 #16190] ERROR -- :  
> > > > > Ridley::Errors::HTTPInternalServerError: {"error":["internal service  
> > > > > error"]}
> > > > > 
> > > > > E, [2015-05-13T12:14:00.542241 #16190] ERROR -- :  
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_response.rb:24:in  
> > > > > `on\_complete'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:9:in  
> > > > > `block in call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:57:in  
> > > > > `on\_complete'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > > > `call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > > > `call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > > > `call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_auth.rb:74:in  
> > > > > `call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in  
> > > > > `call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/rack\_builder.rb:139:in  
> > > > > `build\_response'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in  
> > > > > `run\_request'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/connection.rb:104:in  
> > > > > `run\_request'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:177:in  
> > > > > `put'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > `public\_send'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > > `block in invoke'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > > `block in task'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > > `block in task'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > > `block in initialize'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > > > > `block in create'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > > > > `block in initialize'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > > > > `block in get\_thread'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > > `call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > > `block in create'
> > > > > 
> > > > > (celluloid):0:in `remote procedure call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > > `value'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > > `method\_missing'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell\_proxy.rb:17:in  
> > > > > `_send_'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:41:in  
> > > > > `_send_'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:140:in  
> > > > > `method\_missing'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > `public\_send'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > > `block in invoke'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > > `block in task'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > > `block in task'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > > `block in initialize'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > > > > `block in create'
> > > > > 
> > > > > (celluloid):0:in `remote procedure call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > > `value'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > > `method\_missing'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:132:in  
> > > > > `raw\_request'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:123:in  
> > > > > `request'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/sandbox\_resource.rb:46:in  
> > > > > `commit'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > `public\_send'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > > `block in invoke'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > > `block in task'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > > `block in task'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > > `block in initialize'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > > > > `block in create'
> > > > > 
> > > > > (celluloid):0:in `remote procedure call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > > `value'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > > `method\_missing'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/chef\_objects/sandbox\_object.rb:53:in  
> > > > > `commit'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/cookbook\_resource.rb:227:in  
> > > > > `upload'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > `public\_send'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > > `block in invoke'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > > `block in task'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > > `block in task'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > > `block in initialize'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > > > > `block in create'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > > > > `block in initialize'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > > > > `block in get\_thread'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > > `call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > > `block in create'
> > > > > 
> > > > > (celluloid):0:in `remote procedure call'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > > `value'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > > `method\_missing'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:54:in  
> > > > > `block (2 levels) in upload'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in  
> > > > > `each'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in  
> > > > > `block in upload'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/client.rb:36:in  
> > > > > `open'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley.rb:51:in  
> > > > > `open'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf.rb:157:in  
> > > > > `ridley\_connection'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:49:in  
> > > > > `upload'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:36:in  
> > > > > `run'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb:542:in  
> > > > > `upload'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:208:in  
> > > > > `upload'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in  
> > > > > `run'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in  
> > > > > `invoke\_command'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:52:in  
> > > > > `dispatch'
> > > > > 
> > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in  
> > > > > `start'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:27:in  
> > > > > `execute!'
> > > > > 
> > > > > /opt/chefdk/embedded/apps/berkshelf/bin/berks:5:in `\<top (required)\>'
> > > > > 
> > > > > /opt/chefdk/bin/berks:37:in `load'
> > > > > 
> > > > > /opt/chefdk/bin/berks:37:in `'
> > > > > 
> > > > > I haven't had any luck googling the error for a solution.
> > > > > 
> > > > > Any thoughts?
> > > > > 
> > > > > - Michael

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 14, 2015, 5:19pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/7 "2015-05-14T17:19:28Z")

</div>

I have also tried setting my new configuration to be the default knife.rb  
and renamed config.json in my .berkshelf directory. Same error:

==\> /var/log/opscode/opscode-erchef/current \<==

2015-05-14\_17:12:38.73280 [error] Checking presence of checksum:  
\<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
\<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
longer than 5000 ms

...

2015-05-14\_17:12:43.74133 [error] Checking presence of checksum:  
\<\<"471f01912a5109386225389563db4159"\>\> for org  
\<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
longer than 5000 ms

2015-05-14\_17:12:43.74134

2015-05-14\_17:12:43.74351 [error] {\<\<"method=PUT;  
path=/organizations/metrodigi/sandboxes/d81dca36ec749108cdfdcab1941a562e;  
status=500;  
"\>\>,{error,{throw,{checksum\_check\_error,23},[{chef\_wm\_named\_sandbox,validate\_checksums\_uploaded,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,142}]},{chef\_wm\_named\_sandbox,from\_json,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,97}]},{webmachine\_resource,resource\_call,3,[{file,"src/webmachine\_resource.erl"},{line,186}]},{webmachine\_resource,do,3,[{file,"src/webmachine\_resource.erl"},{line,142}]},{webmachine\_decision\_core,resource\_call,1,[{file,"src/webmachine\_decision\_core.erl"},{line,48}]},{webmachine\_decision\_core,accept\_helper,1,[{file,"src/webmachine\_decision\_core.erl"},{line,616}]},{webmachine\_decision\_core,decision,1,[{file,"src/webmachine\_decision\_core.erl"},{line,521}]},{webmachine\_decision\_core,handle\_request,2,[{file,"src/webmachine\_decision\_core.erl"},{line,33}]}]}}}

==\> /var/log/opscode/opscode-erchef/requests.log.1 \<==

2015-05-14T17:12:43Z [erchef@127.0.0.1](mailto:erchef@127.0.0.1) method=PUT;  
path=/organizations/metrodigi/sandboxes/d81dca36ec749108cdfdcab1941a562e;  
status=500; req\_id=g3IAA2QAEGVyY2hlZkAxMjcuMC4wLjEDAAJViQAAAAMAAAAA;  
org\_name=metrodigi; policies=false; couchdb\_groups=false;  
couchdb\_organizations=false; couchdb\_containers=false; couchdb\_acls=false;  
503\_mode=false; couchdb\_associations=false;  
couchdb\_association\_requests=false; req\_time=10034; rdbms\_time=17;  
rdbms\_count=5; authz\_time=6; authz\_count=1; s3\_time=10002; s3\_count=1;  
user=mlindsay; req\_api\_version=0;

On Thu, May 14, 2015 at 10:11 AM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
wrote:

> A little more about my set up.
> 
> The chef server installed by solo is 12.0.8 running on Ubuntu 14.04. As I  
> mentioned previously, the only thing special that I did was `sudo chmod 0644 /etc/opscode/pivotal.pem` in order to get chef-server-ctl to run.
> 
> I'm running The client I am using was previously pointing chef server  
> 11.1.3. And in fact, I'm using the -c option to load a vpc config file  
> (for both knife and berks). I know that one difference now (could just be  
> how it was set up the first time) is that I need to add  
> '/organizations/ORGNAME' to my vpc\_knife.rb file. With this in place I can  
> `knife ssl check -c ~/.chef/vpc_knife.rb` and get a client list. I'm still  
> trying to tweak the berkshelf settings.
> 
> On Wed, May 13, 2015 at 3:25 PM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
> wrote:
> 
> > So, because all of my cookbooks depend on other cookbooks had to find one  
> > that I depended on that nothing else did so...
> > 
> > 1. knife cookbook upload
> > 
> > Banks-2:md-chef mlindsay$ git clone [git@github.com](mailto:git@github.com):  
> > opscode-cookbooks/users.git
> > 
> > Cloning into 'users'...
> > 
> > remote: Counting objects: 468, done.
> > 
> > remote: Total 468 (delta 0), reused 0 (delta 0), pack-reused 468
> > 
> > Receiving objects: 100% (468/468), 94.43 KiB | 0 bytes/s, done.
> > 
> > Resolving deltas: 100% (176/176), done.
> > 
> > Checking connectivity... done.
> > 
> > Banks-2:md-chef mlindsay$ knife cookbook upload users -c ~/.chef/knife.rb
> > 
> > _ERROR:_ knife encountered an unexpected error
> > 
> > This may be a bug in the 'cookbook upload' knife command or plugin
> > 
> > Please collect the output of this command with the `-VV` option before  
> > filing a bug report.
> > 
> > Exception: NoMethodError: undefined method `source\_url' for  
> > #Chef::Cookbook::Metadata:0x007fd59a168ee8
> > 
> > Banks-2:md-chef mlindsay$ knife cookbook upload users -c ~/.chef/knife.rb  
> > -VV
> > 
> > DEBUG: No chefignore file found at /Users/mlindsay/chefignore no files  
> > will be ignored
> > 
> > /Users/mlindsay/md-chef/users/metadata.rb:8:in `from_file': undefined method `source\_url' for #Chef::Cookbook::Metadata:0x007f9751ace960  
> > (NoMethodError)
> > 
> > from /opt/chefdk/embedded/apps/chef/lib/chef/mixin/from\_file.rb:30:in  
> > `instance\_eval'
> > 
> > from /opt/chefdk/embedded/apps/chef/lib/chef/mixin/from\_file.rb:30:in  
> > `from\_file'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:172:in  
> > `apply\_ruby\_metadata'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:110:in  
> > `block in metadata'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:107:in  
> > `each'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:107:in  
> > `metadata'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:99:in  
> > `block in cookbook\_version'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:88:in  
> > `tap'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/cookbook/cookbook\_version\_loader.rb:88:in  
> > `cookbook\_version'
> > 
> > from /opt/chefdk/embedded/apps/chef/lib/chef/cookbook\_loader.rb:95:in  
> > `load\_cookbook'
> > 
> > from /opt/chefdk/embedded/apps/chef/lib/chef/cookbook\_loader.rb:103:in  
> > `'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:171:in  
> > `block in cookbooks\_to\_upload'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:168:in  
> > `each'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:168:in  
> > `cookbooks\_to\_upload'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:206:in  
> > `warn\_about\_cookbook\_shadowing'
> > 
> > from  
> > /opt/chefdk/embedded/apps/chef/lib/chef/knife/cookbook\_upload.rb:96:in `run'
> > 
> > from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:493:in  
> > `run\_with\_pretty\_exceptions'
> > 
> > from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:174:in `run'
> > 
> > from /opt/chefdk/embedded/apps/chef/lib/chef/application/knife.rb:139:in  
> > `run'
> > 
> > from /opt/chefdk/embedded/apps/chef/bin/knife:25:in `\<top (required)\>'
> > 
> > from /opt/chefdk/bin/knife:34:in `load'
> > 
> > from /opt/chefdk/bin/knife:34:in `'
> > 
> > 1. 
> > 
> > root@chef:/home/ubuntu# chef-server-ctl status
> > 
> > run: bookshelf: (pid 6463) 14882s; run: log: (pid 5272) 15207s
> > 
> > 1. 
> > 
> > # AUTO-GENERATED BY CHEF - DO NOT MODIFY
> > 
> > topology "standalone"
> > 
> > api\_fqdn "[chef.DOMAIN.com](http://chef.DOMAIN.com)"
> > 
> > On Wed, May 13, 2015 at 1:48 PM, Stephen Delano [stephen@opscode.com](mailto:stephen@opscode.com)  
> > wrote:
> > 
> > > Thanks Michael,
> > > 
> > > A few more things:
> > > 
> > > - Does the same error (or at least a similar failure) occur when you run  
> > > a `knife cookbook upload`?
> > > - From the Chef Server, what is the output of the `chef-server-ctl status` command? Is the bookshelf service running? I expect it is if you’ve  
> > > gotten this far.
> > > - What are the contents of your /etc/opscode/chef-server.rb  
> > > configuration file (on the Chef Server)?
> > > 
> > > Thanks!
> > > 
> > > —  
> > > Stephen Delano - Engineering Lead, Chef
> > > 
> > > On Wed, May 13, 2015 at 1:27 PM, Michael Lindsay \<[mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)
> > > 
> > > > wrote:
> > > 
> > > > Hey Stephen,
> > > > 
> > > > Thanks for getting back to me... Is this the kind of thing you are  
> > > > looking for?
> > > > 
> > > > ==\> /var/log/opscode/opscode-erchef/crash.log \<==
> > > > 
> > > > 2015-05-13 20:17:17 =ERROR REPORT====
> > > > 
> > > > Checking presence of checksum: \<\<"5b259a23bcccc6be76de01d811162d36"\>\>  
> > > > for org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
> > > > taken longer than 5000 ms
> > > > 
> > > > 2015-05-13 20:17:17 =ERROR REPORT====
> > > > 
> > > > Checking presence of checksum: \<\<"668e14353b42023b737efa15b3c675b9"\>\>  
> > > > for org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has  
> > > > taken longer than 5000 ms
> > > > 
> > > > ==\> /var/log/opscode/opscode-erchef/current \<==
> > > > 
> > > > 2015-05-13\_20:17:17.33628 [error] Checking presence of checksum:  
> > > > \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
> > > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > > longer than 5000 ms
> > > > 
> > > > 2015-05-13\_20:17:17.33629
> > > > 
> > > > ==\> /var/log/opscode/opscode-erchef/erchef.log \<==
> > > > 
> > > > 2015-05-13 20:17:17.330 [error] Checking presence of checksum:  
> > > > \<\<"668e14353b42023b737efa15b3c675b9"\>\> for org  
> > > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > > longer than 5000 ms
> > > > 
> > > > followed by this
> > > > 
> > > > ==\> /var/log/opscode/opscode-erchef/crash.log \<==
> > > > 
> > > > 2015-05-13 20:17:22 =ERROR REPORT====
> > > > 
> > > > {\<\<"method=PUT;  
> > > > path=/organizations/metrodigi/sandboxes/d81dca36ec74c00114c5f3438e323f7d;  
> > > > status=500;  
> > > > "\>\>,{error,{throw,{checksum\_check\_error,23},[{chef\_wm\_named\_sandbox,validate\_checksums\_uploaded,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,142}]},{chef\_wm\_named\_sandbox,from\_json,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,97}]},{webmachine\_resource,resource\_call,3,[{file,"src/webmachine\_resource.erl"},{line,186}]},{webmachine\_resource,do,3,[{file,"src/webmachine\_resource.erl"},{line,142}]},{webmachine\_decision\_core,resource\_call,1,[{file,"src/webmachine\_decision\_core.erl"},{line,48}]},{webmachine\_decision\_core,accept\_helper,1,[{file,"src/webmachine\_decision\_core.erl"},{line,616}]},{webmachine\_decision\_core,decision,1,[{file,"src/webmachine\_decision\_core.erl"},{line,521}]},{webmachine\_decision\_core,handle\_request,2,[{file,"src/webmachine\_decision\_core.erl"},{line,33}]}]}}}
> > > > 
> > > > Here's a note, during my install, in order to get chef-server-ctl to  
> > > > work I had to:
> > > > 
> > > > sudo chmod 0644 /etc/opscode/pivotal.pem
> > > > 
> > > > should I have not used sudo when I: chef-solo -o  
> > > > 'recipe[chef-server::default]' -j dna.json ?
> > > > 
> > > > Thanks,
> > > > 
> > > > - Michael
> > > > 
> > > > On Wed, May 13, 2015 at 1:00 PM, Stephen Delano [stephen@opscode.com](mailto:stephen@opscode.com)  
> > > > wrote:
> > > > 
> > > > > Hi Michael,
> > > > > 
> > > > > The error `{“error”:[“internal service error”]}` is coming from the  
> > > > > Chef Server, so the rest of that output is just Berks sending you a  
> > > > > stacktrace.
> > > > > 
> > > > > In order to get closer to the root of the issue, you’ll need to  
> > > > > provide some logs from the Chef Server. From the stacktrace, this appears  
> > > > > to be happening when making a cookbook upload request:  
> > > > > [https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60](https://github.com/berkshelf/berkshelf/blob/master/lib/berkshelf/uploader.rb#L55-L60)
> > > > > 
> > > > > You can find the relevant logs from the Chef Server in  
> > > > > /var/log/opscode/opscode-erchef/requests.log.\*
> > > > > 
> > > > > To filter them down, you should be able to grep for status=500, which  
> > > > > is the corresponding error code. A message about what failed should be in  
> > > > > the erchef log and should help us track down the issue.
> > > > > 
> > > > > Thanks!
> > > > > 
> > > > > —  
> > > > > Stephen Delano - Engineering Lead, Chef
> > > > > 
> > > > > On Wed, May 13, 2015 at 12:19 PM, Michael Lindsay \<  
> > > > > [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)\> wrote:
> > > > > 
> > > > > > Hey All,
> > > > > > 
> > > > > > I'm just setting up a new chef server (inside a vpc) and I'm having  
> > > > > > trouble uploading the cookbooks with berks from my workstation:
> > > > > > 
> > > > > > Banks-2:base mlindsay$ berks upload -c ~/.berkshelf/vpc.json
> > > > > > 
> > > > > > E, [2015-05-13T12:14:00.542111 #16190] ERROR -- :  
> > > > > > Ridley::Errors::HTTPInternalServerError: {"error":["internal service  
> > > > > > error"]}
> > > > > > 
> > > > > > E, [2015-05-13T12:14:00.542241 #16190] ERROR -- :  
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_response.rb:24:in  
> > > > > > `on\_complete'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:9:in  
> > > > > > `block in call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:57:in  
> > > > > > `on\_complete'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > > > > `call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > > > > `call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/response.rb:8:in  
> > > > > > `call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/middleware/chef\_auth.rb:74:in  
> > > > > > `call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in  
> > > > > > `call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/rack\_builder.rb:139:in  
> > > > > > `build\_response'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in  
> > > > > > `run\_request'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/connection.rb:104:in  
> > > > > > `run\_request'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:177:in  
> > > > > > `put'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > > `public\_send'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > > > `block in invoke'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > > > `block in task'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > > > `block in task'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > > > `block in initialize'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > > > > > `block in create'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > > > > > `block in initialize'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > > > > > `block in get\_thread'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > > > `call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > > > `block in create'
> > > > > > 
> > > > > > (celluloid):0:in `remote procedure call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > > > `value'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > > > `method\_missing'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/cell\_proxy.rb:17:in  
> > > > > > `_send_'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:41:in  
> > > > > > `_send_'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/pool\_manager.rb:140:in  
> > > > > > `method\_missing'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > > `public\_send'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > > > `block in invoke'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > > > `block in task'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > > > `block in task'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > > > `block in initialize'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > > > > > `block in create'
> > > > > > 
> > > > > > (celluloid):0:in `remote procedure call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > > > `value'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > > > `method\_missing'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:132:in  
> > > > > > `raw\_request'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resource.rb:123:in  
> > > > > > `request'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/sandbox\_resource.rb:46:in  
> > > > > > `commit'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > > `public\_send'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > > > `block in invoke'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > > > `block in task'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > > > `block in task'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > > > `block in initialize'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_fiber.rb:15:in  
> > > > > > `block in create'
> > > > > > 
> > > > > > (celluloid):0:in `remote procedure call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > > > `value'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > > > `method\_missing'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/chef\_objects/sandbox\_object.rb:53:in  
> > > > > > `commit'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/resources/cookbook\_resource.rb:227:in  
> > > > > > `upload'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > > `public\_send'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:in  
> > > > > > `block in invoke'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in  
> > > > > > `block in task'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:in  
> > > > > > `block in task'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in  
> > > > > > `block in initialize'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/tasks/task\_thread.rb:21:in  
> > > > > > `block in create'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/thread\_handle.rb:13:in  
> > > > > > `block in initialize'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/actor\_system.rb:32:in  
> > > > > > `block in get\_thread'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > > > `call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/internal\_pool.rb:130:in  
> > > > > > `block in create'
> > > > > > 
> > > > > > (celluloid):0:in `remote procedure call'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/calls.rb:92:in  
> > > > > > `value'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/proxies/sync\_proxy.rb:33:in  
> > > > > > `method\_missing'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:54:in  
> > > > > > `block (2 levels) in upload'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in  
> > > > > > `each'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:50:in  
> > > > > > `block in upload'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley/client.rb:36:in  
> > > > > > `open'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/ridley-4.0.0/lib/ridley.rb:51:in  
> > > > > > `open'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf.rb:157:in  
> > > > > > `ridley\_connection'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:49:in  
> > > > > > `upload'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/uploader.rb:36:in  
> > > > > > `run'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb:542:in  
> > > > > > `upload'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:208:in  
> > > > > > `upload'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in  
> > > > > > `run'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in  
> > > > > > `invoke\_command'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:52:in  
> > > > > > `dispatch'
> > > > > > 
> > > > > > /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in  
> > > > > > `start'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:27:in  
> > > > > > `execute!'
> > > > > > 
> > > > > > /opt/chefdk/embedded/apps/berkshelf/bin/berks:5:in `\<top (required)\>'
> > > > > > 
> > > > > > /opt/chefdk/bin/berks:37:in `load'
> > > > > > 
> > > > > > /opt/chefdk/bin/berks:37:in `'
> > > > > > 
> > > > > > I haven't had any luck googling the error for a solution.
> > > > > > 
> > > > > > Any thoughts?
> > > > > > 
> > > > > > - Michael

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [May 14, 2015, 5:24pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/8 "2015-05-14T17:24:16Z")

</div>

On Thursday, May 14, 2015 at 10:19 AM, Michael Lindsay wrote:

> I have also tried setting my new configuration to be the default knife.rb and renamed config.json in my .berkshelf directory. Same error:
> 
> ==\> /var/log/opscode/opscode-erchef/current \<==  
> 2015-05-14\_17:12:38.73280 [error] Checking presence of checksum: \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken longer than 5000 ms  
> ...  
> 2015-05-14\_17:12:43.74133 [error] Checking presence of checksum: \<\<"471f01912a5109386225389563db4159"\>\> for org \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken longer than 5000 ms  
> 2015-05-14\_17:12:43.74134

This is definitely your problem, it could be any number of things. If you run `chef-server-ctl tail`, it will tail the logs of every component. You should see a request to the bookshelf application, which is one possible source of the issue. If you have some super aggressive firewall or something, it’s possible that the same behavior could be caused by the TCP packets from the erchef service to the bookshelf service simply getting dropped, which would hang for a long time attempting (and failing) to set up the TCP connection. Your normal network debugging techniques could help determine if this is your issue.

--  
Daniel DeLeo

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 14, 2015, 6:05pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/9 "2015-05-14T18:05:59Z")

</div>

Hey Daniel,

Thanks for your input...  
With chef-server-ctl i'm now seeing entries for nginx and oc\_bifrost as  
well, but still challenging to find the root cause of the problem. As far  
as I can tell, it looks like chef is sending back adequate responses to the  
client.

==\> /var/log/opscode/nginx/access.log \<==  
50.193.20.201 - - [14/May/2015:17:42:27 +0000] "GET  
/organizations/metrodigi/cookbooks/apt/2.6.1 HTTP/1.1" 404 "0.019" 65 "-"  
"Ridley v4.0.0" "127.0.0.1:8000" "404" "0.019" "11.4.0"  
"algorithm=sha1;version=1.0;" "mlindsay" "2015-05-14T17:42:28Z"  
"2jmj7l5rSw0yVb/vlWAYkK/YBwk=" 949  
50.193.20.201 - - [14/May/2015:17:42:29 +0000] "POST  
/organizations/metrodigi/sandboxes HTTP/1.1" 201 "0.199" 7391 "-" "Ridley  
v4.0.0" "127.0.0.1:8000" "201" "0.199" "11.4.0"  
"algorithm=sha1;version=1.0;" "mlindsay" "2015-05-14T17:42:30Z"  
"UiN/Daaqc12o4YUmmZuhSKOSn60=" 1896  
50.193.20.201 - - [14/May/2015:17:42:29 +0000] "PUT  
/bookshelf/organization-f03b7e8dadaf3bb09705d81dca36ec74/checksum-c4dea3dbb103ce5203726dbf60289da4?AWSAccessKeyId=8c0a17c966f9c0df8783049623b56f39cfcfbdc4&Expires=1431626249&Signature=%2FHIhr0cDXbNH00NS9RtNcaP1ygM%3D  
HTTP/1.1" 204 "0.041" 0 "-" "Faraday v0.9.0" "127.0.0.1:4321" "204" "0.006"  
"11.4.0" "algorithm=sha1;version=1.0;" "mlindsay" "2015-05-14T17:42:30Z"  
"zJPbL3MjEPno/dkNXQ9xNIXGWwk=" 2275

As far as the network is concerned, We're moving into and Amazon VPC so, it  
is the thing most likely to be broken, Aside from allowing inbound access  
to 443, which is clearly happening and outbound access to everything, is  
there anything else I should look for specifically? And by 'normal network  
debugging techniques' are you talking about something like, wireshark?

TIA,

- Michael

On Thu, May 14, 2015 at 10:24 AM, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com) wrote:

> On Thursday, May 14, 2015 at 10:19 AM, Michael Lindsay wrote:
> 
> > I have also tried setting my new configuration to be the default  
> > knife.rb and renamed config.json in my .berkshelf directory. Same error:
> > 
> > ==\> /var/log/opscode/opscode-erchef/current \<==  
> > 2015-05-14\_17:12:38.73280 [error] Checking presence of checksum:  
> > \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
> > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > longer than 5000 ms  
> > ...  
> > 2015-05-14\_17:12:43.74133 [error] Checking presence of checksum:  
> > \<\<"471f01912a5109386225389563db4159"\>\> for org  
> > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > longer than 5000 ms  
> > 2015-05-14\_17:12:43.74134
> 
> This is definitely your problem, it could be any number of things. If you  
> run `chef-server-ctl tail`, it will tail the logs of every component. You  
> should see a request to the bookshelf application, which is one possible  
> source of the issue. If you have some super aggressive firewall or  
> something, it’s possible that the same behavior could be caused by the TCP  
> packets from the erchef service to the bookshelf service simply getting  
> dropped, which would hang for a long time attempting (and failing) to set  
> up the TCP connection. Your normal network debugging techniques could help  
> determine if this is your issue.
> 
> --  
> Daniel DeLeo

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 14, 2015, 6:46pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/10 "2015-05-14T18:46:23Z")

</div>

So I'm tailing the logs during restart. Could this be anything:  
==\> /var/log/opscode/opscode-expander/current \<==  
2015-05-14\_18:21:22.65634 log writing failed. can't be called from trap  
context  
2015-05-14\_18:21:22.97614 [Thu, 14 May 2015 18:21:22 +0000] INFO: Stopping  
worker 1 (PID: 9232)  
2015-05-14\_18:21:22.97617 [Thu, 14 May 2015 18:21:22 +0000] INFO: Stopping  
worker 2 (PID: 9235)  
2015-05-14\_18:21:22.97617 log writing failed. can't be called from trap  
context  
2015-05-14\_18:21:22.97617  
/opt/opscode/embedded/service/gem/ruby/2.1.0/gems/amqp-0.6.7/lib/mq.rb:246:in  
`synchronize': can't be called from trap context (ThreadError)

Looking through the logs at anything I might not be able to access locally  
doesn't seem to be yielding any fruit either:

$ curl [http://0.0.0.0:9090](http://0.0.0.0:9090)

You are being [redirected](http://0.0.0.0:9090/id/signin).

$ telnet 127.0.0.1 4321  
Trying 127.0.0.1...  
Connected to 127.0.0.1.

$ telnet 127.0.0.1 16379  
Trying 127.0.0.1...  
Connected to 127.0.0.1.

$ telnet 127.0.0.1 5672  
Trying 127.0.0.1...  
Connected to 127.0.0.1.

Does anything external have to talk to any of these ports?

My best guess about where things might be starting to go wrong is this  
request, or the one after it:

2015-05-14T18:41:52Z [oc\_bifrost@127.0.0.1](mailto:oc_bifrost@127.0.0.1) method=GET;  
path=/containers/0e8a6fe4d394239f11394f32cd67065e/acl/create/actors/29b471de57bab8c221569918c41056e9;  
status=200; requestor\_id=29b471de57bab8c221569918c41056e9; req\_time=4;  
rdbms.bifrost\_db.has\_permission\_time=2;  
rdbms.bifrost\_db.has\_permission\_count=1; rdbms.bifrost\_db.exists\_time=0;  
rdbms.bifrost\_db.exists\_count=1;

or this request:

PUT /organizations/metrodigi/sandboxes/d81dca36ec7445c7773a76ce4362f2a6  
HTTP/1.1" 500

Is it failing to create an organization sandbox? If so, any ideas what  
might cause that?

On Thu, May 14, 2015 at 11:05 AM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
wrote:

> Hey Daniel,
> 
> Thanks for your input...  
> With chef-server-ctl i'm now seeing entries for nginx and oc\_bifrost as  
> well, but still challenging to find the root cause of the problem. As far  
> as I can tell, it looks like chef is sending back adequate responses to the  
> client.
> 
> ==\> /var/log/opscode/nginx/access.log \<==  
> 50.193.20.201 - - [14/May/2015:17:42:27 +0000] "GET  
> /organizations/metrodigi/cookbooks/apt/2.6.1 HTTP/1.1" 404 "0.019" 65 "-"  
> "Ridley v4.0.0" "127.0.0.1:8000" "404" "0.019" "11.4.0"  
> "algorithm=sha1;version=1.0;" "mlindsay" "2015-05-14T17:42:28Z"  
> "2jmj7l5rSw0yVb/vlWAYkK/YBwk=" 949  
> 50.193.20.201 - - [14/May/2015:17:42:29 +0000] "POST  
> /organizations/metrodigi/sandboxes HTTP/1.1" 201 "0.199" 7391 "-" "Ridley  
> v4.0.0" "127.0.0.1:8000" "201" "0.199" "11.4.0"  
> "algorithm=sha1;version=1.0;" "mlindsay" "2015-05-14T17:42:30Z"  
> "UiN/Daaqc12o4YUmmZuhSKOSn60=" 1896  
> 50.193.20.201 - - [14/May/2015:17:42:29 +0000] "PUT  
> /bookshelf/organization-f03b7e8dadaf3bb09705d81dca36ec74/checksum-c4dea3dbb103ce5203726dbf60289da4?AWSAccessKeyId=8c0a17c966f9c0df8783049623b56f39cfcfbdc4&Expires=1431626249&Signature=%2FHIhr0cDXbNH00NS9RtNcaP1ygM%3D  
> HTTP/1.1" 204 "0.041" 0 "-" "Faraday v0.9.0" "127.0.0.1:4321" "204"  
> "0.006" "11.4.0" "algorithm=sha1;version=1.0;" "mlindsay"  
> "2015-05-14T17:42:30Z" "zJPbL3MjEPno/dkNXQ9xNIXGWwk=" 2275
> 
> As far as the network is concerned, We're moving into and Amazon VPC so,  
> it is the thing most likely to be broken, Aside from allowing inbound  
> access to 443, which is clearly happening and outbound access to  
> everything, is there anything else I should look for specifically? And by  
> 'normal network debugging techniques' are you talking about something like,  
> wireshark?
> 
> TIA,
> 
> - Michael
> 
> On Thu, May 14, 2015 at 10:24 AM, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com) wrote:
> 
> > On Thursday, May 14, 2015 at 10:19 AM, Michael Lindsay wrote:
> > 
> > > I have also tried setting my new configuration to be the default  
> > > knife.rb and renamed config.json in my .berkshelf directory. Same error:
> > > 
> > > ==\> /var/log/opscode/opscode-erchef/current \<==  
> > > 2015-05-14\_17:12:38.73280 [error] Checking presence of checksum:  
> > > \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
> > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > longer than 5000 ms  
> > > ...  
> > > 2015-05-14\_17:12:43.74133 [error] Checking presence of checksum:  
> > > \<\<"471f01912a5109386225389563db4159"\>\> for org  
> > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > longer than 5000 ms  
> > > 2015-05-14\_17:12:43.74134
> > 
> > This is definitely your problem, it could be any number of things. If you  
> > run `chef-server-ctl tail`, it will tail the logs of every component. You  
> > should see a request to the bookshelf application, which is one possible  
> > source of the issue. If you have some super aggressive firewall or  
> > something, it’s possible that the same behavior could be caused by the TCP  
> > packets from the erchef service to the bookshelf service simply getting  
> > dropped, which would hang for a long time attempting (and failing) to set  
> > up the TCP connection. Your normal network debugging techniques could help  
> > determine if this is your issue.
> > 
> > --  
> > Daniel DeLeo

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 14, 2015, 8:54pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/11 "2015-05-14T20:54:14Z")

</div>

I seem to have now disabled my ability to upload cookbooks to either of my  
chef servers with berkshelf...

I've put the backup of my old knife.rb file back, moved everything out of  
.chef that was intended for the configuration of the new server, copied my  
.berkshelf file out of my home directory to re-initalize. I can do berks  
update, but berks install gives me the following error:

Ridley::Errors::FromFileParserError Could not parse  
`/var/folders/w5/1k5n_41n3fg_ph5nc4k3xwn80000gp/T/d20150514-31290-1w5vk7n/metadata.rb': undefined method `source\_url' for  
#Ridley::Chef::Cookbook::Metadata:0x007fca2d03bf70

I've just officially screwed myself, and I don't know how, and I don't know  
how to fix it. Please Help!

TIA,

- Michael

On Thu, May 14, 2015 at 11:46 AM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
wrote:

> So I'm tailing the logs during restart. Could this be anything:  
> ==\> /var/log/opscode/opscode-expander/current \<==  
> 2015-05-14\_18:21:22.65634 log writing failed. can't be called from trap  
> context  
> 2015-05-14\_18:21:22.97614 [Thu, 14 May 2015 18:21:22 +0000] INFO: Stopping  
> worker 1 (PID: 9232)  
> 2015-05-14\_18:21:22.97617 [Thu, 14 May 2015 18:21:22 +0000] INFO: Stopping  
> worker 2 (PID: 9235)  
> 2015-05-14\_18:21:22.97617 log writing failed. can't be called from trap  
> context  
> 2015-05-14\_18:21:22.97617  
> /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/amqp-0.6.7/lib/mq.rb:246:in  
> `synchronize': can't be called from trap context (ThreadError)
> 
> Looking through the logs at anything I might not be able to access locally  
> doesn't seem to be yielding any fruit either:
> 
> $ curl [http://0.0.0.0:9090](http://0.0.0.0:9090)
> 
> You are being [redirected](http://0.0.0.0:9090/id/signin).
> 
> $ telnet 127.0.0.1 4321  
> Trying 127.0.0.1...  
> Connected to 127.0.0.1.
> 
> $ telnet 127.0.0.1 16379  
> Trying 127.0.0.1...  
> Connected to 127.0.0.1.
> 
> $ telnet 127.0.0.1 5672  
> Trying 127.0.0.1...  
> Connected to 127.0.0.1.
> 
> Does anything external have to talk to any of these ports?
> 
> My best guess about where things might be starting to go wrong is this  
> request, or the one after it:
> 
> 2015-05-14T18:41:52Z [oc\_bifrost@127.0.0.1](mailto:oc_bifrost@127.0.0.1) method=GET;  
> path=/containers/0e8a6fe4d394239f11394f32cd67065e/acl/create/actors/29b471de57bab8c221569918c41056e9;  
> status=200; requestor\_id=29b471de57bab8c221569918c41056e9; req\_time=4;  
> rdbms.bifrost\_db.has\_permission\_time=2;  
> rdbms.bifrost\_db.has\_permission\_count=1; rdbms.bifrost\_db.exists\_time=0;  
> rdbms.bifrost\_db.exists\_count=1;
> 
> or this request:
> 
> PUT /organizations/metrodigi/sandboxes/d81dca36ec7445c7773a76ce4362f2a6  
> HTTP/1.1" 500
> 
> Is it failing to create an organization sandbox? If so, any ideas what  
> might cause that?
> 
> On Thu, May 14, 2015 at 11:05 AM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
> wrote:
> 
> > Hey Daniel,
> > 
> > Thanks for your input...  
> > With chef-server-ctl i'm now seeing entries for nginx and oc\_bifrost as  
> > well, but still challenging to find the root cause of the problem. As far  
> > as I can tell, it looks like chef is sending back adequate responses to the  
> > client.
> > 
> > ==\> /var/log/opscode/nginx/access.log \<==  
> > 50.193.20.201 - - [14/May/2015:17:42:27 +0000] "GET  
> > /organizations/metrodigi/cookbooks/apt/2.6.1 HTTP/1.1" 404 "0.019" 65 "-"  
> > "Ridley v4.0.0" "127.0.0.1:8000" "404" "0.019" "11.4.0"  
> > "algorithm=sha1;version=1.0;" "mlindsay" "2015-05-14T17:42:28Z"  
> > "2jmj7l5rSw0yVb/vlWAYkK/YBwk=" 949  
> > 50.193.20.201 - - [14/May/2015:17:42:29 +0000] "POST  
> > /organizations/metrodigi/sandboxes HTTP/1.1" 201 "0.199" 7391 "-" "Ridley  
> > v4.0.0" "127.0.0.1:8000" "201" "0.199" "11.4.0"  
> > "algorithm=sha1;version=1.0;" "mlindsay" "2015-05-14T17:42:30Z"  
> > "UiN/Daaqc12o4YUmmZuhSKOSn60=" 1896  
> > 50.193.20.201 - - [14/May/2015:17:42:29 +0000] "PUT  
> > /bookshelf/organization-f03b7e8dadaf3bb09705d81dca36ec74/checksum-c4dea3dbb103ce5203726dbf60289da4?AWSAccessKeyId=8c0a17c966f9c0df8783049623b56f39cfcfbdc4&Expires=1431626249&Signature=%2FHIhr0cDXbNH00NS9RtNcaP1ygM%3D  
> > HTTP/1.1" 204 "0.041" 0 "-" "Faraday v0.9.0" "127.0.0.1:4321" "204"  
> > "0.006" "11.4.0" "algorithm=sha1;version=1.0;" "mlindsay"  
> > "2015-05-14T17:42:30Z" "zJPbL3MjEPno/dkNXQ9xNIXGWwk=" 2275
> > 
> > As far as the network is concerned, We're moving into and Amazon VPC so,  
> > it is the thing most likely to be broken, Aside from allowing inbound  
> > access to 443, which is clearly happening and outbound access to  
> > everything, is there anything else I should look for specifically? And by  
> > 'normal network debugging techniques' are you talking about something like,  
> > wireshark?
> > 
> > TIA,
> > 
> > - Michael
> > 
> > On Thu, May 14, 2015 at 10:24 AM, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com) wrote:
> > 
> > > On Thursday, May 14, 2015 at 10:19 AM, Michael Lindsay wrote:
> > > 
> > > > I have also tried setting my new configuration to be the default  
> > > > knife.rb and renamed config.json in my .berkshelf directory. Same error:
> > > > 
> > > > ==\> /var/log/opscode/opscode-erchef/current \<==  
> > > > 2015-05-14\_17:12:38.73280 [error] Checking presence of checksum:  
> > > > \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
> > > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > > longer than 5000 ms  
> > > > ...  
> > > > 2015-05-14\_17:12:43.74133 [error] Checking presence of checksum:  
> > > > \<\<"471f01912a5109386225389563db4159"\>\> for org  
> > > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > > longer than 5000 ms  
> > > > 2015-05-14\_17:12:43.74134
> > > 
> > > This is definitely your problem, it could be any number of things. If  
> > > you run `chef-server-ctl tail`, it will tail the logs of every component.  
> > > You should see a request to the bookshelf application, which is one  
> > > possible source of the issue. If you have some super aggressive firewall or  
> > > something, it’s possible that the same behavior could be caused by the TCP  
> > > packets from the erchef service to the bookshelf service simply getting  
> > > dropped, which would hang for a long time attempting (and failing) to set  
> > > up the TCP connection. Your normal network debugging techniques could help  
> > > determine if this is your issue.
> > > 
> > > --  
> > > Daniel DeLeo

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 14, 2015, 9:28pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/12 "2015-05-14T21:28:53Z")

</div>

Sorry, more spamming my own thread....

When I do berks update, I've started getting this error:

Fetching 'nodejs' from [git@github.com](mailto:git@github.com):redguide/nodejs.git (at master)  
Ridley::Errors::FromFileParserError Could not parse  
`/var/folders/w5/1k5n_41n3fg_ph5nc4k3xwn80000gp/T/d20150514-32474-17tpmlb/metadata.rb': undefined method `source\_url' for  
#Ridley::Chef::Cookbook::Metadata:0x007f915c907de8

My colleague, who's knife/berks configuration do not appear to be totally  
broken is getting this:

Fetching 'nodejs' from [git@github.com](mailto:git@github.com):redguide/nodejs.git (at master)  
The cookbook downloaded for nodejs (~\> 2.2.0) did not satisfy the  
constraint.

Not clear why this problem is cropping up now.

On Thu, May 14, 2015 at 1:54 PM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
wrote:

> I seem to have now disabled my ability to upload cookbooks to either of my  
> chef servers with berkshelf...
> 
> I've put the backup of my old knife.rb file back, moved everything out of  
> .chef that was intended for the configuration of the new server, copied my  
> .berkshelf file out of my home directory to re-initalize. I can do berks  
> update, but berks install gives me the following error:
> 
> Ridley::Errors::FromFileParserError Could not parse  
> `/var/folders/w5/1k5n_41n3fg_ph5nc4k3xwn80000gp/T/d20150514-31290-1w5vk7n/metadata.rb': undefined method `source\_url' for  
> #Ridley::Chef::Cookbook::Metadata:0x007fca2d03bf70
> 
> I've just officially screwed myself, and I don't know how, and I don't  
> know how to fix it. Please Help!
> 
> TIA,
> 
> - Michael
> 
> On Thu, May 14, 2015 at 11:46 AM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
> wrote:
> 
> > So I'm tailing the logs during restart. Could this be anything:  
> > ==\> /var/log/opscode/opscode-expander/current \<==  
> > 2015-05-14\_18:21:22.65634 log writing failed. can't be called from trap  
> > context  
> > 2015-05-14\_18:21:22.97614 [Thu, 14 May 2015 18:21:22 +0000] INFO:  
> > Stopping worker 1 (PID: 9232)  
> > 2015-05-14\_18:21:22.97617 [Thu, 14 May 2015 18:21:22 +0000] INFO:  
> > Stopping worker 2 (PID: 9235)  
> > 2015-05-14\_18:21:22.97617 log writing failed. can't be called from trap  
> > context  
> > 2015-05-14\_18:21:22.97617  
> > /opt/opscode/embedded/service/gem/ruby/2.1.0/gems/amqp-0.6.7/lib/mq.rb:246:in  
> > `synchronize': can't be called from trap context (ThreadError)
> > 
> > Looking through the logs at anything I might not be able to access  
> > locally doesn't seem to be yielding any fruit either:
> > 
> > $ curl [http://0.0.0.0:9090](http://0.0.0.0:9090)
> > 
> > You are being [redirected](http://0.0.0.0:9090/id/signin).
> > 
> > $ telnet 127.0.0.1 4321  
> > Trying 127.0.0.1...  
> > Connected to 127.0.0.1.
> > 
> > $ telnet 127.0.0.1 16379  
> > Trying 127.0.0.1...  
> > Connected to 127.0.0.1.
> > 
> > $ telnet 127.0.0.1 5672  
> > Trying 127.0.0.1...  
> > Connected to 127.0.0.1.
> > 
> > Does anything external have to talk to any of these ports?
> > 
> > My best guess about where things might be starting to go wrong is this  
> > request, or the one after it:
> > 
> > 2015-05-14T18:41:52Z [oc\_bifrost@127.0.0.1](mailto:oc_bifrost@127.0.0.1) method=GET;  
> > path=/containers/0e8a6fe4d394239f11394f32cd67065e/acl/create/actors/29b471de57bab8c221569918c41056e9;  
> > status=200; requestor\_id=29b471de57bab8c221569918c41056e9; req\_time=4;  
> > rdbms.bifrost\_db.has\_permission\_time=2;  
> > rdbms.bifrost\_db.has\_permission\_count=1; rdbms.bifrost\_db.exists\_time=0;  
> > rdbms.bifrost\_db.exists\_count=1;
> > 
> > or this request:
> > 
> > PUT /organizations/metrodigi/sandboxes/d81dca36ec7445c7773a76ce4362f2a6  
> > HTTP/1.1" 500
> > 
> > Is it failing to create an organization sandbox? If so, any ideas what  
> > might cause that?
> > 
> > On Thu, May 14, 2015 at 11:05 AM, Michael Lindsay \<[mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)
> > 
> > > wrote:
> > 
> > > Hey Daniel,
> > > 
> > > Thanks for your input...  
> > > With chef-server-ctl i'm now seeing entries for nginx and oc\_bifrost as  
> > > well, but still challenging to find the root cause of the problem. As far  
> > > as I can tell, it looks like chef is sending back adequate responses to the  
> > > client.
> > > 
> > > ==\> /var/log/opscode/nginx/access.log \<==  
> > > 50.193.20.201 - - [14/May/2015:17:42:27 +0000] "GET  
> > > /organizations/metrodigi/cookbooks/apt/2.6.1 HTTP/1.1" 404 "0.019" 65 "-"  
> > > "Ridley v4.0.0" "127.0.0.1:8000" "404" "0.019" "11.4.0"  
> > > "algorithm=sha1;version=1.0;" "mlindsay" "2015-05-14T17:42:28Z"  
> > > "2jmj7l5rSw0yVb/vlWAYkK/YBwk=" 949  
> > > 50.193.20.201 - - [14/May/2015:17:42:29 +0000] "POST  
> > > /organizations/metrodigi/sandboxes HTTP/1.1" 201 "0.199" 7391 "-" "Ridley  
> > > v4.0.0" "127.0.0.1:8000" "201" "0.199" "11.4.0"  
> > > "algorithm=sha1;version=1.0;" "mlindsay" "2015-05-14T17:42:30Z"  
> > > "UiN/Daaqc12o4YUmmZuhSKOSn60=" 1896  
> > > 50.193.20.201 - - [14/May/2015:17:42:29 +0000] "PUT  
> > > /bookshelf/organization-f03b7e8dadaf3bb09705d81dca36ec74/checksum-c4dea3dbb103ce5203726dbf60289da4?AWSAccessKeyId=8c0a17c966f9c0df8783049623b56f39cfcfbdc4&Expires=1431626249&Signature=%2FHIhr0cDXbNH00NS9RtNcaP1ygM%3D  
> > > HTTP/1.1" 204 "0.041" 0 "-" "Faraday v0.9.0" "127.0.0.1:4321" "204"  
> > > "0.006" "11.4.0" "algorithm=sha1;version=1.0;" "mlindsay"  
> > > "2015-05-14T17:42:30Z" "zJPbL3MjEPno/dkNXQ9xNIXGWwk=" 2275
> > > 
> > > As far as the network is concerned, We're moving into and Amazon VPC so,  
> > > it is the thing most likely to be broken, Aside from allowing inbound  
> > > access to 443, which is clearly happening and outbound access to  
> > > everything, is there anything else I should look for specifically? And by  
> > > 'normal network debugging techniques' are you talking about something like,  
> > > wireshark?
> > > 
> > > TIA,
> > > 
> > > - Michael
> > > 
> > > On Thu, May 14, 2015 at 10:24 AM, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com)  
> > > wrote:
> > > 
> > > > On Thursday, May 14, 2015 at 10:19 AM, Michael Lindsay wrote:
> > > > 
> > > > > I have also tried setting my new configuration to be the default  
> > > > > knife.rb and renamed config.json in my .berkshelf directory. Same error:
> > > > > 
> > > > > ==\> /var/log/opscode/opscode-erchef/current \<==  
> > > > > 2015-05-14\_17:12:38.73280 [error] Checking presence of checksum:  
> > > > > \<\<"5b259a23bcccc6be76de01d811162d36"\>\> for org  
> > > > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > > > longer than 5000 ms  
> > > > > ...  
> > > > > 2015-05-14\_17:12:43.74133 [error] Checking presence of checksum:  
> > > > > \<\<"471f01912a5109386225389563db4159"\>\> for org  
> > > > > \<\<"f03b7e8dadaf3bb09705d81dca36ec74"\>\> from bucket "bookshelf" has taken  
> > > > > longer than 5000 ms  
> > > > > 2015-05-14\_17:12:43.74134
> > > > 
> > > > This is definitely your problem, it could be any number of things. If  
> > > > you run `chef-server-ctl tail`, it will tail the logs of every component.  
> > > > You should see a request to the bookshelf application, which is one  
> > > > possible source of the issue. If you have some super aggressive firewall or  
> > > > something, it’s possible that the same behavior could be caused by the TCP  
> > > > packets from the erchef service to the bookshelf service simply getting  
> > > > dropped, which would hang for a long time attempting (and failing) to set  
> > > > up the TCP connection. Your normal network debugging techniques could help  
> > > > determine if this is your issue.
> > > > 
> > > > --  
> > > > Daniel DeLeo

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [May 15, 2015, 5:27pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/13 "2015-05-15T17:27:42Z")

</div>

On Thursday, May 14, 2015 at 2:28 PM, Michael Lindsay wrote:

> Sorry, more spamming my own thread....
> 
> When I do berks update, I've started getting this error:  
> Fetching 'nodejs' from [git@github.com](mailto:git@github.com) ([mailto:git@github.com](mailto:git@github.com)):redguide/nodejs.git (at master)  
> Ridley::Errors::FromFileParserError Could not parse `/var/folders/w5/1k5n_41n3fg_ph5nc4k3xwn80000gp/T/d20150514-32474-17tpmlb/metadata.rb': undefined method `source\_url' for #Ridley::Chef::Cookbook::Metadata:0x007f915c907de8

I think `source_url` is a new addition to cookbook metadata that isn’t yet supported by the version of berkshelf you have.

> My colleague, who's knife/berks configuration do not appear to be totally broken is getting this:  
> Fetching 'nodejs' from [git@github.com](mailto:git@github.com) ([mailto:git@github.com](mailto:git@github.com)):redguide/nodejs.git (at master)  
> The cookbook downloaded for nodejs (~\> 2.2.0) did not satisfy the constraint.

This happens when you have a version constraint somewhere that says the nodejs cookbook has to be version ~\> 2.2.0, but you’re pulling it from github and the version there doesn’t match that constraint.

> Not clear why this problem is cropping up now.

Neither of these seem related to your bookshelf problems, FWIW.

--  
Daniel DeLeo

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 15, 2015, 6:32pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/14 "2015-05-15T18:32:01Z")

</div>

Hey Daniel,

Indeed, I had a number of things going on, among them an unpinned nodejs  
dependency. I'm pretty well sorted now with our existing environment and  
I'm going to set up another client machine from scratch to be the one I  
talk to my new vpn chef server (until we cut over). Will update on success  
or failure.

Thanks again!

- Michael

On Fri, May 15, 2015 at 10:27 AM, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com) wrote:

> On Thursday, May 14, 2015 at 2:28 PM, Michael Lindsay wrote:
> 
> > Sorry, more spamming my own thread....
> > 
> > When I do berks update, I've started getting this error:  
> > Fetching 'nodejs' from [git@github.com](mailto:git@github.com) ([mailto:git@github.com](mailto:git@github.com)):redguide/nodejs.git  
> > (at master)  
> > Ridley::Errors::FromFileParserError Could not parse  
> > `/var/folders/w5/1k5n_41n3fg_ph5nc4k3xwn80000gp/T/d20150514-32474-17tpmlb/metadata.rb': undefined method `source\_url' for  
> > #Ridley::Chef::Cookbook::Metadata:0x007f915c907de8
> 
> I think `source_url` is a new addition to cookbook metadata that isn’t yet  
> supported by the version of berkshelf you have.
> 
> > My colleague, who's knife/berks configuration do not appear to be  
> > totally broken is getting this:  
> > Fetching 'nodejs' from [git@github.com](mailto:git@github.com) ([mailto:git@github.com](mailto:git@github.com)):redguide/nodejs.git  
> > (at master)  
> > The cookbook downloaded for nodejs (~\> 2.2.0) did not satisfy the  
> > constraint.
> 
> This happens when you have a version constraint somewhere that says the  
> nodejs cookbook has to be version ~\> 2.2.0, but you’re pulling it from  
> github and the version there doesn’t match that constraint.
> 
> > Not clear why this problem is cropping up now.
> 
> Neither of these seem related to your bookshelf problems, FWIW.
> 
> --  
> Daniel DeLeo

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 18, 2015, 5:47pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/15 "2015-05-18T17:47:04Z")

</div>

Hey all,

So I now have a fresh install of chefDK (knife -v Chef: 12.3.0, berks  
-v 3.2.4) and a brand new chef server (12.0.8). berks update is still  
returning the same error. When I `knife cookbook upload chef_handler -o ~/.berkshelf/cookbooks/`, I get this:

ERROR: Server returned error 500 for  
[https://chef.DOMAIN.com/organizations/ORG/sandboxes/d9dcaaebaee9c6d69d55963db5afb9e4](https://chef.DOMAIN.com/organizations/ORG/sandboxes/d9dcaaebaee9c6d69d55963db5afb9e4)  
Is this closer to the root of the problem?

On the server, I see the same erros as I do with berks:

2015-05-18\_17:22:31.31151 [error] Checking presence of checksum:  
\<\<"5c059b160b3d288c0796ee1c964e0ca6"\>\> for org  
\<\<"d324ac69246364aa17fdd9dcaaebaee9"\>\> from bucket "bookshelf" has taken  
longer than 5000 ms

Followed by this:

2015-05-18\_16:51:45.70811 [error] {\<\<"method=PUT;  
path=/organizations/ORG/sandboxes/d9dcaaebaee9e4daa96ffd80cb8245b5;  
status=500;  
"\>\>,{error,{throw,{checksum\_check\_error,23},[{chef\_wm\_named\_sandbox,validate\_checksums\_uploaded,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,142}]},{chef\_wm\_named\_sandbox,from\_json,2,[{file,"src/chef\_wm\_named\_sandbox.erl"},{line,97}]},{webmachine\_resource,resource\_call,3,[{file,"src/webmachine\_resource.erl"},{line,186}]},{webmachine\_resource,do,3,[{file,"src/webmachine\_resource.erl"},{line,142}]},{webmachine\_decision\_core,resource\_call,1,[{file,"src/webmachine\_decision\_core.erl"},{line,48}]},{webmachine\_decision\_core,accept\_helper,1,[{file,"src/webmachine\_decision\_core.erl"},{line,616}]},{webmachine\_decision\_core,decision,1,[{file,"src/webmachine\_decision\_core.erl"},{line,521}]},{webmachine\_decision\_core,handle\_request,2,[{file,"src/webmachine\_decision\_core.erl"},{line,33}]}]}}}

I can get to the chef manage site and knife ssl check is still happy. Any  
thoughts on where I should look next? Is there any additional information  
I can provide that will help?

- Michael

On Fri, May 15, 2015 at 11:32 AM, Michael Lindsay [mlindsay@metrodigi.com](mailto:mlindsay@metrodigi.com)  
wrote:

> Hey Daniel,
> 
> Indeed, I had a number of things going on, among them an unpinned nodejs  
> dependency. I'm pretty well sorted now with our existing environment and  
> I'm going to set up another client machine from scratch to be the one I  
> talk to my new vpn chef server (until we cut over). Will update on success  
> or failure.
> 
> Thanks again!
> 
> - Michael
> 
> On Fri, May 15, 2015 at 10:27 AM, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com) wrote:
> 
> > On Thursday, May 14, 2015 at 2:28 PM, Michael Lindsay wrote:
> > 
> > > Sorry, more spamming my own thread....
> > > 
> > > When I do berks update, I've started getting this error:  
> > > Fetching 'nodejs' from [git@github.com](mailto:git@github.com) ([mailto:git@github.com](mailto:git@github.com)):redguide/nodejs.git  
> > > (at master)  
> > > Ridley::Errors::FromFileParserError Could not parse  
> > > `/var/folders/w5/1k5n_41n3fg_ph5nc4k3xwn80000gp/T/d20150514-32474-17tpmlb/metadata.rb': undefined method `source\_url' for  
> > > #Ridley::Chef::Cookbook::Metadata:0x007f915c907de8
> > 
> > I think `source_url` is a new addition to cookbook metadata that isn’t  
> > yet supported by the version of berkshelf you have.
> > 
> > > My colleague, who's knife/berks configuration do not appear to be  
> > > totally broken is getting this:  
> > > Fetching 'nodejs' from [git@github.com](mailto:git@github.com) ([mailto:git@github.com](mailto:git@github.com)):redguide/nodejs.git  
> > > (at master)  
> > > The cookbook downloaded for nodejs (~\> 2.2.0) did not satisfy the  
> > > constraint.
> > 
> > This happens when you have a version constraint somewhere that says the  
> > nodejs cookbook has to be version ~\> 2.2.0, but you’re pulling it from  
> > github and the version there doesn’t match that constraint.
> > 
> > > Not clear why this problem is cropping up now.
> > 
> > Neither of these seem related to your bookshelf problems, FWIW.
> > 
> > --  
> > Daniel DeLeo

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 18, 2015, 7:57pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/16 "2015-05-18T19:57:45Z")

</div>

Found and fixed!

I’d limited my security group to only accept inbound from office IP for  
ports 80,443 and 9683 from our office IP adddress. Opening it up to all IP  
addresses has resolved the problem. Would like to tighten this up at some  
point (should I add it’s own internal ip address? 127.0.0.1/32?)

Thanks helping out Stephan and Daniel!

- Michael

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [May 19, 2015, 6:17pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/17 "2015-05-19T18:17:48Z")

</div>

On Monday, May 18, 2015 at 12:57 PM, Michael Lindsay wrote:

> Found and fixed!
> 
> I'd limited my security group to only accept inbound from office IP for ports 80,443 and 9683 from our office IP adddress. Opening it up to all IP addresses has resolved the problem. Would like to tighten this up at some point (should I add it's own internal ip address? 127.0.0.1/32 ([http://127.0.0.1/32](http://127.0.0.1/32))?)
> 
> Thanks helping out Stephan and Daniel!
> 
> - Michael  
> You can see the active settings for the Chef Server in /etc/opscode/chef-server-running.json. On my system, bookshelf is configured for 127.0.0.1, port 4321. If that is blocked, the server won’t work. But you shouldn’t need to open up that port to the world.

--  
Daniel DeLeo

---

<div class="post-metadata">

**Author:** ![Michael\_Lindsay](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Michael\_Lindsay](https://discourse.chef.io/u/Michael_Lindsay)\
**Post date:** [May 19, 2015, 8:47pm UTC](https://discourse.chef.io/t/berks-upload-error/6574/18 "2015-05-19T20:47:01Z")

</div>

4321 is closed to the world (but I can telnet to localhost over it) on that  
instance and everything is still working like a charm. The only publicly  
available ports are 80,443 & 9683. Thanks for the info!

On Tue, May 19, 2015 at 11:17 AM, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com) wrote:

> On Monday, May 18, 2015 at 12:57 PM, Michael Lindsay wrote:
> 
> > Found and fixed!
> > 
> > I'd limited my security group to only accept inbound from office IP for  
> > ports 80,443 and 9683 from our office IP adddress. Opening it up to all IP  
> > addresses has resolved the problem. Would like to tighten this up at some  
> > point (should I add it's own internal ip address? 127.0.0.1/32 (  
> > [http://127.0.0.1/32](http://127.0.0.1/32))?)
> > 
> > Thanks helping out Stephan and Daniel!
> > 
> > - Michael  
> > You can see the active settings for the Chef Server in  
> > /etc/opscode/chef-server-running.json. On my system, bookshelf is  
> > configured for 127.0.0.1, port 4321. If that is blocked, the server won’t  
> > work. But you shouldn’t need to open up that port to the world.
> 
> --  
> Daniel DeLeo
