* cgit: No repositories found [not found] <937292764.2443445.1475097392201.ref@mail.yahoo.com> @ 2016-09-28 21:16 ` garyyang6 0 siblings, 0 replies; 4+ messages in thread From: garyyang6 @ 2016-09-28 21:16 UTC (permalink / raw) 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> ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <2006118398.636483.1474674085378.ref@mail.yahoo.com>]
* cgit: No repositories found [not found] <2006118398.636483.1474674085378.ref@mail.yahoo.com> @ 2016-09-23 23:41 ` garyyang6 2016-09-26 14:15 ` john 0 siblings, 1 reply; 4+ messages in thread From: garyyang6 @ 2016-09-23 23:41 UTC (permalink / raw) Hi,? After I setup cgit. I got "No repositories found". It is CentOS 7.2 platform. Please help. Here are what I did.? 1. After installed gitolite, I got repos at? /home/git/repositories/gitolite-admin.git and testing.git #Repositories permission:ls -alF /home/git drwxrwxrwx. ?5 git ?git ? ? ? 70 Sep 23 15:19 repositories #Repositories permission:ls -alF repositoriesdrwxrwxrwx. ?8 git git 4096 Sep 22 17:46 gitolite-admin.git/ drwxrwxrwx. ?7 git git 4096 Sep 22 17:46 testing.git/ ls -alF /home/git/projects.list?-rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list cat /home/git/projects.list?testing.gitgitolite-admin.git 2. After installed cgit, changed line below in default cgitrcclone-url=git://servergit01/$CGIT_REPO_URL git at servergit01:$CGIT_REPO_URL Added 3 lines to default cgitrc at the bottom. enable-git-config=1project-list=/home/git/projects.listscan-path=/home/git/repositories In?/etc/httpd/conf/httpd.conf <IfModule alias_module> ? ?ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</IfModule> IncludeOptional conf.d/*.conf <Directory "/var/www/htdocs/cgit/">? ? ?AllowOverride None? ? ?Options +ExecCGI? ? ?Order allow,deny? ? ?Allow from all</Directory> 3. Copied?/var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgitcp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit #Restart apacheapachectl restart #ID apache belongs to apache and git groupsgroups apacheapache : apache git However, I got "No repositories found" when I hit the page: http://servergit01/cgit Please help. Gary -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20160923/48e5bd05/attachment.html> ^ permalink raw reply [flat|nested] 4+ messages in thread
* cgit: No repositories found 2016-09-23 23:41 ` garyyang6 @ 2016-09-26 14:15 ` john 2016-09-26 17:36 ` garyyang6 0 siblings, 1 reply; 4+ messages in thread From: john @ 2016-09-26 14:15 UTC (permalink / raw) Please try to send plain text email, I've had to reformat this heavily to make it readable. On Fri, Sep 23, 2016 at 11:41:25PM +0000, Gary Yang wrote: > After I setup cgit. I got "No repositories found". It is CentOS 7.2 platform. Please help. Here are what I did. > > 1. After installed gitolite, I got repos at /home/git/repositories/gitolite-admin.git and testing.git > > #Repositories permission: > ls -alF /home/gits > drwxrwxrwx. 5 git git 70 Sep 23 15:19 repositories > > #Repositories permission: > ls -alF repositories > drwxrwxrwx. 8 git git 4096 Sep 22 17:46 gitolite-admin.git/ > drwxrwxrwx. 7 git git 4096 Sep 22 17:46 testing.git/ > > ls -alF /home/git/projects.list > -rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list > cat /home/git/projects.list > testing.gitgitolite-admin.git > > 2. After installed cgit, changed line below in default cgitrc > clone-url=git://servergit01/$CGIT_REPO_URL git at servergit01:$CGIT_REPO_URL > > Added 3 lines to default cgitrc at the bottom. > enable-git-config=1 > project-list=/home/git/projects.list > scan-path=/home/git/repositories > In /etc/httpd/conf/httpd.conf > <IfModule alias_module> > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</IfModule> > IncludeOptional conf.d/*.conf > <Directory "/var/www/htdocs/cgit/"> > AllowOverride None > Options +ExecCGI > Order allow,deny > Allow from all > </Directory> > 3. Copied /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit > cp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit > > However, I got "No repositories found" when I hit the page: http://servergit01/cgit > Please help. This all looks sensible, but the upstream CGit project does not ship a default cgitrc, so you must be using something provided by your distribution. I can't say what other options may be set there. One option that might be relevant is "strict-export", if that is set there are additional requirements for repositories to be displayed. ^ permalink raw reply [flat|nested] 4+ messages in thread
* cgit: No repositories found 2016-09-26 14:15 ` john @ 2016-09-26 17:36 ` garyyang6 0 siblings, 0 replies; 4+ messages in thread From: garyyang6 @ 2016-09-26 17:36 UTC (permalink / raw) Hi John, After I setup cgit. I got "No repositories found". It is CentOS 7.2 platform. Please help. Here are what I did.? 1. After installed gitolite, I got repos at? /home/git/repositories/gitolite-admin.git and testing.git #Repositories permission:ls -alF /home/gitdrwxrwxrwx. ?5 git ?git ? ? ? 70 Sep 23 15:19 repositories #Repositories permission:ls -alF repositoriesdrwxrwxrwx. ?8 git git 4096 Sep 22 17:46 gitolite-admin.git/drwxrwxrwx. ?7 git git 4096 Sep 22 17:46 testing.git/ ls -alF /home/git/projects.list?-rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list cat /home/git/projects.list?testing.gitgitolite-admin.git 2. After installed cgit, changed line below in default cgitrcclone-url=git://servergit01/$CGIT_REPO_URL git at servergit01:$CGIT_REPO_URL Added 3 lines to default cgitrc at the bottom. enable-git-config=1project-list=/home/git/projects.listscan-path=/home/git/repositories In /etc/httpd/conf/httpd.conf <IfModule alias_module>? ?ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</IfModule> IncludeOptional conf.d/*.conf <Directory "/var/www/htdocs/cgit/">? ? ?AllowOverride None? ? ?Options +ExecCGI? ? ?Order allow,deny? ? ?Allow from all</Directory> 3. Copied /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgitcp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit #Restart apacheapachectl restart #ID apache belongs to apache and git groupsgroups apacheapache : apache git However, I got "No repositories found" when I hit the page: http://servergit01/cgit Please help. Gary On Monday, September 26, 2016 7:15 AM, John Keeping <john at keeping.me.uk> wrote: Please try to send plain text email, I've had to reformat this heavily to make it readable. On Fri, Sep 23, 2016 at 11:41:25PM +0000, Gary Yang wrote: > After I setup cgit. I got "No repositories found". It is CentOS 7.2 platform. Please help. Here are what I did. > > 1. After installed gitolite, I got repos at /home/git/repositories/gitolite-admin.git and testing.git > > #Repositories permission: > ls -alF /home/gits > drwxrwxrwx.? 5 git git 70 Sep 23 15:19 repositories > > #Repositories permission: > ls -alF repositories > drwxrwxrwx.? 8 git git 4096 Sep 22 17:46 gitolite-admin.git/ > drwxrwxrwx.? 7 git git 4096 Sep 22 17:46 testing.git/ > > ls -alF /home/git/projects.list > -rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list > cat /home/git/projects.list > testing.gitgitolite-admin.git > > 2. After installed cgit, changed line below in default cgitrc > clone-url=git://servergit01/$CGIT_REPO_URL git at servergit01:$CGIT_REPO_URL > > Added 3 lines to default cgitrc at the bottom. > enable-git-config=1 > project-list=/home/git/projects.list > scan-path=/home/git/repositories > In /etc/httpd/conf/httpd.conf > <IfModule alias_module> >? ? ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</IfModule> >? ? IncludeOptional conf.d/*.conf > <Directory "/var/www/htdocs/cgit/"> >? ? AllowOverride None >? ? Options +ExecCGI >? ? Order allow,deny >? ? Allow from all > </Directory> > 3. Copied /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit > cp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit > > However, I got "No repositories found" when I hit the page: http://servergit01/cgit > Please help. This all looks sensible, but the upstream CGit project does not ship a default cgitrc, so you must be using something provided by your distribution.? I can't say what other options may be set there. One option that might be relevant is "strict-export", if that is set there are additional requirements for repositories to be displayed. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20160926/9a2fcfce/attachment.html> ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-09-28 21:16 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <937292764.2443445.1475097392201.ref@mail.yahoo.com> 2016-09-28 21:16 ` cgit: No repositories found garyyang6 [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
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).