Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change password caused a 500 #23

Open
christiankn opened this issue May 1, 2012 · 1 comment
Open

Change password caused a 500 #23

christiankn opened this issue May 1, 2012 · 1 comment
Labels

Comments

@christiankn
Copy link
Contributor

A ArgumentError occurred in sessions#mail_password:

At least one recipient (To, Cc or Bcc) is required to send a message
mail (2.4.3) lib/mail/network/delivery_methods/smtp.rb:104:in `deliver!'


Request:

  • URL : https://internal.isfit.org/mail_password
  • IP address: 129.241.37.217
  • Parameters: {"utf8"=>"✓", "authenticity_token"=>"wboHRwuMgljVqNB60k2AzseL7GYzsmhO8k3XXtfwKfQ=", "username"=>"sindrjoh", "commit"=>"Change password", "action"=>"mail_password", "controller"=>"sessions"}
  • Rails root: /srv/www/internal.isfit.org/releases/20120430230933
  • Timestamp : 2012-05-01 14:46:10 UTC

Session:

  • session id: [FILTERED]
  • data: {"session_id"=>"b922cfdc8b4159da5091ed31115198f9",
    "return_to"=>"https://internal.isfit.org/",
    "_csrf_token"=>"wboHRwuMgljVqNB60k2AzseL7GYzsmhO8k3XXtfwKfQ="}

Environment:

  • CONTENT_LENGTH : 121
  • CONTENT_TYPE : application/x-www-form-urlencoded
  • DOCUMENT_ROOT : /srv/www/internal.isfit.org/current/public
  • HTTPS : on
  • HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
  • HTTP_ACCEPT_ENCODING : gzip, deflate
  • HTTP_ACCEPT_LANGUAGE : nb-no,nb;q=0.9,no-no;q=0.8,no;q=0.6,nn-no;q=0.5,nn;q=0.4,en-us;q=0.3,en;q=0.1
  • HTTP_CONNECTION : keep-alive
  • HTTP_COOKIE : __utma=210409357.538295525.1334089935.1334765622.1335387444.6; __utmz=210409357.1334765622.5.4.utmcsr=facebook.com|utmccn=(referral)|utmcmd=referral|utmcct=/l.php; __utma=144011885.1681494095.1335795533.1335798631.1335883284.3; __utmz=144011885.1335795533.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _internal_isfit_org_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJWI5MjJjZmRjOGI0MTU5ZGE1MDkxZWQzMTExNTE5OGY5BjsAVEkiDnJldHVybl90bwY7AEZJIiBodHRwczovL2ludGVybmFsLmlzZml0Lm9yZy8GOwBGSSIQX2NzcmZfdG9rZW4GOwBGSSIxd2JvSFJ3dU1nbGpWcU5CNjBrMkF6c2VMN0dZenNtaE84azNYWHRmd0tmUT0GOwBG--3ba25ea0cc72db1f82e1544190d0d9f77cecf41e; __utmb=144011885.3.10.1335883284; __utmc=144011885
  • HTTP_HOST : internal.isfit.org
  • HTTP_REFERER : https://internal.isfit.org/forgot_password
  • HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
  • ORIGINAL_FULLPATH : /mail_password
  • PASSENGER_CONNECT_PASSWORD : [FILTERED]
  • PATH_INFO : /mail_password
  • QUERY_STRING :
  • REMOTE_ADDR : 129.241.37.217
  • REMOTE_PORT : 52442
  • REQUEST_METHOD : POST
  • REQUEST_URI : /mail_password
  • SCRIPT_NAME :
  • SERVER_ADDR : 129.241.210.24
  • SERVER_ADMIN : [no address given]
  • SERVER_NAME : internal.isfit.org
  • SERVER_PORT : 443
  • SERVER_PROTOCOL : HTTP/1.1
  • SERVER_SOFTWARE : Apache/2.2.14 (Ubuntu)
  • SSL_TLS_SNI : internal.isfit.org
  • _ : _
  • action_controller.instance : sessions#mail_password
  • action_dispatch.backtrace_cleaner : #Rails::BacktraceCleaner:0x00000005c74200
  • action_dispatch.cookies : #ActionDispatch::Cookies::CookieJar:0x000000059f85f8
  • action_dispatch.logger : #ActiveSupport::TaggedLogging:0x000000042f3ce0
  • action_dispatch.parameter_filter : [:password, /RAW_POST_DATA/]
  • action_dispatch.remote_ip : 129.241.37.217
  • action_dispatch.request.content_type : application/x-www-form-urlencoded
  • action_dispatch.request.formats : [text/html]
  • action_dispatch.request.parameters : {"utf8"=>"✓", "authenticity_token"=>"wboHRwuMgljVqNB60k2AzseL7GYzsmhO8k3XXtfwKfQ=", "username"=>"sindrjoh", "commit"=>"Change password", "action"=>"mail_password", "controller"=>"sessions"}
  • action_dispatch.request.path_parameters : {:action=>"mail_password", :controller=>"sessions"}
  • action_dispatch.request.query_parameters : {}
  • action_dispatch.request.request_parameters : {"utf8"=>"✓", "authenticity_token"=>"wboHRwuMgljVqNB60k2AzseL7GYzsmhO8k3XXtfwKfQ=", "username"=>"sindrjoh", "commit"=>"Change password"}
  • action_dispatch.request.unsigned_session_cookie: {"session_id"=>"b922cfdc8b4159da5091ed31115198f9", "return_to"=>"https://internal.isfit.org/", "_csrf_token"=>"wboHRwuMgljVqNB60k2AzseL7GYzsmhO8k3XXtfwKfQ="}
  • action_dispatch.request_id : 677add9004a7a15e3166100c71e616c4
  • action_dispatch.routes : #ActionDispatch::Routing::RouteSet:0x00000004981198
  • action_dispatch.secret_token : 6d962b578883a443f73c7102a70158f057bcf5d89a98e2b1c038eaa2cfd095c254058b966938c10865a79283757b0c8a9b0bf8144d6ddffce25486792dd18a25
  • action_dispatch.show_detailed_exceptions : false
  • action_dispatch.show_exceptions : true
  • exception_notifier.options : {:sender_address=>""Exceptional bot" exceptional@isfit.org", :exception_recipients=>["exceptional@isfit.org"], :email_prefix=>"[Exception in internal.isfit.org] ", :sections=>["request", "session", "environment", "backtrace"], :background_sections=>["backtrace", "data"], :verbose_subject=>true, :normalize_subject=>false, :ignore_exceptions=>["CanCan::AccessDenied", "ActiveRecord::RecordNotFound", "AbstractController::ActionNotFound", "ActionController::RoutingError"], :ignore_crawlers=>[], :ignore_if=>#<Proc:0x00000004f213f0@/srv/www/internal.isfit.org/shared/bundle/ruby/1.9.1/gems/exception_notification-2.6.1/lib/exception_notifier.rb:30 (lambda)>}
  • rack-cache.allow_reload : false
  • rack-cache.allow_revalidate : false
  • rack-cache.cache_key : Rack::Cache::Key
  • rack-cache.default_ttl : 0
  • rack-cache.entitystore : rails:/
  • rack-cache.ignore_headers : ["Set-Cookie"]
  • rack-cache.metastore : rails:/
  • rack-cache.private_headers : ["Authorization", "Cookie"]
  • rack-cache.storage : #Rack::Cache::Storage:0x00000004013c50
  • rack-cache.use_native_ttl : false
  • rack-cache.verbose : true
  • rack.errors : #IO:0x000000010f83f8
  • rack.input : #PhusionPassenger::Utils::RewindableInput:0x000000059fe3e0
  • rack.multiprocess : true
  • rack.multithread : false
  • rack.request.cookie_hash : {"__utma"=>"210409357.538295525.1334089935.1334765622.1335387444.6", "__utmz"=>"210409357.1334765622.5.4.utmcsr=facebook.com|utmccn=(referral)|utmcmd=referral|utmcct=/l.php", "_internal_isfit_org_session"=>"BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJWI5MjJjZmRjOGI0MTU5ZGE1MDkxZWQzMTExNTE5OGY5BjsAVEkiDnJldHVybl90bwY7AEZJIiBodHRwczovL2ludGVybmFsLmlzZml0Lm9yZy8GOwBGSSIQX2NzcmZfdG9rZW4GOwBGSSIxd2JvSFJ3dU1nbGpWcU5CNjBrMkF6c2VMN0dZenNtaE84azNYWHRmd0tmUT0GOwBG--3ba25ea0cc72db1f82e1544190d0d9f77cecf41e", "__utmb"=>"144011885.3.10.1335883284", "__utmc"=>"144011885"}
  • rack.request.cookie_string : __utma=210409357.538295525.1334089935.1334765622.1335387444.6; __utmz=210409357.1334765622.5.4.utmcsr=facebook.com|utmccn=(referral)|utmcmd=referral|utmcct=/l.php; __utma=144011885.1681494095.1335795533.1335798631.1335883284.3; __utmz=144011885.1335795533.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _internal_isfit_org_session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRkkiJWI5MjJjZmRjOGI0MTU5ZGE1MDkxZWQzMTExNTE5OGY5BjsAVEkiDnJldHVybl90bwY7AEZJIiBodHRwczovL2ludGVybmFsLmlzZml0Lm9yZy8GOwBGSSIQX2NzcmZfdG9rZW4GOwBGSSIxd2JvSFJ3dU1nbGpWcU5CNjBrMkF6c2VMN0dZenNtaE84azNYWHRmd0tmUT0GOwBG--3ba25ea0cc72db1f82e1544190d0d9f77cecf41e; __utmb=144011885.3.10.1335883284; __utmc=144011885
  • rack.request.form_hash : {"utf8"=>"✓", "authenticity_token"=>"wboHRwuMgljVqNB60k2AzseL7GYzsmhO8k3XXtfwKfQ=", "username"=>"sindrjoh", "commit"=>"Change password"}
  • rack.request.form_input : #PhusionPassenger::Utils::RewindableInput:0x000000059fe3e0
  • rack.request.form_vars : utf8=%E2%9C%93&authenticity_token=wboHRwuMgljVqNB60k2AzseL7GYzsmhO8k3XXtfwKfQ%3D&username=sindrjoh&commit=Change+password
  • rack.request.query_hash : {}
  • rack.request.query_string :
  • rack.run_once : false
  • rack.session : {"session_id"=>"b922cfdc8b4159da5091ed31115198f9", "return_to"=>"https://internal.isfit.org/", "_csrf_token"=>"wboHRwuMgljVqNB60k2AzseL7GYzsmhO8k3XXtfwKfQ="}
  • rack.session.options : {:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :coder=>#Rack::Session::Cookie::Base64::Marshal:0x00000004f21120, :id=>"b922cfdc8b4159da5091ed31115198f9"}
  • rack.url_scheme : https
  • rack.version : [1, 0]
  • Process: 28086
  • Server : nova

Backtrace:

mail (2.4.3) lib/mail/network/delivery_methods/smtp.rb:104:in deliver!' mail (2.4.3) lib/mail/message.rb:2034:indo_delivery'
mail (2.4.3) lib/mail/message.rb:229:in block in deliver' actionmailer (3.2.2) lib/action_mailer/base.rb:414:inblock in deliver_mail'
activesupport (3.2.2) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.2) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.2) lib/active_support/notifications.rb:123:in instrument' actionmailer (3.2.2) lib/action_mailer/base.rb:412:indeliver_mail'
mail (2.4.3) lib/mail/message.rb:229:in deliver' app/controllers/sessions_controller.rb:39:inmail_password'
actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.2) lib/abstract_controller/base.rb:167:inprocess_action'
actionpack (3.2.2) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.2) lib/abstract_controller/callbacks.rb:18:inblock in process_action'
activesupport (3.2.2) lib/active_support/callbacks.rb:425:in _run__4079881184085315696__process_action__1101644450821299066__callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:405:in__run_callback'
activesupport (3.2.2) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (3.2.2) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.2) lib/action_controller/metal/rescue.rb:29:inprocess_action'
actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.2) lib/active_support/notifications.rb:123:inblock in instrument'
activesupport (3.2.2) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.2) lib/active_support/notifications.rb:123:ininstrument'
actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.2) lib/action_controller/metal/params_wrapper.rb:205:inprocess_action'
activerecord (3.2.2) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.2) lib/abstract_controller/base.rb:121:inprocess'
actionpack (3.2.2) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.2) lib/action_controller/metal.rb:203:indispatch'
actionpack (3.2.2) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.2) lib/action_controller/metal.rb:246:inblock in action'
actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:67:in call' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:67:indispatch'
actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:30:in call' journey (1.0.3) lib/journey/router.rb:68:inblock in call'
journey (1.0.3) lib/journey/router.rb:56:in each' journey (1.0.3) lib/journey/router.rb:56:incall'
actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:594:in call' exception_notification (2.6.1) lib/exception_notifier.rb:34:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.1) lib/rack/etag.rb:23:incall'
rack (1.4.1) lib/rack/conditionalget.rb:35:in call' actionpack (3.2.2) lib/action_dispatch/middleware/head.rb:14:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.2) lib/action_dispatch/middleware/flash.rb:242:incall'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/cookies.rb:338:in call' activerecord (3.2.2) lib/active_record/query_cache.rb:64:incall'
activerecord (3.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in call' actionpack (3.2.2) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call'
activesupport (3.2.2) lib/active_support/callbacks.rb:405:in _run__3024021106291323339__call__3163257988688270455__callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:405:in__run_callback'
activesupport (3.2.2) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (3.2.2) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.2) lib/action_dispatch/middleware/remote_ip.rb:31:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.2) lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
railties (3.2.2) lib/rails/rack/logger.rb:26:in call_app' railties (3.2.2) lib/rails/rack/logger.rb:16:incall'
actionpack (3.2.2) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.1) lib/rack/methodoverride.rb:21:incall'
rack (1.4.1) lib/rack/runtime.rb:17:in call' activesupport (3.2.2) lib/active_support/cache/strategy/local_cache.rb:72:incall'
rack (1.4.1) lib/rack/lock.rb:15:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward'
rack-cache (1.2) lib/rack/cache/context.rb:143:in pass' rack-cache (1.2) lib/rack/cache/context.rb:155:ininvalidate'
rack-cache (1.2) lib/rack/cache/context.rb:71:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall'
railties (3.2.2) lib/rails/engine.rb:479:in call' railties (3.2.2) lib/rails/application.rb:220:incall'
railties (3.2.2) lib/rails/railtie/configurable.rb:30:in method_missing' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_request_handler.rb:513:in accept_and_process_next_request' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:205:in start_request_handler' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:170:inblock in handle_spawn_application'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/utils.rb:479:in safe_fork' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:165:inhandle_spawn_application'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:357:in server_main_loop' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:206:instart_synchronously'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:180:in start' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/rack/application_spawner.rb:128:instart'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:253:in block (2 levels) in spawn_rack_application' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:246:in block in spawn_rack_application' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server_collection.rb:82:inblock in synchronize'
internal:prelude:10:in synchronize' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:244:in spawn_rack_application' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:137:inspawn_application'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/spawn_manager.rb:275:in handle_spawn_application' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop'
/home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/lib/phusion_passenger/abstract_server.rb:206:in start_synchronously' /home/passenger/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/helper-scripts/passenger-spawn-server:99:in

'

@dagingaa
Copy link
Contributor

dagingaa commented May 1, 2012

This is an error caused by a user not having a private_email. I guess this comes from the user being created manuelly after the time of registrations, and applicants-model not having the proper validates-fields in internal.

I fixed it for now by manually adding a private_email to the affected user, but this issue should be fixed in the applicant-model so it does not happen again.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants