Skip to content

Instantly share code, notes, and snippets.

@gudata
Created October 16, 2014 14:34
Show Gist options
  • Save gudata/da2c5ce57ffd776179c6 to your computer and use it in GitHub Desktop.
Save gudata/da2c5ce57ffd776179c6 to your computer and use it in GitHub Desktop.
rack-mini-profiler
gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.2.2
- RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto
- RUBY EXECUTABLE: /home/guda/.rvm/rubies/ruby-2.0.0-p481/bin/ruby
- EXECUTABLE DIRECTORY: /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/bin
- SPEC CACHE DIRECTORY: /home/guda/.gem/specs
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto
- /home/guda/.rvm/gems/ruby-2.0.0-p481@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--no-document"
- "update" => "--no-document"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /home/guda/java/jdk/bin
- /home/guda/src/mongo/bin
- /home/guda/adt/sdk/platform-tools
- /home/guda/bin
- /home/guda/java/jdk/bin
- /home/guda/src/mongo/bin
- /home/guda/adt/sdk/platform-tools
- /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/bin
- /home/guda/.rvm/gems/ruby-2.0.0-p481@global/bin
- /home/guda/.rvm/rubies/ruby-2.0.0-p481/bin
- /home/guda/.rvm/bin
- /home/guda/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /home/guda/.rvm/bin
- /home/guda/.rvm/bin
AutomaticReports #inactive_users
Failure/Error: AutomaticReports.inactive_users since_date
ActionView::Template::Error:
PG::UndefinedFunction: ERROR: function count(integer, character varying, character varying) does not exist
LINE 1: SELECT COUNT(id, name, slug) FROM "charities" WHERE "charit...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
: SELECT COUNT(id, name, slug) FROM "charities" WHERE "charities"."state" = 3 AND (created_at >= '2014-10-09 14:28:41.169361')
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/bundler/gems/rack-mini-profiler-3d41e073cb4c/lib/patches/sql_patches.rb:160:in `exec'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/bundler/gems/rack-mini-profiler-3d41e073cb4c/lib/patches/sql_patches.rb:160:in `async_exec'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/connection_adapters/postgresql_adapter.rb:822:in `block in exec_no_cache'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/connection_adapters/abstract_adapter.rb:367:in `log'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/connection_adapters/postgresql_adapter.rb:822:in `exec_no_cache'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:137:in `exec_query'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/connection_adapters/postgresql_adapter.rb:954:in `select'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_all'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/relation/calculations.rb:265:in `execute_simple_calculation'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/relation/calculations.rb:227:in `perform_calculation'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/relation/calculations.rb:119:in `calculate'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activerecord-4.1.6/lib/active_record/relation/calculations.rb:34:in `count'
# ./app/views/mailers/automatic_reports_mailer/inactive_users.bg.html.slim:10:in `_app_views_mailers_automatic_reports_mailer_inactive_users_bg_html_slim__4369652624027219402_78978820'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/template.rb:145:in `block in render'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/notifications.rb:161:in `instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/template.rb:339:in `instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/template.rb:143:in `render'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/bundler/gems/rack-mini-profiler-3d41e073cb4c/lib/mini_profiler/profiling_methods.rb:79:in `block in profile_method'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/notifications.rb:159:in `block in instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/notifications.rb:159:in `instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/renderer/template_renderer.rb:54:in `block in render_template'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/renderer/template_renderer.rb:53:in `render_template'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/renderer/template_renderer.rb:17:in `render'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/renderer/renderer.rb:42:in `render_template'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/renderer/renderer.rb:23:in `render'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/rendering.rb:99:in `_render_template'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/rendering.rb:82:in `render_to_body'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionpack-4.1.6/lib/abstract_controller/rendering.rb:25:in `render'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:862:in `block in collect_responses'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:876:in `each'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:876:in `each_template'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:858:in `collect_responses'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:789:in `mail'
# ./app/mailers/base_mailer.rb:10:in `mail'
# ./app/mailers/automatic_reports_mailer.rb:71:in `inactive_users'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionpack-4.1.6/lib/abstract_controller/base.rb:189:in `process_action'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionpack-4.1.6/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/callbacks.rb:113:in `call'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/callbacks.rb:113:in `call'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/callbacks.rb:166:in `block in halting'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/callbacks.rb:86:in `call'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/callbacks.rb:86:in `run_callbacks'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionpack-4.1.6/lib/abstract_controller/callbacks.rb:19:in `process_action'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionpack-4.1.6/lib/abstract_controller/base.rb:136:in `process'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionview-4.1.6/lib/action_view/rendering.rb:30:in `process'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:580:in `block in process'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/notifications.rb:159:in `block in instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/notifications.rb:159:in `instrument'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:577:in `process'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:568:in `initialize'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:551:in `new'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/actionmailer-4.1.6/lib/action_mailer/base.rb:551:in `method_missing'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/sidekiq-3.2.5/lib/sidekiq/extensions/action_mailer.rb:17:in `public_send'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/sidekiq-3.2.5/lib/sidekiq/extensions/action_mailer.rb:17:in `perform'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/sidekiq-3.2.5/lib/sidekiq/testing.rb:74:in `block in raw_push'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/sidekiq-3.2.5/lib/sidekiq/testing.rb:69:in `each'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/sidekiq-3.2.5/lib/sidekiq/testing.rb:69:in `raw_push'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/sidekiq-3.2.5/lib/sidekiq/client.rb:68:in `push'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/sidekiq-3.2.5/lib/sidekiq/worker.rb:85:in `client_push'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/sidekiq-3.2.5/lib/sidekiq/extensions/generic_proxy.rb:19:in `method_missing'
# ./app/models/automatic_reports.rb:105:in `block in inactive_users'
# ./app/models/automatic_reports.rb:95:in `each'
# ./app/models/automatic_reports.rb:95:in `inactive_users'
# ./spec/models/automatic_reports_spec.rb:132:in `block (2 levels) in <top (required)>'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `block in load'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `block in load'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
# /home/guda/.rvm/gems/ruby-2.0.0-p481@yatoto/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
# -e:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment