EngineY on Heroku

16 views
Skip to first unread message

Tom Scott

unread,
Aug 5, 2010, 10:44:04 AM8/5/10
to EngineY
Hey, I'm having a small problem with new user creation on the
production environment. I noticed it when I was trying to get going on
Heroku. It's happening at home as well, except the error looks more
like this: http://gist.github.com/509821, so I believe it to be
deployment-agnostic and database-agnostic. I would fix it myself but I
haven't the slightest idea how to get into net/smtp.rb (especially on
heroku) and figure all this shit out.

Here's the error trace:
==================================================================================
Processing UsersController#create (for 69.142.78.178 at 2010-08-05
07:32:51) [POST]
Parameters: {"commit"=>"Signup",
"user"=>{"password_confirmation"=>"sha1", "last_name"=>"acula",
"password"=>"sha1", "login"=>"yeah", "email"=>"sco...@uarts.edu",
"first_name"=>"doctor"}}
Sent mail to sco...@uarts.edu

ArgumentError (wrong number of arguments (3 for 2)):
/usr/ruby1.8.7/lib/ruby/1.8/net/smtp.rb:525:in `start'
app/models/user_observer.rb:22:in `after_create'
/usr/ruby1.8.7/lib/ruby/1.8/observer.rb:185:in `notify_observers'
/usr/ruby1.8.7/lib/ruby/1.8/observer.rb:184:in `each'
/usr/ruby1.8.7/lib/ruby/1.8/observer.rb:184:in `notify_observers'
app/controllers/users_controller.rb:247:in `create'
/home/heroku_rack/lib/static_assets.rb:9:in `call'
/home/heroku_rack/lib/last_access.rb:25:in `call'
/home/heroku_rack/lib/date_header.rb:14:in `call'
thin (1.2.6) lib/thin/connection.rb:76:in `pre_process'
thin (1.2.6) lib/thin/connection.rb:74:in `catch'
thin (1.2.6) lib/thin/connection.rb:74:in `pre_process'
thin (1.2.6) lib/thin/connection.rb:57:in `process'
thin (1.2.6) lib/thin/connection.rb:42:in `receive_data'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
thin (1.2.6) lib/thin/backends/base.rb:57:in `start'
thin (1.2.6) lib/thin/server.rb:156:in `start'
thin (1.2.6) lib/thin/controllers/controller.rb:80:in `start'
thin (1.2.6) lib/thin/runner.rb:177:in `send'
thin (1.2.6) lib/thin/runner.rb:177:in `run_command'
thin (1.2.6) lib/thin/runner.rb:143:in `run!'
thin (1.2.6) bin/thin:6
/usr/ruby1.8.7/bin/thin:19:in `load'
/usr/ruby1.8.7/bin/thin:19
==================================================================================

For convenience, here is the code that Heroku finds fault with.
UsersController: http://github.com/timothyf/EngineY/blob/master/app/controllers/users_controller.rb
UserObserver: http://github.com/timothyf/EngineY/blob/master/app/models/user_observer.rb
UserMailer: http://github.com/timothyf/EngineY/blob/master/app/models/user_mailer.rb



Steven Rogers

unread,
Aug 5, 2010, 11:36:18 AM8/5/10
to eng...@googlegroups.com

On Aug 5, 2010, at 9:44 AM, Tom Scott wrote:

> Hey, I'm having a small problem with new user creation on the
> production environment. I noticed it when I was trying to get going on
> Heroku.

remove gmail_smtp from vendor/plugins

SR

Reply all
Reply to author
Forward
0 new messages