List for cgit developers and users
 help / color / mirror / Atom feed
From: garyyang6 at yahoo.com (Gary Yang)
Subject: cgit: No repositories found
Date: Wed, 28 Sep 2016 21:16:32 +0000 (UTC)	[thread overview]
Message-ID: <937292764.2443445.1475097392201@mail.yahoo.com> (raw)
In-Reply-To: <937292764.2443445.1475097392201.ref@mail.yahoo.com>

Hi,
After I installed and configure cgit, gitolite and apache, I got "No repositories found" when I tried to open page, http://servergit/cgit.
Errors in /var/log/httpd/error_log
[cgi:error] [pid 27680] [client 10.76.6.235:42188] AH01215: Error opening projectsfile /home/git/projects.list: Permission denied (13)


/etc/cgitrc:
enable-git-config=1project-list=/home/git/projects.list
scan-path=/home/git/repositories
File and folder permissions:
-rw-r--r--. 1 git git 61 Sep 26 16:54 /home/git/projects.list
drwxr-xr-x. 17 git ? ? git ? ? 4096 Sep 28 11:53 git/
drwxr-xr-x. ? 5 root root ? ? 41 Sep ?6 16:38 home/
groups gitgit : git root apache
groups apacheapache : apache root git
groups rootroot : root git apache
I am clueless why it complains permission denied.

I copied projects.list to /tmp/projects.list and changed cgitrc to
project-list=/tmp/projects.list

ls -l ?/tmp/projects.list

-rwxrwxrwx. 1 git ?git ? ? ?61 Sep 28 12:13 projects.list
drwxrwxrwt. ?13 root root ? 4096 Sep 28 14:04 tmp


Then, I got,
[cgi:error] [pid 27681] [client 10.76.6.235:44747] AH01215: Error opening projectsfile /tmp/projects.list: No such file or directory


cat /tmp/projects.listbuild-scripts.gitbuild-scripts-test.gittesting.git
I do not understand why it complains "No such file or directory".

ps -ef | grep httpdroot ? ? 27661 ? ? 1 ?0 11:35 ? ? ? ? ?00:00:00 /usr/sbin/httpd -DFOREGROUNDapache ? 27679 27661 ?0 11:35 ? ? ? ? ?00:00:00 /usr/sbin/httpd -DFOREGROUNDapache ? 27680 27661 ?0 11:35 ? ? ? ? ?00:00:00 /usr/sbin/httpd -DFOREGROUNDapache ? 27681 27661 ?0 11:35 ? ? ? ? ?00:00:00 /usr/sbin/httpd -DFOREGROUNDapache ? 27682 27661 ?0 11:35 ? ? ? ? ?00:00:00 /usr/sbin/httpd -DFOREGROUND


Can someone help?


Thanks,


Gary


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20160928/ce32deef/attachment.html>


       reply	other threads:[~2016-09-28 21:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <937292764.2443445.1475097392201.ref@mail.yahoo.com>
2016-09-28 21:16 ` garyyang6 [this message]
     [not found] <2006118398.636483.1474674085378.ref@mail.yahoo.com>
2016-09-23 23:41 ` garyyang6
2016-09-26 14:15   ` john
2016-09-26 17:36     ` garyyang6

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=937292764.2443445.1475097392201@mail.yahoo.com \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).