List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: Can I get detailed Cgit logs?
Date: Tue, 25 Feb 2014 18:08:53 +0000	[thread overview]
Message-ID: <20140225180853.GA18371@serenity.lan> (raw)
In-Reply-To: <530CD89A.5060403@thewordnerd.info>

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
file system.

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
discovery.


  reply	other threads:[~2014-02-25 18:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-25 17:53 nolan
2014-02-25 18:08 ` john [this message]
2014-02-25 18:40   ` nolan
2014-02-25 19:24     ` nolan
2014-02-25 19:29       ` john
2014-02-25 19:25     ` john

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=20140225180853.GA18371@serenity.lan \
    --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).