-
Notifications
You must be signed in to change notification settings - Fork 547
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
IOError: stream closed in another thread #2499
Comments
I wonder if this is related: 213c9a0 Would you mind editing |
@bantonj Any new findings that you might share? @CamJN We are also getting the same error in cases when the application is under heavier load and then being restarted following a As if there is a race condition between application unloading and web server accepting the next request. Worker processes remain in this status indefinitely:
Setup: Passenger Standalone v6.0.20, Amazon Linux 2023, Ruby 3.2.2, x86_64. I have tried commenting the line in
|
I can reliably reproduce this with ruby 3.2.4 on macOS just by running |
When the app process starts, it creates a server socket and multiple threads. Each thread accepts connections from that single server socket. The main thread then waits until the Passenger Core tells us to shut down. Upon receiving the shutdown signal, the main thread first terminate all threads by calling So I don't really know why one would get a "stream closed in another thread" error from one of the threads. By the time we close the server sockets, the threads should already have terminated. I can't reproduce the issue. Maybe someone who can, can help by increasing log level to 7. |
Issue report
Question 1: What is the problem?
After upgrading to version
6.0.18
from6.0.15
we started to see this exception in our logsIOError: stream closed in another thread
. The backtrace is:Question 2: Passenger version and integration mode:
open source
6.0.18
apacheQuestion 3: OS or Linux distro, platform (including version):
Ubuntu 20.04 on arm
Question 4: Passenger installation method:
Your answer:
[x] RubyGems + Gemfile
[ ] RubyGems, no Gemfile
[ ] Phusion APT repo
[ ] Phusion YUM repo
[ ] OS X Homebrew
[ ] source tarball
[ ] Other, please specify:
Plus
passenger-install-apache2-module --apxs2-path='/usr/bin/apxs'
andpassenger-config build-native-support
Question 5: Your app's programming language (including any version managers) and framework (including versions):
Ruby 2.7.7
Question 6: Are you using a PaaS and/or containerization? If so which one?
Docker based on
ubuntu:20.04
The text was updated successfully, but these errors were encountered: