Wrong status line: "220 (vsFTPd 2.0.5)" What does this mean in English?

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)”

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
davidmontgomery@gmail.com 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)"

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
<davidmontgomery@gmail.com (mailto:davidmontgomery@gmail.com)> 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)"

In this case, you‘re in luck. ruby-lang.org’s ftp server is also accessible
over http:

source "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-#{version}.tar.gz"should
work.

On Fri, Jul 5, 2013 at 7:21 PM, Cassiano Leal cassianoleal@gmail.comwrote:

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
davidmontgomery@gmail.com 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)"