cgit v0.10.2-26 + apache2 = random 500 Internal Server Error

Fabien Bagard fabien.bagard at parrot.com
Fri Jan 9 12:05:03 CET 2015


Hi list !

I do face a strange problem with cgit 0.10.2-26 (Pulled from git).

All my repos are correctly scanned, but after a random amount of time, from 5 secondes to tens of minutes, it seems something stops working : Apache2 throws ans error 500 : Internal server error.
Sometimes it starts to work again, but most of the time, I have to reload apache. Not using apache is not a solution



Here are revelant informations :

Permissions are correct on scan-path.

cgitrc:
cache-root=/var/cache/cgit/
cache-size=500
section-from-path=1
snapshots=tar.gz tar.bz2 zip
clone-prefix=ssh://login@git.company.org
#extra display
enable-commit-graph=1
max-stats=year
#scan
scan-hidden-path=0
scan-path=/data
max-repo-count=5000
# coloration syntaxique
source-filter=/usr/local/lib/cgit/filters/syntax-highlighting.sh

apache2 vhost:
[...]
  RewriteEngine   on
  # Don't modify the urls to *.png and *.css files
  RewriteRule ^/(.*\.png)$ /$1 [L]
  RewriteRule ^/(.*\.css)$ /$1 [L]
  # remove cgit.cgi from the url
  RewriteRule ^/(.*)$ /cgit.cgi/$1 [L]

  DocumentRoot /var/www/cgit/
  <Directory "/">
    AllowOverride None
    Options +ExecCGI
    AddHandler cgi-script .cgi
    DirectoryIndex cgit.cgi
    [...]
  </Directory>

content of /var/www/cgit : (Not the best perms, I agree)
$ ls -l /var/www/cgit/
total 5044
-rwxr-xr-x 1 root root 5129317 Jan  2 11:47 cgit.cgi
-rw-r--r-- 1 root root   12520 Jan  2 11:47 cgit.css
-rw-r--r-- 1 root root    1488 Jan  2 11:47 cgit.png
-rw-r--r-- 1 root root     590 Jan  9 11:30 cgitrc
-rw-r--r-- 1 root root    1078 Jan  2 11:47 favicon.ico
-rw-r--r-- 1 root root      47 Jan  2 11:47 robots.txt


The only log I have from apache is :
Here it works,
[09/Jan/2015:11:31:36 +0100] "GET / HTTP/1.1" 200 55103 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.3.0"
[09/Jan/2015:11:31:36 +0100] "GET /cgit.css HTTP/1.1" 200 2706 "https://cgit.company.org/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.3.0"
[09/Jan/2015:11:31:37 +0100] "GET /cgit.png HTTP/1.1" 200 1960 "https://cgit.company.org/" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.3.0"
then, no more
[09/Jan/2015:11:42:29 +0100] "GET / HTTP/1.1" 500 2131 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.3.0"
[09/Jan/2015:11:44:07 +0100] "GET / HTTP/1.1" 500 818 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.3.0"

Please le me know if you need more information.
Any hint is welcome :)

-- 
Best regards

-- 
Fabien Bagard
IT Department
tel + 33 (0)1 48 03 60 40

--
GPG key : 0xFD4056C0
GPG key server : pgp.mit.edu
--

--------------------------------------------------------------------------------
Parrot SA
174, Quai de Jemmapes | 75010 Paris - France
tel + 33 (0)1 48 03 60 60 | fax + 33 (0)1 48 03 70 08
http://www.parrot.com
--------------------------------------------------------------------------------

This e-mail message and any attached document(s) are for the sole use of
the intended recipient(s)and may contain confidential and legally
privileged information.
Any unauthorized review, copy, use and/or disclosure is prohibited.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20150109/a4fcfdbf/attachment.asc>


More information about the CGit mailing list