Forum: Ruby on Rails Mail Daemon Error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Richard S. (Guest)
on 2009-02-13 06:44
I'm using fetcher_daemon
svn://rubyforge.org/var/svn/slantwise/fetcher/trunk which is a daemon
that checks a mail server.

When ever I run 'ruby script/mailer_daemon_fetcher start' it works
great, i get my mail but then i get an error:

richard-schneemans-macbook-pro:contacts richardschneeman$
/opt/local/lib/ruby/1.8/net/imap.rb:288:in `shutdown': Socket is not
connected (Errno::ENOTCONN)
  from /opt/local/lib/ruby/1.8/net/imap.rb:288:in `disconnect'
  from
/Users/richardschneeman/Documents/AptanaStudio/contacts/vendor/plugins/fetcher/lib/fetcher/imap.rb:63:in
`close_connection'
  from
/Users/richardschneeman/Documents/AptanaStudio/contacts/vendor/plugins/fetcher/lib/fetcher/base.rb:33:in
`fetch'
  from script/mailer_daemon_fetcher:17:in `start'
  from script/mailer_daemon_fetcher:16:in `loop'
  from script/mailer_daemon_fetcher:16:in `start'
  from
/Users/richardschneeman/Documents/AptanaStudio/contacts/lib/daemon.rb:55:in
`start'
  from
/Users/richardschneeman/Documents/AptanaStudio/contacts/lib/daemon.rb:45:in
`fork'
  from
/Users/richardschneeman/Documents/AptanaStudio/contacts/lib/daemon.rb:45:in
`start'
  from
/Users/richardschneeman/Documents/AptanaStudio/contacts/lib/daemon.rb:32:in
`daemonize'
  from
/Users/richardschneeman/Documents/AptanaStudio/contacts/lib/daemon.rb:14:in
`daemonize'
  from script/mailer_daemon_fetcher:28


After which I no longer receive mail. Here is a copy of my code inside
of the fetcher daemon http://pastie.org/387939 .

Does anyone have any hints?
Richard S. (Guest)
on 2009-02-13 19:03
Anybody??
Richard S. (Guest)
on 2009-05-01 00:19
fixed here...

http://groups.google.com/group/peepcode/browse_thr...

Richard,
www.uniteddictionary.com
This topic is locked and can not be replied to.