We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
An ActiveRecord::RecordNotUnique occurred in users#create: Mysql2::Error: Duplicate entry '' for key 'login': INSERT INTO `users` (`name`, `login`, `email`, `salt`, `crypted_password`, `persistence_token`, `perishable_token`, `state`, `login_count`, `current_login_at`, `current_login_ip`, `last_request_at`, `created_at`, `updated_at`) VALUES ('raybansCoto', '', '[email protected]', 'R8hCxlXO4CIAAvXvUuBp', 'a9343bee33074ddbdb8a63b0eff8fd64714d2e89', '2afbaef2af269ae4c692a60733440a0bed7b55c5b46a2f2c2ab8e187fe7ff619452fe7b4446933cc52a9e77b4ff59125a21e1649a8554dd255de95e4d2b0e3b5', '58SmPOJjapyHdYxwEWya', 'pending', 1, '2015-07-22 02:00:49', '199.33.123.114', '2015-07-22 02:00:49', '2015-07-22 02:00:49', '2015-07-22 02:00:49') activerecord (4.2.3) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `query' ------------------------------- Request: ------------------------------- * URL : http://www.bling0.com/users * HTTP Method: POST * IP address : 199.33.123.114 * Parameters : {"utf8"=>"✓", "authenticity_token"=>"e2uv9aizzc04iliUYOSFgjJ4QMDDCBt+PEe+G80meIbaFGl5nYpYURxL863pxcgDwhUJV1sZLFSS4Zrr590Hew==", "group"=>"", "invite"=>"", "user"=>{"login"=>"", "name"=>"raybansCoto", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"注册", "controller"=>"users", "action"=>"create"} * Timestamp : 2015-07-22 10:00:50 +0800 * Server : shiningray * Rails root : /home/deploy/releases/20150721170031 * Process: 14011 ------------------------------- Session: ------------------------------- * session id: "322e440422cbe56a58f01ced2b2bb286" * data: {"_csrf_token"=>"oX/GjDU5lZwkwas5iSFNgfBtSZeYETcqrqYk8Cr7f/0=", "user_credentials"=> "2afbaef2af269ae4c692a60733440a0bed7b55c5b46a2f2c2ab8e187fe7ff619452fe7b4446933cc52a9e77b4ff59125a21e1649a8554dd255de95e4d2b0e3b5"} ------------------------------- Environment: ------------------------------- * CONTENT_LENGTH : 313 * CONTENT_TYPE : application/x-www-form-urlencoded * GATEWAY_INTERFACE : CGI/1.2 * HTTP_ACCEPT : */* * HTTP_CONNECTION : close * HTTP_COOKIE : _session_id=322e440422cbe56a58f01ced2b2bb286 * HTTP_HOST : www.bling0.com * HTTP_PRAGMA : no-cache * HTTP_REFERER : http://www.bling0.com/signup * HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 * HTTP_VERSION : HTTP/1.0 * HTTP_X_FORWARDED_FOR : 199.33.123.114 * HTTP_X_REAL_IP : 199.33.123.114 * ORIGINAL_FULLPATH : /users * ORIGINAL_SCRIPT_NAME : * PATH_INFO : /users * QUERY_STRING : * REMOTE_ADDR : 127.0.0.1 * REQUEST_METHOD : POST * REQUEST_PATH : /users * REQUEST_URI : /users * ROUTES_56626180_SCRIPT_NAME : * SCRIPT_NAME : * SERVER_NAME : www.bling0.com * SERVER_PORT : 80 * SERVER_PROTOCOL : HTTP/1.1 * SERVER_SOFTWARE : 2.11.3 * action_controller.instance : #<UsersController:0x0000000679f440> * action_dispatch.backtrace_cleaner : #<Rails::BacktraceCleaner:0x000000040d6958> * action_dispatch.cookies : #<ActionDispatch::Cookies::CookieJar:0x0000000677b1f8> * action_dispatch.cookies_digest : * action_dispatch.cookies_serializer : * action_dispatch.encrypted_cookie_salt : encrypted cookie * action_dispatch.encrypted_signed_cookie_salt: signed encrypted cookie * action_dispatch.http_auth_salt : http authentication * action_dispatch.key_generator : #<ActiveSupport::CachingKeyGenerator:0x00000005e45318> * action_dispatch.logger : #<ActiveSupport::Logger:0x00000006cc4f88> * action_dispatch.parameter_filter : [:password, :password_confirmation] * action_dispatch.redirect_filter : [] * action_dispatch.remote_ip : 199.33.123.114 * action_dispatch.request.accepts : [#<Mime::Type:0x000000056eb9a0 @synonyms=[], @symbol=nil, @string="*/*">] * action_dispatch.request.content_type : application/x-www-form-urlencoded * action_dispatch.request.formats : [#<Mime::Type:0x000000056eb9a0 @synonyms=[], @symbol=nil, @string="*/*">] * action_dispatch.request.parameters : {"utf8"=>"✓", "authenticity_token"=>"e2uv9aizzc04iliUYOSFgjJ4QMDDCBt+PEe+G80meIbaFGl5nYpYURxL863pxcgDwhUJV1sZLFSS4Zrr590Hew==", "group"=>"", "invite"=>"", "user"=>{"login"=>"", "name"=>"raybansCoto", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"注册", "controller"=>"users", "action"=>"create"} * action_dispatch.request.path_parameters : {:controller=>"users", :action=>"create"} * action_dispatch.request.query_parameters : {} * action_dispatch.request.request_parameters : {"utf8"=>"✓", "authenticity_token"=>"e2uv9aizzc04iliUYOSFgjJ4QMDDCBt+PEe+G80meIbaFGl5nYpYURxL863pxcgDwhUJV1sZLFSS4Zrr590Hew==", "group"=>"", "invite"=>"", "user"=>{"login"=>"", "name"=>"raybansCoto", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"注册"} * action_dispatch.request_id : 330cd9b9-4297-4d64-9f02-383c6bc8c6c0 * action_dispatch.routes : #<ActionDispatch::Routing::RouteSet:0x00000006c01808> * action_dispatch.secret_key_base : 58b4444402f3fbceb25ffa10e20d0a99c65c75ca4ff1d66488bc2814650918027cb727947327a6f68571726457f7b43da5cc4806e75dcf8351dc14291f3f36c1 * action_dispatch.secret_token : * action_dispatch.show_detailed_exceptions : true * action_dispatch.show_exceptions : true * action_dispatch.signed_cookie_salt : signed cookie * newrelic.transaction_started : true * puma.config : #<Puma::Configuration:0x00000001e32de8> * puma.socket : #<UNIXSocket:0x000000067decd0> * rack.after_reply : [] * rack.cors : #<Rack::Cors::Result:0x000000067dc110> * rack.errors : #<File:0x00000000fed530> * rack.hijack : #<Puma::Client:0x000000067deca8> * rack.hijack? : true * rack.input : #<StringIO:0x000000067de550> * rack.multiprocess : false * rack.multithread : true * rack.request.cookie_hash : {"_session_id"=>"322e440422cbe56a58f01ced2b2bb286"} * rack.request.cookie_string : _session_id=322e440422cbe56a58f01ced2b2bb286 * rack.request.form_hash : {"utf8"=>"✓", "authenticity_token"=>"e2uv9aizzc04iliUYOSFgjJ4QMDDCBt+PEe+G80meIbaFGl5nYpYURxL863pxcgDwhUJV1sZLFSS4Zrr590Hew==", "group"=>"", "invite"=>"", "user"=>{"login"=>"", "name"=>"raybansCoto", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"注册"} * rack.request.form_input : #<StringIO:0x000000067de550> * rack.request.form_vars : [FILTERED] * rack.request.query_hash : {} * rack.request.query_string : * rack.run_once : false * rack.session : #<ActionDispatch::Request::Session:0x000000067b2900> * rack.session.options : #<ActionDispatch::Request::Session::Options:0x000000067b28b0> * rack.url_scheme : http * rack.version : [1, 3] ------------------------------- Backtrace: ------------------------------- activerecord (4.2.3) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `query' activerecord (4.2.3) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `block in execute' activerecord (4.2.3) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.3) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.3) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.3) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `execute' activerecord (4.2.3) lib/active_record/connection_adapters/mysql2_adapter.rb:231:in `execute' activerecord (4.2.3) lib/active_record/connection_adapters/mysql2_adapter.rb:248:in `exec_insert' activerecord (4.2.3) lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' activerecord (4.2.3) lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' activerecord (4.2.3) lib/active_record/relation.rb:64:in `insert' activerecord (4.2.3) lib/active_record/persistence.rb:524:in `_create_record' activerecord (4.2.3) lib/active_record/counter_cache.rb:139:in `_create_record' activerecord (4.2.3) lib/active_record/locking/optimistic.rb:75:in `_create_record' activerecord (4.2.3) lib/active_record/attribute_methods/dirty.rb:132:in `_create_record' activerecord (4.2.3) lib/active_record/callbacks.rb:306:in `block in _create_record' activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:553:in `block (2 levels) in compile' activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:88:in `run_callbacks' activerecord (4.2.3) lib/active_record/callbacks.rb:306:in `_create_record' activerecord (4.2.3) lib/active_record/timestamp.rb:57:in `_create_record' activerecord (4.2.3) lib/active_record/persistence.rb:504:in `create_or_update' activerecord (4.2.3) lib/active_record/callbacks.rb:302:in `block in create_or_update' activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:553:in `block (2 levels) in compile' activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:88:in `run_callbacks' activerecord (4.2.3) lib/active_record/callbacks.rb:302:in `create_or_update' activerecord (4.2.3) lib/active_record/persistence.rb:120:in `save' activerecord (4.2.3) lib/active_record/validations.rb:37:in `save' activerecord (4.2.3) lib/active_record/attribute_methods/dirty.rb:21:in `save' activerecord (4.2.3) lib/active_record/transactions.rb:286:in `block (2 levels) in save' activerecord (4.2.3) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.3) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' activerecord (4.2.3) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.3) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' activerecord (4.2.3) lib/active_record/transactions.rb:286:in `block in save' activerecord (4.2.3) lib/active_record/transactions.rb:301:in `rollback_active_record_state!' activerecord (4.2.3) lib/active_record/transactions.rb:285:in `save' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/active_record_helper.rb:21:in `block in save' newrelic_rpm (3.12.1.298) lib/new_relic/agent/transaction.rb:805:in `with_database_metric_name' newrelic_rpm (3.12.1.298) lib/new_relic/agent.rb:572:in `with_database_metric_name' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/active_record_helper.rb:20:in `save' aasm (4.2.0) lib/aasm/persistence/active_record_persistence.rb:91:in `aasm_write_state' aasm (4.2.0) lib/aasm/instance_base.rb:86:in `set_current_state_with_persistence' aasm (4.2.0) lib/aasm/aasm.rb:103:in `aasm_fired' aasm (4.2.0) lib/aasm/aasm.rb:78:in `aasm_fire_event' aasm (4.2.0) lib/aasm/persistence/active_record_persistence.rb:175:in `block in aasm_fire_event' activerecord (4.2.3) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' activerecord (4.2.3) lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' activerecord (4.2.3) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' activerecord (4.2.3) lib/active_record/transactions.rb:220:in `transaction' aasm (4.2.0) lib/aasm/persistence/active_record_persistence.rb:175:in `aasm_fire_event' aasm (4.2.0) lib/aasm/base.rb:89:in `block in event' app/controllers/users_controller/registration_aspect.rb:43:in `create' actionpack (4.2.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.3) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.3) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.3) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:115:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:553:in `block (2 levels) in compile' activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:503:in `call' activesupport (4.2.3) lib/active_support/callbacks.rb:88:in `run_callbacks' actionpack (4.2.3) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.3) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.3) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.3) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.3) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.3) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.3) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.3) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.3) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.3) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.3) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.3) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.3) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.3) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.3) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.3) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.3) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.3) lib/action_dispatch/routing/route_set.rb:821:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/rack/agent_hooks.rb:30:in `traced_call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' exception_notification (4.1.1) lib/exception_notification/rack.rb:32:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' rack-raw-upload (1.1.1) lib/rack/raw_upload.rb:18:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' simple_captcha2 (0.3.4) lib/simple_captcha/middleware.rb:26:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' remotipart (1.2.1) lib/remotipart/middleware.rb:27:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' actionpack (4.2.3) lib/action_dispatch/middleware/params_parser.rb:27:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' actionpack (4.2.3) lib/action_dispatch/middleware/flash.rb:260:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' actionpack (4.2.3) lib/action_dispatch/middleware/cookies.rb:560:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' activerecord (4.2.3) lib/active_record/query_cache.rb:36:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' activerecord (4.2.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' actionpack (4.2.3) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.3) lib/active_support/callbacks.rb:84:in `run_callbacks' actionpack (4.2.3) lib/action_dispatch/middleware/callbacks.rb:27:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' actionpack (4.2.3) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' actionpack (4.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' actionpack (4.2.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' railties (4.2.3) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.3) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.3) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.3) lib/rails/rack/logger.rb:20:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' request_store (1.1.0) lib/request_store/middleware.rb:8:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' actionpack (4.2.3) lib/action_dispatch/middleware/request_id.rb:21:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' activesupport (4.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' actionpack (4.2.3) lib/action_dispatch/middleware/static.rb:116:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' rack-cors (0.4.0) lib/rack/cors.rb:80:in `call' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' railties (4.2.3) lib/rails/engine.rb:518:in `call' railties (4.2.3) lib/rails/application.rb:165:in `call' railties (4.2.3) lib/rails/railtie.rb:194:in `public_send' railties (4.2.3) lib/rails/railtie.rb:194:in `method_missing' newrelic_rpm (3.12.1.298) lib/new_relic/agent/instrumentation/middleware_tracing.rb:67:in `call' puma (2.11.3) lib/puma/configuration.rb:51:in `call' puma (2.11.3) lib/puma/server.rb:507:in `handle_request' puma (2.11.3) lib/puma/server.rb:375:in `process_client' puma (2.11.3) lib/puma/server.rb:262:in `block in run' puma (2.11.3) lib/puma/thread_pool.rb:104:in `call' puma (2.11.3) lib/puma/thread_pool.rb:104:in `block in spawn_thread'
The text was updated successfully, but these errors were encountered:
ShiningRay
No branches or pull requests
The text was updated successfully, but these errors were encountered: