Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Error when sending the email

#6

Just installed cerberus from the gem and configured it properly with just the email publisher.

Created an error in a test and commited, run cerberus and the error is detected. It tries to send the notification email and logs an error:

-- ArgumentError wrong number of arguments (3 for 2)
/usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/publisher/netsmtp_tls_fix.rb:8:in check_auth_args' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/publisher/netsmtp_tls_fix.rb:8:indo_start' /usr/lib/ruby/1.8/net/smtp.rb:525:in start' /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/base.rb:681:inperform_delivery_smtp' /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/base.rb:523:in __send__' /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/base.rb:523:indeliver!' /usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/base.rb:395:in method_missing' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/publisher/mail.rb:16:inpublish' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/manager.rb:137:in run' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/manager.rb:131:ineach' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/manager.rb:131:in run' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/latch.rb:21:inlock' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/manager.rb:111:in run' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/cli.rb:29:ininitialize' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/bin/cerberus:5:in new' /usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/bin/cerberus:5 /usr/bin/cerberus:19:inload' /usr/bin/cerberus:19

Versions are:
Rails 2.3.2
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
Ubuntu 8.10
Linux caparrut 2.6.27-11-server #1 Enable custom publishers SMP Wed Apr 1 21:53:55 UTC 2009 i686 GNU/Linux

Looks like the SMTP lib has changed.

Fixed it quick and dirty to continue working:

in
/usr/lib/ruby/gems/1.8/gems/cerberus-0.4.5/lib/cerberus/publisher/netsmtp_tls_fix.rb:8

changed
check_auth_args user, secret, authtype if user or secret by
check_auth_args user, secret if user or secret

This fixes the problem but probably not nicely ;)

Reported by Miquel Herrera · April 25th, 2009 @ 02:24 PM

State: resolved
Milestone: none
Assigned to: Craig Craig

Activity

  1. Craig
    Craig
    • Assigned user set to Craig
    • State changed from new to accepted

    thanks for the bug report.

    I'll check it out and get a fix in.

    April 25th, 2009 @ 09:23 PM

  2. Craig
    Craig

    I've verified this is a lib change between Ruby 1.8.7 and ruby 1.8.6.

    Your fix is actually the correct fix for 1.8.7

    April 25th, 2009 @ 09:32 PM

  3. Craig
    Craig
    • State changed from accepted to resolved

    ticket resolved:

    http://github.com/cpjolicoeur/ce...

    available in gem version 0.4.5.1

    April 25th, 2009 @ 09:46 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.