Can I get detailed Cgit logs?
john at keeping.me.uk
Tue Feb 25 19:08:53 CET 2014
On Tue, Feb 25, 2014 at 11:53:30AM -0600, Nolan Darilek wrote:
> I'm encountering the infamous "no repositories found" issue. I've
> exhaustively checked permissions, up to and including assigning a shell
> to the www-data user and verifying that it can read my Git repositories.
> I've checked every directory permission from /, and it all looks good.
> One complicating factor of my setup is that it is in Docker
> (http://docker.io) containers. I currently have a Docker container
> hosting Git repositories via Gitolite, another running Jenkins, and
> Cgit. Jenkins communicates with Gitolite just fine, though it uses SSH
> which I know works.
> It would be very helpful if Cgit gave me an exact error as to why it
> can't access my repositories. I had to jump through a hoop with Selinux
> on 13.10 in the Gitolite container, so if that's tripping up Cgit for
> some reason then knowing would be helpful.
How is CGit able to see the repositories? Unlike Jenkins, CGit does not
speak any of the Git protocols, it expects to see repositories in the
Are you Docker containers sharing an underlying filesystem, or do you
have some external job that is cloning the repositories for CGit?
> Is there any way to get detailed error logs? I don't see any in my
> Apache logs, which could mean a misconfiguration on that end. But having
> access to some sort of detailed error log would be very helpful in
> debugging this.
Since CGit is a CGI program, you can just run it and see what happens.
You may want to export PATH_INFO=/ before doing so to make sure it
generates the index.
You can run under strace to monitor what is going on during repository
More information about the CGit