threads / discuss / 22049

Help on CGIT

Subject: Help on CGIT

## tl;dr

10 messages between Dec 29, 2009 and Dec 29, 2009.

replies: 9people: 4as markdown or json

Jorge Bastos· Dec 29, 2009, 12:18 UTC · lore
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· Dec 29, 2009, 12:31 UTC · re: Jorge Bastos · lore

Re: Help on CGIT

On Tue, Dec 29, 2009 at 12:18:38PM +0000, Jorge Bastos wrote:
Show 12 quoted lines
> 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· Dec 29, 2009, 12:38 UTC · re: Luciano Rocha · lore

Re: Help on CGIT

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· Dec 29, 2009, 14:08 UTC · re: Jorge Bastos · lore

Re: Help on CGIT

On Tue, Dec 29, 2009 at 12:38:15PM +0000, Jorge Bastos wrote:
Show 11 quoted lines
> 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· Dec 29, 2009, 14:44 UTC · re: Luciano Rocha · lore

Re: Help on CGIT

On Tue, 29 Dec 2009 14:08:42 +0000, Luciano Rocha <luciano@eurotux.com>
Show 14 quoted lines
>> 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· Dec 29, 2009, 14:57 UTC · re: Jorge Bastos · lore

Re: Help on CGIT

On Tue, Dec 29, 2009 at 13:18, Jorge Bastos <mysql.jorge@decimal.pt> wrote:
Show 7 quoted lines
> 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).

Show 11 quoted lines
> 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· Dec 29, 2009, 14:58 UTC · re: Jorge Bastos · lore

Re: Help on CGIT

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· Dec 29, 2009, 15:21 UTC · re: Felipe Contreras · lore

Re: Help on CGIT

> 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· Dec 29, 2009, 15:29 UTC · re: Felipe Contreras · lore

Re: Help on CGIT

> 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· Dec 29, 2009, 20:54 UTC · re: Jorge Bastos · lore

Re: Help on CGIT

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!

← back to recent threads