- From: Nanuk Krinner <
>
- To:
- Subject: [chef] EOFError when downloading cookbooks with knife
- Date: Fri, 07 Sep 2012 13:38:26 +0200
Hi all,
I encounter a problem with my chef instance whenever I want to download
a cookbook with knife. Uploading works fine. The output is as follows:
node31:~ # knife cookbook download --force squid 0.0.2 -VV
DEBUG: Using configuration from /root/.chef/knife.rb
Downloading squid cookbook version 0.0.2
DEBUG: Signing the request as bob
DEBUG: Sending HTTP Request via GET to
node31.cluster.xs:4000/cookbooks/squid/0.0.2
Downloading resources
Downloading providers
Downloading recipes
DEBUG: Downloading recipes/default.rb to
/root/squid-0.0.2/recipes/default.rb
DEBUG: Signing the request as bob
DEBUG: Sending HTTP Request via GET to
node31.cluster.xs:4000/cookbooks/squid/0.0.2/files/9adef92f95e62edfb089a1e12a28492b
DEBUG: Streaming download from
http://node31.cluster.xs:4000/cookbooks/squid/0.0.2/files/9adef92f95e62edfb089a1e12a28492b
to tempfile /tmp/chef-rest20120907-15717-gt0xev
Downloading definitions
Downloading libraries
Downloading attributes
Downloading files
DEBUG: Downloading files/default/addedfile to
/root/squid-0.0.2/files/default/addedfile
DEBUG: Signing the request as bob
DEBUG: Sending HTTP Request via GET to
node31.cluster.xs:4000/cookbooks/squid/0.0.2/files/b8de890b15153b8427474de0001972e3
DEBUG: Streaming download from
http://node31.cluster.xs:4000/cookbooks/squid/0.0.2/files/b8de890b15153b8427474de0001972e3
to tempfile /tmp/chef-rest20120907-15717-m37c2k
Downloading templates
Downloading root_files
DEBUG: Downloading README.md to /root/squid-0.0.2/README.md
DEBUG: Signing the request as bob
DEBUG: Sending HTTP Request via GET to
node31.cluster.xs:4000/cookbooks/squid/0.0.2/files/6e21094b7a920e374e7261f50e9c4eef
/usr/lib64/ruby/1.9.1/net/protocol.rb:141:in `read_nonblock': end of
file reached (EOFError)
from /usr/lib64/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'
from /usr/lib64/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
from /usr/lib64/ruby/1.9.1/net/protocol.rb:132:in `readline'
from /usr/lib64/ruby/1.9.1/net/http.rb:2562:in `read_status_line'
from /usr/lib64/ruby/1.9.1/net/http.rb:2551:in `read_new'
from /usr/lib64/ruby/1.9.1/net/http.rb:1319:in `block in
transport_request'
from /usr/lib64/ruby/1.9.1/net/http.rb:1316:in `catch'
from /usr/lib64/ruby/1.9.1/net/http.rb:1316:in `transport_request'
from /usr/lib64/ruby/1.9.1/net/http.rb:1293:in `request'
from /usr/lib64/ruby/1.9.1/net/http.rb:1286:in `block in request'
from /usr/lib64/ruby/1.9.1/net/http.rb:745:in `start'
from /usr/lib64/ruby/1.9.1/net/http.rb:1284:in `request'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest/rest_request.rb:99:in
`block in call'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest/rest_request.rb:114:in
`hide_net_http_bug'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest/rest_request.rb:98:in
`call'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest.rb:299:in
`block in streaming_request'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest.rb:334:in
`retriable_rest_request'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest.rb:297:in
`streaming_request'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest.rb:128:in
`get_rest'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:90:in
`block (2 levels) in run'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:85:in
`each'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:85:in
`block in run'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:82:in
`each'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:82:in
`run'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife.rb:402:in
`run_with_pretty_exceptions'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife.rb:168:in `run'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/knife.rb:123:in
`run'
from
/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/bin/knife:25:in `<top
(required)>'
from /usr/bin/knife:23:in `load'
from /usr/bin/knife:23:in `<main>'
The Chef server log can be seen here:
http://pastebin.com/TqDpna8y
CouchDb is running and the logs show nothing suspicious:
http://pastebin.com/QSiA1AVL
The same error happens when I try to run chef-client on a client while
trying to download a cookbook. Again, uploading cookbooks works fine. Al
this happens on the node that also hosts the chef server.
Any ideas what's going wrong? Where should I look for errors?
Thanks in advance.
Regards,
Nanuk Krinner
- [chef] EOFError when downloading cookbooks with knife, Nanuk Krinner, 09/07/2012
Archive powered by MHonArc 2.6.16.