I’m using IronRuby 1.0 to run rake jobs:work (i.e. delayed_jobs). The
job worker is supposed to send out email (via ActionMailer, of course).
When this runs, I get the following error:
[Worker(host:InfowitDev2 pid:16496)] EmailHelper::CalEventRemind failed
with NameError: uninitialized constant Net::InternetMessageIO::TCPsocket
- 0 failed attempts
I’ve run this with both rails 2.3.5 and 2.3.8, both with the same
effect. Other uninitialized constant issues have been resolved by
changing versions of gems I’m using…however I don’t see where/how to
do that here (other than changing rails version, hence the above).
Any suggestions here?
My environment:
Win XP-pro SP3
IronRuby 1.0 (installed by ironruby-1.0v4.msi)
igem install rails --version=2.3.8 --no-ri --no-rdoc (used 2.3.5 as
well)
igem install rake --no-ri --no-rdoc
igem install delayed_job --version=2.0.5 --no-ri --no-rdoc
igem install activerecord-sqlserver-adapter --version=2.3.8 --no-ri
–no-rdoc (used 2.3.5 as well)
rake db:migrate
I’ve uninstalled everything and reinstalled and had the same problem.
Also, I tried installing the actionmailer-ironruby gem, hoping this
would avoid this issue, but it had no effect. This surprised
me…shouldn’t actionmailer-ironruby take over prior to actionmailer
getting to the smtp layer? I assume I’m not supposed to uninstall
actionmailer for actionmailer-ironruby to work…rails has a dependency
of actionmailer.
The stack trace for the above error is:
C:/Program
Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in
const_missing'' C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/net/protocol.rb:206:in
old_open’’
C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/timeout.rb:73:in timeout'' C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/timeout.rb:105:in
timeout’’
C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/net/protocol.rb:206:in
old_open'' C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/net/smtp.rb:392:in
do_start’’
C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/net/smtp.rb:377:in start'' C:/Program Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:682:in
perform_d
elivery_smtp’’
C:/Program
Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:523:in
__send__' ' C:/Program Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:523:in
deliver!’
’
C:/Program
Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:395:in
method_mi ssing'' D:/Perforce/Eric/Main2/Common/Rails/iwBatch/app/helpers/email_helper.rb:35:in
perform’’
C:/Program
Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/delayed_job-2.0.5/lib/delayed/backend/base.rb:74:in
invoke_jo b'' C:/Program Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/delayed_job-2.0.5/lib/delayed/worker.rb:122:in
run’’
C:/Program Files/IronRuby1.0v4/lib/ruby/1.8/timeout.rb:73:in timeout'' C:/Program Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/delayed_job-2.0.5/lib/delayed/worker.rb:122:in
run’’
C:/Program
Files/IronRuby1.0v4/lib/ironruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/benchmark.rb:1
thanks,
eric