threads / discuss / 24160

CGIT 0.8.3.1 "chokes" on some bare repos

Subject: CGIT 0.8.3.1 "chokes" on some bare repos

## tl;dr

4 messages between Jun 21, 2010 and Aug 3, 2010.

replies: 3people: 2as markdown or json

Eugene Sajine· Jun 21, 2010, 21:34 UTC · lore
Lars,

Could you, please, advise how can i switch on some logging in CGIT so it will trace all activity and tell me if there are some errors?

The problem i have is that some repos summary page is not getting shown properly. I see only branches, but i see no Tags, Age or Clone URL. apache logs are not very helpful.

Thanks, Eugene

Lars Hjemli· Jun 22, 2010, 05:14 UTC · re: Eugene Sajine · lore

Re: CGIT 0.8.3.1 "chokes" on some bare repos

On Mon, Jun 21, 2010 at 23:34, Eugene Sajine <euguess@gmail.com> wrote:
> Could you, please, advise how can i switch on some logging in CGIT so
> it will trace all activity and tell me if there are some errors?

There's no builtin logging, but running cgit.cgi under gdb (or even strace) should do the trick.

-- larsh

Eugene Sajine· Aug 3, 2010, 15:57 UTC · re: Lars Hjemli · lore

Re: CGIT 0.8.3.1 "chokes" on some bare repos

On Tue, Jun 22, 2010 at 1:14 AM, Lars Hjemli <hjemli@gmail.com> wrote:
Show 10 quoted lines
> On Mon, Jun 21, 2010 at 23:34, Eugene Sajine <euguess@gmail.com> wrote:
>> Could you, please, advise how can i switch on some logging in CGIT so
>> it will trace all activity and tell me if there are some errors?
>
> There's no builtin logging, but running cgit.cgi under gdb (or even
> strace) should do the trick.
>
> --
> larsh
>
Lars,

I have a very strange issue with CGIT that i have no clue even how to diagnose. We have about 250 git repos and counting and we are using CGIT to browse all of them.

Everything works extremely well with an exception of few repositories that when opened are not showing the tags or last commits. I.e. when I'm looking at the source of the page i see that the HTML is not fully generated. It stops right after it shows branches and commit messages, so effectively only third of a page is generated. The problem is that it happens on selected list of repos - something seems to prevent CGIT from completing the HTML generation...

I asked admins to run apache with "strace -f -o" and accessed a couple of those repos. But i don't see any problems in the log... May be I'm looking for wrong thing...

Any ideas?

Thanks, Eugene

Lars Hjemli· Aug 3, 2010, 16:49 UTC · re: Eugene Sajine · lore

Re: CGIT 0.8.3.1 "chokes" on some bare repos

On Tue, Aug 3, 2010 at 17:57, Eugene Sajine <euguess@gmail.com> wrote:
> Everything works extremely well with an exception of few repositories
> that when opened are not showing the tags or last commits.
> I.e. when I'm looking at the source of the page i see that the HTML is
> not fully generated.

This sounds like a premature exit() - does `git for-each-ref --format="%(refname)" | xargs -L 1 git rev-parse --verify` produce any errormessages?

Also: if you could provide me with a clone-url for one of the
troublesome repositories, I can try to debug the issue.

-- larsh

← back to recent threads