-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
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
New Relic agent keep spawning processes #344
Comments
Details of bug at asm-helpful#344 The existing code uses `doorkeeper_for :all, except: [ :create ]` This will cause the following error ``` [1563] - Worker 0 (pid: 1571) booted, phase: 0 12:53:24 worker.1 | `doorkeeper_for` no longer available 12:53:24 worker.1 | 12:53:24 worker.1 | Starting in version 2.0.0 of doorkeeper gem, `doorkeeper_for` is no longer 12:53:24 worker.1 | available. Please change `doorkeeper_for` calls in your application with: 12:53:24 worker.1 | 12:53:24 worker.1 | before_action :doorkeeper_authorize! 12:53:24 worker.1 | 12:53:24 worker.1 | For more information check the README: 12:53:24 worker.1 | https://github.com/doorkeeper-gem/doorkeeper#protecting-resources-with-oauth-aka-your-api-endpoint 12:53:24 worker.1 | 12:53:24 worker.1 | exited with code 1 ``` Further details here https://github.com/doorkeeper-gem/doorkeeper#protecting-resources-with-oauth-aka-your-api-endpoint
I will keep this issue open. Convenient to post log output, as well as linked to pull requests and commits that will eventually solve the problem. Once I have gotten over the hurdle of doorkeeper in #344 , I see these errors in the worker log
Redis is up and running in the Vagrant box though |
Found out the cause: doorkeeper authorization code does not work for version 2.0 and above. This pull request should resolve it: Once I applied the changes, and re-provision the Vagrant box, Helpful is running properly again. A more readable version of this issue is documented at http://flummox-engineering.blogspot.com/2015/04/doorkeeper-causing-high-cpu-in-rails-app.html |
I am running Helpful on a local vagrant box, following instructions from
README.md
. I notice the vagrant box taking up 100% CPU, and on further investigation, a ruby process uses up most of the CPU. The process ID also keep changing.This is from the
newrelic_agent.log
Notice when the same set of messages repeat, there's a different
pid
forheroku
. I have temporarily disabled the new relic agent. Is there any way to prevent the ruby/heroku processes from getting created all the time?The text was updated successfully, but these errors were encountered: