Error 500/404 on displaying large commit code
Created by: Danpiel
Hello, i got this error on commit code display of big project, on page load I got 100% cpu on server, after timeout just displays 500 error, sometimes 404.
Started GET "/server/commits/xxxxxxxxxxxxxxxxxxxxxxx" for xxxxxxxxxxxxxx at 2012-05-11 07:03:55 +0300
Processing by CommitsController#show as HTML
Parameters: {"project_id"=>"xxxxxxx", "id"=>"xxxxxxxxxxxxxxxxxxxxxxxx"}
Completed 500 Internal Server Error in 20179ms
Grit::Git::GitTimeout (Grit::Git::GitTimeout):
app/models/commit.rb:10:in `diffs'
app/controllers/commits_controller.rb:40:in `show'
On smaller projects/commits everything working fine.
Server/gitlab setup:
- Ubuntu server 12.04
- Apache2.2 + Passanger
- ruby 1.9.1 + system wide installed gems
- gitlabhq stable and master
- git_max_size: 1638400 # 200.megabytes
- git_timeout: 20
I can't figure which error is that, encoding (charlock_holmes bug) or big commit. ? And how to fix that ?