* cgit v0.10.2-26 + apache2 = random 500 Internal Server Error
@ 2015-01-09 11:05 fabien.bagard
2015-01-09 11:14 ` john
0 siblings, 1 reply; 3+ messages in thread
From: fabien.bagard @ 2015-01-09 11:05 UTC (permalink / 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* cgit v0.10.2-26 + apache2 = random 500 Internal Server Error
2015-01-09 11:05 cgit v0.10.2-26 + apache2 = random 500 Internal Server Error fabien.bagard
@ 2015-01-09 11:14 ` john
2015-01-09 11:24 ` fabien.bagard
0 siblings, 1 reply; 3+ messages in thread
From: john @ 2015-01-09 11:14 UTC (permalink / raw)
On Fri, Jan 09, 2015 at 12:05:03PM +0100, Fabien Bagard wrote:
> 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
This sounds like an Apache problem and not anything to do with CGit
(although I guess CGit could be triggering the issue).
Since CGit is a CGI process, there is nothing that persists between
requests, so I would not expect a CGit problem to relate to the lifetime
of the Apache process.
^ permalink raw reply [flat|nested] 3+ messages in thread
* cgit v0.10.2-26 + apache2 = random 500 Internal Server Error
2015-01-09 11:14 ` john
@ 2015-01-09 11:24 ` fabien.bagard
0 siblings, 0 replies; 3+ messages in thread
From: fabien.bagard @ 2015-01-09 11:24 UTC (permalink / raw)
On Fri, 9 Jan 2015 11:14:39 +0000
John Keeping <john at keeping.me.uk> wrote:
> On Fri, Jan 09, 2015 at 12:05:03PM +0100, Fabien Bagard wrote:
> > 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
>
> This sounds like an Apache problem and not anything to do with CGit
> (although I guess CGit could be triggering the issue).
>
> Since CGit is a CGI process, there is nothing that persists between
> requests, so I would not expect a CGit problem to relate to the lifetime
> of the Apache process.
Our other vhosts are working as expected. Server is not over-loaded. I guess CGit is triggering the issue, this is why I posted here.
--
Cordialement
--
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/208eddcb/attachment.asc>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-09 11:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-09 11:05 cgit v0.10.2-26 + apache2 = random 500 Internal Server Error fabien.bagard
2015-01-09 11:14 ` john
2015-01-09 11:24 ` fabien.bagard
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).