macports-webapp icon indicating copy to clipboard operation
macports-webapp copied to clipboard

504 errors

Open jmroot opened this issue 4 months ago • 3 comments

The site has been timing out or giving 504 errors for most of today. @arjunsalyan

jmroot avatar Aug 09 '25 08:08 jmroot

I am noticing improvement in response from the webapp site, in the day or so since #391 was resolved. This removed an unintended firewall block against ports.macports.org.

@jmroot et al, can this ticket be closed? Are you now seeing a similar improvement in response?

Dave-Allured avatar Aug 21 '25 07:08 Dave-Allured

I am also seeing normal response times now, however I wouldn't close the ticket so soon, since there seems to be a problem in the site programming where it apparently does not implement these requests to Trac asynchronously.

ryandesign avatar Aug 21 '25 08:08 ryandesign

@ryandesign While the calls are asynchronous, but they hit the same server only. The uwsgi service on this server runs 6 sync workers, each call to trac could potentially block a gunicorn worker for 60 seconds (current timeout) from accepting any more requests. When all workers get busy, it would lead to 502s and 504s.

We can reduce overall timeout for uwsgi to 30 seconds, and a specific timeout for the request made to trac.macports.org somewhere between 2-5 seconds.

OR, we can also make the call to trac from the client side itself. But we might loose caching benefits.

arjunsalyan avatar Aug 21 '25 09:08 arjunsalyan