Skip to content
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

2.13.0 is causing app to crash repeatedly on Heroku with R10 and H10 errors #765

Closed
monfresh opened this issue Aug 15, 2015 · 1 comment
Closed

Comments

@monfresh
Copy link

Hi. I just upgraded a Rails app to puma 2.13.0, and after deployment, this happens:

2015-08-15 13:46:12.826 122 <190>1 2015-08-15T13:46:12.340214+00:00 app web.1 - - [3] * Preloading application
2015-08-15 13:46:14.735 131 <190>1 2015-08-15T13:46:14.353376+00:00 app web.1 - - [3] * Listening on tcp://0.0.0.0:9292
2015-08-15 13:46:14.811 134 <190>1 2015-08-15T13:46:14.409494+00:00 app web.1 - - [3] - Worker 0 (pid: 7) booted, phase: 0
2015-08-15 13:47:11.310 187 <45>1 2015-08-15T13:47:11.131628+00:00 heroku web.1 - - Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2015-08-15 13:47:11.386 125 <45>1 2015-08-15T13:47:11.131628+00:00 heroku web.1 - - Stopping process with SIGKILL
2015-08-15 13:47:13.195 130 <45>1 2015-08-15T13:47:13.098877+00:00 heroku api - - Deploy ec13484 by [REDACTED]
2015-08-15 13:47:13.262 129 <190>1 2015-08-15T13:47:13.168471+00:00 heroku slug-compiler - - Slug compilation started
2015-08-15 13:47:13.275 136 <45>1 2015-08-15T13:47:13.098877+00:00 heroku api - - Release v132 created by [REDACTED]
2015-08-15 13:47:13.337 130 <190>1 2015-08-15T13:47:13.168511+00:00 heroku slug-compiler - - Slug compilation finished
2015-08-15 13:47:13.445 134 <45>1 2015-08-15T13:47:12.140650+00:00 heroku web.1 - - State changed from starting to crashed
2015-08-15 13:47:13.878 305 <158>1 2015-08-15T13:47:13.594253+00:00 heroku router - - at=error code=H10 desc="App crashed" 

The app then keeps crashing over and over.

Reverting to 2.12.3 allowed the app to run normally again.

Here is my puma config:

workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['MAX_THREADS'] || 5)
threads threads_count, threads_count

preload_app!

rackup DefaultRackup
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'
@monfresh
Copy link
Author

Thanks for the super quick fix! It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant