git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re: CGIT 0.8.3.1 "chokes" on some bare repos

From
ESEugene Sajine <euguess@gmail.com>
Date
Aug 3, 2010, 18:19 UTC
Message-ID
<AANLkTindiOoy-4W5DJ9AGa8q29Tsm9P8K_4TEgRfmJW=@mail.gmail.com>
In-Reply-To
<AANLkTinDPa7ngcTEfYC8k2O3hwkYszEUsb3pZqnuOSo2@mail.gmail.com>
On Tue, Aug 3, 2010 at 1:49 PM, Lars Hjemli <hjemli@gmail.com> wrote:
Show 23 quoted lines
> On Tue, Aug 3, 2010 at 19:10,  <Euguess@gmail.com> wrote:
>> The command you provided is not giving any error messages in one of the
>> repositories which shows incorrectly.
>>
>> As for URL - unfortunately it cannot be done as all the code is on closed
>> LAN
>
> Ok. Try the following:
>
> 1) make sure caching is disabled in /etc/cgitrc (nocache=1)
> 2) find the repo.url setting for the troublesome repo in /etc/cgitrc
> 3) run `PATH_INFO=$BAD_REPO_URL /path/to/cgit.cgi 1>cgit.html 2>cgit.log`
> 4) check if cgit.html is ok - if so, your problem is probably due to
> stale cache entries which could be caused by permission problems or
> stale *.lock files in /var/cache/cgit
> 5) check cgit.log for any errormessage - if there's errors but they
> don't make any sense to you, try repeating step 3 but run cgit under
> either strace or gdb.
> 6) please report the results of this experiment ;)
>
> --
> larsh
>

I have disabled cache: i have nocache=1 (we are working without cache yet, cache-size set to 0, but for the experiment i commented this out) We are using scan mode as we have central folder to store our repos. So I switched off the scanmode by commenting the scan-url out from cgitrc

Now when i'm trying to generate the html for the repo in question i get html where it says "no repositories found". It is obviously not picking up the PATH_INFO

The command is like this: $ PATH_INFO=/home/users/gitrepouser/repos/subfolder/repo.git ./cgit.cgi 1>cgit.html 2>cgit.log

Usually, we are scanning the folder /home/users/gitrepouser/repos/ cgit.log is empty so far

Thanks, Eugene

Previous: Lars HjemliNext: Lars Hjemli
Message 2 of 5 in “Re: Re: CGIT 0.8.3.1 "chokes" on some bare repos”
  1. Lars HjemliAug 3, 2010
  2. Eugene SajineAug 3, 2010
  3. Lars HjemliAug 3, 2010
  4. Eugene SajineAug 3, 2010
  5. Lars HjemliAug 3, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.