Bryan Noll
2007-Oct-26 17:11 UTC
[Cruisecontrolrb-users] Email notifications are beating me...
So, I''ve tried quite a few things, from using my company''s internal SMTP server to using an extra gmail account I have and attempting to use their server. All of it ends up giving me this plugin error: 554 5.7.3 Unable to initialize security subsystem at /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response'' Here''s my current gmail settings. What am I doing wrong? ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "gmail.com", :authentication => :plain, :user_name => "my_user_name", :password => "my_password" } -- View this message in context: http://www.nabble.com/Email-notifications-are-beating-me...-tf4698631.html#a13431560 Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com.
Bryan Noll
2007-Oct-26 17:23 UTC
[Cruisecontrolrb-users] Email notifications are beating me...
So I got a little farther. I''m no longer getting the error. Changes I made: originally: :user_name => "my_user_name" now: :user_name => "my_user_name at gmail.com" i''m getting no error now, but I''m also not getting an email at the address I specified in the ''project.email_notifier.emails'' property for my project. I''ve verified there''s not a type in the email address I''ve specified there. Bryan Noll wrote:> > So, I''ve tried quite a few things, from using my company''s internal SMTP > server to using an extra gmail account I have and attempting to use their > server. All of it ends up giving me this plugin error: > > 554 5.7.3 Unable to initialize security subsystem at > /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response'' > > Here''s my current gmail settings. What am I doing wrong? > > ActionMailer::Base.smtp_settings = { > :address => "smtp.gmail.com", > :port => 587, > :domain => "gmail.com", > :authentication => :plain, > :user_name => "my_user_name", > :password => "my_password" > } > > > >-- View this message in context: http://www.nabble.com/Email-notifications-are-beating-me...-tf4698631.html#a13431702 Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com.
Alexey Verkhovsky
2007-Oct-26 17:40 UTC
[Cruisecontrolrb-users] Email notifications are beating me...
On 10/26/07, Bryan Noll <bwnoll at gmail.com> wrote:> i''m getting no error now, but I''m also not getting an emailCan it be simply because the build is not failing? If the build IS failing, and you still aren''t getting the emails, please run cruise with --trace flag, trigger the build and see what the builder log says (you should see the entire SMTP conversation in it). If that doesn''t help, please email me the log. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com]
Bryan Noll
2007-Oct-26 19:22 UTC
[Cruisecontrolrb-users] Email notifications are beating me...
Bryan Noll wrote:> Thanks for taking the time to respond. > > You were right. Somewhere in the middle of dorking with the email > settings, I undid my intentional build failure piece of code... so the > build itself wasn''t failing. Now I''m right back to where I was, > getting the "Unable to initialize security subsystem" error. > > I know our smtp server works, because we have an old java version of > CC sending mails through it. Plus, I can''t get the gmail one to > work. I''m sure it''s probably some configuration issue that''s my > fault... I just don''t see what it is. > > Alexey Verkhovsky wrote: >> On 10/26/07, Bryan Noll <bwnoll at gmail.com> wrote: >> >>> i''m getting no error now, but I''m also not getting an email >>> >> >> Can it be simply because the build is not failing? >> >> If the build IS failing, and you still aren''t getting the emails, >> please run cruise with --trace flag, trigger the build and see what >> the builder log says (you should see the entire SMTP conversation in >> it). If that doesn''t help, please email me the log. >> >> >
Bryan Noll
2007-Oct-26 19:41 UTC
[Cruisecontrolrb-users] Email notifications are beating me...
So I must''ve been fat fingering something earlier... because I got the gmail smtp stuff working with the following. I''m still having issues with our internal smpt server. I''ll keep banging on that and report back here if/when I figure it out. Thanks for the help... ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "gmail.com", :authentication => :plain, :user_name => "the_username", :password => "the_password" } -- View this message in context: http://www.nabble.com/Email-notifications-are-beating-me...-tf4698631.html#a13434132 Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com.
Bryan Noll
2007-Oct-26 20:15 UTC
[Cruisecontrolrb-users] Email notifications are beating me...
OK... so it''s working just fine using gmail. Here''s the log from when I tried to use our internal smtp server. [error] [2007-10-26 14:08:05] Error sending e-mail - current server settings are : :address = "192.168.XX.YY" :domain = "our_domain.com" [error] 554 5.7.3 Unable to initialize security subsystem [error] /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response'' [error] /usr/lib/ruby/1.8/net/smtp.rb:653:in `getok'' [error] /home/bnoll/tools/cruisecontrolrb-1.1.0/vendor/plugins/action_mailer_tls/smtp_tls.rb:56:in `starttls'' [error] /home/bnoll/tools/cruisecontrolrb-1.1.0/vendor/plugins/action_mailer_tls/smtp_tls.rb:19:in `do_start'' [error] /usr/lib/ruby/1.8/net/smtp.rb:378:in `start'' [error] /usr/lib/ruby/1.8/net/smtp.rb:316:in `start'' [error] ./script/../config/../script/../config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:565:in `perform_delivery_smtp'' [error] ./script/../config/../script/../config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:451:in `send'' [error] ./script/../config/../script/../config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:451:in `deliver!'' [error] ./script/../config/../script/../config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:333:in `method_missing'' [error] ./script/../config/../script/../config/../builder_plugins/installed/email_notifier.rb:52:in `send'' [error] ./script/../config/../script/../config/../builder_plugins/installed/email_notifier.rb:52:in `email'' [error] ./script/../config/../script/../config/../builder_plugins/installed/email_notifier.rb:41:in `build_finished'' [error] ./script/../config/../script/../config/../app/models/project.rb:293:in `send'' [error] ./script/../config/../script/../config/../app/models/project.rb:293:in `notify'' [error] ./script/../config/../script/../config/../app/models/project.rb:291:in `collect'' [error] ./script/../config/../script/../config/../app/models/project.rb:291:in `notify'' [error] ./script/../config/../script/../config/../app/models/project.rb:276:in `build'' [error] ./script/../config/../script/../config/../app/models/project.rb:251:in `build_if_requested'' [error] ./script/../config/../script/../config/../app/models/polling_scheduler.rb:27:in `check_build_request_until_next_polling'' [error] ./script/../config/../script/../config/../app/models/polling_scheduler.rb:13:in `run'' [error] ./script/../config/../script/builder:82 [error] ./script/../config/../script/builder:81:in `catch'' [error] ./script/../config/../script/builder:81 [error] script/../config/../cruise:14:in `load'' [error] script/../config/../cruise:14:in `builder'' [error] script/../config/../cruise:66:in `send'' [error] script/../config/../cruise:66 [error] Error in plugin EmailNotifier: 554 5.7.3 Unable to initialize security subsystem [error] ./script/../config/../script/../config/../app/models/project.rb:318:in `notify'' [error] ./script/../config/../script/../config/../app/models/project.rb:276:in `build'' [error] ./script/../config/../script/../config/../app/models/project.rb:251:in `build_if_requested'' [error] ./script/../config/../script/../config/../app/models/polling_scheduler.rb:27:in `check_build_request_until_next_polling'' [error] ./script/../config/../script/../config/../app/models/polling_scheduler.rb:13:in `run'' [error] ./script/../config/../script/builder:82 [error] ./script/../config/../script/builder:81:in `catch'' [error] ./script/../config/../script/builder:81 [error] script/../config/../cruise:14:in `load'' [error] script/../config/../cruise:14:in `builder'' [error] script/../config/../cruise:66:in `send'' [error] script/../config/../cruise:66 Alexey Verkhovsky-2 wrote:> > If that doesn''t help, please email me the log. > > -- > Alexey Verkhovsky > CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] > RubyWorks [http://rubyworks.thoughtworks.com] > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >-- View this message in context: http://www.nabble.com/Email-notifications-are-beating-me...-tf4698631.html#a13434674 Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com.
Alexey Verkhovsky
2007-Oct-26 23:31 UTC
[Cruisecontrolrb-users] Email notifications are beating me...
> [error] Error in plugin EmailNotifier: 554 5.7.3 Unable to initialize > security subsystemThis is a known problem. Basically, smtp_tls plugin makes it possible for CC.rb to talk to TLS-enabled SMTP servers (like GMail), but unfotunately breaks servers that have no TLS. At the time 1.1 was released, everybody on the dev team was using TLS-enabled servers, and so the bug went unnoticed. Deleting the aforementioned plugin from ./vendor/plugins directory should fix the problem with your local SMTP server (but will break interoperability with GMail). -- Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20071026/069077ab/attachment.html
Bryan Noll
2007-Oct-30 18:07 UTC
[Cruisecontrolrb-users] Email notifications are beating me...
I appreciate the assistance Alexey. Alexey Verkhovsky wrote:> > > [error] Error in plugin EmailNotifier: 554 5.7.3 Unable to initialize > > security subsystem > > This is a known problem. Basically, smtp_tls plugin makes it possible > for CC.rb to talk to TLS-enabled SMTP servers (like GMail), but > unfotunately breaks servers that have no TLS. At the time 1.1 was > released, everybody on the dev team was using TLS-enabled servers, and > so the bug went unnoticed. > > Deleting the aforementioned plugin from ./vendor/plugins directory > should fix the problem with your local SMTP server (but will break > interoperability with GMail). > > -- > Alex