- From: Michael Herman <
>
- To: "
" <
>
- Subject: [chef] Re: wrong status line: "220 (vsFTPd 2.0.5)" What does this mean in English?
- Date: Sat, 6 Jul 2013 09:04:16 +1000
Hi David,
It looks like you are providing an FTP resource, and it is expecting
an HTTP server.
Rgds,
mgh
On Sat, Jul 6, 2013 at 8:48 AM, David Montgomery
<
>
wrote:
>
Hi
>
>
I am trying to upgrade ruby use chef-solo yet I get the below error. The
>
ftp file exists yet chef bombs. Why?
>
>
version = "1.9.3-p392"
>
>
remote_file "#{Chef::Config[:file_cache_path]}/ruby-#{version}.tar.gz" do
>
source "ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-#{version}.tar.gz"
>
action :create_if_missing
>
end
>
>
================================================================================
>
Error executing action `create_if_missing` on resource
>
'remote_file[/tmp/ruby-1.9.3-p392.tar.gz]'
>
================================================================================
>
>
>
Net::HTTPBadResponse
>
--------------------
>
wrong status line: "220 (vsFTPd 2.0.5)"
>
>
>
Resource Declaration:
>
---------------------
>
# In
>
/home/ubuntu/workspace/druidry-chef/chef-solo/cookbooks/ruby/recipes/default.rb
>
>
62: remote_file "/tmp/ruby-#{version}.tar.gz" do
>
63: source "ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz"
>
64: action :create_if_missing
>
65: end
>
66:
>
>
>
>
Compiled Resource:
>
------------------
>
# Declared in
>
/home/ubuntu/workspace/druidry-chef/chef-solo/cookbooks/ruby/recipes/default.rb:62:in
>
`from_file'
>
>
remote_file("/tmp/ruby-1.9.3-p392.tar.gz") do
>
provider Chef::Provider::RemoteFile
>
action [:create_if_missing]
>
retries 0
>
retry_delay 2
>
path "/tmp/ruby-1.9.3-p392.tar.gz"
>
backup 5
>
cookbook_name :ruby
>
recipe_name "default"
>
end
>
>
>
>
[2013-07-06T06:42:35+08:00] ERROR: Running exception handlers
>
[2013-07-06T06:42:35+08:00] ERROR: Exception handlers complete
>
Chef Client failed. 10 resources updated
>
[2013-07-06T06:42:35+08:00] FATAL: Stacktrace dumped to
>
/home/ubuntu/workspace/druidry-chef/chef-solo/chef-stacktrace.out
>
[2013-07-06T06:42:35+08:00] FATAL: Net::HTTPBadResponse:
>
remote_file[/tmp/ruby-1.9.3-p392.tar.gz] (ruby::default line 62) had an
>
error: Net::HTTPBadResponse: wrong status line: "220 (vsFTPd 2.0.5)"
>
Archive powered by MHonArc 2.6.16.