"closed stream" problem

Can someone please help me with this error? It gives an exception of a
“closed stream.” What is that? I see that it’s failing where it’s
supposed to ftp over a file.

I’m being asked to send over .success and/or .error files for image
files I’m processing. I can see that the error file for this image has
been created. That’s good. I see the file in the directory. But, it just
fails when it’s supposed to ftp the file over. It had already succeeded
in ftp’ing over previous .success files, just not .error files like this


================ IOError =====================
E:\live\ruby\lib\ruby\1.8/net/ftp.rb:206:in write' @sock.write(line) E:\live\ruby\lib\ruby\1.8/net/ftp.rb:206:inputline’
E:\live\ruby\lib\ruby\1.8/net/ftp.rb:273:in voidcmd' putline(cmd) E:\live\ruby\lib\ruby\1.8/monitor.rb:242:insynchronize’
E:\live\ruby\lib\ruby\1.8/net/ftp.rb:272:in voidcmd' synchronize do E:\live\ruby\lib\ruby\1.8/net/ftp.rb:448:instorbinary’
voidcmd(“TYPE I”)
E:\live\ruby\lib\ruby\1.8/monitor.rb:242:in synchronize' yield E:\live\ruby\lib\ruby\1.8/net/ftp.rb:447:instorbinary’
synchronize do
E:\live\ruby\lib\ruby\1.8/net/ftp.rb:559:in putbinaryfile' storbinary("STOR " + remotefile, f, blocksize, rest_offset, &block) E:\live\scripts\RUBY\images\process_cfr2.rb:159 ftp.putbinaryfile(fileerror) E:\live\scripts\RUBY\images\process_cfr2.rb:35:ineach’
Dir.glob(".gif").each do |giffile|
.gif").each do |giffile|

Exception: closed stream

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs