Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Airbrake] [Production] 535 Incorrect authentication data #657

Open
1000miles opened this issue Oct 2, 2017 · 2 comments
Open

[Airbrake] [Production] 535 Incorrect authentication data #657

1000miles opened this issue Oct 2, 2017 · 2 comments

Comments

@1000miles
Copy link
Collaborator

1000miles commented Oct 2, 2017

Example 1: users#update

Airbrake error: #3836
Airbrake project: wheelmap

Error type: Net::SMTPAuthenticationError
Error message: 535 Incorrect authentication data
Where: users#update
Occurred at: Oct 02, 2017 10:21:18 UTC
First seen at: Oct 02, 2017 10:21:18 UTC
Occurrences: 1 ( since last deploy on Oct 02, 2017 10:18:34 UTC)
Severity: error

URL: https://wheelmap.org/profile
File: /opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb

Backtrace:

/opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:976 in check_auth_response
/opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:751 in auth_login
/opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:732 in authenticate
/opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:567 in do_start
/opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:520 in start
/gems/mail-2.6.4/lib/mail/network/delivery_methods/smtp.rb:113 in deliver!
/gems/mail-2.6.4/lib/mail/message.rb:2149 in do_delivery
/gems/mail-2.6.4/lib/mail/message.rb:237 in block in deliver
/gems/actionmailer-4.1.15/lib/action_mailer/base.rb:527 in block in deliver_mail
/gems/activesupport-4.1.15/lib/active_support/notifications.rb:159 in block in instrument
/gems/activesupport-4.1.15/lib/active_support/notifications/instrumenter.rb:20 in instrument
/gems/activesupport-4.1.15/lib/active_support/notifications.rb:159 in instrument
/gems/actionmailer-4.1.15/lib/action_mailer/base.rb:525 in deliver_mail
/gems/mail-2.6.4/lib/mail/message.rb:237 in deliver
/gems/devise-3.2.4/lib/devise/models/authenticatable.rb:173 in send_devise_notification
/gems/devise-3.2.4/lib/devise/models/confirmable.rb:102 in send_confirmation_instructions
app/models/user.rb:44 in send_email_confirmation
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:429 in block in make_lambda
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:143 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:143 in block in halting_and_conditional
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:501 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:501 in block in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:501 in each
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:501 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:86 in run_callbacks
/gems/airbrake-5.8.1/lib/airbrake/rails/active_record.rb:22 in run_callbacks
/gems/activerecord-4.1.15/lib/active_record/callbacks.rb:302 in create_or_update
/gems/activerecord-4.1.15/lib/active_record/persistence.rb:103 in save
/gems/activerecord-4.1.15/lib/active_record/validations.rb:51 in save
/gems/activerecord-4.1.15/lib/active_record/attribute_methods/dirty.rb:21 in save
/gems/activerecord-4.1.15/lib/active_record/transactions.rb:268 in block (2 levels) in save
/gems/activerecord-4.1.15/lib/active_record/transactions.rb:329 in block in with_transaction_returning_status
/gems/activerecord-4.1.15/lib/active_record/connection_adapters/abstract/database_statements.rb:201 in block in transaction
/gems/activerecord-4.1.15/lib/active_record/connection_adapters/abstract/database_statements.rb:209 in within_new_transaction
/gems/activerecord-4.1.15/lib/active_record/connection_adapters/abstract/database_statements.rb:201 in transaction
/gems/activerecord-4.1.15/lib/active_record/transactions.rb:208 in transaction
/gems/activerecord-4.1.15/lib/active_record/transactions.rb:326 in with_transaction_returning_status
/gems/activerecord-4.1.15/lib/active_record/transactions.rb:268 in block in save
/gems/activerecord-4.1.15/lib/active_record/transactions.rb:283 in rollback_active_record_state!
/gems/activerecord-4.1.15/lib/active_record/transactions.rb:267 in save
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/active_record_helper.rb:26 in block in save
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/transaction.rb:848 in with_database_metric_name
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent.rb:572 in with_database_metric_name
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/active_record_helper.rb:25 in save
app/controllers/users_controller.rb:30 in update
/gems/actionpack-4.1.15/lib/action_controller/metal/implicit_render.rb:4 in send_action
/gems/actionpack-4.1.15/lib/abstract_controller/base.rb:189 in process_action
/gems/actionpack-4.1.15/lib/action_controller/metal/rendering.rb:10 in process_action
/gems/actionpack-4.1.15/lib/abstract_controller/callbacks.rb:20 in block in process_action
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:113 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:113 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:552 in block (2 levels) in compile
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:502 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:502 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:495 in block (2 levels) in around
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:306 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:306 in block (2 levels) in halting
/gems/cacheable_flash-0.3.4/lib/cacheable_flash.rb:31 in write_flash_to_cookie
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:429 in block in make_lambda
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:305 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:305 in block in halting
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:494 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:494 in block in around
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:502 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:502 in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:86 in run_callbacks
/gems/actionpack-4.1.15/lib/abstract_controller/callbacks.rb:19 in process_action
/gems/actionpack-4.1.15/lib/action_controller/metal/rescue.rb:29 in process_action
/gems/actionpack-4.1.15/lib/action_controller/metal/instrumentation.rb:32 in block in process_action
/gems/activesupport-4.1.15/lib/active_support/notifications.rb:159 in block in instrument
/gems/activesupport-4.1.15/lib/active_support/notifications/instrumenter.rb:20 in instrument
/gems/activesupport-4.1.15/lib/active_support/notifications.rb:159 in instrument
/gems/actionpack-4.1.15/lib/action_controller/metal/instrumentation.rb:30 in process_action
/gems/actionpack-4.1.15/lib/action_controller/metal/params_wrapper.rb:250 in process_action
/gems/activerecord-4.1.15/lib/active_record/railties/controller_runtime.rb:18 in process_action
/gems/actionpack-4.1.15/lib/abstract_controller/base.rb:136 in process
/gems/actionview-4.1.15/lib/action_view/rendering.rb:30 in process
/gems/actionpack-4.1.15/lib/action_controller/metal.rb:196 in dispatch
/gems/actionpack-4.1.15/lib/action_controller/metal/rack_delegation.rb:13 in dispatch
/gems/actionpack-4.1.15/lib/action_controller/metal.rb:232 in block in action
/gems/actionpack-4.1.15/lib/action_dispatch/routing/route_set.rb:80 in call
/gems/actionpack-4.1.15/lib/action_dispatch/routing/route_set.rb:80 in dispatch
/gems/actionpack-4.1.15/lib/action_dispatch/routing/route_set.rb:48 in call
/gems/actionpack-4.1.15/lib/action_dispatch/journey/router.rb:73 in block in call
/gems/actionpack-4.1.15/lib/action_dispatch/journey/router.rb:59 in each
/gems/actionpack-4.1.15/lib/action_dispatch/journey/router.rb:59 in call
/gems/actionpack-4.1.15/lib/action_dispatch/routing/route_set.rb:690 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/apipie-rails-0.3.6/lib/apipie/static_dispatcher.rb:65 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186 in call!
/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/apipie-rails-0.3.6/lib/apipie/extractor/recorder.rb:132 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/rack/agent_hooks.rb:30 in traced_call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/rack/browser_monitoring.rb:32 in traced_call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
lib/rack_i18n_locale_switcher.rb:29 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/warden-1.2.6/lib/warden/manager.rb:35 in block in call
/gems/warden-1.2.6/lib/warden/manager.rb:34 in catch
/gems/warden-1.2.6/lib/warden/manager.rb:34 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/rack-1.5.5/lib/rack/etag.rb:23 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/rack-1.5.5/lib/rack/conditionalget.rb:35 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/rack-1.5.5/lib/rack/head.rb:11 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/actionpack-4.1.15/lib/action_dispatch/middleware/params_parser.rb:27 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/actionpack-4.1.15/lib/action_dispatch/middleware/flash.rb:254 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:225 in context
/gems/rack-1.5.5/lib/rack/session/abstract/id.rb:220 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/flash_cookie_session-1.1.6/lib/flash_cookie_session/middleware.rb:30 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/actionpack-4.1.15/lib/action_dispatch/middleware/cookies.rb:562 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/activerecord-4.1.15/lib/active_record/query_cache.rb:36 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/airbrake-5.8.1/lib/airbrake/rack/middleware.rb:52 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/activerecord-4.1.15/lib/active_record/connection_adapters/abstract/connection_pool.rb:621 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/actionpack-4.1.15/lib/action_dispatch/middleware/callbacks.rb:29 in block in call
/gems/activesupport-4.1.15/lib/active_support/callbacks.rb:82 in run_callbacks
/gems/actionpack-4.1.15/lib/action_dispatch/middleware/callbacks.rb:27 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/actionpack-4.1.15/lib/action_dispatch/middleware/remote_ip.rb:76 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/actionpack-4.1.15/lib/action_dispatch/middleware/debug_exceptions.rb:17 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/actionpack-4.1.15/lib/action_dispatch/middleware/show_exceptions.rb:30 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/railties-4.1.15/lib/rails/rack/logger.rb:38 in call_app
/gems/railties-4.1.15/lib/rails/rack/logger.rb:22 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/actionpack-4.1.15/lib/action_dispatch/middleware/request_id.rb:21 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/rack-1.5.5/lib/rack/methodoverride.rb:21 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/rack-1.5.5/lib/rack/runtime.rb:17 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/activesupport-4.1.15/lib/active_support/cache/strategy/local_cache_middleware.rb:26 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/rack-1.5.5/lib/rack/sendfile.rb:112 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/librato-rack-0.6.0/lib/librato/rack.rb:94 in process_request
/gems/librato-rack-0.6.0/lib/librato/rack.rb:64 in call
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/railties-4.1.15/lib/rails/engine.rb:514 in call
/gems/railties-4.1.15/lib/rails/application.rb:144 in call
/gems/railties-4.1.15/lib/rails/railtie.rb:194 in public_send
/gems/railties-4.1.15/lib/rails/railtie.rb:194 in method_missing
/gems/newrelic_rpm-3.15.0.314/lib/new_relic/agent/instrumentation/middleware_tracing.rb:96 in call
/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:562 in process_client
/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:658 in worker_loop
/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:508 in spawn_missing_workers
/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:132 in start
/gems/unicorn-5.0.1/bin/unicorn:126 in <top (required)>
[GEM_ROOT]/bin/unicorn:23 in load
[GEM_ROOT]/bin/unicorn:23 in <main>
@1000miles
Copy link
Collaborator Author

1000miles commented Oct 2, 2017

Steps to reproduce:

  • I am successfully logged in on wheelmap.org
  • I go to my profile at https://wheelmap.org/profile/edit
  • I type in another e-mail address and click on save
  • I get the error We're sorry, but something went wrong.

According to the backtrace this seems to be the corresponding part where the error happens:

# https://github.com/sozialhelden/wheelmap/blob/master/app/models/user.rb#L40-L45

def send_email_confirmation
  return if email.blank?
  # Generate a new token, so that the user cannot confirm any arbitrary email they want.
  generate_confirmation_token
  send_confirmation_instructions
end

The same error happens on staging as well.
=> At the moment users can not save/change their email address and also not after signup.

@1000miles
Copy link
Collaborator Author

1000miles commented Oct 2, 2017

Example 2: users#after_signup_update

Occurrences 2 (all since last deploy)
Error type Net::SMTPAuthenticationError
Environment production
Severity error
File /opt/rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:976
Where users#after_signup_update
URL https://wheelmap.org/profile/after_signup_update
Version Rails/4.1.15
Error message 535 Incorrect authentication data

@1000miles 1000miles added this to the Sprint October milestone Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant