Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Hi there! Was wondering if you have some insight on the following problem:
Long story short
We are running an aiohttp app behind an Apache proxy. Around 20% of requests to the app cause Apache to return 502 Proxy Error.
These happen with requests to all endpoints of the server, and there seems to be no pattern to errors of any kind. The proxy error is returned immediately upon request.
The example of Apache logs:
Full error response example:
Do you see anything in the logs from aiohttp?
How are you running aiohttp? With gunicorn or directly?
I guess debug level logs from aiohttp (and gunicorn if it's running) would help.
Also how is the aiohttp server addressed by apache (by an ip or a hostname)? I've had similar issues that turned out to be DNS problems which were fixed by using static IPs.
We tried to check the aiohttp debug logs, that's how we tried to do it, and how we are running the app:
We ran the app with this configuration, but were unable to see anything related to the problematic requests - they do not even register in the access log.
I'm posting the Apache config below, hope it might help you reproduce it.
Default config. Nothing special here.
Apache Error Logs
Hi @asvetlov, running the app with