You are not logged in.

#1 2011-03-03 15:01:48

R3v4n
Member
Registered: 2010-09-06
Posts: 10

Problem installing Gitosis

Hi,

I'm trying to install Gitosis on my server. I read the tutorial in the Wiki (https://wiki.archlinux.org/index.php/Gitosis) but I have a problem at the step "gitosis-admin repository".

I correctly set the permissions like in the wiki but I have the following error :

git clone ssh://git@r3v4n.gw-computing.net:38000/srv/gitosis/repositories/gitosis-admin.git
Cloning into gitosis-admin...
Enter passphrase for key '/home/revan/.ssh/id_dsa': 
ERROR:gitosis.serve.main:Repository read access denied
fatal: The remote end hung up unexpectedly

Someone has a idea ?


Thank you,
Revan

Offline

#2 2011-03-04 08:12:12

ryuslash
Member
Registered: 2010-10-11
Posts: 58
Website

Re: Problem installing Gitosis

does the git user have access to the /srv/gitosis/repositories/gitosis-admin.git and is that the right location? On my installation the git user's home directory is /srv/gitosis and I check out repositories with git clone git@myserver:project.git. I also tried it your way and was able to check out a project with git clone ssh://git@myserver/project.git

Offline

#3 2011-03-04 22:21:57

R3v4n
Member
Registered: 2010-09-06
Posts: 10

Re: Problem installing Gitosis

Thanks for your answer.

yes it's the right location. I'm sure about that :-)

And the git user has the access to the repository which has a 700 chmod. The owner is git and the group is git too.

Offline

#4 2011-03-13 00:20:54

R3v4n
Member
Registered: 2010-09-06
Posts: 10

Re: Problem installing Gitosis

Anyone has an idea ?

Offline

#5 2011-03-13 02:50:39

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Problem installing Gitosis

Check the perms on the gitosis-admin repo recursively. Maybe the top level dir was just chmod/chown and not the subtree?


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#6 2011-03-13 18:53:37

R3v4n
Member
Registered: 2010-09-06
Posts: 10

Re: Problem installing Gitosis

Yes I did a chmod -R

[root@apophis /srv/gitosis/repositories] # ls -l
total 4
drwx------ 8 git git 4096 Mar 13 13:47 gitosis-admin.git
[root@apophis /srv/gitosis/repositories] # cd gitosis-admin.git 
[root@apophis ...itories/gitosis-admin.git] # ls -l
total 44
drwx------ 2 git git 4096 Feb 27 16:43 branches
-rwx------ 1 git git   66 Feb 27 16:43 config
-rwx------ 1 git git   73 Feb 27 16:43 description
-rwx------ 1 git git   81 Mar  5 00:08 gitosis.conf
drwx------ 3 git git 4096 Feb 27 16:43 gitosis-export
-rwx------ 1 git git   23 Feb 27 16:43 HEAD
drwx------ 2 git git 4096 Feb 27 16:43 hooks
-rwx------ 1 git git  264 Feb 27 16:43 index
drwx------ 2 git git 4096 Mar  5 00:06 info
drwx------ 4 git git 4096 Feb 27 16:43 objects
drwx------ 4 git git 4096 Feb 27 16:43 refs
[root@apophis ...itories/gitosis-admin.git] # 

I even tried with a chmod 777, but it does not work either.

Offline

#7 2011-03-13 19:44:55

R3v4n
Member
Registered: 2010-09-06
Posts: 10

Re: Problem installing Gitosis

I found the solution :

http://scie.nti.st/2007/11/14/hosting-g … secure-way

If you run SSH on a non-standard port on your server, don't use the syntax "git@myserver.com:1234:/foo/bar", it won't work. Putting the port in the URL doesn't seem to make gitosis, or git, (not sure which) happy. Instead, put this in your ~/.ssh/config file:

Host myserver.com
  Port 1234

Offline

Board footer

Powered by FluxBB