-
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
Reactor suddenly throws NoMethodError but can't find reason #3278
Comments
The error is in the line shown below, which indicates that the status being returned by your app is nil. The rack spec states that It seems the error is in the lowlevel_error_handler you've shown above. It must return a valid response. Line 607 in cdb2341
|
Yes, since #3094 (Puma v6.4.0) the result of the By the way, if you use a recent enough version of sentry-ruby, it will automatically monkey-patch Puma to capture the low-level errors. |
So you don't need to capture the exception yourself in that case. |
Thanks to all :) It was my only experience to upgrade ruby all the way down from 2.5 to 3.2, so I didn't get a notice on what should I do to prepare for the change.
Just to check for any misunderstandings that might have arisen from my poor English, could you please verify whether itis correct or if I've did the wrong way? |
Yes, exactly, that is the suggestion. You can also still use |
Okay, I think I got the point. |
Describe the bug
A clear and concise description of what the bug is.
I use capistrano as a deploying method, and this is my deploy script:
bundle exec puma -C config/puma.rb -e production > logs/puma.log 2>&1 &
I started to use this method when I've upgraded my app ruby version from 2.5.3 to 3.2.2, and before then, I used '-d' option to daemonize.
After ruby version upgrade and use the build script, it works well in many times but sometimes I get this kind of errors and the server stops running.
And then, I restart the server by this command:
bundle exec pumactl -S tmp/pids/puma.state phased-restart
Then it works for few hours, and the same thing repeats again.
Somebody please save me from this never ending disaster.
Puma config:
Please copy-paste your Puma config AND your command line options here.
To Reproduce
This is my output(and it worked well):
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: