Mongo::Auth::Unauthorized: User mobicheckin-app is not authorized to access mobicheckin-app. from mongo/auth/scram/conversation.rb:508:in `validate!' from mongo/auth/scram/conversation.rb:496:in `validate_final_message!' from mongo/auth/scram/conversation.rb:153:in `finalize' from mongo/auth/scram.rb:80:in `login' from mongo/server/connection.rb:335:in `block in authenticate!' from mongo/server.rb:348:in `handle_auth_failure!' from mongo/server/connection.rb:334:in `authenticate!' from mongo/server/connection.rb:141:in `connect!' from mongo/server/connectable.rb:84:in `ensure_connected' from mongo/server/connection.rb:254:in `deliver' from mongo/server/connection.rb:198:in `dispatch' from mongo/operation/shared/executable.rb:42:in `block in dispatch_message' from mongo/server/connection_pool.rb:115:in `with_connection' from mongo/server.rb:321:in `with_connection' from mongo/operation/shared/executable.rb:41:in `dispatch_message' from mongo/operation/find/command.rb:41:in `execute' from mongo/operation/shared/op_msg_or_find_command.rb:28:in `execute' from mongo/collection/view/iterable.rb:82:in `send_initial_query' from mongo/collection/view/iterable.rb:42:in `block in each' from mongo/retryable.rb:43:in `read_with_retry' from mongo/collection/view/iterable.rb:40:in `each' from mongoid/query_cache.rb:222:in `each' from mongoid/contextual/mongo.rb:258:in `first' from mongoid/contextual/mongo.rb:258:in `block in first' from mongoid/contextual/mongo.rb:531:in `try_cache' from mongoid/contextual/mongo.rb:256:in `first' from mongoid/contextual.rb:20:in `first' from app/controllers/concerns/authenticate_user_from_token.rb:8:in `authenticate_user_from_token!' from active_support/callbacks.rb:426:in `block in make_lambda' from active_support/callbacks.rb:198:in `block (2 levels) in halting' from abstract_controller/callbacks.rb:34:in `block (2 levels) in ' from active_support/callbacks.rb:199:in `block in halting' from active_support/callbacks.rb:513:in `block in invoke_before' from active_support/callbacks.rb:513:in `each' from active_support/callbacks.rb:513:in `invoke_before' from active_support/callbacks.rb:107:in `block in run_callbacks' from raven/integrations/rails/controller_transaction.rb:7:in `block in included' from active_support/callbacks.rb:118:in `instance_exec' from active_support/callbacks.rb:118:in `block in run_callbacks' from active_support/callbacks.rb:136:in `run_callbacks' from abstract_controller/callbacks.rb:41:in `process_action' from action_controller/metal/rescue.rb:22:in `process_action' from action_controller/metal/instrumentation.rb:34:in `block in process_action' from active_support/notifications.rb:168:in `block in instrument' from active_support/notifications/instrumenter.rb:23:in `instrument' from active_support/notifications.rb:168:in `instrument' from action_controller/metal/instrumentation.rb:32:in `process_action' from action_controller/metal/params_wrapper.rb:256:in `process_action' from abstract_controller/base.rb:134:in `process' from action_view/rendering.rb:32:in `process' from action_controller/metal.rb:191:in `dispatch' from action_controller/metal.rb:252:in `dispatch' from action_dispatch/routing/route_set.rb:52:in `dispatch' from action_dispatch/routing/route_set.rb:34:in `serve' from action_dispatch/routing/mapper.rb:18:in `block in ' from action_dispatch/routing/mapper.rb:48:in `serve' from action_dispatch/journey/router.rb:52:in `block in serve' from action_dispatch/journey/router.rb:35:in `each' from action_dispatch/journey/router.rb:35:in `serve' from action_dispatch/routing/route_set.rb:840:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from omniauth/strategy.rb:192:in `call!' from omniauth/strategy.rb:169:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from i18n/middleware.rb:11:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from app/middleware/mongoid_clear_cache.rb:7:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from app/middleware/health_check.rb:10:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from app/middleware/params_parser_error.rb:9:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from new_relic/rack/agent_hooks.rb:30:in `traced_call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from new_relic/rack/browser_monitoring.rb:32:in `traced_call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from warden/manager.rb:36:in `block in call' from warden/manager.rb:35:in `catch' from warden/manager.rb:35:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/tempfile_reaper.rb:15:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/etag.rb:25:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/conditional_get.rb:25:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/head.rb:12:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from action_dispatch/http/content_security_policy.rb:18:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/session/abstract/id.rb:232:in `context' from rack/session/abstract/id.rb:226:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from action_dispatch/middleware/cookies.rb:670:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from action_dispatch/middleware/callbacks.rb:28:in `block in call' from active_support/callbacks.rb:98:in `run_callbacks' from action_dispatch/middleware/callbacks.rb:26:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from action_dispatch/middleware/debug_exceptions.rb:61:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from action_dispatch/middleware/show_exceptions.rb:33:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rails/rack/logger.rb:38:in `call_app' from rails/rack/logger.rb:26:in `block in call' from active_support/tagged_logging.rb:71:in `block in tagged' from active_support/tagged_logging.rb:28:in `tagged' from active_support/tagged_logging.rb:71:in `tagged' from rails/rack/logger.rb:26:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from action_dispatch/middleware/remote_ip.rb:81:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from action_dispatch/middleware/request_id.rb:27:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/method_override.rb:22:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/runtime.rb:22:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/timeout/core.rb:122:in `block in call' from rack/timeout/support/timeout.rb:19:in `timeout' from rack/timeout/core.rb:121:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from action_dispatch/middleware/executor.rb:14:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from action_dispatch/middleware/static.rb:127:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/sendfile.rb:111:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from raven/integrations/rack.rb:51:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/cors.rb:97:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rack/utf8_sanitizer.rb:22:in `call' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from rails/engine.rb:524:in `call' from rails/railtie.rb:190:in `public_send' from rails/railtie.rb:190:in `method_missing' from new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' from puma/configuration.rb:225:in `call' from puma/server.rb:658:in `handle_request' from puma/server.rb:472:in `process_client' from puma/server.rb:332:in `block in run' from puma/thread_pool.rb:133:in `block in spawn_thread'