ikehz / unite

The Unite project
0 stars 0 forks source link

user emails not getting sent and/or delivered on development environment, causing error on production #4

Closed ikehz closed 11 years ago

ikehz commented 11 years ago

on testing server:

Sent mail to ihmccreery@gmail.com (54ms)
Completed 500 Internal Server Error in 430ms

Errno::ECONNREFUSED (Connection refused - connect(2)):
/home/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:540:in `initialize'
/home/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:540:in `open'
/home/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:540:in `tcp_socket'
/home/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:549:in `block in do_start'
/home/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
/home/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
/home/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:549:in `do_start'
/home/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:519:in `start'
mail (2.4.4) lib/mail/network/delivery_methods/smtp.rb:144:in `deliver!'
mail (2.4.4) lib/mail/message.rb:2034:in `do_delivery'
mail (2.4.4) lib/mail/message.rb:229:in `block in deliver'
actionmailer (3.2.9) lib/action_mailer/base.rb:415:in `block in deliver_mail'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
actionmailer (3.2.9) lib/action_mailer/base.rb:413:in `deliver_mail'
mail (2.4.4) lib/mail/message.rb:229:in `deliver'
devise (2.1.2) lib/devise/models/authenticatable.rb:163:in `send_devise_notification'
devise (2.1.2) lib/devise/models/confirmable.rb:128:in `send_on_create_confirmation_instructions'
activesupport (3.2.9) lib/active_support/callbacks.rb:416:in `_run__1784865726772328845__create__3808123570180478996__callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.2.9) lib/active_record/callbacks.rb:268:in `create'
activerecord (3.2.9) lib/active_record/persistence.rb:348:in `create_or_update'
activerecord (3.2.9) lib/active_record/callbacks.rb:264:in `block in create_or_update'
activesupport (3.2.9) lib/active_support/callbacks.rb:414:in `_run__1784865726772328845__save__3808123570180478996__callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.2.9) lib/active_record/callbacks.rb:264:in `create_or_update'
activerecord (3.2.9) lib/active_record/persistence.rb:84:in `save'
activerecord (3.2.9) lib/active_record/validations.rb:50:in `save'
activerecord (3.2.9) lib/active_record/attribute_methods/dirty.rb:22:in `save'
activerecord (3.2.9) lib/active_record/transactions.rb:259:in `block (2 levels) in save'
activerecord (3.2.9) lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
activerecord (3.2.9) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
activerecord (3.2.9) lib/active_record/transactions.rb:208:in `transaction'
activerecord (3.2.9) lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
activerecord (3.2.9) lib/active_record/transactions.rb:259:in `block in save'
activerecord (3.2.9) lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
activerecord (3.2.9) lib/active_record/transactions.rb:258:in `save'
devise (2.1.2) app/controllers/devise/registrations_controller.rb:15:in `create'
actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.9) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.9) lib/active_support/callbacks.rb:458:in `_run__1988053783085160216__process_action__3198389780198074208__callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.2.9) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.9) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.9) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:in `call'
actionpack (3.2.9) lib/action_dispatch/routing/mapper.rb:42:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
warden (1.2.1) lib/warden/manager.rb:34:in `catch'
warden (1.2.1) lib/warden/manager.rb:34:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.1) lib/rack/etag.rb:23:in `call'
rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__304138634748266526__call__3808123570180478996__callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:143:in `pass'
rack-cache (1.2) lib/rack/cache/context.rb:155:in `invalidate'
rack-cache (1.2) lib/rack/cache/context.rb:71:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
railties (3.2.9) lib/rails/engine.rb:479:in `call'
railties (3.2.9) lib/rails/application.rb:223:in `call'
railties (3.2.9) lib/rails/railtie/configurable.rb:30:in `method_missing'
passenger (3.0.18) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request'
passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.18) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
passenger (3.0.18) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
passenger (3.0.18) lib/phusion_passenger/utils.rb:470:in `safe_fork'
passenger (3.0.18) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.18) lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.18) helper-scripts/passenger-spawn-server:99:in `<main>'
ikehz commented 11 years ago

on development:

Started POST "/users" for 127.0.0.1 at 2012-12-24 20:43:50 -0500
Processing by Devise::RegistrationsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"2hrFFbyh8qqW1FbrAd85DP1l3F4hBmtS0JC0J+QWF1k=", "user"=>{"username"=>"ihmccreery", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "email"=>"ihmcreery@gmail.com"}, "commit"=>"Sign up"}
   (0.1ms)  BEGIN
  User Exists (35.1ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = 'ihmcreery@gmail.com' LIMIT 1
  User Exists (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."username" = 'ihmccreery' LIMIT 1
  User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."confirmation_token" = 'fssegGeBmhdc1RPByd2t' LIMIT 1
  SQL (38.7ms)  INSERT INTO "users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "failed_attempts", "last_sign_in_at", "last_sign_in_ip", "locked_at", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "unconfirmed_email", "unlock_token", "updated_at", "username") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id"  [["confirmation_sent_at", Tue, 25 Dec 2012 01:43:51 UTC +00:00], ["confirmation_token", "fssegGeBmhdc1RPByd2t"], ["confirmed_at", nil], ["created_at", Tue, 25 Dec 2012 01:43:51 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "ihmcreery@gmail.com"], ["encrypted_password", "$2a$10$Nasva0AJ4fTyluThll1Td.WUJUJWQB.ZQrYkh/BAFyWojNk4nuDay"], ["failed_attempts", 0], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["locked_at", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["unconfirmed_email", nil], ["unlock_token", nil], ["updated_at", Tue, 25 Dec 2012 01:43:51 UTC +00:00], ["username", "ihmccreery"]]
  Rendered devise/mailer/confirmation_instructions.html.erb (2.3ms)

Sent mail to ihmcreery@gmail.com (68ms)
Date: Mon, 24 Dec 2012 20:43:52 -0500
From: uniter@unite.org
Reply-To: uniter@unite.org
To: ihmcreery@gmail.com
Message-ID: <50d904d87c6bf_f633fca2d035ad4973af@Huron.local.mail>
Subject: Confirmation instructions
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p>Welcome ihmccreery!</p>

<p>You can confirm your account email through the link below:</p>

<p><a href="http://localhost:3000/users/confirmation?confirmation_token=fssegGeBmhdc1RPByd2t">Confirm my account</a></p>

   (0.8ms)  COMMIT
Redirected to http://localhost:3000/
Completed 302 Found in 2063ms (ActiveRecord: 0.0ms)

Started GET "/" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Processing by HomeController#index as HTML
  Rendered home/index.html.erb within layouts/application (0.1ms)
  Rendered layouts/_flash_messages.html.erb (0.2ms)
Completed 200 OK in 31ms (Views: 29.9ms | ActiveRecord: 0.0ms)

Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /application.css - 304 Not Modified (2ms)

Started GET "/assets/bootstrap_and_overrides.css?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /bootstrap_and_overrides.css - 304 Not Modified (0ms)

Started GET "/assets/global.css?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /global.css - 304 Not Modified (0ms)

Started GET "/assets/organizations.css?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /organizations.css - 304 Not Modified (0ms)

Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /jquery.js - 304 Not Modified (0ms)

Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /jquery_ujs.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-transition.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-transition.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-alert.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-alert.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-modal.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-modal.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-dropdown.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-scrollspy.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-tab.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-tab.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-tooltip.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-popover.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-popover.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-button.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-button.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-collapse.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-carousel.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-typeahead.js - 304 Not Modified (0ms)

Started GET "/assets/twitter/bootstrap/bootstrap-affix.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:52 -0500
Served asset /twitter/bootstrap/bootstrap-affix.js - 304 Not Modified (0ms)

Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:53 -0500
Served asset /bootstrap.js - 304 Not Modified (0ms)

Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:53 -0500
Served asset /application.js - 304 Not Modified (2ms)

Started GET "/assets/twitter/bootstrap.js?body=1" for 127.0.0.1 at 2012-12-24 20:43:53 -0500
Served asset /twitter/bootstrap.js - 304 Not Modified (1ms)
ikehz commented 11 years ago

After adding

config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true

to development.rb,

Started POST "/users" for 127.0.0.1 at 2012-12-25 17:34:22 -0500
Processing by Devise::RegistrationsController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"2hrFFbyh8qqW1FbrAd85DP1l3F4hBmtS0JC0J+QWF1k=", "user"=>{"username"=>"ihmccreery", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "email"=>"ihmccreery@gmail.com"}, "commit"=>"Sign up"}
   (0.2ms)  BEGIN
  User Exists (2.2ms)  SELECT 1 AS one FROM "users" WHERE "users"."email" = 'ihmccreery@gmail.com' LIMIT 1
  User Exists (0.4ms)  SELECT 1 AS one FROM "users" WHERE "users"."username" = 'ihmccreery' LIMIT 1
  User Load (0.6ms)  SELECT "users".* FROM "users" WHERE "users"."confirmation_token" = '6BzYKrpxT3pF4n9V3rnB' LIMIT 1
  SQL (1.8ms)  INSERT INTO "users" ("confirmation_sent_at", "confirmation_token", "confirmed_at", "created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "failed_attempts", "last_sign_in_at", "last_sign_in_ip", "locked_at", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "unconfirmed_email", "unlock_token", "updated_at", "username") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id"  [["confirmation_sent_at", Tue, 25 Dec 2012 22:34:23 UTC +00:00], ["confirmation_token", "6BzYKrpxT3pF4n9V3rnB"], ["confirmed_at", nil], ["created_at", Tue, 25 Dec 2012 22:34:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "ihmccreery@gmail.com"], ["encrypted_password", "$2a$10$vSwXLJJYv1aEiteYUJMxQ.NLITvqU7fV56CMa53/BgCp4R7y2Syi6"], ["failed_attempts", 0], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["locked_at", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["unconfirmed_email", nil], ["unlock_token", nil], ["updated_at", Tue, 25 Dec 2012 22:34:23 UTC +00:00], ["username", "ihmccreery"]]
  Rendered devise/mailer/confirmation_instructions.html.erb (1.8ms)

Sent mail to ihmccreery@gmail.com (119ms)
Date: Tue, 25 Dec 2012 17:34:24 -0500
From: uniter@unite.org
Reply-To: uniter@unite.org
To: ihmccreery@gmail.com
Message-ID: <50da29f01eea7_16143fd728835ad89099b@Huron.local.mail>
Subject: Confirmation instructions
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p>Welcome ihmccreery!</p>

<p>You can confirm your account email through the link below:</p>

<p><a href="http://localhost:3000/users/confirmation?confirmation_token=6BzYKrpxT3pF4n9V3rnB">Confirm my account</a></p>

   (0.3ms)  ROLLBACK
Completed 500 Internal Server Error in 1639ms

Errno::ECONNREFUSED (Connection refused - connect(2)):
  /Users/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:540:in `initialize'
  /Users/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:540:in `open'
  /Users/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:540:in `tcp_socket'
  /Users/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:549:in `block in do_start'
  /Users/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
  /Users/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
  /Users/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:549:in `do_start'
  /Users/ihm/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/net/smtp.rb:519:in `start'
  mail (2.4.4) lib/mail/network/delivery_methods/smtp.rb:144:in `deliver!'
  mail (2.4.4) lib/mail/message.rb:2034:in `do_delivery'
  mail (2.4.4) lib/mail/message.rb:229:in `block in deliver'
  actionmailer (3.2.9) lib/action_mailer/base.rb:415:in `block in deliver_mail'
  activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
  activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
  actionmailer (3.2.9) lib/action_mailer/base.rb:413:in `deliver_mail'
  mail (2.4.4) lib/mail/message.rb:229:in `deliver'
  devise (2.1.2) lib/devise/models/authenticatable.rb:163:in `send_devise_notification'
  devise (2.1.2) lib/devise/models/confirmable.rb:128:in `send_on_create_confirmation_instructions'
  activesupport (3.2.9) lib/active_support/callbacks.rb:416:in `_run__4429147871112123548__create__3988367078582929861__callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
  activerecord (3.2.9) lib/active_record/callbacks.rb:268:in `create'
  activerecord (3.2.9) lib/active_record/persistence.rb:348:in `create_or_update'
  activerecord (3.2.9) lib/active_record/callbacks.rb:264:in `block in create_or_update'
  activesupport (3.2.9) lib/active_support/callbacks.rb:414:in `_run__4429147871112123548__save__3988367078582929861__callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
  activerecord (3.2.9) lib/active_record/callbacks.rb:264:in `create_or_update'
  activerecord (3.2.9) lib/active_record/persistence.rb:84:in `save'
  activerecord (3.2.9) lib/active_record/validations.rb:50:in `save'
  activerecord (3.2.9) lib/active_record/attribute_methods/dirty.rb:22:in `save'
  activerecord (3.2.9) lib/active_record/transactions.rb:259:in `block (2 levels) in save'
  activerecord (3.2.9) lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
  activerecord (3.2.9) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
  activerecord (3.2.9) lib/active_record/transactions.rb:208:in `transaction'
  activerecord (3.2.9) lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
  activerecord (3.2.9) lib/active_record/transactions.rb:259:in `block in save'
  activerecord (3.2.9) lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
  activerecord (3.2.9) lib/active_record/transactions.rb:258:in `save'
  devise (2.1.2) app/controllers/devise/registrations_controller.rb:15:in `create'
  actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  actionpack (3.2.9) lib/abstract_controller/base.rb:167:in `process_action'
  actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in `process_action'
  actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
  activesupport (3.2.9) lib/active_support/callbacks.rb:458:in `_run__3873377862426109692__process_action__1800297688347827742__callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
  actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
  actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
  activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
  activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
  actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
  actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
  activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  actionpack (3.2.9) lib/abstract_controller/base.rb:121:in `process'
  actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in `process'
  actionpack (3.2.9) lib/action_controller/metal.rb:203:in `dispatch'
  actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
  actionpack (3.2.9) lib/action_controller/metal.rb:246:in `block in action'
  actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `call'
  actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
  actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:in `call'
  actionpack (3.2.9) lib/action_dispatch/routing/mapper.rb:42:in `call'
  journey (1.0.4) lib/journey/router.rb:68:in `block in call'
  journey (1.0.4) lib/journey/router.rb:56:in `each'
  journey (1.0.4) lib/journey/router.rb:56:in `call'
  actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
  warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
  warden (1.2.1) lib/warden/manager.rb:34:in `catch'
  warden (1.2.1) lib/warden/manager.rb:34:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  rack (1.4.1) lib/rack/etag.rb:23:in `call'
  rack (1.4.1) lib/rack/conditionalget.rb:35:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
  rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
  rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
  activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
  activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__3326272592917379014__call__3988367078582929861__callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
  activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
  activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
  railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.1) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.1) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
  railties (3.2.9) lib/rails/engine.rb:479:in `call'
  railties (3.2.9) lib/rails/application.rb:223:in `call'
  rack (1.4.1) lib/rack/content_length.rb:14:in `call'
  railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
  thin (1.5.0) lib/thin/connection.rb:81:in `block in pre_process'
  thin (1.5.0) lib/thin/connection.rb:79:in `catch'
  thin (1.5.0) lib/thin/connection.rb:79:in `pre_process'
  thin (1.5.0) lib/thin/connection.rb:54:in `process'
  thin (1.5.0) lib/thin/connection.rb:39:in `receive_data'
  eventmachine (1.0.0) lib/eventmachine.rb:187:in `run_machine'
  eventmachine (1.0.0) lib/eventmachine.rb:187:in `run'
  thin (1.5.0) lib/thin/backends/base.rb:63:in `start'
  thin (1.5.0) lib/thin/server.rb:159:in `start'
  rack (1.4.1) lib/rack/handler/thin.rb:13:in `run'
  rack (1.4.1) lib/rack/server.rb:265:in `start'
  railties (3.2.9) lib/rails/commands/server.rb:70:in `start'
  railties (3.2.9) lib/rails/commands.rb:55:in `block in <top (required)>'
  railties (3.2.9) lib/rails/commands.rb:50:in `tap'
  railties (3.2.9) lib/rails/commands.rb:50:in `<top (required)>'
  script/rails:6:in `require'
  script/rails:6:in `<main>'

  Rendered /Users/ihm/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (3.7ms)
  Rendered /Users/ihm/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.8ms)
  Rendered /Users/ihm/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (36.0ms)
ikehz commented 11 years ago

After installing MailCatcher, emails are getting send and caught in development.

ikehz commented 11 years ago

After adding

  # SendMail settings
  config.action_mailer.delivery_method = :sendmail

to production.rb, we're set to go!