Apache + mod_wsgi + flask app: "Unable to get bucket brigade for request" error in logs

Artsiom Praneuski

I have a apache2/mod_wsgi/flask/python2.7 app. Sometimes such line appears in log file:

Partial results are valid but processing is incomplete: [client 45.132.96.124:34500] mod_wsgi (pid=13920): Unable to get bucket brigade for request., referer: https://my-site.com/some_url/

What is "bucket brigade" and what this error actually means? Is it apache error or wsgi server error? What does lead to this error? If this is some unhandled exception - how to handle it and where?

Thanks in advance.

Graham Dumpleton

It usually means that the HTTP client making the request dropped the connection before the request content could all be read. If you are dealing with slow clients on mobile phone networks, it is not uncommon to see this.

As to whether you can handle it so it is ignored and nothing logged, I would need to see the complete context of the error message to see whether it is generated in conjunction with an IOError exception in Python. If it is, the Python code could catch it and deal with and return a 500 error response but not log anything.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to properly serve Flask App on Ubuntu via Apache 2 and mod_wsgi? 404 Not Found Error

Running a mod_wsgi (Flask) app and a non mod_wsgi app on same Apache server

Configuring Apache WSGI for Flask on Google Compute Engine (Flask Import Error using mod_wsgi)

mod_wsgi keeps restarting flask app

Numpy ImportError when deploying Flask App using mod_wsgi/Apache2

Apache + mod_wsgi + flask app: doing graceful restart due to receiving SIGUSR1 signal

apache mod_wsgi error with django in virtualenv

Getting Flask to use Python3 (Apache/mod_wsgi)

Issue with deployment flask and apache2 mod_wsgi

Possible to run a Flask app with mod_wsgi on a specific port?

Django Custom Error Handlers in Apache and mod_wsgi

server internal error with mod_wsgi and apache2

Error occurred when installing mod_wsgi on apache2.4

Apache server mod_wsgi in Redhat gives 500 error

What's the proper way to think about filepaths with a Flask application being served on apache with mod_wsgi

Flask + Apache (mod_wsgi) + boto3: name 'ssl' is not defined

Django, apache and mod_wsgi

Apache mod_wsgi and Qt

Apache, Django and mod_wsgi

Permission denied for Adafruit_MotorHAT in mod_wsgi deployed Flask app

In production, Apache + mod_wsgi or Nginx + mod_wsgi?

AttributeError: /usr/sbin/httpd: undefined symbol: Error_GetLastErrorNum with Flask and mod_wsgi

Deploying Django app on Ubuntu 16.04 apache2 with mod_wsgi

Python mod_wsgi write to custom log file instead of apache error_log

500 internal server error mod_wsgi apache "importerror: No Module named 'django'

403 error forbidden you don't have permission to access /myapp on this server mod_wsgi and apache

Apache2 whith mod_wsgi python3 'TypeError:' and return error 500

500 Internal Server Error django + mod_wsgi + apache2 on ubuntu 16

Trying to set up flask with mod_wsgi