List for cgit developers and users
 help / color / mirror / Atom feed
* No repositories found
       [not found] <1883880790.2405652.1475100494275.ref@mail.yahoo.com>
@ 2016-09-28 22:08 ` garyyang6
  0 siblings, 0 replies; 4+ messages in thread
From: garyyang6 @ 2016-09-28 22:08 UTC (permalink / raw)


Hi,

Just realized that my previous email format got messed up. I resend it. Sorry. Can someone help?
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.listscan-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 -DFOREGROUND
apache ? 27679 27661 ?0 11:35 ? ? ? ? ?00:00:00 /usr/sbin/httpd -DFOREGROUND
apache ? 27680 27661 ?0 11:35 ? ? ? ? ?00:00:00 /usr/sbin/httpd -DFOREGROUND
apache ? 27681 27661 ?0 11:35 ? ? ? ? ?00:00:00 /usr/sbin/httpd -DFOREGROUND
apache ? 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/ad9866cc/attachment.html>


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

* No repositories found
  2012-03-10  1:06 tech.herry
  2012-03-10  1:26 ` tech.herry
@ 2012-03-10  1:30 ` jamie.couture
  1 sibling, 0 replies; 4+ messages in thread
From: jamie.couture @ 2012-03-10  1:30 UTC (permalink / raw)


The user your web server is run as cannot read that directory. Try adding
your server's user to your 'git' group.  Since it's Ubuntu, default install
sets server as user www-data.  Try adding git to that user

for example:
www-data : www-data gitolite

On Fri, Mar 9, 2012 at 8:06 PM, Herry Wang <tech.herry at gmail.com> wrote:

> Hi,
> I hit the 'No repositories found' when setup cgit+gitolite on Ubuntu 10.
>
> Seems gitolite is running well. I can push repo to server.
>
> git push --all git at git.server.com:scripting
> Counting objects: 134, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (132/132), done.
> Writing objects: 100% (134/134), 79.92 KiB, done.
> Total 134 (delta 48), reused 0 (delta 0)
> To git at git.server.com:scripting
>  * [new branch]      master -> master
>
> Here is my cgit configure:
>
> *cat /etc/cgitrc
> *remove-suffix=1
> cache-size=0
> clone-prefix=http://git.server.com/ git at git.server.com:
> source-filter=/usr/lib/cgit/filters/syntax-highlighting.sh
> readme=README
> root-title=My CGIT
> root-desc=My personal git repo
> project-list=/home/git/projects.list
> scan-path=/home/git/repositories
> enable-index-links=1
>
> *gitolite files:*
>
>  -rw-r-----  1 git  git     0 2012-03-09 16:53 projects.list
> drwxr-x---  5 git  git  4096 2012-03-09 16:53 repositories
>
> *Apache setting for cgit:*
>  cat /etc/apache2/sites-available/cgit
> <VirtualHost *:80>
> ServerAdmin herry at server.com
> ServerName git.server.com
> #ServerName 127.0.0.1
> DocumentRoot /var/www/htdocs/cgit/
> <Directory /var/www/htdocs/cgit/>
> AllowOverride None
> Options +ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
> Alias /cgit.png /var/www/htdocs/cgit/cgit.png
> Alias /cgit.css /var/www/htdocs/cgit/cgit.css
> ScriptAlias / "/var/www/htdocs/cgit/cgit.cgi/"
> RewriteRule ^$ / [R]
> RewriteRule ^/(.*)$ /cgit.cgi/$1 [PT]
> ErrorLog /var/log/apache2/cgit-error.log
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
> CustomLog /var/log/apache2/cgit-access.log combined
> </VirtualHost>
>
>
>
> *gitolite-admin config:*
> cat conf/gitolite.conf
> repo    gitolite-admin
>        RW+     =   herrykey
> repo    testing
>        RW+     =   @all
> repo    scripting
>        RW+     =   herrykey
> ls keydir/
> herrykey.pub
> _______________________________________________
> cgit mailing list
> cgit at hjemli.net
> http://hjemli.net/mailman/listinfo/cgit
>



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

* No repositories found
  2012-03-10  1:06 tech.herry
@ 2012-03-10  1:26 ` tech.herry
  2012-03-10  1:30 ` jamie.couture
  1 sibling, 0 replies; 4+ messages in thread
From: tech.herry @ 2012-03-10  1:26 UTC (permalink / raw)


www-data has been added into group git. But it doesn't help.
git:x:1004:git,www-data

On Fri, Mar 9, 2012 at 5:06 PM, Herry Wang <tech.herry at gmail.com> wrote:

> Hi,
> I hit the 'No repositories found' when setup cgit+gitolite on Ubuntu 10.
>
> Seems gitolite is running well. I can push repo to server.
>
> git push --all git at git.server.com:scripting
> Counting objects: 134, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (132/132), done.
> Writing objects: 100% (134/134), 79.92 KiB, done.
> Total 134 (delta 48), reused 0 (delta 0)
> To git at git.server.com:scripting
>  * [new branch]      master -> master
>
> Here is my cgit configure:
>
> *cat /etc/cgitrc
> *remove-suffix=1
> cache-size=0
> clone-prefix=http://git.server.com/ git at git.server.com:
> source-filter=/usr/lib/cgit/filters/syntax-highlighting.sh
> readme=README
> root-title=My CGIT
> root-desc=My personal git repo
> project-list=/home/git/projects.list
> scan-path=/home/git/repositories
> enable-index-links=1
>
> *gitolite files:*
>
>  -rw-r-----  1 git  git     0 2012-03-09 16:53 projects.list
> drwxr-x---  5 git  git  4096 2012-03-09 16:53 repositories
>
> *Apache setting for cgit:*
>  cat /etc/apache2/sites-available/cgit
> <VirtualHost *:80>
> ServerAdmin herry at server.com
> ServerName git.server.com
> #ServerName 127.0.0.1
> DocumentRoot /var/www/htdocs/cgit/
> <Directory /var/www/htdocs/cgit/>
> AllowOverride None
> Options +ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
> Alias /cgit.png /var/www/htdocs/cgit/cgit.png
> Alias /cgit.css /var/www/htdocs/cgit/cgit.css
> ScriptAlias / "/var/www/htdocs/cgit/cgit.cgi/"
> RewriteRule ^$ / [R]
> RewriteRule ^/(.*)$ /cgit.cgi/$1 [PT]
> ErrorLog /var/log/apache2/cgit-error.log
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel warn
> CustomLog /var/log/apache2/cgit-access.log combined
> </VirtualHost>
>
>
>
> *gitolite-admin config:*
> cat conf/gitolite.conf
> repo    gitolite-admin
>         RW+     =   herrykey
> repo    testing
>         RW+     =   @all
> repo    scripting
>         RW+     =   herrykey
> ls keydir/
> herrykey.pub
>
>



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

* No repositories found
@ 2012-03-10  1:06 tech.herry
  2012-03-10  1:26 ` tech.herry
  2012-03-10  1:30 ` jamie.couture
  0 siblings, 2 replies; 4+ messages in thread
From: tech.herry @ 2012-03-10  1:06 UTC (permalink / raw)


Hi,
I hit the 'No repositories found' when setup cgit+gitolite on Ubuntu 10.

Seems gitolite is running well. I can push repo to server.

git push --all git at git.server.com:scripting
Counting objects: 134, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (132/132), done.
Writing objects: 100% (134/134), 79.92 KiB, done.
Total 134 (delta 48), reused 0 (delta 0)
To git at git.server.com:scripting
 * [new branch]      master -> master

Here is my cgit configure:

*cat /etc/cgitrc
*remove-suffix=1
cache-size=0
clone-prefix=http://git.server.com/ git at git.server.com:
source-filter=/usr/lib/cgit/filters/syntax-highlighting.sh
readme=README
root-title=My CGIT
root-desc=My personal git repo
project-list=/home/git/projects.list
scan-path=/home/git/repositories
enable-index-links=1

*gitolite files:*

 -rw-r-----  1 git  git     0 2012-03-09 16:53 projects.list
drwxr-x---  5 git  git  4096 2012-03-09 16:53 repositories

*Apache setting for cgit:*
 cat /etc/apache2/sites-available/cgit
<VirtualHost *:80>
ServerAdmin herry at server.com
ServerName git.server.com
#ServerName 127.0.0.1
DocumentRoot /var/www/htdocs/cgit/
<Directory /var/www/htdocs/cgit/>
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /cgit.png /var/www/htdocs/cgit/cgit.png
Alias /cgit.css /var/www/htdocs/cgit/cgit.css
ScriptAlias / "/var/www/htdocs/cgit/cgit.cgi/"
RewriteRule ^$ / [R]
RewriteRule ^/(.*)$ /cgit.cgi/$1 [PT]
ErrorLog /var/log/apache2/cgit-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/cgit-access.log combined
</VirtualHost>



*gitolite-admin config:*
cat conf/gitolite.conf
repo    gitolite-admin
        RW+     =   herrykey
repo    testing
        RW+     =   @all
repo    scripting
        RW+     =   herrykey
ls keydir/
herrykey.pub



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

end of thread, other threads:[~2016-09-28 22:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1883880790.2405652.1475100494275.ref@mail.yahoo.com>
2016-09-28 22:08 ` No repositories found garyyang6
2012-03-10  1:06 tech.herry
2012-03-10  1:26 ` tech.herry
2012-03-10  1:30 ` jamie.couture

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).