Skip to content
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

OSError: [Errno 9] Bad file descriptor with Gunicorn #12

Open
JaccoVE opened this issue Jul 31, 2021 · 5 comments
Open

OSError: [Errno 9] Bad file descriptor with Gunicorn #12

JaccoVE opened this issue Jul 31, 2021 · 5 comments
Labels
question Further information is requested

Comments

@JaccoVE
Copy link

JaccoVE commented Jul 31, 2021

Screenshot from 2021-07-31 12-11-11

@miguelgrinberg
Copy link
Owner

@JaccoVE why are your workers timing out immediately after starting?

@miguelgrinberg miguelgrinberg added the question Further information is requested label Jul 31, 2021
@smeetsomaiya
Copy link

smeetsomaiya commented Dec 12, 2022

I have the same issue with Gunicorn + turbo flask.
Screen Shot 2022-12-12 at 1 04 56 AM

This is my turbo update code

        ```
         # Runs every 2 secs in a thread
        with app.test_request_context():
            turbo.push([turbo.update(render_template('page-1-data.html'), 'page_1_svg_data'),
                        turbo.update(render_template('page-2-data.html'), 'page_2_svg_data'),
                        turbo.update(render_template('page-3-data.html'), 'page_3_svg_data')])
            ```

@miguelgrinberg
Copy link
Owner

@smeetsomaiya I need to add some code to silence the error so that you don't see it in your log, but this error can be ignored as it just indicates that the client went away.

@smeetsomaiya
Copy link

Got it, thanks. Do you know what might be causing the "Worker was terminated due to signal 9"? Either that or the bad file descriptor stops my turbo stream.

@miguelgrinberg
Copy link
Owner

Had to be the signal. That means that your server was killed. I have no way to know why, if you didn't kill it yourself, then something on your system did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants