-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
problems with Puma phased restarts in Rails apps #598
Comments
Is there anything in the log? There isn't anything for me to go on here. Also, what does your config look like? |
Nothing specific in log...
|
Can you add |
Now it happened on the third project, but this one is configured a bit differenty... anyway the log might still be useful:
The last line is not puma's problem, but my configuration but I think the root cause is of some interest: so why phased-restart wasn't available? I have to see if this is the same reason other deploys failed.. but so far it hasn't happened on other projects. |
Now it happened again and indeed this is the problem: when phased restart is not possible for some reason, then other errors come, not sure why... but maybe if phased restart worked always, the other things wouldn't be important.
As I said, not sure why Gemfile is not found, maybe it has to do with deployment steps... Gemfile is available now when I look but maybe in the process something happened... |
You have |
Ugh... thank you! I feel smarter now and sorry for coming with this.... |
@sorentwo now that I removed preload I have problems with these settings:
Here:
Do I even need this and if I'd like to use it, how do I set this up without preloading the app? |
You don't need that code because the worker will boot the code itself. |
you mean the entire block or just |
everything in on_worker_boot you should remove. |
OK. I don't remember where I got this code from but if I remove it, will I always have a big enough db connection pool? |
You should have that code in an initializer instead if you want to configure the AR pool |
Ok, I'll use this: https://devcenter.heroku.com/articles/concurrency-and-database-connections#threaded-servers thank you again |
I'm very often left with non-working web app after deploy with mina...
puma somehow dies...
(here the website is down)
(note the line Puma is not running)
I then have to start puma agan manually and a lot of times I have to stop and restart multiple times before it works.
Mina restarts puma via
pumactl
but I have also tried to replace the default command with:But the problem happened again. Also it happens on multiple (Rails 4.1.x) apps...
How to debug this?
The text was updated successfully, but these errors were encountered: