plataformatec/devise — Issue #1536: Errno::EPIPE in Devise::RegistrationsController#create
Author: mvilrokx
Created: 2011-12-31 09:02:39+00:00
State: open

I have a rails application that I upgraded from 2.3 to 3.1 (through 3.0). I am using the latest devise gem with my rails 3.1 application and really didn't change anything except to get the app back up and running after the upgrade. However, devise emails are not going out (e.g. on registration) anymore. This was all working fine on Rails 2.3. After I set config.action_mailer.raise_delivery_errors = true on my development server (on Engine Yard), I am getting the above error. Here's the rest of the stack trace:

mail (2.3.0) lib/mail/network/delivery_methods/sendmail.rb:57:in `write'
mail (2.3.0) lib/mail/network/delivery_methods/sendmail.rb:57:in `puts'
mail (2.3.0) lib/mail/network/delivery_methods/sendmail.rb:57:in `block in call'
mail (2.3.0) lib/mail/network/delivery_methods/sendmail.rb:56:in `popen'
mail (2.3.0) lib/mail/network/delivery_methods/sendmail.rb:56:in `call'
mail (2.3.0) lib/mail/network/delivery_methods/sendmail.rb:52:in `deliver!'
mail (2.3.0) lib/mail/message.rb:1989:in `do_delivery'
mail (2.3.0) lib/mail/message.rb:230:in `block in deliver'
actionmailer (3.1.3) lib/action_mailer/base.rb:432:in `block in deliver_mail'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `block in instrument'
activesupport (3.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `instrument'
actionmailer (3.1.3) lib/action_mailer/base.rb:430:in `deliver_mail'
mail (2.3.0) lib/mail/message.rb:230:in `deliver'
devise (1.5.3) lib/devise/models/confirmable.rb:50:in `send_confirmation_instructions'
activesupport (3.1.3) lib/active_support/callbacks.rb:424:in `_run_create_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.3) lib/active_record/callbacks.rb:268:in `create'
activerecord (3.1.3) lib/active_record/persistence.rb:294:in `create_or_update'
activerecord (3.1.3) lib/active_record/callbacks.rb:264:in `block in create_or_update'
activesupport (3.1.3) lib/active_support/callbacks.rb:399:in `_run_save_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
activerecord (3.1.3) lib/active_record/callbacks.rb:264:in `create_or_update'
activerecord (3.1.3) lib/active_record/persistence.rb:37:in `save'
activerecord (3.1.3) lib/active_record/validations.rb:50:in `save'
activerecord (3.1.3) lib/active_record/attribute_methods/dirty.rb:22:in `save'
activerecord (3.1.3) lib/active_record/transactions.rb:241:in `block (2 levels) in save'
activerecord (3.1.3) lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
activerecord (3.1.3) lib/active_record/transactions.rb:208:in `transaction'
activerecord (3.1.3) lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
activerecord (3.1.3) lib/active_record/transactions.rb:241:in `block in save'
activerecord (3.1.3) lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
activerecord (3.1.3) lib/active_record/transactions.rb:240:in `save'
devise (1.5.3) app/controllers/devise/registrations_controller.rb:16:in `create'
actionpack (3.1.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.1.3) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.1.3) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.1.3) lib/active_support/callbacks.rb:452:in `_run__576969675__process_action__88874271__callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `block in instrument'
activesupport (3.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
activerecord (3.1.3) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.1.3) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.1.3) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.1.3) lib/action_controller/metal.rb:193:in `dispatch'
actionpack (3.1.3) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.1.3) lib/action_controller/metal.rb:236:in `block in action'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:65:in `call'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:29:in `call'
actionpack (3.1.3) lib/action_dispatch/routing/mapper.rb:41:in `call'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in recognize'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:68:in `optimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:532:in `call'
oa-core (0.3.2) lib/omniauth/strategy.rb:44:in `call!'
oa-core (0.3.2) lib/omniauth/strategy.rb:30:in `call'
oa-core (0.3.2) lib/omniauth/builder.rb:30:in `call'
warden (1.1.0) lib/warden/manager.rb:35:in `block in call'
warden (1.1.0) lib/warden/manager.rb:34:in `catch'
warden (1.1.0) lib/warden/manager.rb:34:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.3.5) lib/rack/etag.rb:23:in `call'
rack (1.3.5) lib/rack/conditionalget.rb:35:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/flash.rb:247:in `call'
rack (1.3.5) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.5) lib/rack/session/abstract/id.rb:190:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/cookies.rb:331:in `call'
activerecord (3.1.3) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (3.1.3) lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.3) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/reloader.rb:68:in `call'
rack (1.3.5) lib/rack/sendfile.rb:101:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.1.3) lib/rails/rack/logger.rb:13:in `call'
rack (1.3.5) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.1.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.3.5) lib/rack/lock.rb:15:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/static.rb:53:in `call'
railties (3.1.3) lib/rails/engine.rb:456:in `call'
railties (3.1.3) lib/rails/railtie/configurable.rb:30:in `method_missing'
/usr/lib/passenger/lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
/usr/lib/passenger/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/passenger/lib/phusion_passenger/rack/application_spawner.rb:120:in `run'
/usr/lib/passenger/lib/phusion_passenger/rack/application_spawner.rb:65:in `block in spawn_application'
/usr/lib/passenger/lib/phusion_passenger/utils.rb:252:in `safe_fork'
/usr/lib/passenger/lib/phusion_passenger/rack/application_spawner.rb:58:in `spawn_application'
/usr/lib/passenger/lib/phusion_passenger/rack/application_spawner.rb:41:in `spawn_application'
/usr/lib/passenger/lib/phusion_passenger/spawn_manager.rb:159:in `spawn_application'
/usr/lib/passenger/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/passenger/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/passenger/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/passenger/bin/passenger-spawn-server:63:in `

'

Any help would be appreciated.