#6 ✓resolved
Miquel Herrera

Error when sending the email

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

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:in `do_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:in `perform_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:in `deliver!'
 /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:in `publish'
 /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:in `each'
 /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:in `lock'
 /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:in `initialize'
 /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:in `load'
 /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 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 ;)

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Cerberus is a lightweight and easy-to-use Continuous Builder software for Ruby.

People watching this ticket

Pages