-
Notifications
You must be signed in to change notification settings - Fork 548
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
Crash when starting Ruby 3.3.0 Rails 7 application #2520
Comments
Your app is receiving an unhandled signal during a system call to open the file used to indicate that the app finished spawning. It is possible that Passenger sent that signal if the app took a long time to boot, but it is also possible that the signal came from elsewhere such as the oom killer or some other watchdog type process. It would be helpful if you could determine which signal number it is receiving, or what process is sending it. |
@mitchellhenke I was wondering if you figured out what was causing this issue as we are also running into it currently. |
Sorry, no, have started migrating away from Passenger :/
|
This should be fixed in 6.0.23 |
This issue does not seem to be fixed in Passenger 6.0.26 or has regressed. I am seeing it in my logs. Eg,
Please investigate if it is a regression. Are users receiving error pages if Passenger logs this error? Thanks |
This is remarkably similar to https://bugs.ruby-lang.org/issues/20708. But the fix from that bug (https://github.com/ruby/ruby/pull/11537/files) is still present in ruby 3.4 afaict: https://github.com/ruby/ruby/blob/master/io.c#L7031 @jcrisp can you tell me a bit more about your system where this is happening? Especially anything that affects the way syscalls would behave such as distro, kernel, security software, containerization, etc. |
@CamJN thanks for looking into this. I'll send you details via email, using the one listed on your silver.. domain. |
Hi @CamJN, just wanted to check you got the details? I can email it to a phusionpassenger address if that would be better? Thanks. |
I got it, sorry for not responding yet, I've been busy. |
Issue report
Fill in as much as possible so that we can understand, find and fix the problem.
Are you sure this is a bug in Passenger?
Please read our troubleshooting and debugging guides first:
https://www.phusionpassenger.com/library/admin/troubleshooting/
https://www.phusionpassenger.com/library/admin/
Please try with the newest version of Passenger to avoid issues that have already been fixed
Question 1: What is the problem?
Booting a Ruby 3.3 application without errors
Infrequently, passenger will crash when booting the application.
It does not happen every time which makes it a little difficult to track down. We didn't see the error prior to upgrading our application to Ruby 3.3.
This is the stacktrace in
passenger.log
:We see the
Interrupted system call @ rb_sysopen - /tmp/passenger.spawn.XXXX0DHlFB/response/finish (Errno::EINTR)
more frequently, but sometimes the application boots successfully after that. In rare cases, it results inCould not spawn process for application
and the application boot fails.Question 2: Passenger version and integration mode:
open source 6.0.19/nginx
Question 3: OS or Linux distro, platform (including version):
Ubuntu 20.04
Question 4: Passenger installation method:
Your answer:
[ ] RubyGems + Gemfile
[x] RubyGems, no Gemfile
[ ] Phusion APT repo
[ ] Phusion YUM repo
[ ] OS X Homebrew
[ ] source tarball
[ ] Other, please specify:
Question 5: Your app's programming language (including any version managers) and framework (including versions):
Ruby 3.3.0, Rails 7.1.2
Question 6: Are you using a PaaS and/or containerization? If so which one?
No.
Question 7: Anything else about your setup that we should know?
Your answer:
We strive for quality and appreciate you taking the time to submit a report! Please note that if you want guaranteed response times and priority issue support we encourage you to join our enterprise customer base. They also provide us with the means to continue our high level of open source support!
The text was updated successfully, but these errors were encountered: