-
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
Issues with config file and booting on 4.1.0 #1922
Comments
👋 hey @sudara. Does this repro with the hello-world rackup app here? https://github.com/puma/puma/blob/master/test/rackup/hello.ru If not, does it repro with a blank |
Howdy! This happened in production on ubuntu. I should mention I bumped Rails 6.0.beta2 to 6.0 final and Puma from 4.0.1 to 4.1.0 simultaneously. I tried to reproduce locally with hello.ru and the same-ish config — everything is happy, could not reproduce. With a fresh Rails 6.0.0 app locally on macos on both versions 4.0.1 and 4.1.0 I was getting strange things happening using multiple daemonized workers and the How strange? My fans start pumping hard (ruby cpu % is nice and low, however) and when I try to open a terminal window, instead of my prompt I got this error:
It turns out there was a bundler issue that had the workers running in a very frenzied multi-core-eating restart loop:
ANYWAY....after resolving, the only difference I can see is 4.0.1 doesn't output anything after "Daemonizing..."
Whereas 4.1.0 outputs some extra stuff into my prompt afterwards.
I'll let you know if I dig anything else up. |
@sudara The STDOUT change was reverted on master, you can give that a shot and see if anything happens. |
Closing, please LMK if 4.1.1 doesn't fix the issue. |
Steps to reproduce
Maybe related to #1905 / #1837. I'm reporting in case it helps. Feel free to close if it's a dupe.
I upgraded an app to 4.1.0 today and saw some strange behavior. On this app,
puma.rb
has a conditional where it does particular things in production.On 4.1.0 it almost appears as if the
env == "production"
isn't evaluating astrue
, as we only get one worker.Expected behavior
On 4.0.x, 3 workers boot, cluster stays up.
Actual behavior
On 4.1.0, only 1 worker boots, it seems to serve a couple requests and then die intermittently.
System configuration
Ruby 2.6.2
Rails 6.0
Puma 4.1.0
The text was updated successfully, but these errors were encountered: