Skip to content

Instantly share code, notes, and snippets.

@xecutioner
Created May 4, 2018 08:29
Show Gist options
  • Save xecutioner/a5e90caaa695af6105c90a39aa2ad001 to your computer and use it in GitHub Desktop.
Save xecutioner/a5e90caaa695af6105c90a39aa2ad001 to your computer and use it in GitHub Desktop.
2018-05-04T06:25:44Z p-11428 t-bkyp0 INFO: "{\"table_name\":\"transactions\",\"data\":{\"account_id\":372,\"amount\":26000.0,\"description\":\"Invoice # 907\",\"debit\":true,\"current_balance\":0.0}}"
2018-05-04T06:25:44Z p-11428 t-bkyp0 WARN: {:log_msg=>"[worker-create_record:1:3w7zri][#<Thread:0x0000000251af48>][create_record][#<Sneakers::Configuration:0x000000024761c8>] {\"table_name\":\"transactions\",\"data\":{\"account_id\":372,\"amount\":26000.0,\"description\":\"Invoice # 907\",\"debit\":true,\"current_balance\":0.0}}", :class=>"DbTupleCreator", :message=>"{\"table_name\":\"transactions\",\"data\":{\"account_id\":372,\"amount\":26000.0,\"description\":\"Invoice # 907\",\"debit\":true,\"current_balance\":0.0}}", :delivery_info=>{:consumer_tag=>"bunny-1525406417000-504673120793", :delivery_tag=>#<Bunny::VersionedDeliveryTag:0x0000000251b3a8 @tag=3, @version=0>, :redelivered=>false, :exchange=>"", :routing_key=>"create_record", :consumer=>#<Bunny::Consumer:19013260 @channel_id=1 @queue=create_record> @consumer_tag=bunny-1525406417000-504673120793 @exclusive= @no_ack=false>, :channel=>#<Bunny::Channel:19035080 @id=1 @connection=#<Bunny::Session:0x245b0d0 guest@localhost:5672, vhost=/, addresses=[localhost:5672]>>}, :metadata=>{:content_type=>"application/octet-stream", :delivery_mode=>2, :priority=>0}}
2018-05-04T06:25:44Z p-11428 t-bkyp0 ERROR: [Exception error="uninitialized constant ActiveRecord::ConnectionAdapters::TransactionManager" error_class=NameError backtrace=/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:250:in `reset_transaction',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:6:in `initialize',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/query_cache.rb:48:in `initialize',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:97:in `initialize',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb:212:in `initialize',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb:38:in `new',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/postgresql_adapter.rb:38:in `postgresql_connection',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:759:in `new_connection',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:803:in `checkout_new_connection',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:782:in `try_to_checkout_new_connection',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:743:in `acquire_connection',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:500:in `checkout',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:374:in `connection',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/activerecord-5.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:405:in `with_connection',/home/deploy/www/db_service/releases/20180424104611/lib/db_tuple_creator.rb:21:in `work',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/sneakers-2.6.0/lib/sneakers/worker.rb:61:in `block (3 levels) in do_work',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/sneakers-2.6.0/lib/sneakers/metrics/null_metrics.rb:8:in `timing',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/sneakers-2.6.0/lib/sneakers/worker.rb:56:in `block (2 levels) in do_work',/usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout',/usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/timeout.rb:103:in `timeout',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/sneakers-2.6.0/lib/sneakers/worker.rb:55:in `block in do_work',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch',/home/deploy/www/db_service/shared/bundle/ruby/2.4.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker']
2018-05-04T06:25:49Z p-11428 t-c1ubg INFO: "{\"table_name\":\"deliveries\",\"data\":{\"order_item_id\":1620,\"delivery_status\":0,\"delivery_type\":\"Direct Recharge\",\"delivery_date\":\"2018-05-12T00:00:00.000+00:00\",\"delivery_number\":\"0816047592\",\"delivery_retries\":0,\"job_id\":\"eb48bea0df8d3b6e92fb5a4f\",\"amount\":4000.0}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment