Help on CGIT

10 messages, 4 authors, 2016-06-15 · open the first message on its own page

Help on CGIT

From: Jorge Bastos <hidden>
Date: 2016-06-15 22:47:56

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,

Re: Help on CGIT

From: Jorge Bastos <hidden>
Date: 2016-06-15 22:47:56

Hi Luciano,
quoted
[Tue Dec 29 12:12:25 2009] [error] [client 192.168.1.3] [cgit] Unable
to
quoted
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?

Re: Help on CGIT

From: Luciano Rocha <hidden>
Date: 2016-06-15 22:47:56

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 [off-list ref]
Eurotux Informática, S.A. <http://www.eurotux.com/>

Re: Help on CGIT

From: Luciano Rocha <hidden>
Date: 2016-06-15 22:47:56

On Tue, Dec 29, 2009 at 12:38:15PM +0000, Jorge Bastos wrote:
Hi Luciano,
quoted
quoted
[Tue Dec 29 12:12:25 2009] [error] [client 192.168.1.3] [cgit] Unable
to
quoted
quoted
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 [off-list ref]
Eurotux Informática, S.A. <http://www.eurotux.com/>

Re: Help on CGIT

From: Jorge Bastos <hidden>
Date: 2016-06-15 22:47:56

On Tue, 29 Dec 2009 14:08:42 +0000, Luciano Rocha [off-list ref]
quoted
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.
quoted
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.

Re: Help on CGIT

From: Lars Hjemli <hidden>
Date: 2016-06-15 22:47:56

On Tue, Dec 29, 2009 at 13:18, Jorge Bastos [off-list ref] 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

Re: Help on CGIT

From: Felipe Contreras <hidden>
Date: 2016-06-15 22:47:56

On Tue, Dec 29, 2009 at 2:18 PM, Jorge Bastos [off-list ref] 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

Re: Help on CGIT

From: Jorge Bastos <hidden>
Date: 2016-06-15 22:47:56

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.

Re: Help on CGIT

From: Jorge Bastos <hidden>
Date: 2016-06-15 22:47:56

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.

Re: Help on CGIT

From: Jorge Bastos <hidden>
Date: 2016-06-15 22:47:56

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!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help