scoutapp / scout_apm_ruby

ScoutAPM Ruby Agent. Supports Rails, Sinatra, Grape, Rack, and many other frameworks
https://scoutapm.com
Other
198 stars 97 forks source link

Scout APM not monitoring #197

Closed PikachuEXE closed 6 years ago

PikachuEXE commented 6 years ago

The last 1000 lines of your log/scout_apm.log file

# Logfile created on 2018-06-01 01:56:20 +0000 by logger.rb/61378

Rails version

5.1.6

Application Server

passenger-enterprise-server (5.3.1)

Web Server

Nginx 1.13.12

Your application’s gems bundle list

Gems included by the bundle:
  * abstract_class (1.0.1)
  * action_controller_tweaks (0.3.3)
  * actioncable (5.1.6)
  * actionmailer (5.1.6)
  * actionmailer-with-request (0.5.0)
  * actionpack (5.1.6)
  * actionview (5.1.6)
  * active_attr (0.11.0)
  * active_importer (0.2.6)
  * active_record_tweaks (0.2.3)
  * activejob (5.1.6)
  * activemodel (5.1.6)
  * activerecord (5.1.6)
  * activerecord-import (0.23.0)
  * activerecord-like (2.1)
  * activesupport (5.1.6)
  * addressable (2.5.2)
  * after_commit_action (1.1.0)
  * annotate (2.7.3)
  * ansi (1.5.0)
  * arel (8.0.0)
  * ast (2.4.0)
  * autoprefixer-rails (8.5.2)
  * awesome_print (1.8.0)
  * aws-eventstream (1.0.0)
  * aws-partitions (1.89.1)
  * aws-sdk-cloudwatch (1.5.0)
  * aws-sdk-core (3.21.2)
  * aws-sigv4 (1.0.2)
  * backports (3.11.3)
  * bcrypt (3.1.12)
  * benchmark-ips (2.7.2)
  * better_errors (2.4.0)
  * bindex (0.5.0)
  * binding_of_caller (0.8.0)
  * bootsnap (1.3.0)
  * bootstrap-modal-rails (2.2.5)
  * bootstrap-sass (2.3.2.2)
  * bourbon (4.3.4)
  * braintree (2.89.0)
  * browser (2.5.3)
  * browserify-rails (4.3.0)
  * bson (4.3.0)
  * builder (3.2.3)
  * bullet (5.7.5)
  * bumbler (0.4.0)
  * bundler (1.16.2)
  * bundleup (0.6.1)
  * busted (0.2.3)
  * byebug (10.0.2)
  * cancancan (2.2.0)
  * capybara (3.1.1)
  * carrierwave (0.11.2)
  * carrierwave-bombshelter (0.2.2)
  * carrierwave-magic (0.0.4)
  * carrierwave_backgrounder (0.4.2)
  * cells (4.1.7)
  * cells-hamlit2 (0.2.0)
  * cells-rails (0.0.9)
  * celluloid (0.17.3)
  * celluloid-essentials (0.20.5)
  * celluloid-extras (0.20.5)
  * celluloid-fsm (0.20.5)
  * celluloid-pool (0.20.5)
  * celluloid-supervision (0.20.6)
  * chunky_png (1.3.10)
  * ci_reporter (2.0.0)
  * cliver (0.3.2)
  * closure-compiler (1.1.14)
  * codecov (0.1.10)
  * coderay (1.1.2)
  * coffee-rails (4.2.2)
  * coffee-script (2.4.1)
  * coffee-script-source (1.12.2)
  * colorize (0.8.1)
  * commander (4.4.5)
  * concurrent-ruby (1.0.5)
  * connection_pool (2.2.2)
  * contracts (0.16.0)
  * counter_culture (1.11.0)
  * crack (0.4.3)
  * crass (1.0.4)
  * css_parser (1.6.0)
  * daru (0.2.0)
  * database_cleaner (1.7.0)
  * debug_inspector (0.0.3)
  * declarative (0.0.10)
  * declarative-builder (0.1.0)
  * declarative-option (0.1.0)
  * deject (0.2.3)
  * descriptive_statistics (2.5.1)
  * devise (4.4.3)
  * diff-lcs (1.3)
  * disposable (0.4.3)
  * docile (1.3.1)
  * domain_name (0.5.20180417)
  * dotenv (2.4.0)
  * dotenv-rails (2.4.0)
  * dry-configurable (0.7.0)
  * dry-container (0.6.0)
  * dry-core (0.4.6)
  * dry-equalizer (0.2.1)
  * dry-inflector (0.1.2)
  * dry-logic (0.4.2)
  * dry-struct (0.5.0)
  * dry-types (0.13.2)
  * dry-validation (0.12.0)
  * easy_translate (0.5.1)
  * elasticsearch (6.0.2)
  * elasticsearch-api (6.0.2)
  * elasticsearch-model (5.0.0)
  * elasticsearch-transport (6.0.2)
  * enumerize (2.2.2)
  * env_bang (0.4.2)
  * env_bang-rails (0.4.2)
  * erubi (1.7.1)
  * excon (0.62.0)
  * execjs (2.7.0)
  * factory_bot (4.10.0)
  * factory_bot_rails (4.10.0)
  * factory_girl-seeds (2.0.0)
  * faraday (0.12.2)
  * fast_blank (1.0.0)
  * fastimage (2.1.3)
  * fcm (0.0.2)
  * ffaker (2.9.0)
  * ffi (1.9.23)
  * fog-aws (3.0.0)
  * fog-core (2.1.0)
  * fog-json (1.1.0)
  * fog-xml (0.1.3)
  * font-awesome-rails (4.7.0.4)
  * formatador (0.2.5)
  * friendly_id (5.2.4)
  * fuubar (2.3.1)
  * geocoder (1.4.9)
  * github-markup (2.0.0)
  * globalid (0.4.1)
  * groupdate (4.0.1)
  * haml (5.0.4)
  * hamlit (2.8.8)
  * hamlit-rails (0.2.0)
  * hashdiff (0.3.7)
  * hashie (3.5.7)
  * highline (1.7.10)
  * hitimes (1.2.6)
  * houston (2.2.4)
  * http-cookie (1.0.3)
  * http-exceptions (0.1.2)
  * http_accept_language (2.1.1)
  * httparty (0.16.2)
  * httpclient (2.8.3)
  * human_power (0.1.0)
  * i18n (1.0.1)
  * i18n-js (3.0.7)
  * i18n-tasks (0.9.21)
  * ice_nine (0.11.2)
  * immigrant (0.3.6)
  * interactor (3.1.1)
  * interactor-rails (2.2.0)
  * invalid_utf8_rejector (0.0.4)
  * ipaddress (0.8.3)
  * jbuilder (2.7.0)
  * jmespath (1.4.0)
  * jquery-rails (4.3.3)
  * jquery-ui-rails (5.0.5)
  * js-routes (1.4.4)
  * json (2.1.0)
  * json_spec (1.1.5)
  * jwt (1.5.6)
  * kaminari (1.1.1)
  * kaminari-actionview (1.1.1)
  * kaminari-activerecord (1.1.1)
  * kaminari-core (1.1.1)
  * kaminari-mongoid (1.0.1)
  * key_path (1.2.0)
  * koala (3.0.0)
  * kramdown (1.17.0)
  * libv8 (6.3.292.48.1)
  * linear-regression (0.0.2)
  * listen (3.1.5)
  * logglier (0.5.0)
  * lol_dba (2.1.5)
  * loofah (2.2.2)
  * mail (2.7.0)
  * mail_view (2.0.4)
  * mandrill-rails (1.5.0)
  * mandriller (0.2.0)
  * marginalia (1.5.0)
  * mechanize (2.7.5)
  * memoist (0.16.0)
  * meta-tags (2.9.0)
  * method_source (0.9.0)
  * mime-types (3.1)
  * mime-types-data (3.2016.0521)
  * mimemagic (0.3.2)
  * mini_magick (4.8.0)
  * mini_mime (1.0.0)
  * mini_portile2 (2.3.0)
  * mini_racer (0.1.15)
  * minitest (5.11.3)
  * mobile-fu (1.4.0)
  * mock_redis (0.18.0)
  * mongo (2.5.3)
  * mongoid (7.0.1)
  * msgpack (1.2.4)
  * multi_json (1.13.1)
  * multi_mime (1.1.0)
  * multi_xml (0.6.0)
  * multipart-post (2.0.0)
  * naught (1.1.0)
  * nested_form (0.3.2)
  * nestive (0.6.0)
  * net-http-digest_auth (1.4.1)
  * net-http-persistent (2.9.4)
  * net-ssh (4.2.0)
  * newrelic_rpm (5.1.0.344)
  * niceql (0.1.18)
  * nio4r (2.3.1)
  * nokogiri (1.8.2)
  * normalizr (0.3.1)
  * ntlm-http (0.1.1)
  * null-logger (0.1.5)
  * oauth2 (1.4.0)
  * oga (2.15)
  * oily_png (1.2.1)
  * oj (3.6.2)
  * okcomputer (1.17.2)
  * omniauth (1.8.1)
  * omniauth-facebook (5.0.0)
  * omniauth-oauth2 (1.5.0)
  * orm_adapter (0.5.0)
  * os (0.9.6)
  * packable (1.3.9)
  * parallel (1.12.1)
  * parser (2.5.1.0)
  * passages (2.0.0)
  * passenger (5.3.1)
  * passenger-enterprise-server (5.3.1)
  * pg (0.21.0)
  * pg_query (1.0.2)
  * pghero (2.1.1)
  * phony (2.16.4)
  * piet (0.2.6)
  * piet-binary (0.2.0)
  * png_quantizator (0.2.1)
  * poltergeist (1.18.1)
  * powerpack (0.1.1)
  * pry (0.11.3)
  * pry-byebug (3.6.0)
  * pry-doc (0.13.4)
  * pry-rails (0.3.6)
  * pry-remote (0.1.8)
  * pry-stack_explorer (0.4.9.2)
  * public_suffix (3.0.2)
  * pubnub (4.0.27)
  * rabl (0.13.1)
  * rack (2.0.5)
  * rack-google-analytics (1.2.0)
  * rack-mobile-detect (0.4.0)
  * rack-pjax (1.0.0)
  * rack-protection (2.0.1)
  * rack-ssl-enforcer (0.2.9)
  * rack-test (1.0.0)
  * rack-timeout (0.5.1)
  * rails (5.1.6)
  * rails-controller-testing (1.0.2)
  * rails-dom-testing (2.0.3)
  * rails-html-sanitizer (1.0.4)
  * rails-i18n (5.1.1)
  * rails-timeago (2.16.0)
  * rails_admin (1.3.0 e4c657f)
  * rails_autolink (1.1.6)
  * rails_db_info (0.2.0)
  * railties (5.1.6)
  * rainbow (3.0.0)
  * rake (12.3.1)
  * randumb (0.5.2)
  * rb-fsevent (0.10.3)
  * rb-inotify (0.9.10)
  * rchardet (1.7.0)
  * redcarpet (3.4.0)
  * redis (4.0.1)
  * redis-actionpack (5.0.2)
  * redis-activesupport (5.0.4)
  * redis-namespace (1.6.0)
  * redis-rack (2.0.4)
  * redis-rails-instrumentation (1.0.1)
  * redis-store (1.5.0)
  * reform (2.2.4)
  * reform-rails (0.1.2)
  * refrigerator (1.1.0)
  * remotipart (1.4.2)
  * representable (3.0.4)
  * request_store (1.4.1)
  * responders (2.4.0)
  * retriable (3.1.1)
  * roadie (3.3.0)
  * roadie-rails (1.3.0)
  * roo (2.7.1)
  * roo-xls (1.2.0)
  * rqrcode (0.10.1)
  * rspec (3.7.0)
  * rspec-cells (0.3.4)
  * rspec-collection_matchers (1.1.3)
  * rspec-core (3.7.1)
  * rspec-expectations (3.7.0)
  * rspec-its (1.2.0)
  * rspec-json_matchers (0.1.0)
  * rspec-mocks (3.7.0)
  * rspec-rails (3.7.2)
  * rspec-sidekiq (3.0.3)
  * rspec-support (3.7.1)
  * rubocop (0.56.0)
  * ruby-filemagic (0.7.2)
  * ruby-geometry (0.0.6)
  * ruby-ll (2.1.2)
  * ruby-ole (1.2.12.1)
  * ruby-progressbar (1.9.0)
  * rubyXL (3.3.29)
  * ruby_clipper (6.2.1.5.2)
  * ruby_dep (1.5.0)
  * rubyzip (1.2.1)
  * safe_yaml (1.0.4)
  * sass (3.5.6)
  * sass-listen (4.0.0)
  * sass-rails (5.0.7)
  * sassc (1.11.4)
  * sassc-rails (1.3.0)
  * scout_apm (2.4.11)
  * securecompare (1.0.0)
  * seedbank (0.4.0)
  * sentry-raven (2.7.3)
  * server_timing (1.0.2)
  * settingslogic (2.0.9)
  * seven_zip_ruby (1.2.5)
  * shog (0.2.1)
  * shoulda-matchers (3.1.2)
  * sidekiq (5.1.3)
  * sidekiq-statistic (1.3.0 f7476c9)
  * sidekiq-symbols (0.2.0)
  * simple-random (1.0.3)
  * simple_form (4.0.1)
  * simplecov (0.16.1)
  * simplecov-html (0.10.2)
  * sitemap_generator (6.0.1)
  * slop (3.6.0)
  * smarter_csv (1.2.3)
  * spork (1.0.0rc4)
  * spreadsheet (1.1.7)
  * spring (2.0.2)
  * sprockets (3.7.1)
  * sprockets-rails (3.2.1)
  * ss2 (0.0.4 a6b41a5)
  * staccato (0.5.1)
  * sweet_notifications (1.0.1)
  * temple (0.8.0)
  * terminal-table (1.8.0)
  * thor (0.20.0)
  * thread (0.2.2)
  * thread_safe (0.3.6)
  * tilt (2.0.8)
  * timecop (0.9.1)
  * timers (4.1.2)
  * traco (3.2.1)
  * try_to (1.2)
  * turbostreamer (1.2.0)
  * twilio-ruby (5.10.2)
  * twitter-text (1.14.7)
  * tzinfo (1.2.5)
  * tzinfo-data (1.2018.5)
  * uber (0.1.0)
  * unf (0.1.4)
  * unf_ext (0.0.7.5)
  * unicode-display_width (1.3.3)
  * uniform_notifier (1.11.0)
  * url (0.3.2)
  * useragents (0.1.4)
  * uuidtools (2.1.5)
  * values (1.8.0)
  * versionist (1.7.0)
  * warden (1.2.7)
  * web-console (3.6.2)
  * webmock (3.4.1)
  * webrobots (0.1.2)
  * websocket-driver (0.6.5)
  * websocket-extensions (0.1.3)
  * where_lower (0.3.2)
  * xpath (3.1.0)
  * yard (0.9.13)

Other stuff captured when following http://help.apm.scoutapp.com/#ruby-troubleshooting:

root@e29a54dc62f5:/home/app/webapp# bundle list scout_apm
/usr/local/lib/ruby/gems/2.5.0/gems/scout_apm-2.4.11

root@e29a54dc62f5:/home/app/webapp# cat config/scout_apm.yml
common: &defaults
  monitor: true
  ignore:
    - "/health_check"
    - "/admin"

development:
  <<: *defaults

test:
  <<: *defaults
  monitor: false

staging:
  <<: *defaults

production:
  <<: *defaults

root@e29a54dc62f5:/home/app/webapp# echo $SCOUT_MONITOR
true

root@e29a54dc62f5:/home/app/webapp# tail -n1000 log/passenger.80.log | grep "Pro
App 238 output: [442d25380ce4daf80c29d40e7af4dba7] [INFO ] === Processing by Apps::SpaciousWebsite::Pages::Buildings::SingleCommercialBuildingSummaryPage::Show::ActionController#call as */*
App 283 output: [d5f8cd68f85d88d0c0c52739dc63b30e] [INFO ] === Processing by Apps::SpaciousWebsite::Pages::Listings::SingleListingDetailsPage::Show::ActionController#call as */*
App 238 output: [912d5292663b54efba1815903120eb30] [INFO ] === Processing by Api::WebApp::RealEstate::Transaction::Statistics::Neighbourhood::Index::ActionController#call as JSON
App 199 output: [b2801c6481093ce3ad0d4713be676874] [INFO ] === Processing by Apps::SpaciousWebsite::Api::Resources::CurrentAuthenticatedUser::Show::ActionController#call as JSON
App 199 output: [262fc87eb96b28cbb555e19960bd34ef] [INFO ] === Processing by Apps::SpaciousWebsite::Pages::Listings::SingleListingDetailsPage::Show::ActionController#call as */*
App 238 output: [194859e5-8c97-494d-ae04-3d1d55178734] [INFO ] === Processing by OkComputer::OkComputerController#show as HTML
PikachuEXE commented 6 years ago

Gem updates released yesterday that might cause the issue:

From 8fd39d3779116cd5d5fbf617a8e592347cfa097a Mon Sep 17 00:00:00 2001
From: PikachuEXE <pikachuexe@gmail.com>
Date: Thu, 31 May 2018 09:17:31 +0800
Subject: [PATCH] ^ bundle update

---
 Gemfile.lock | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Gemfile.lock b/Gemfile.lock
index efbf05a6f8..0d45aa549f 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -103,7 +103,7 @@ GEM
     ansi (1.5.0)
     arel (8.0.0)
     ast (2.4.0)
-    autoprefixer-rails (8.5.1)
+    autoprefixer-rails (8.5.2)
       execjs
     awesome_print (1.8.0)
     aws-eventstream (1.0.0)
@@ -285,7 +285,7 @@ GEM
       dry-equalizer (~> 0.2)
       dry-types (~> 0.13)
       ice_nine (~> 0.11)
-    dry-types (0.13.1)
+    dry-types (0.13.2)
       concurrent-ruby (~> 1.0)
       dry-container (~> 0.3)
       dry-core (~> 0.4, >= 0.4.4)
@@ -397,7 +397,7 @@ GEM
     human_power (0.1.0)
     i18n (1.0.1)
       concurrent-ruby (~> 1.0)
-    i18n-js (3.0.6)
+    i18n-js (3.0.7)
       i18n (>= 0.6.6, < 2)
     i18n-tasks (0.9.21)
       activesupport (>= 4.0.2)
@@ -412,7 +412,7 @@ GEM
     ice_nine (0.11.2)
     immigrant (0.3.6)
       activerecord (>= 3.0)
-    interactor (3.1.0)
+    interactor (3.1.1)
     interactor-rails (2.2.0)
       interactor (~> 3.0)
       rails (>= 4.2, < 5.3)
@@ -530,7 +530,7 @@ GEM
     net-http-persistent (2.9.4)
     net-ssh (4.2.0)
     newrelic_rpm (5.1.0.344)
-    niceql (0.1.17)
+    niceql (0.1.18)
     nio4r (2.3.1)
     nokogiri (1.8.2)
       mini_portile2 (~> 2.3.0)
@@ -548,7 +548,7 @@ GEM
       ruby-ll (~> 2.1)
     oily_png (1.2.1)
       chunky_png (~> 1.3.7)
-    oj (3.6.0)
+    oj (3.6.2)
     okcomputer (1.17.2)
     omniauth (1.8.1)
       hashie (>= 3.4.6, < 3.6.0)
-- 
2.17.1
itsderek23 commented 6 years ago

Thanks @PikachuEXE for the detailed report.

The last 1000 lines of your log/scout_apm.log file

In your config file, mind setting log_level: debug then restarting and emailing support@scoutapp.com the log/scout_apm.log file?

common: &defaults
  monitor: true
+  log_level: debug
  ignore:
    - "/health_check"
    - "/admin"
cschneid commented 6 years ago

Closing this, since we found the underlying cause (the niceql gem). Follow #199 for more.