From: fabien.bagard at parrot.com (Fabien Bagard)
Subject: cgit v0.10.2-26 + apache2 = random 500 Internal Server Error
Date: Fri, 9 Jan 2015 12:05:03 +0100 [thread overview]
Message-ID: <20150109120503.5a88a4ab@FR-B-701-006.Parrot.biz> (raw)
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 at 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>
next reply other threads:[~2015-01-09 11:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-09 11:05 fabien.bagard [this message]
2015-01-09 11:14 ` john
2015-01-09 11:24 ` fabien.bagard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150109120503.5a88a4ab@FR-B-701-006.Parrot.biz \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).