trac-hacks / tracstats

Project and source code statistics plugin for Trac.
http://trac-hacks.org/wiki/TracStatsPlugin
Other
20 stars 13 forks source link

500 error on trac 0.12, python 2.4 #22

Closed icco closed 7 months ago

icco commented 13 years ago

I get a 500 error trying to load /stats/code.

Nov 12 16:42:19 ip-10-202-253-193 httpd[1500]: [warn] mod_fcgid: read data timeout in 40 seconds
Nov 12 16:42:19 ip-10-202-253-193 httpd[1500]: [error] [client 208.85.207.99] Premature end of script headers: trac.fcgi, referer: http://www.cominor.com/trac/stats

When I load a subpage of code, such as a developer page, it works fine. But the root code page always errors out.

mrjbq7 commented 13 years ago

I'm not able to reproduce this error -- perhaps it has to do with a CGI timeout causing the script to be killed? The page could take awhile to load sometimes -- say 5-15 seconds if you have a lot of revisions, or are on slower hardware. It's something I'd like to improve.

icco commented 13 years ago

Hmm. Well the timeout is set to 300 seconds, so I don't think it is that. We have 10K+ commits, and I'm curious if the error has something with the response being too large, because it dies at a little over 40 seconds every time. The other thing I notice is that it only times out for the default code, not if I tell it to only do the last month.

mrjbq7 commented 13 years ago

Perhaps the process is memory limited? The code path is very similar between last month and "all time"... except the list of revisions is larger.

stoecker commented 7 months ago

Closing old WORKSFORME ticket.