Bad file descriptor - connect(2) (Errno::EBADF)

  • Thread starter Valerie Hollingsworth
  • Start date
V

Valerie Hollingsworth

I am using Ruby to send files to an FTPS site. This was working
perfectly until a week ago, now I get the following error:

c:/ruby/lib/ruby/1.8/net/ftp.rb:159:in `initialize': Bad file descriptor
- connect(2) (Errno::EBADF)
from c:/ruby/lib/ruby/1.8/net/ftp.rb:159:in `open_socket'
from
c:/ruby/lib/ruby/gems/1.8/gems/ftpfxp-0.0.4/lib/ftpfxp/ftpfxptls.rb:281:in
`transfercmd'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:470:in `storlines'
from c:/ruby/lib/ruby/1.8/monitor.rb:229:in `synchronize'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:468:in `storlines'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:573:in `puttextfile'
from ip_ecsprocess.rb:48
from ip_ecsprocess.rb:43
from c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:823:in `fetch'
from ip_ecsprocess.rb:18

I have seen some posts about this problem but still can't find a fix for
my code. Is this an environmental problem? Could a microsoft patch on
the server cause this problem?
Any help is greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,696
Latest member
BarbraOLog

Latest Threads

Top