[MacPorts] #52708: Trac admin gateway timeout or internal server error
#52708: Trac admin gateway timeout or internal server error ----------------------------+--------------------- Reporter: ryandesign | Owner: admin@… Type: defect | Status: new Priority: Normal | Milestone: Component: server/hosting | Version: Keywords: | Port: ----------------------------+--------------------- In the [/admin admin page], I changed the project's description, and clicked Apply changes. After a minute or two, I got this: {{{ Gateway Timeout The gateway did not receive a timely response from the upstream server or application. Apache/2.4.10 (Debian) Server at trac.macports.org Port 443 }}} or sometimes this: {{{ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache/2.4.10 (Debian) Server at trac.macports.org Port 443 }}} The description did not get changed. Note that the server administrator address in the httpd.conf should be changed to admin at macports dot org as well. -- Ticket URL: <https://trac.macports.org/ticket/52708> MacPorts <https://www.macports.org/> Ports system for OS X
#52708: Trac admin gateway timeout or internal server error -----------------------------+--------------------- Reporter: ryandesign | Owner: admin@… Type: defect | Status: new Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: | Keywords: Port: | -----------------------------+--------------------- Comment (by neverpanic): I set the server admin address on all vhosts. -- Ticket URL: <https://trac.macports.org/ticket/52708#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#52708: Trac admin gateway timeout or internal server error -----------------------------+--------------------- Reporter: ryandesign | Owner: admin@… Type: defect | Status: new Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: | Keywords: Port: | -----------------------------+--------------------- Comment (by raimue): The project description would be in `trac.ini`. This file can only be [https://github.com/macports/trac.macports.org/ edited in git] at the moment, since edits from the web interface will reorder options and strip comments. Sorry for the inconvenience. -- Ticket URL: <https://trac.macports.org/ticket/52708#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#52708: Trac admin gateway timeout or internal server error -----------------------------+--------------------- Reporter: ryandesign | Owner: admin@… Type: defect | Status: closed Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: fixed | Keywords: Port: | -----------------------------+--------------------- Changes (by neverpanic): * status: new => closed * resolution: => fixed Comment: I've looked into the performance problems and found that we can drastically increase our processed requests per second by using more processes and fewer threads. I suspect contention on a resource that's shared between threads but separate for processes, either in Python itself, or in mod_wsgi. For now, you should no longer receive timeouts. As @raimue already mentioned, the unwriteable state of `trac.ini` will stay, though, so this part of the ticket is wontfix. -- Ticket URL: <https://trac.macports.org/ticket/52708#comment:3> MacPorts <https://www.macports.org/> Ports system for macOS
#52708: Trac admin gateway timeout or internal server error -----------------------------+--------------------- Reporter: ryandesign | Owner: admin@… Type: defect | Status: closed Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: fixed | Keywords: Port: | -----------------------------+--------------------- Comment (by jmroot): Replying to [comment:3 neverpanic]:
I suspect contention on a resource that's shared between threads but separate for processes, either in Python itself, or in mod_wsgi.
That would probably just be the GIL if a lot of time is being spent computing in python code. -- Ticket URL: <https://trac.macports.org/ticket/52708#comment:4> MacPorts <https://www.macports.org/> Ports system for macOS
#52708: Trac admin gateway timeout or internal server error -----------------------------+--------------------- Reporter: ryandesign | Owner: admin@… Type: defect | Status: closed Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: fixed | Keywords: Port: | -----------------------------+--------------------- Comment (by neverpanic): Replying to [comment:4 jmroot]:
That would probably just be the GIL if a lot of time is being spent computing in python code.
I see a single process using lots of CPU, and if I run ltrace on that process I see a number of calls into `apr_*`, which makes me think this is probably mod_wsgi code, not Python. -- Ticket URL: <https://trac.macports.org/ticket/52708#comment:5> MacPorts <https://www.macports.org/> Ports system for macOS
participants (1)
-
MacPorts