Project

General

Profile

Actions

Backport #5557

closed

ftp error uploading binary files

Added by matthew (Matthew Johnson) almost 13 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
[ruby-core:40696]

Description

I have a build script which uploads resulting zip files to a Dreamhost account using net/ftp. It used to work fine and no longer works. I have verified on a few machines that it appears to work fine on my Macs which have patch level 174 (Snow Leopard), but not on my Macs which have patch level 249 (both Snow Leopard and Lion). All Macs are on 1.8.7 so it appears that the patch level is where the break happened.

Here is a sample representing the kind of code that I have in my script (I have obviously taken out the actual domain, username, password, etc).

require 'net/ftp'
Net::FTP.open "ftp.mysite.com" do |ftp|
ftp.login "...", "..."
ftp.chdir "mybuilds"
ftp.putbinaryfile "myfile.zip"
end

Here is the stack trace I get:

Errno::EINVAL: Invalid argument

method write in ftp.rb at line 456
method storbinary in ftp.rb at line 456
method loop in ftp.rb at line 453
method storbinary in ftp.rb at line 453
method synchronize in monitor.rb at line 242
method storbinary in ftp.rb at line 450
method putbinaryfile in ftp.rb at line 562
method upload in build.rb at line 67
method build in build.rb at line 86
method run_builds in build.rb at line 127
method each in build.rb at line 102
method run_builds in build.rb at line 102
at top level in build.rb at line 168
method open in ftp.rb at line 115
at top level in build.rb at line 165

Actions #1

Updated by jeremyevans0 (Jeremy Evans) over 5 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby 1.8 to Backport187
  • Status changed from Open to Closed
  • ruby -v deleted (ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0])
Actions

Also available in: Atom PDF

Like0
Like0