[chef] Re: Re: wrong status line: "220 (vsFTPd 2.0.5)" What does this mean in English?


Chronological Thread 
  • From: Cassiano Leal < >
  • To:
  • Subject: [chef] Re: Re: wrong status line: "220 (vsFTPd 2.0.5)" What does this mean in English?
  • Date: Fri, 5 Jul 2013 20:21:44 -0300

It seems like it won’t be long until the remote_file resource supports FTP: http://tickets.opscode.com/browse/CHEF-1031

In the meantime, if you can get the file from HTTP as Michael said, that will solve your problem.

- cassiano

On Friday, July 5, 2013 at 20:04, Michael Herman wrote:

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
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
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
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.

§