# Help on CGIT

10 messages from 2009-12-29 to 2009-12-29. Participants: Jorge Bastos, Luciano Rocha, Lars Hjemli, Felipe Contreras.
Thread: https://gitlist.dev/t/22049

## Jorge Bastos, 2009-12-29 12:18

Subject: Help on CGIT
Message-ID: <31576a6d119e2edd66bd8bcc3281e9ad@192.168.1.222>
URL: https://gitlist.dev/e/31576a6d119e2edd66bd8bcc3281e9ad%40192.168.1.222

```
Howdy people, 

Since i cannot find any CGIT web interface mailing list on their webpage,
i'm asking here. 

I have CGIT working at 50%. 

The 1st page show's correctly, but when i click the project name, it
becames unconfigured and wierd, and apache complains about this: 

[Tue Dec 29 12:12:25 2009] [error] [client 192.168.1.3] [cgit] Unable to
lock slot /var/cache/cgit/53200000.lock: No such file or directory (2)

My apache configuration for CGIT is: 

 AllowOverride None
 Options ExecCGI
 Order allow,deny
 Allow from all

 DirectoryIndex cgit.cgi

 AddHandler cgi-script cgi pl

Am i missing something else? I've asked google but there's not much info
on
the web about it. 

Thanks,
Jorge,

```

## Luciano Rocha, 2009-12-29 12:31

Subject: Re: Help on CGIT
Message-ID: <20091229123127.GA6154@bit.office.eurotux.com>
URL: https://gitlist.dev/e/20091229123127.GA6154%40bit.office.eurotux.com
In-Reply-To: <31576a6d119e2edd66bd8bcc3281e9ad@192.168.1.222>

```
On Tue, Dec 29, 2009 at 12:18:38PM +0000, Jorge Bastos wrote:
> Howdy people, 
> 
> Since i cannot find any CGIT web interface mailing list on their webpage,
> i'm asking here. 
> 
> I have CGIT working at 50%. 
> 
> The 1st page show's correctly, but when i click the project name, it
> becames unconfigured and wierd, and apache complains about this: 
> 
> [Tue Dec 29 12:12:25 2009] [error] [client 192.168.1.3] [cgit] Unable to
> lock slot /var/cache/cgit/53200000.lock: No such file or directory (2)

Does the directory /var/cache/cgit/ exist?

-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>

```

## Jorge Bastos, 2009-12-29 12:38

Subject: Re: Help on CGIT
Message-ID: <9cf5f850c0c5ea8054e9bebc810ea6d3@192.168.1.222>
URL: https://gitlist.dev/e/9cf5f850c0c5ea8054e9bebc810ea6d3%40192.168.1.222
In-Reply-To: <20091229123127.GA6154@bit.office.eurotux.com>

```
Hi Luciano,

>> [Tue Dec 29 12:12:25 2009] [error] [client 192.168.1.3] [cgit] Unable
to
>> lock slot /var/cache/cgit/53200000.lock: No such file or directory (2)
> 
> Does the directory /var/cache/cgit/ exist?

Yap, with 777.
But the parent dirs don't, they have 755 the debian default, and both /var
& /var/log owner by root.
I also tryed to make /var & /var/log/ be owner by apache's user (www-data)
but nothing, and also tried make them 777 aswell, the same.
This lock dir can't be configureable?

```

## Luciano Rocha, 2009-12-29 14:08

Subject: Re: Help on CGIT
Message-ID: <20091229140842.GB6154@bit.office.eurotux.com>
URL: https://gitlist.dev/e/20091229140842.GB6154%40bit.office.eurotux.com
In-Reply-To: <9cf5f850c0c5ea8054e9bebc810ea6d3@192.168.1.222>

```
On Tue, Dec 29, 2009 at 12:38:15PM +0000, Jorge Bastos wrote:
> Hi Luciano,
> 
> >> [Tue Dec 29 12:12:25 2009] [error] [client 192.168.1.3] [cgit] Unable
> to
> >> lock slot /var/cache/cgit/53200000.lock: No such file or directory (2)
> > 
> > Does the directory /var/cache/cgit/ exist?
> 
> Yap, with 777.
> But the parent dirs don't, they have 755 the debian default, and both /var
> & /var/log owner by root.

That's what they're supposed to be.

> I also tryed to make /var & /var/log/ be owner by apache's user (www-data)
> but nothing, and also tried make them 777 aswell, the same.
> This lock dir can't be configureable?

Probably, don't know much about cgit. One thing, are you using selinux?
What does sestatus show?

-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>

```

## Jorge Bastos, 2009-12-29 14:44

Subject: Re: Help on CGIT
Message-ID: <ab6fafb1c8d1117674cf4b7ffd1df811@192.168.1.222>
URL: https://gitlist.dev/e/ab6fafb1c8d1117674cf4b7ffd1df811%40192.168.1.222
In-Reply-To: <20091229140842.GB6154@bit.office.eurotux.com>

```
On Tue, 29 Dec 2009 14:08:42 +0000, Luciano Rocha <luciano@eurotux.com>
>> Yap, with 777.
>> But the parent dirs don't, they have 755 the debian default, and both
>> /var
>> & /var/log owner by root.
> 
> That's what they're supposed to be.
> 
>> I also tryed to make /var & /var/log/ be owner by apache's user
>> (www-data)
>> but nothing, and also tried make them 777 aswell, the same.
>> This lock dir can't be configureable?
> 
> Probably, don't know much about cgit. One thing, are you using selinux?
> What does sestatus show?

no SELinux compiled or active on kernel.
don't even have setools installed on the system.
I'm out of ideas :(
The info on the web about CGIT is rare... don't find an answer for this.

```

## Lars Hjemli, 2009-12-29 14:57

Subject: Re: Help on CGIT
Message-ID: <8c5c35580912290657y70bbfda1rfe03e389e90f8977@mail.gmail.com>
URL: https://gitlist.dev/e/8c5c35580912290657y70bbfda1rfe03e389e90f8977%40mail.gmail.com
In-Reply-To: <31576a6d119e2edd66bd8bcc3281e9ad@192.168.1.222>

```
On Tue, Dec 29, 2009 at 13:18, Jorge Bastos <mysql.jorge@decimal.pt> wrote:
> I have CGIT working at 50%.
>
> The 1st page show's correctly, but when i click the project name, it
> becames unconfigured and wierd, and apache complains about this:
>
> [Tue Dec 29 12:12:25 2009] [error] [client 192.168.1.3] [cgit] Unable to
> lock slot /var/cache/cgit/53200000.lock: No such file or directory (2)

First, check if cgit works correctly with caching disabled (set
cache-size=0 in /etc/cgitrc).


> My apache configuration for CGIT is:
>
>  AllowOverride None
>  Options ExecCGI
>  Order allow,deny
>  Allow from all
>
>  DirectoryIndex cgit.cgi
>
>  AddHandler cgi-script cgi pl
>

What's the contents of /etc/cgitrc? Which cgit-version are you running?

-- 
larsh

```

## Felipe Contreras, 2009-12-29 14:58

Subject: Re: Help on CGIT
Message-ID: <94a0d4530912290658m70075ad1u95e3692c01fb44b7@mail.gmail.com>
URL: https://gitlist.dev/e/94a0d4530912290658m70075ad1u95e3692c01fb44b7%40mail.gmail.com
In-Reply-To: <31576a6d119e2edd66bd8bcc3281e9ad@192.168.1.222>

```
On Tue, Dec 29, 2009 at 2:18 PM, Jorge Bastos <mysql.jorge@decimal.pt> wrote:
> Am i missing something else? I've asked google but there's not much info
> on the web about it.

This is what I do:
ScriptAlias /cgit /var/www/cgit-files/cgit.cgi

You need a new cgit to use that properly, I use 0.8.3.

-- 
Felipe Contreras

```

## Jorge Bastos, 2009-12-29 15:21

Subject: Re: Help on CGIT
Message-ID: <11086b46ef152d6e2aadb1c5f655fe72@192.168.1.222>
URL: https://gitlist.dev/e/11086b46ef152d6e2aadb1c5f655fe72%40192.168.1.222
In-Reply-To: <94a0d4530912290658m70075ad1u95e3692c01fb44b7@mail.gmail.com>

```
> This is what I do:
> ScriptAlias /cgit /var/www/cgit-files/cgit.cgi
> 
> You need a new cgit to use that properly, I use 0.8.3.

I tried that way, no luck, apache always show on the errors that cannot
create the lock slot and it show all unconfigured on the page.

```

## Jorge Bastos, 2009-12-29 15:29

Subject: Re: Help on CGIT
Message-ID: <5b4ce0d0c1dd830782397602a71bb4f6@192.168.1.222>
URL: https://gitlist.dev/e/5b4ce0d0c1dd830782397602a71bb4f6%40192.168.1.222
In-Reply-To: <94a0d4530912290658m70075ad1u95e3692c01fb44b7@mail.gmail.com>

```
> This is what I do:
> ScriptAlias /cgit /var/www/cgit-files/cgit.cgi
> 
> You need a new cgit to use that properly, I use 0.8.3.

Forgot to say, i'm running the last git version so i believe i'm updated
for that.

```

## Jorge Bastos, 2009-12-29 20:54

Subject: Re: Help on CGIT
Message-ID: <fccf5e49dc956e4330d4e670e734862a@192.168.1.222>
URL: https://gitlist.dev/e/fccf5e49dc956e4330d4e670e734862a%40192.168.1.222
In-Reply-To: <5b4ce0d0c1dd830782397602a71bb4f6@192.168.1.222>

```
Guys!

I changed on /etc/cgitrc:

css=cgit.css
logo=cgit.png

to:

css=/cgit/cgit.css
logo=/cgit/cgit.png

Forcing the path for the files to be from the root did the trick!
Thanks you all this the help!

```
