# Error uploading cookbooks

**URL:** <https://discourse.chef.io/t/error-uploading-cookbooks/3392>\
**Category:** Chef Infra (archive)\
**Created:** [December 12, 2012, 2:09pm UTC](https://discourse.chef.io/t/error-uploading-cookbooks/3392 "2012-12-12T14:09:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Pimentel](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Mark\_Pimentel](https://discourse.chef.io/u/Mark_Pimentel)\
**Post date:** [December 12, 2012, 2:09pm UTC](https://discourse.chef.io/t/error-uploading-cookbooks/3392/1 "2012-12-12T14:09:49Z")

</div>

Just deployed the latest bootstrap chef-server onto a redhat 6.3 node and I  
get this error when uploading a cookbook:

DEBUG: Using configuration from /root/.chef/knife.rb  
DEBUG: No chefignore file found at /root/chef-repo/cookbooks/chefignore no  
files will be ignored  
DEBUG: Signing the request as markp  
DEBUG: Sending HTTP Request via GET to localhost:80/cookbooks  
DEBUG: ---- HTTP Status and Header Data: ----  
DEBUG: HTTP 1.1 301 Moved Permanently  
DEBUG: server: nginx/1.0.15  
DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
DEBUG: content-type: text/html  
DEBUG: content-length: 185  
DEBUG: connection: close  
DEBUG: location:  
[https://hq-tor-chef.quickplay.local/cookbooks?num\_versions=all](https://hq-tor-chef.quickplay.local/cookbooks?num_versions=all)  
DEBUG: ---- End HTTP Status/Header Data ----  
DEBUG: Following redirect 1/10  
DEBUG: Signing the request as markp  
DEBUG: Sending HTTP Request via GET to  
hq-tor-chef.quickplay.local:443/cookbooks  
DEBUG: ---- HTTP Status and Header Data: ----  
DEBUG: HTTP 1.1 200 OK  
DEBUG: server: nginx/1.0.15  
DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
DEBUG: content-type: application/json; charset=utf-8  
DEBUG: transfer-encoding: chunked  
DEBUG: connection: close  
DEBUG: ---- End HTTP Status/Header Data ----  
Uploading site [0.1.0]  
INFO: Validating ruby files  
DEBUG: Ruby file /root/chef-repo/cookbooks/site/attributes/default.rb is  
unchanged, skipping syntax check  
DEBUG: Ruby file /root/chef-repo/cookbooks/site/metadata.rb is unchanged,  
skipping syntax check  
DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/nfs.rb is  
unchanged, skipping syntax check  
DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/default.rb is  
unchanged, skipping syntax check  
INFO: Validating templates  
INFO: Syntax OK  
INFO: Saving site  
DEBUG: Signing the request as markp  
DEBUG: Sending HTTP Request via POST to localhost:80/sandboxes  
DEBUG: ---- HTTP Status and Header Data: ----  
DEBUG: HTTP 1.1 301 Moved Permanently  
DEBUG: server: nginx/1.0.15  
DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
DEBUG: content-type: text/html  
DEBUG: content-length: 185  
DEBUG: connection: close  
DEBUG: location: [https://hq-tor-chef.quickplay.local/sandboxes](https://hq-tor-chef.quickplay.local/sandboxes)  
DEBUG: ---- End HTTP Status/Header Data ----  
DEBUG: Following redirect 1/10  
DEBUG: Signing the request as markp  
DEBUG: Sending HTTP Request via GET to  
hq-tor-chef.quickplay.local:443/sandboxes  
DEBUG: ---- HTTP Status and Header Data: ----  
DEBUG: HTTP 1.1 200 OK  
DEBUG: server: nginx/1.0.15  
DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
DEBUG: content-type: application/json; charset=utf-8  
DEBUG: transfer-encoding: chunked  
DEBUG: connection: close  
DEBUG: ---- End HTTP Status/Header Data ----  
INFO: Uploading files  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:80:in  
`upload_cookbooks': undefined method`each’ for nil:NilClass (NoMethodError)  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:231:in  
`upload' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:122:in`block in run’  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:119:in  
`each' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:119:in`run’  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:in  
`run_with_pretty_exceptions' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in`run’  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:in  
`run' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in`\<top  
(required)\>'  
from /opt/ruby/bin/knife:23:in `load' from /opt/ruby/bin/knife:23:in`’

The install was done over a ruby-1.9.3 compiled from source.

–  
Thanks,

Mark

---

<div class="post-metadata">

**Author:** ![Loic\_Antoine\_Gombeau](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Loic\_Antoine\_Gombeau](https://discourse.chef.io/u/Loic_Antoine_Gombeau)\
**Post date:** [December 12, 2012, 3:18pm UTC](https://discourse.chef.io/t/error-uploading-cookbooks/3392/2 "2012-12-12T15:18:54Z")

</div>

I'm not sure how to do that, but I believe seeing the body of the "HTTP  
Request via GET to hq-tor-chef.quickplay.local:443/sandboxes" would help a  
lot : it seems to be returning valid JSON, but without a 'checksums'  
key/value.

On Wed, Dec 12, 2012 at 3:09 PM, Mark Pimentel [markpimentel22@gmail.com](mailto:markpimentel22@gmail.com)wrote:

> Just deployed the latest bootstrap chef-server onto a redhat 6.3 node and  
> I get this error when uploading a cookbook:
> 
> DEBUG: Using configuration from /root/.chef/knife.rb  
> DEBUG: No chefignore file found at /root/chef-repo/cookbooks/chefignore no  
> files will be ignored  
> DEBUG: Signing the request as markp  
> DEBUG: Sending HTTP Request via GET to localhost:80/cookbooks  
> DEBUG: ---- HTTP Status and Header Data: ----  
> DEBUG: HTTP 1.1 301 Moved Permanently  
> DEBUG: server: nginx/1.0.15  
> DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> DEBUG: content-type: text/html  
> DEBUG: content-length: 185  
> DEBUG: connection: close  
> DEBUG: location:  
> [https://hq-tor-chef.quickplay.local/cookbooks?num\_versions=all](https://hq-tor-chef.quickplay.local/cookbooks?num_versions=all)  
> DEBUG: ---- End HTTP Status/Header Data ----  
> DEBUG: Following redirect 1/10  
> DEBUG: Signing the request as markp  
> DEBUG: Sending HTTP Request via GET to  
> hq-tor-chef.quickplay.local:443/cookbooks  
> DEBUG: ---- HTTP Status and Header Data: ----  
> DEBUG: HTTP 1.1 200 OK  
> DEBUG: server: nginx/1.0.15  
> DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> DEBUG: content-type: application/json; charset=utf-8  
> DEBUG: transfer-encoding: chunked  
> DEBUG: connection: close  
> DEBUG: ---- End HTTP Status/Header Data ----  
> Uploading site [0.1.0]  
> INFO: Validating ruby files  
> DEBUG: Ruby file /root/chef-repo/cookbooks/site/attributes/default.rb is  
> unchanged, skipping syntax check  
> DEBUG: Ruby file /root/chef-repo/cookbooks/site/metadata.rb is unchanged,  
> skipping syntax check  
> DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/nfs.rb is  
> unchanged, skipping syntax check  
> DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/default.rb is  
> unchanged, skipping syntax check  
> INFO: Validating templates  
> INFO: Syntax OK  
> INFO: Saving site  
> DEBUG: Signing the request as markp  
> DEBUG: Sending HTTP Request via POST to localhost:80/sandboxes  
> DEBUG: ---- HTTP Status and Header Data: ----  
> DEBUG: HTTP 1.1 301 Moved Permanently  
> DEBUG: server: nginx/1.0.15  
> DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> DEBUG: content-type: text/html  
> DEBUG: content-length: 185  
> DEBUG: connection: close  
> DEBUG: location: [https://hq-tor-chef.quickplay.local/sandboxes](https://hq-tor-chef.quickplay.local/sandboxes)  
> DEBUG: ---- End HTTP Status/Header Data ----  
> DEBUG: Following redirect 1/10  
> DEBUG: Signing the request as markp  
> DEBUG: Sending HTTP Request via GET to  
> hq-tor-chef.quickplay.local:443/sandboxes  
> DEBUG: ---- HTTP Status and Header Data: ----  
> DEBUG: HTTP 1.1 200 OK  
> DEBUG: server: nginx/1.0.15  
> DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> DEBUG: content-type: application/json; charset=utf-8  
> DEBUG: transfer-encoding: chunked  
> DEBUG: connection: close  
> DEBUG: ---- End HTTP Status/Header Data ----  
> INFO: Uploading files  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:80:in  
> `upload_cookbooks': undefined method `each' for nil:NilClass (NoMethodError)  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:231:in  
> `upload' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:122:in `block in run'  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:119:in  
> `each' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:119:in `run'  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:in  
> `run_with_pretty_exceptions' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in `run'  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:in  
> `run' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in `\<top  
> (required)\>'  
> from /opt/ruby/bin/knife:23:in `load' from /opt/ruby/bin/knife:23:in `'
> 
> The install was done over a ruby-1.9.3 compiled from source.
> 
> --  
> Thanks,
> 
> Mark

--  
Loïc ANTOINE-GOMBEAUD  
IT Engineer I  
Plinga GmbH | [www.plinga.com](http://www.plinga.com)  
Saarbrücker Straße 20/21 | 10405 Berlin | Germany

E-Mail: [loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) | Skype:loic.plinga  
Telefon : +49(0)160-92286573

Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung  
Eingetragen beim Amtsgericht Charlottenburg, HRB 119994

---

<div class="post-metadata">

**Author:** ![Jesse\_Campbell](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jesse_campbell/32/251_2.png) [@Jesse\_Campbell](https://discourse.chef.io/u/Jesse_Campbell)\
**Post date:** [December 12, 2012, 3:23pm UTC](https://discourse.chef.io/t/error-uploading-cookbooks/3392/3 "2012-12-12T15:23:46Z")

</div>

i think the default REST API port is 4000, not 80... maybe try changing  
your knife config to point there?

On Wed, Dec 12, 2012 at 10:18 AM, Loïc Antoine-Gombeaud \<  
[loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com)\> wrote:

> I'm not sure how to do that, but I believe seeing the body of the "HTTP  
> Request via GET to hq-tor-chef.quickplay.local:443/sandboxes" would help  
> a lot : it seems to be returning valid JSON, but without a 'checksums'  
> key/value.
> 
> On Wed, Dec 12, 2012 at 3:09 PM, Mark Pimentel [markpimentel22@gmail.com](mailto:markpimentel22@gmail.com)wrote:
> 
> > Just deployed the latest bootstrap chef-server onto a redhat 6.3 node and  
> > I get this error when uploading a cookbook:
> > 
> > DEBUG: Using configuration from /root/.chef/knife.rb  
> > DEBUG: No chefignore file found at /root/chef-repo/cookbooks/chefignore  
> > no files will be ignored  
> > DEBUG: Signing the request as markp  
> > DEBUG: Sending HTTP Request via GET to localhost:80/cookbooks  
> > DEBUG: ---- HTTP Status and Header Data: ----  
> > DEBUG: HTTP 1.1 301 Moved Permanently  
> > DEBUG: server: nginx/1.0.15  
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> > DEBUG: content-type: text/html  
> > DEBUG: content-length: 185  
> > DEBUG: connection: close  
> > DEBUG: location:  
> > [https://hq-tor-chef.quickplay.local/cookbooks?num\_versions=all](https://hq-tor-chef.quickplay.local/cookbooks?num_versions=all)  
> > DEBUG: ---- End HTTP Status/Header Data ----  
> > DEBUG: Following redirect 1/10  
> > DEBUG: Signing the request as markp  
> > DEBUG: Sending HTTP Request via GET to  
> > hq-tor-chef.quickplay.local:443/cookbooks  
> > DEBUG: ---- HTTP Status and Header Data: ----  
> > DEBUG: HTTP 1.1 200 OK  
> > DEBUG: server: nginx/1.0.15  
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> > DEBUG: content-type: application/json; charset=utf-8  
> > DEBUG: transfer-encoding: chunked  
> > DEBUG: connection: close  
> > DEBUG: ---- End HTTP Status/Header Data ----  
> > Uploading site [0.1.0]  
> > INFO: Validating ruby files  
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/attributes/default.rb is  
> > unchanged, skipping syntax check  
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/metadata.rb is unchanged,  
> > skipping syntax check  
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/nfs.rb is  
> > unchanged, skipping syntax check  
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/default.rb is  
> > unchanged, skipping syntax check  
> > INFO: Validating templates  
> > INFO: Syntax OK  
> > INFO: Saving site  
> > DEBUG: Signing the request as markp  
> > DEBUG: Sending HTTP Request via POST to localhost:80/sandboxes  
> > DEBUG: ---- HTTP Status and Header Data: ----  
> > DEBUG: HTTP 1.1 301 Moved Permanently  
> > DEBUG: server: nginx/1.0.15  
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> > DEBUG: content-type: text/html  
> > DEBUG: content-length: 185  
> > DEBUG: connection: close  
> > DEBUG: location: [https://hq-tor-chef.quickplay.local/sandboxes](https://hq-tor-chef.quickplay.local/sandboxes)  
> > DEBUG: ---- End HTTP Status/Header Data ----  
> > DEBUG: Following redirect 1/10  
> > DEBUG: Signing the request as markp  
> > DEBUG: Sending HTTP Request via GET to  
> > hq-tor-chef.quickplay.local:443/sandboxes  
> > DEBUG: ---- HTTP Status and Header Data: ----  
> > DEBUG: HTTP 1.1 200 OK  
> > DEBUG: server: nginx/1.0.15  
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> > DEBUG: content-type: application/json; charset=utf-8  
> > DEBUG: transfer-encoding: chunked  
> > DEBUG: connection: close  
> > DEBUG: ---- End HTTP Status/Header Data ----  
> > INFO: Uploading files  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:80:in  
> > `upload_cookbooks': undefined method `each' for nil:NilClass (NoMethodError)  
> > from  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:231:in  
> > `upload' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:122:in `block in run'  
> > from  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:119:in  
> > `each' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:119:in `run'  
> > from  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:in  
> > `run_with_pretty_exceptions' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in `run'  
> > from  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:in  
> > `run' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in `\<top (required)\>'  
> > from /opt/ruby/bin/knife:23:in `load' from /opt/ruby/bin/knife:23:in `'
> > 
> > The install was done over a ruby-1.9.3 compiled from source.
> > 
> > --  
> > Thanks,
> > 
> > Mark
> 
> --  
> Loïc ANTOINE-GOMBEAUD  
> IT Engineer I  
> Plinga GmbH | [www.plinga.com](http://www.plinga.com)  
> Saarbrücker Straße 20/21 | 10405 Berlin | Germany
> 
> E-Mail: [loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) | Skype:loic.plinga  
> Telefon : +49(0)160-92286573
> 
> Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung  
> Eingetragen beim Amtsgericht Charlottenburg, HRB 119994

---

<div class="post-metadata">

**Author:** ![Loic\_Antoine\_Gombeau](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Loic\_Antoine\_Gombeau](https://discourse.chef.io/u/Loic_Antoine_Gombeau)\
**Post date:** [December 12, 2012, 3:27pm UTC](https://discourse.chef.io/t/error-uploading-cookbooks/3392/4 "2012-12-12T15:27:10Z")

</div>

Actually, it seems that Chef::REST follows redirects by sending GET  
requests only, thus conforming to the HTTP RFCs. This article  
discusses this behaviour :

> **[alanflavell.org.uk](http://www.alanflavell.org.uk/www/post-redirect.html)**
>
> This domain may be for sale!

This may be a problem, since the original request was a POST...

A solution would be to avoid this redirection altogether by using your  
server's FQDN (i.e. hq-tor-chef.quickplay.local) in your knife.rb,  
instead of localhost. I'm curious to know if that would work, since I  
had issues concerning the FQDN when I first set up my Chef Server.

On Wed, Dec 12, 2012 at 4:18 PM, Loïc Antoine-Gombeaud \<  
[loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com)\> wrote:

> I'm not sure how to do that, but I believe seeing the body of the "HTTP  
> Request via GET to hq-tor-chef.quickplay.local:443/sandboxes" would help  
> a lot : it seems to be returning valid JSON, but without a 'checksums'  
> key/value.
> 
> On Wed, Dec 12, 2012 at 3:09 PM, Mark Pimentel [markpimentel22@gmail.com](mailto:markpimentel22@gmail.com)wrote:
> 
> > Just deployed the latest bootstrap chef-server onto a redhat 6.3 node and  
> > I get this error when uploading a cookbook:
> > 
> > DEBUG: Using configuration from /root/.chef/knife.rb  
> > DEBUG: No chefignore file found at /root/chef-repo/cookbooks/chefignore  
> > no files will be ignored  
> > DEBUG: Signing the request as markp  
> > DEBUG: Sending HTTP Request via GET to localhost:80/cookbooks  
> > DEBUG: ---- HTTP Status and Header Data: ----  
> > DEBUG: HTTP 1.1 301 Moved Permanently  
> > DEBUG: server: nginx/1.0.15  
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> > DEBUG: content-type: text/html  
> > DEBUG: content-length: 185  
> > DEBUG: connection: close  
> > DEBUG: location:  
> > [https://hq-tor-chef.quickplay.local/cookbooks?num\_versions=all](https://hq-tor-chef.quickplay.local/cookbooks?num_versions=all)  
> > DEBUG: ---- End HTTP Status/Header Data ----  
> > DEBUG: Following redirect 1/10  
> > DEBUG: Signing the request as markp  
> > DEBUG: Sending HTTP Request via GET to  
> > hq-tor-chef.quickplay.local:443/cookbooks  
> > DEBUG: ---- HTTP Status and Header Data: ----  
> > DEBUG: HTTP 1.1 200 OK  
> > DEBUG: server: nginx/1.0.15  
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> > DEBUG: content-type: application/json; charset=utf-8  
> > DEBUG: transfer-encoding: chunked  
> > DEBUG: connection: close  
> > DEBUG: ---- End HTTP Status/Header Data ----  
> > Uploading site [0.1.0]  
> > INFO: Validating ruby files  
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/attributes/default.rb is  
> > unchanged, skipping syntax check  
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/metadata.rb is unchanged,  
> > skipping syntax check  
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/nfs.rb is  
> > unchanged, skipping syntax check  
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/default.rb is  
> > unchanged, skipping syntax check  
> > INFO: Validating templates  
> > INFO: Syntax OK  
> > INFO: Saving site  
> > DEBUG: Signing the request as markp  
> > DEBUG: Sending HTTP Request via POST to localhost:80/sandboxes  
> > DEBUG: ---- HTTP Status and Header Data: ----  
> > DEBUG: HTTP 1.1 301 Moved Permanently  
> > DEBUG: server: nginx/1.0.15  
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> > DEBUG: content-type: text/html  
> > DEBUG: content-length: 185  
> > DEBUG: connection: close  
> > DEBUG: location: [https://hq-tor-chef.quickplay.local/sandboxes](https://hq-tor-chef.quickplay.local/sandboxes)  
> > DEBUG: ---- End HTTP Status/Header Data ----  
> > DEBUG: Following redirect 1/10  
> > DEBUG: Signing the request as markp  
> > DEBUG: Sending HTTP Request via GET to  
> > hq-tor-chef.quickplay.local:443/sandboxes  
> > DEBUG: ---- HTTP Status and Header Data: ----  
> > DEBUG: HTTP 1.1 200 OK  
> > DEBUG: server: nginx/1.0.15  
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT  
> > DEBUG: content-type: application/json; charset=utf-8  
> > DEBUG: transfer-encoding: chunked  
> > DEBUG: connection: close  
> > DEBUG: ---- End HTTP Status/Header Data ----  
> > INFO: Uploading files  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:80:in  
> > `upload_cookbooks': undefined method `each' for nil:NilClass (NoMethodError)  
> > from  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:231:in  
> > `upload' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:122:in `block in run'  
> > from  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:119:in  
> > `each' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:119:in `run'  
> > from  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:in  
> > `run_with_pretty_exceptions' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in `run'  
> > from  
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:in  
> > `run' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in `\<top (required)\>'  
> > from /opt/ruby/bin/knife:23:in `load' from /opt/ruby/bin/knife:23:in `'
> > 
> > The install was done over a ruby-1.9.3 compiled from source.
> > 
> > --  
> > Thanks,
> > 
> > Mark
> 
> --  
> Loïc ANTOINE-GOMBEAUD  
> IT Engineer I  
> Plinga GmbH | [www.plinga.com](http://www.plinga.com)  
> Saarbrücker Straße 20/21 | 10405 Berlin | Germany
> 
> E-Mail: [loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) | Skype:loic.plinga  
> Telefon : +49(0)160-92286573
> 
> Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung  
> Eingetragen beim Amtsgericht Charlottenburg, HRB 119994

--  
Loïc ANTOINE-GOMBEAUD  
IT Engineer I  
Plinga GmbH | [www.plinga.com](http://www.plinga.com)  
Saarbrücker Straße 20/21 | 10405 Berlin | Germany

E-Mail: [loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) | Skype:loic.plinga  
Telefon : +49(0)160-92286573

Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung  
Eingetragen beim Amtsgericht Charlottenburg, HRB 119994

---

<div class="post-metadata">

**Author:** ![Steven\_Danna](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/steven_danna/32/195_2.png) [@Steven\_Danna](https://discourse.chef.io/u/Steven_Danna)\
**Post date:** [December 12, 2012, 3:36pm UTC](https://discourse.chef.io/t/error-uploading-cookbooks/3392/5 "2012-12-12T15:36:55Z")

</div>

On 12/12/12 7:27 AM, Loïc Antoine-Gombeaud wrote:

> Actually, it seems that Chef::REST follows redirects by sending GET  
> requests only, thus conforming to the HTTP RFCs. This article discusses  
> this behaviour : [alanflavell.org.uk](http://www.alanflavell.org.uk/www/post-redirect).

There is a bug report about this issue here:

[http://tickets.opscode.com/browse/CHEF-2682](http://tickets.opscode.com/browse/CHEF-2682)

Those interesting in fixing it might take note of RFC 2616:

> If the 301 status code is received in response to a request other  
> than GET or HEAD, the user agent MUST NOT automatically redirect the  
> request unless it can be confirmed by the user, since this might  
> change the conditions under which the request was issued.

Cheers,

Steven

> This may be a problem, since the original request was a POST...
> 
> A solution would be to avoid this redirection altogether by using your  
> server's FQDN (i.e. hq-tor-chef.quickplay.local) in your knife.rb,  
> instead of localhost. I'm curious to know if that would work, since I  
> had issues concerning the FQDN when I first set up my Chef Server.
> 
> On Wed, Dec 12, 2012 at 4:18 PM, Loïc Antoine-Gombeaud  
> \<[loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) [mailto:loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com)\> wrote:
> 
> ```
> I'm not sure how to do that, but I believe seeing the body of the
> "HTTP Request via GET to hq-tor-chef.quickplay.local:443/sandboxes"
> would help a lot : it seems to be returning valid JSON, but without
> a 'checksums' key/value.
> 
> On Wed, Dec 12, 2012 at 3:09 PM, Mark Pimentel
> <markpimentel22@gmail.com <mailto:markpimentel22@gmail.com>> wrote:
> 
> Just deployed the latest bootstrap chef-server onto a redhat 6.3
> node and I get this error when uploading a cookbook:
> 
> DEBUG: Using configuration from /root/.chef/knife.rb
> DEBUG: No chefignore file found at
> /root/chef-repo/cookbooks/chefignore no files will be ignored
> DEBUG: Signing the request as markp
> DEBUG: Sending HTTP Request via GET to localhost:80/cookbooks
> DEBUG: ---- HTTP Status and Header Data: ----
> DEBUG: HTTP 1.1 301 Moved Permanently
> DEBUG: server: nginx/1.0.15
> DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> DEBUG: content-type: text/html
> DEBUG: content-length: 185
> DEBUG: connection: close
> DEBUG: location:
> https://hq-tor-chef.quickplay.local/cookbooks?num_versions=all
> DEBUG: ---- End HTTP Status/Header Data ----
> DEBUG: Following redirect 1/10
> DEBUG: Signing the request as markp
> DEBUG: Sending HTTP Request via GET to
> hq-tor-chef.quickplay.local:443/cookbooks
> DEBUG: ---- HTTP Status and Header Data: ----
> DEBUG: HTTP 1.1 200 OK
> DEBUG: server: nginx/1.0.15
> DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> DEBUG: content-type: application/json; charset=utf-8
> DEBUG: transfer-encoding: chunked
> DEBUG: connection: close
> DEBUG: ---- End HTTP Status/Header Data ----
> Uploading site [0.1.0]
> INFO: Validating ruby files
> DEBUG: Ruby file
> /root/chef-repo/cookbooks/site/attributes/default.rb is
> unchanged, skipping syntax check
> DEBUG: Ruby file /root/chef-repo/cookbooks/site/metadata.rb is
> unchanged, skipping syntax check
> DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/nfs.rb
> is unchanged, skipping syntax check
> DEBUG: Ruby file
> /root/chef-repo/cookbooks/site/recipes/default.rb is unchanged,
> skipping syntax check
> INFO: Validating templates
> INFO: Syntax OK
> INFO: Saving site
> DEBUG: Signing the request as markp
> DEBUG: Sending HTTP Request via POST to localhost:80/sandboxes
> DEBUG: ---- HTTP Status and Header Data: ----
> DEBUG: HTTP 1.1 301 Moved Permanently
> DEBUG: server: nginx/1.0.15
> DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> DEBUG: content-type: text/html
> DEBUG: content-length: 185
> DEBUG: connection: close
> DEBUG: location: https://hq-tor-chef.quickplay.local/sandboxes
> DEBUG: ---- End HTTP Status/Header Data ----
> DEBUG: Following redirect 1/10
> DEBUG: Signing the request as markp
> DEBUG: Sending HTTP Request via GET to
> hq-tor-chef.quickplay.local:443/sandboxes
> DEBUG: ---- HTTP Status and Header Data: ----
> DEBUG: HTTP 1.1 200 OK
> DEBUG: server: nginx/1.0.15
> DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> DEBUG: content-type: application/json; charset=utf-8
> DEBUG: transfer-encoding: chunked
> DEBUG: connection: close
> DEBUG: ---- End HTTP Status/Header Data ----
> INFO: Uploading files
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:80:in
> `upload_cookbooks': undefined method `each' for nil:NilClass
> (NoMethodError)
> from
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:231:in
> `upload'
> from
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:122:in
> `block in run'
> from
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:119:in
> `each'
> from
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:119:in
> `run'
> from
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:in
> `run_with_pretty_exceptions'
> from
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in
> `run'
> from
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:in
> `run'
> from
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in
> `<top (required)>'
> from /opt/ruby/bin/knife:23:in `load'
> from /opt/ruby/bin/knife:23:in `<main>'
> 
> The install was done over a ruby-1.9.3 compiled from source.
> 
> -- 
> Thanks,
> 
> Mark
> 
> -- 
> Loïc ANTOINE-GOMBEAUD
> IT Engineer I
> Plinga GmbH | www.plinga.com <http://www.plinga.com>
> Saarbrücker Straße 20/21 | 10405 Berlin | Germany
> 
> E-Mail: loic.gombeaud@plinga.com <mailto:loic.gombeaud@plinga.com> |
> Skype:loic.plinga
> Telefon : +49(0)160-92286573 <tel:%2B49%280%29160-92286573>
> 
> Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung
> Eingetragen beim Amtsgericht Charlottenburg, HRB 119994
> 
> ```
> 
> --  
> Loïc ANTOINE-GOMBEAUD  
> IT Engineer I  
> Plinga GmbH | [www.plinga.com](http://www.plinga.com) [http://www.plinga.com](http://www.plinga.com)  
> Saarbrücker Straße 20/21 | 10405 Berlin | Germany
> 
> E-Mail: [loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) [mailto:loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) |  
> Skype:loic.plinga  
> Telefon : +49(0)160-92286573
> 
> Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung  
> Eingetragen beim Amtsgericht Charlottenburg, HRB 119994

--  
Steven Danna  
Systems Engineer, Opscode, Inc  
GPG Key: [http://stevendanna.github.com/downloads/code/public.key](http://stevendanna.github.com/downloads/code/public.key)

---

<div class="post-metadata">

**Author:** ![Mark\_Pimentel](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Mark\_Pimentel](https://discourse.chef.io/u/Mark_Pimentel)\
**Post date:** [December 12, 2012, 3:52pm UTC](https://discourse.chef.io/t/error-uploading-cookbooks/3392/6 "2012-12-12T15:52:33Z")

</div>

So I updated the server option in the knife.rb to be the fqdn of the server  
and now I get this:

DEBUG: Using configuration from /root/.chef/knife.rb  
DEBUG: No chefignore file found at /root/chef-repo/cookbooks/chefignore no  
files will be ignored  
DEBUG: Signing the request as markp  
DEBUG: Sending HTTP Request via GET to  
hq-tor-chef.quickplay.local:443/cookbooks  
DEBUG: ---- HTTP Status and Header Data: ----  
DEBUG: HTTP 1.1 200 OK  
DEBUG: server: nginx/1.0.15  
DEBUG: date: Wed, 12 Dec 2012 15:51:34 GMT  
DEBUG: content-type: application/json; charset=utf-8  
DEBUG: transfer-encoding: chunked  
DEBUG: connection: close  
DEBUG: ---- End HTTP Status/Header Data ----  
Uploading site [0.1.0]  
INFO: Validating ruby files  
DEBUG: Ruby file  
/root/.chef/../chef-repo/cookbooks/site/attributes/default.rb is unchanged,  
skipping syntax check  
DEBUG: Ruby file /root/.chef/../chef-repo/cookbooks/site/metadata.rb is  
unchanged, skipping syntax check  
DEBUG: Ruby file /root/.chef/../chef-repo/cookbooks/site/recipes/nfs.rb is  
unchanged, skipping syntax check  
DEBUG: Ruby file /root/.chef/../chef-repo/cookbooks/site/recipes/default.rb  
is unchanged, skipping syntax check  
INFO: Validating templates  
INFO: Syntax OK  
INFO: Saving site  
DEBUG: Signing the request as markp  
DEBUG: Sending HTTP Request via POST to  
hq-tor-chef.quickplay.local:443/sandboxes  
DEBUG: ---- HTTP Status and Header Data: ----  
DEBUG: HTTP 1.1 201 Created  
DEBUG: server: nginx/1.0.15  
DEBUG: date: Wed, 12 Dec 2012 15:51:34 GMT  
DEBUG: content-type: application/json; charset=utf-8  
DEBUG: transfer-encoding: chunked  
DEBUG: connection: close  
DEBUG: location:  
[https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5)  
DEBUG: ---- End HTTP Status/Header Data ----  
INFO: Uploading files  
INFO: Uploading /root/chef-repo/cookbooks/site/recipes/nfs.rb (checksum hex  
= 8ed03d6cab76d23d9a287cdf85ba99ac) to  
[https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/8ed03d6cab76d23d9a287cdf85ba99ac](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/8ed03d6cab76d23d9a287cdf85ba99ac)  
INFO: Uploading /root/chef-repo/cookbooks/site/recipes/default.rb (checksum  
hex = 40319a324ba808cf84b192b14126efb0) to  
[https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/40319a324ba808cf84b192b14126efb0](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/40319a324ba808cf84b192b14126efb0)  
INFO: Uploading /root/chef-repo/cookbooks/site/attributes/default.rb  
(checksum hex = 53e43bdeca8ac48ecb5540663cb657ca) to  
[https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/53e43bdeca8ac48ecb5540663cb657ca](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/53e43bdeca8ac48ecb5540663cb657ca)  
INFO: Uploading /root/chef-repo/cookbooks/site/metadata.rb (checksum hex =  
868ce5688c78fbae0c460380132927c5) to  
[https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/868ce5688c78fbae0c460380132927c5](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/868ce5688c78fbae0c460380132927c5)  
INFO: Uploading /root/chef-repo/cookbooks/site/README.md (checksum hex =  
f3ea896f400a1e1d9fd93473e59fd5d2) to  
[https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/f3ea896f400a1e1d9fd93473e59fd5d2](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/f3ea896f400a1e1d9fd93473e59fd5d2)  
INFO: Uploading /root/chef-repo/cookbooks/site/metadata.json (checksum hex  
= 44fa6e9bc46b13182d346bdc7965ed00) to  
[https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/44fa6e9bc46b13182d346bdc7965ed00](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/44fa6e9bc46b13182d346bdc7965ed00)  
ERROR: Failed to upload : 500 Internal Server Error  
{"error":["No such file or directory -  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121212-29912-108n7n3.lock"]}ERROR:  
Failed to upload : 500 Internal Server Error  
{"error":["No such file or directory -  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121212-29912-t7rrqh.lock"]}  
ERROR: Failed to upload : 500 Internal Server Error  
{"error":["No such file or directory -  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121212-29912-u3twkg.lock"]}  
ERROR: Failed to upload : 500 Internal Server Error  
{"error":["No such file or directory -  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121212-29912-onv4k9.lock"]}

/opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/abstract\_response.rb:48:in  
`return!': 500 Internal Server Error (RestClient::InternalServerError) from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process\_result'  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in  
`block in transmit' from /opt/ruby/lib/ruby/1.9.1/net/http.rb:745:in `start'  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in  
`transmit' from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in  
`execute' from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/resource.rb:76:in `put'  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:142:in  
`block in uploader_function_for' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:25:in `call'  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:25:in  
`block (3 levels) in setup_worker_threads' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:24:in `loop'  
from  
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:24:in  
`block (2 levels) in setup\_worker\_threads'

On Wed, Dec 12, 2012 at 10:36 AM, Steven Danna [steve@opscode.com](mailto:steve@opscode.com) wrote:

> On 12/12/12 7:27 AM, Loïc Antoine-Gombeaud wrote:
> 
> > Actually, it seems that Chef::REST follows redirects by sending GET  
> > requests only, thus conforming to the HTTP RFCs. This article discusses  
> > this behaviour : [alanflavell.org.uk](http://www.alanflavell.org.uk/www/post-redirect).
> 
> There is a bug report about this issue here:
> 
> [http://tickets.opscode.com/browse/CHEF-2682](http://tickets.opscode.com/browse/CHEF-2682)
> 
> Those interesting in fixing it might take note of RFC 2616:
> 
> > If the 301 status code is received in response to a request other  
> > than GET or HEAD, the user agent MUST NOT automatically redirect the  
> > request unless it can be confirmed by the user, since this might  
> > change the conditions under which the request was issued.
> 
> Cheers,
> 
> Steven
> 
> > This may be a problem, since the original request was a POST...
> > 
> > A solution would be to avoid this redirection altogether by using your  
> > server's FQDN (i.e. hq-tor-chef.quickplay.local) in your knife.rb,  
> > instead of localhost. I'm curious to know if that would work, since I  
> > had issues concerning the FQDN when I first set up my Chef Server.
> > 
> > On Wed, Dec 12, 2012 at 4:18 PM, Loïc Antoine-Gombeaud  
> > \<[loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) [mailto:loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com)\> wrote:
> > 
> > ```
> > I'm not sure how to do that, but I believe seeing the body of the
> > "HTTP Request via GET to hq-tor-chef.quickplay.local:443/sandboxes"
> > would help a lot : it seems to be returning valid JSON, but without
> > a 'checksums' key/value.
> > 
> > On Wed, Dec 12, 2012 at 3:09 PM, Mark Pimentel
> > <markpimentel22@gmail.com <mailto:markpimentel22@gmail.com>> wrote:
> > 
> > Just deployed the latest bootstrap chef-server onto a redhat 6.3
> > node and I get this error when uploading a cookbook:
> > 
> > DEBUG: Using configuration from /root/.chef/knife.rb
> > DEBUG: No chefignore file found at
> > /root/chef-repo/cookbooks/chefignore no files will be ignored
> > DEBUG: Signing the request as markp
> > DEBUG: Sending HTTP Request via GET to localhost:80/cookbooks
> > DEBUG: ---- HTTP Status and Header Data: ----
> > DEBUG: HTTP 1.1 301 Moved Permanently
> > DEBUG: server: nginx/1.0.15
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> > DEBUG: content-type: text/html
> > DEBUG: content-length: 185
> > DEBUG: connection: close
> > DEBUG: location:
> > https://hq-tor-chef.quickplay.local/cookbooks?num_versions=all
> > DEBUG: ---- End HTTP Status/Header Data ----
> > DEBUG: Following redirect 1/10
> > DEBUG: Signing the request as markp
> > DEBUG: Sending HTTP Request via GET to
> > hq-tor-chef.quickplay.local:443/cookbooks
> > DEBUG: ---- HTTP Status and Header Data: ----
> > DEBUG: HTTP 1.1 200 OK
> > DEBUG: server: nginx/1.0.15
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> > DEBUG: content-type: application/json; charset=utf-8
> > DEBUG: transfer-encoding: chunked
> > DEBUG: connection: close
> > DEBUG: ---- End HTTP Status/Header Data ----
> > Uploading site [0.1.0]
> > INFO: Validating ruby files
> > DEBUG: Ruby file
> > /root/chef-repo/cookbooks/site/attributes/default.rb is
> > unchanged, skipping syntax check
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/metadata.rb is
> > unchanged, skipping syntax check
> > DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/nfs.rb
> > is unchanged, skipping syntax check
> > DEBUG: Ruby file
> > /root/chef-repo/cookbooks/site/recipes/default.rb is unchanged,
> > skipping syntax check
> > INFO: Validating templates
> > INFO: Syntax OK
> > INFO: Saving site
> > DEBUG: Signing the request as markp
> > DEBUG: Sending HTTP Request via POST to localhost:80/sandboxes
> > DEBUG: ---- HTTP Status and Header Data: ----
> > DEBUG: HTTP 1.1 301 Moved Permanently
> > DEBUG: server: nginx/1.0.15
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> > DEBUG: content-type: text/html
> > DEBUG: content-length: 185
> > DEBUG: connection: close
> > DEBUG: location: https://hq-tor-chef.quickplay.local/sandboxes
> > DEBUG: ---- End HTTP Status/Header Data ----
> > DEBUG: Following redirect 1/10
> > DEBUG: Signing the request as markp
> > DEBUG: Sending HTTP Request via GET to
> > hq-tor-chef.quickplay.local:443/sandboxes
> > DEBUG: ---- HTTP Status and Header Data: ----
> > DEBUG: HTTP 1.1 200 OK
> > DEBUG: server: nginx/1.0.15
> > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> > DEBUG: content-type: application/json; charset=utf-8
> > DEBUG: transfer-encoding: chunked
> > DEBUG: connection: close
> > DEBUG: ---- End HTTP Status/Header Data ----
> > INFO: Uploading files
> > 
> > ```
> 
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:80:in
> 
> > ```
> > `upload_cookbooks': undefined method `each' for nil:NilClass
> > (NoMethodError)
> > from
> > 
> > ```
> 
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:231:in
> 
> > ```
> > `upload'
> > from
> > 
> > ```
> 
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:122:in
> 
> > ```
> > `block in run'
> > from
> > 
> > ```
> 
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:119:in
> 
> > ```
> > `each'
> > from
> > 
> > ```
> 
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:119:in
> 
> > ```
> > `run'
> > from
> > 
> > ```
> 
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:in
> 
> > ```
> > `run_with_pretty_exceptions'
> > from
> > 
> > ```
> 
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in
> 
> > ```
> > `run'
> > from
> > 
> > ```
> 
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:in
> 
> > ```
> > `run'
> > from
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in
> > `<top (required)>'
> > from /opt/ruby/bin/knife:23:in `load'
> > from /opt/ruby/bin/knife:23:in `<main>'
> > 
> > The install was done over a ruby-1.9.3 compiled from source.
> > 
> > --
> > Thanks,
> > 
> > Mark
> > 
> > --
> > Loïc ANTOINE-GOMBEAUD
> > IT Engineer I
> > Plinga GmbH | www.plinga.com <http://www.plinga.com>
> > Saarbrücker Straße 20/21 | 10405 Berlin | Germany
> > 
> > E-Mail: loic.gombeaud@plinga.com <mailto:loic.gombeaud@plinga.com> |
> > Skype:loic.plinga
> > Telefon : +49(0)160-92286573 <tel:%2B49%280%29160-92286573>
> > 
> > Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung
> > Eingetragen beim Amtsgericht Charlottenburg, HRB 119994
> > 
> > ```
> > 
> > --  
> > Loïc ANTOINE-GOMBEAUD  
> > IT Engineer I  
> > Plinga GmbH | [www.plinga.com](http://www.plinga.com) [http://www.plinga.com](http://www.plinga.com)  
> > Saarbrücker Straße 20/21 | 10405 Berlin | Germany
> > 
> > E-Mail: [loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) [mailto:loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) |  
> > Skype:loic.plinga  
> > Telefon : +49(0)160-92286573
> > 
> > Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung  
> > Eingetragen beim Amtsgericht Charlottenburg, HRB 119994
> 
> --  
> Steven Danna  
> Systems Engineer, Opscode, Inc  
> GPG Key: [http://stevendanna.github.com/downloads/code/public.key](http://stevendanna.github.com/downloads/code/public.key)

--  
Thanks,

Mark

---

<div class="post-metadata">

**Author:** ![Loic\_Antoine\_Gombeau](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Loic\_Antoine\_Gombeau](https://discourse.chef.io/u/Loic_Antoine_Gombeau)\
**Post date:** [December 12, 2012, 4:23pm UTC](https://discourse.chef.io/t/error-uploading-cookbooks/3392/7 "2012-12-12T16:23:47Z")

</div>

I added a warning when redirecting with a different method, not sure if it  
is the appropriate log level though :

> <https://github.com/chef/chef/pull/534>
>
> http://tickets.opscode.com/browse/CHEF-2682
> 
> Added a warning when following a re…direct with a different method than that of the original request; this solution:
> 1. preserves conformity with RFC 2616, which states the following:
> "If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued."
> 2. effectively fixes the bug by providing a non-confusing (or at least, less-confusing) log message.

Also, I notice that changing to the FQDN has solved the first issue 🙂

On Wed, Dec 12, 2012 at 4:52 PM, Mark Pimentel [markpimentel22@gmail.com](mailto:markpimentel22@gmail.com)wrote:

> So I updated the server option in the knife.rb to be the fqdn of the  
> server and now I get this:
> 
> DEBUG: Using configuration from /root/.chef/knife.rb  
> DEBUG: No chefignore file found at /root/chef-repo/cookbooks/chefignore no  
> files will be ignored  
> DEBUG: Signing the request as markp  
> DEBUG: Sending HTTP Request via GET to  
> hq-tor-chef.quickplay.local:443/cookbooks  
> DEBUG: ---- HTTP Status and Header Data: ----  
> DEBUG: HTTP 1.1 200 OK  
> DEBUG: server: nginx/1.0.15  
> DEBUG: date: Wed, 12 Dec 2012 15:51:34 GMT  
> DEBUG: content-type: application/json; charset=utf-8  
> DEBUG: transfer-encoding: chunked  
> DEBUG: connection: close  
> DEBUG: ---- End HTTP Status/Header Data ----  
> Uploading site [0.1.0]  
> INFO: Validating ruby files  
> DEBUG: Ruby file  
> /root/.chef/../chef-repo/cookbooks/site/attributes/default.rb is unchanged,  
> skipping syntax check  
> DEBUG: Ruby file /root/.chef/../chef-repo/cookbooks/site/metadata.rb is  
> unchanged, skipping syntax check  
> DEBUG: Ruby file /root/.chef/../chef-repo/cookbooks/site/recipes/nfs.rb is  
> unchanged, skipping syntax check  
> DEBUG: Ruby file  
> /root/.chef/../chef-repo/cookbooks/site/recipes/default.rb is unchanged,  
> skipping syntax check  
> INFO: Validating templates  
> INFO: Syntax OK  
> INFO: Saving site  
> DEBUG: Signing the request as markp  
> DEBUG: Sending HTTP Request via POST to  
> hq-tor-chef.quickplay.local:443/sandboxes  
> DEBUG: ---- HTTP Status and Header Data: ----  
> DEBUG: HTTP 1.1 201 Created  
> DEBUG: server: nginx/1.0.15  
> DEBUG: date: Wed, 12 Dec 2012 15:51:34 GMT  
> DEBUG: content-type: application/json; charset=utf-8  
> DEBUG: transfer-encoding: chunked  
> DEBUG: connection: close  
> DEBUG: location:  
> [https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5)  
> DEBUG: ---- End HTTP Status/Header Data ----  
> INFO: Uploading files  
> INFO: Uploading /root/chef-repo/cookbooks/site/recipes/nfs.rb (checksum  
> hex = 8ed03d6cab76d23d9a287cdf85ba99ac) to  
> [https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/8ed03d6cab76d23d9a287cdf85ba99ac](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/8ed03d6cab76d23d9a287cdf85ba99ac)  
> INFO: Uploading /root/chef-repo/cookbooks/site/recipes/default.rb  
> (checksum hex = 40319a324ba808cf84b192b14126efb0) to  
> [https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/40319a324ba808cf84b192b14126efb0](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/40319a324ba808cf84b192b14126efb0)  
> INFO: Uploading /root/chef-repo/cookbooks/site/attributes/default.rb  
> (checksum hex = 53e43bdeca8ac48ecb5540663cb657ca) to  
> [https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/53e43bdeca8ac48ecb5540663cb657ca](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/53e43bdeca8ac48ecb5540663cb657ca)  
> INFO: Uploading /root/chef-repo/cookbooks/site/metadata.rb (checksum hex =  
> 868ce5688c78fbae0c460380132927c5) to  
> [https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/868ce5688c78fbae0c460380132927c5](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/868ce5688c78fbae0c460380132927c5)  
> INFO: Uploading /root/chef-repo/cookbooks/site/README.md (checksum hex =  
> f3ea896f400a1e1d9fd93473e59fd5d2) to  
> [https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/f3ea896f400a1e1d9fd93473e59fd5d2](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/f3ea896f400a1e1d9fd93473e59fd5d2)  
> INFO: Uploading /root/chef-repo/cookbooks/site/metadata.json (checksum hex  
> = 44fa6e9bc46b13182d346bdc7965ed00) to  
> [https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/44fa6e9bc46b13182d346bdc7965ed00](https://hq-tor-chef.quickplay.local/sandboxes/5777250a18924455a3794023b36a27f5/44fa6e9bc46b13182d346bdc7965ed00)  
> ERROR: Failed to upload : 500 Internal Server Error  
> {"error":["No such file or directory -  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121212-29912-108n7n3.lock"]}ERROR:  
> Failed to upload : 500 Internal Server Error  
> {"error":["No such file or directory -  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121212-29912-t7rrqh.lock"]}  
> ERROR: Failed to upload : 500 Internal Server Error  
> {"error":["No such file or directory -  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121212-29912-u3twkg.lock"]}  
> ERROR: Failed to upload : 500 Internal Server Error  
> {"error":["No such file or directory -  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121212-29912-onv4k9.lock"]}
> 
> /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/abstract\_response.rb:48:in  
> `return!': 500 Internal Server Error (RestClient::InternalServerError) from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process\_result'  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in  
> `block in transmit' from /opt/ruby/lib/ruby/1.9.1/net/http.rb:745:in `start'  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in  
> `transmit' from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in  
> `execute' from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/resource.rb:76:in `put'  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:142:in  
> `block in uploader_function_for' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:25:in `call'  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:25:in  
> `block (3 levels) in setup_worker_threads' from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:24:in `loop'  
> from  
> /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:24:in  
> `block (2 levels) in setup\_worker\_threads'
> 
> On Wed, Dec 12, 2012 at 10:36 AM, Steven Danna [steve@opscode.com](mailto:steve@opscode.com) wrote:
> 
> > On 12/12/12 7:27 AM, Loïc Antoine-Gombeaud wrote:
> > 
> > > Actually, it seems that Chef::REST follows redirects by sending GET  
> > > requests only, thus conforming to the HTTP RFCs. This article discusses  
> > > this behaviour : [alanflavell.org.uk](http://www.alanflavell.org.uk/www/post-redirect).
> > 
> > There is a bug report about this issue here:
> > 
> > [http://tickets.opscode.com/browse/CHEF-2682](http://tickets.opscode.com/browse/CHEF-2682)
> > 
> > Those interesting in fixing it might take note of RFC 2616:
> > 
> > > If the 301 status code is received in response to a request other  
> > > than GET or HEAD, the user agent MUST NOT automatically redirect the  
> > > request unless it can be confirmed by the user, since this might  
> > > change the conditions under which the request was issued.
> > 
> > Cheers,
> > 
> > Steven
> > 
> > > This may be a problem, since the original request was a POST...
> > > 
> > > A solution would be to avoid this redirection altogether by using your  
> > > server's FQDN (i.e. hq-tor-chef.quickplay.local) in your knife.rb,  
> > > instead of localhost. I'm curious to know if that would work, since I  
> > > had issues concerning the FQDN when I first set up my Chef Server.
> > > 
> > > On Wed, Dec 12, 2012 at 4:18 PM, Loïc Antoine-Gombeaud  
> > > \<[loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) [mailto:loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com)\> wrote:
> > > 
> > > ```
> > > I'm not sure how to do that, but I believe seeing the body of the
> > > "HTTP Request via GET to hq-tor-chef.quickplay.local:443/sandboxes"
> > > would help a lot : it seems to be returning valid JSON, but without
> > > a 'checksums' key/value.
> > > 
> > > On Wed, Dec 12, 2012 at 3:09 PM, Mark Pimentel
> > > <markpimentel22@gmail.com <mailto:markpimentel22@gmail.com>> wrote:
> > > 
> > > Just deployed the latest bootstrap chef-server onto a redhat 6.3
> > > node and I get this error when uploading a cookbook:
> > > 
> > > DEBUG: Using configuration from /root/.chef/knife.rb
> > > DEBUG: No chefignore file found at
> > > /root/chef-repo/cookbooks/chefignore no files will be ignored
> > > DEBUG: Signing the request as markp
> > > DEBUG: Sending HTTP Request via GET to localhost:80/cookbooks
> > > DEBUG: ---- HTTP Status and Header Data: ----
> > > DEBUG: HTTP 1.1 301 Moved Permanently
> > > DEBUG: server: nginx/1.0.15
> > > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> > > DEBUG: content-type: text/html
> > > DEBUG: content-length: 185
> > > DEBUG: connection: close
> > > DEBUG: location:
> > > https://hq-tor-chef.quickplay.local/cookbooks?num_versions=all
> > > DEBUG: ---- End HTTP Status/Header Data ----
> > > DEBUG: Following redirect 1/10
> > > DEBUG: Signing the request as markp
> > > DEBUG: Sending HTTP Request via GET to
> > > hq-tor-chef.quickplay.local:443/cookbooks
> > > DEBUG: ---- HTTP Status and Header Data: ----
> > > DEBUG: HTTP 1.1 200 OK
> > > DEBUG: server: nginx/1.0.15
> > > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> > > DEBUG: content-type: application/json; charset=utf-8
> > > DEBUG: transfer-encoding: chunked
> > > DEBUG: connection: close
> > > DEBUG: ---- End HTTP Status/Header Data ----
> > > Uploading site [0.1.0]
> > > INFO: Validating ruby files
> > > DEBUG: Ruby file
> > > /root/chef-repo/cookbooks/site/attributes/default.rb is
> > > unchanged, skipping syntax check
> > > DEBUG: Ruby file /root/chef-repo/cookbooks/site/metadata.rb is
> > > unchanged, skipping syntax check
> > > DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/nfs.rb
> > > is unchanged, skipping syntax check
> > > DEBUG: Ruby file
> > > /root/chef-repo/cookbooks/site/recipes/default.rb is unchanged,
> > > skipping syntax check
> > > INFO: Validating templates
> > > INFO: Syntax OK
> > > INFO: Saving site
> > > DEBUG: Signing the request as markp
> > > DEBUG: Sending HTTP Request via POST to localhost:80/sandboxes
> > > DEBUG: ---- HTTP Status and Header Data: ----
> > > DEBUG: HTTP 1.1 301 Moved Permanently
> > > DEBUG: server: nginx/1.0.15
> > > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> > > DEBUG: content-type: text/html
> > > DEBUG: content-length: 185
> > > DEBUG: connection: close
> > > DEBUG: location: https://hq-tor-chef.quickplay.local/sandboxes
> > > DEBUG: ---- End HTTP Status/Header Data ----
> > > DEBUG: Following redirect 1/10
> > > DEBUG: Signing the request as markp
> > > DEBUG: Sending HTTP Request via GET to
> > > hq-tor-chef.quickplay.local:443/sandboxes
> > > DEBUG: ---- HTTP Status and Header Data: ----
> > > DEBUG: HTTP 1.1 200 OK
> > > DEBUG: server: nginx/1.0.15
> > > DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
> > > DEBUG: content-type: application/json; charset=utf-8
> > > DEBUG: transfer-encoding: chunked
> > > DEBUG: connection: close
> > > DEBUG: ---- End HTTP Status/Header Data ----
> > > INFO: Uploading files
> > > 
> > > ```
> > 
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook\_uploader.rb:80:in
> > 
> > > ```
> > > `upload_cookbooks': undefined method `each' for nil:NilClass
> > > (NoMethodError)
> > > from
> > > 
> > > ```
> > 
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:231:in
> > 
> > > ```
> > > `upload'
> > > from
> > > 
> > > ```
> > 
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:122:in
> > 
> > > ```
> > > `block in run'
> > > from
> > > 
> > > ```
> > 
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:119:in
> > 
> > > ```
> > > `each'
> > > from
> > > 
> > > ```
> > 
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook\_upload.rb:119:in
> > 
> > > ```
> > > `run'
> > > from
> > > 
> > > ```
> > 
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:in
> > 
> > > ```
> > > `run_with_pretty_exceptions'
> > > from
> > > 
> > > ```
> > 
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in
> > 
> > > ```
> > > `run'
> > > from
> > > 
> > > ```
> > 
> > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:in
> > 
> > > ```
> > > `run'
> > > from
> > > /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in
> > > `<top (required)>'
> > > from /opt/ruby/bin/knife:23:in `load'
> > > from /opt/ruby/bin/knife:23:in `<main>'
> > > 
> > > The install was done over a ruby-1.9.3 compiled from source.
> > > 
> > > --
> > > Thanks,
> > > 
> > > Mark
> > > 
> > > --
> > > Loïc ANTOINE-GOMBEAUD
> > > IT Engineer I
> > > Plinga GmbH | www.plinga.com <http://www.plinga.com>
> > > Saarbrücker Straße 20/21 | 10405 Berlin | Germany
> > > 
> > > E-Mail: loic.gombeaud@plinga.com <mailto:loic.gombeaud@plinga.com>
> > > 
> > > ```
> > 
> > |
> > 
> > > ```
> > > Skype:loic.plinga
> > > Telefon : +49(0)160-92286573 <tel:%2B49%280%29160-92286573>
> > > 
> > > Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung
> > > Eingetragen beim Amtsgericht Charlottenburg, HRB 119994
> > > 
> > > ```
> > > 
> > > --  
> > > Loïc ANTOINE-GOMBEAUD  
> > > IT Engineer I  
> > > Plinga GmbH | [www.plinga.com](http://www.plinga.com) [http://www.plinga.com](http://www.plinga.com)  
> > > Saarbrücker Straße 20/21 | 10405 Berlin | Germany
> > > 
> > > E-Mail: [loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) [mailto:loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) |  
> > > Skype:loic.plinga  
> > > Telefon : +49(0)160-92286573
> > > 
> > > Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung  
> > > Eingetragen beim Amtsgericht Charlottenburg, HRB 119994
> > 
> > --  
> > Steven Danna  
> > Systems Engineer, Opscode, Inc  
> > GPG Key: [http://stevendanna.github.com/downloads/code/public.key](http://stevendanna.github.com/downloads/code/public.key)
> 
> --  
> Thanks,
> 
> Mark

--  
Loïc ANTOINE-GOMBEAUD  
IT Engineer I  
Plinga GmbH | [www.plinga.com](http://www.plinga.com)  
Saarbrücker Straße 20/21 | 10405 Berlin | Germany

E-Mail: [loic.gombeaud@plinga.com](mailto:loic.gombeaud@plinga.com) | Skype:loic.plinga  
Telefon : +49(0)160-92286573

Geschäftsführer: Johannes Kreibohm, Florian Schmidt-Amelung  
Eingetragen beim Amtsgericht Charlottenburg, HRB 119994
