List for cgit developers and users
 help / color / mirror / Atom feed
* Issues with cgit: projects.list
@ 2011-08-30 20:22 uavarti
  2011-08-30 21:06 ` mailings
  0 siblings, 1 reply; 5+ messages in thread
From: uavarti @ 2011-08-30 20:22 UTC (permalink / raw)


Hi Lars,

sorry to contact you directly. I've already spend long time in
investigation, but could not find a solution.
I setup a git server locally following the instructions of the PROGIT
book. In addition to that I installed also gitolite as per its author
instructions. This part is working fine. This setup was then completed
with the cgit installation according your readme.

Apache is showing the cgit site correctly, but always tells that there
is no repository. Apache error log shows:

[Tue Aug 30 21:59:02 2011] [error] [client 192.168.1.2] Error opening
projectsfile /home/git/projects.list : No such file or directory (2)

The file is present, with the right access rights. I dont see where the
issue is. Can you give me a hint?

Regards,

Arti


Here my config (lates cgit from master), on ubuntu 11.04 server:

cgit.conf:
CGIT_SCRIPT_PATH = /usr/lib/cgi-bin
CGIT_DATA_PATH = /var/www


/etc/cgitrc:
logo=/cgit.png
css=/cgit.css
project-list=/home/git/projects.list
scan-path=/home/git/repositories
enable-index-links=1

in /home/git there are the repositories located and the file projects.list:
(the rights might not be ideal after many experiments)

drwx------ 2 git  git      4096 2011-08-29 23:24 .cache
drwx------ 8 git  git      4096 2011-08-29 23:22 .gitolite
-rw-r--r-- 1 git  git      4103 2011-08-30 00:23 .gitolite.rc
-rw-r--r-- 1 git  git       675 2011-08-29 23:21 .profile
-rwxr-xr-x 1 git  www-data   21 2011-08-30 00:24 projects.list
-rw-r----- 1 git  git        21 2011-08-30 00:24 projects.list.org
drwxr-xr-x 5 git  www-data 4096 2011-08-29 23:29 repositories



content of projects.list:

test.git
testing.git







^ permalink raw reply	[flat|nested] 5+ messages in thread

* Issues with cgit: projects.list
  2011-08-30 20:22 Issues with cgit: projects.list uavarti
@ 2011-08-30 21:06 ` mailings
  2011-08-30 21:32   ` uavarti
  0 siblings, 1 reply; 5+ messages in thread
From: mailings @ 2011-08-30 21:06 UTC (permalink / raw)


On 08/30/2011 10:22 PM, arti wrote:
> Hi Lars,
> 
> sorry to contact you directly. I've already spend long time in
> investigation, but could not find a solution.
> I setup a git server locally following the instructions of the PROGIT
> book. In addition to that I installed also gitolite as per its author
> instructions. This part is working fine. This setup was then completed
> with the cgit installation according your readme.
> 
> Apache is showing the cgit site correctly, but always tells that there
> is no repository. Apache error log shows:
> 
> [Tue Aug 30 21:59:02 2011] [error] [client 192.168.1.2] Error opening
> projectsfile /home/git/projects.list : No such file or directory (2)
> 
> The file is present, with the right access rights. I dont see where the
> issue is. Can you give me a hint?
> 

check your server logs, it probably mentiones SELinux avc denials


-- 
Ferry Huberts




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Issues with cgit: projects.list
  2011-08-30 21:06 ` mailings
@ 2011-08-30 21:32   ` uavarti
  2011-08-31  9:08     ` cgit
  0 siblings, 1 reply; 5+ messages in thread
From: uavarti @ 2011-08-30 21:32 UTC (permalink / raw)


Hi,

no SELinux (or Apparmor)is running.
cgit 8.3.5 shows all repositories, even the ones not listed in the
projects.list. No error message in apache. I would assume it does not
take care about projects.list. But I conclude that apache and the cgi
can access to that directory.

cgit 0.9 came up with another issue:

[Tue Aug 30 23:25:54 2011] [error] [client 192.168.1.2] Error opening
projectsfile /home/git/projects.list : No such file or directory (2)
[Tue Aug 30 23:25:54 2011] [error] [client 192.168.1.2] Premature end of
script headers: cgit.cgi

Regards,

Arti


On 08/30/2011 11:06 PM, Ferry Huberts wrote:
> On 08/30/2011 10:22 PM, arti wrote:
>> Hi Lars,
>>
>> sorry to contact you directly. I've already spend long time in
>> investigation, but could not find a solution.
>> I setup a git server locally following the instructions of the PROGIT
>> book. In addition to that I installed also gitolite as per its author
>> instructions. This part is working fine. This setup was then completed
>> with the cgit installation according your readme.
>>
>> Apache is showing the cgit site correctly, but always tells that there
>> is no repository. Apache error log shows:
>>
>> [Tue Aug 30 21:59:02 2011] [error] [client 192.168.1.2] Error opening
>> projectsfile /home/git/projects.list : No such file or directory (2)
>>
>> The file is present, with the right access rights. I dont see where the
>> issue is. Can you give me a hint?
>>
> check your server logs, it probably mentiones SELinux avc denials
>
>





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Issues with cgit: projects.list
  2011-08-30 21:32   ` uavarti
@ 2011-08-31  9:08     ` cgit
  2011-09-01 20:41       ` uavarti
  0 siblings, 1 reply; 5+ messages in thread
From: cgit @ 2011-08-31  9:08 UTC (permalink / raw)


On Tue, Aug 30, 2011 at 11:32:26PM +0200, arti wrote:
> Hi,
> 
> no SELinux (or Apparmor)is running.
> cgit 8.3.5 shows all repositories, even the ones not listed in the
> projects.list. No error message in apache. I would assume it does not
> take care about projects.list. But I conclude that apache and the cgi
> can access to that directory.
> 
> cgit 0.9 came up with another issue:
> 
> [Tue Aug 30 23:25:54 2011] [error] [client 192.168.1.2] Error opening
> projectsfile /home/git/projects.list : No such file or directory (2)

Note the whitespace after "/home/git/projects.list" which probably
shouldn't be there...? :) Just remove it in your config file.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Issues with cgit: projects.list
  2011-08-31  9:08     ` cgit
@ 2011-09-01 20:41       ` uavarti
  0 siblings, 0 replies; 5+ messages in thread
From: uavarti @ 2011-09-01 20:41 UTC (permalink / raw)


Lukas Fleischer <cgit at ...> writes:

> 
> On Tue, Aug 30, 2011 at 11:32:26PM +0200, arti wrote:
> > Hi,
> > 
> > no SELinux (or Apparmor)is running.
> > cgit 8.3.5 shows all repositories, even the ones not listed in the
> > projects.list. No error message in apache. I would assume it does not
> > take care about projects.list. But I conclude that apache and the cgi
> > can access to that directory.
> > 
> > cgit 0.9 came up with another issue:
> > 
> > [Tue Aug 30 23:25:54 2011] [error] [client 192.168.1.2] Error opening
> > projectsfile /home/git/projects.list : No such file or directory (2)
> 
> Note the whitespace after "/home/git/projects.list" which probably
> shouldn't be there...? :) Just remove it in your config file.
> 

Hi Lukas,

that was it! I could not imagine how much time consuming a "space" can be...
Thanks for having looked at that level of detail...

And also thanks to the others who gave other ideas to look at...

Regards,
Arti






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-01 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-30 20:22 Issues with cgit: projects.list uavarti
2011-08-30 21:06 ` mailings
2011-08-30 21:32   ` uavarti
2011-08-31  9:08     ` cgit
2011-09-01 20:41       ` uavarti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).