Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Access denied or bad repository path for "admin"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bennit  
View profile  
 More options Aug 22 2012, 2:17 pm
From: Bennit <ben.co...@gmail.com>
Date: Wed, 22 Aug 2012 11:17:07 -0700 (PDT)
Local: Wed, Aug 22 2012 2:17 pm
Subject: Access denied or bad repository path for "admin"

I installed gitorious successfully on my own host. I created a project with
3 repositories.

First I cloned it via the ssh-link, added some files, did a commit and
tried to push changes. This said the url is readonly.

Then I tried following the "getting started" commands you see on fresh
repositories on the gitorious instance.
So I created a repository, added some files, did a commit and then I added
the remote source. (copy paste commands, so I'm sure there're no typo's)
Then finally: git push origin master

=> "access denied or wrong repository path"

my ssh-key is added:
$ ssh -T g...@git.myhost
Welcome, admin. Use git to push/pull your repositories

So authentication works. I wondered if perhaps it was an ssl problem, but
as far as I know of git protocol or ssh protocol don't have anything to do
with ssl.
I tried using the https url and then indeed it complains that the
certificate couldn't be certified (as it is a self-signed one).

So finally I take a look at the logs from gitorious, gitorious-auth log:
I, [2012-08-22 20:02:07#18243]  INFO -- : Connection from "78.22.254.163
52366 22" (admin): git-receive-pack 'home/website.git'
I, [2012-08-22 20:02:07#18243]  INFO -- : Access denied or bad repository
path for "admin": "git-receive-pack 'home/website.git'"

That's about all I could think of checking on top of my head. Any further
ideas?

Ben.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Kjeldahl Nilsson  
View profile  
 More options Aug 22 2012, 2:29 pm
From: Thomas Kjeldahl Nilsson <tho...@gitorious.com>
Date: Wed, 22 Aug 2012 20:29:45 +0200
Local: Wed, Aug 22 2012 2:29 pm
Subject: Re: [gitorious] Access denied or bad repository path for "admin"
Hi Ben,

sounds like it might be a permissions/ownership issue. The first thing
you can check:

- Which user/group owns the repo base path (specified in
config/gitorious.yml, specifies the dir under which all repositories are
stored). Should be owned by the 'gitorious_user' specified in
/config/gitorious.yml
- Now, which user is running the gitorious scripts (git-daemon etc)?
Should be the same user as below.

(My hunch is that the repo base folder is owner by root or some other
user than the one owning/running the gitorious processes)

cheers,
Thomas

On 08/22/2012 08:17 PM, Bennit wrote:

--
best regards,
Thomas Kjeldahl Nilsson
http://gitorious.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bennit  
View profile   Translate to Translated (View Original)
 More options Aug 23 2012, 9:43 am
From: Bennit <ben.co...@gmail.com>
Date: Thu, 23 Aug 2012 06:43:58 -0700 (PDT)
Local: Thurs, Aug 23 2012 9:43 am
Subject: Re: Access denied or bad repository path for "admin"

"git" owns the repository and surrounding folders:
drwxr-x--- 5 git git 4096 Aug 22 19:09 client.git/
git-daemon etc are being run by the "git" user.

So I'm guessing that's not it.
Thanks for the try though.

Ben


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bennit  
View profile   Translate to Translated (View Original)
 More options Aug 23 2012, 9:48 am
From: Bennit <ben.co...@gmail.com>
Date: Thu, 23 Aug 2012 06:48:42 -0700 (PDT)
Local: Thurs, Aug 23 2012 9:48 am
Subject: Re: Access denied or bad repository path for "admin"

http://i.imgur.com/1GN5C.png -> screenshot of the services that are running
(htop, ubuntu)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Kjeldahl Nilsson  
View profile  
 More options Aug 23 2012, 10:10 am
From: Thomas Kjeldahl Nilsson <tho...@gitorious.com>
Date: Thu, 23 Aug 2012 16:10:50 +0200
Local: Thurs, Aug 23 2012 10:10 am
Subject: Re: [gitorious] Re: Access denied or bad repository path for "admin"

Ah. Just checking:

* "git" owns the surrounding folders all the way up to and including the
one specified in 'repository_base_path' (see config/gitorious.yml)?
* You can pull out the stored git paths by running the following
one-liner in the root of you gitorious installation (one level up from
the config/ dir)

RAILS_ENV=production script/runner "puts
Repository.regular.all.map{|r|r.gitdir}"

  I'd suggest verifying that all the thus listed paths both exist (they
are relative to 'repository_base_path') and have correct permissions
"above and below".

All I can think of off the top of my head..

cheers
Thomas

On 08/23/2012 03:43 PM, Bennit wrote:

--
best regards,
Thomas Kjeldahl Nilsson
http://gitorious.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kal  
View profile  
 More options Aug 27 2012, 9:15 pm
From: Kal <k...@joffr.es>
Date: Mon, 27 Aug 2012 18:15:28 -0700 (PDT)
Local: Mon, Aug 27 2012 9:15 pm
Subject: Re: [gitorious] Re: Access denied or bad repository path for "admin"

Hi Thomas,

Thanks -- I thought I would reply because I'm in exactly the same
situation. Configuration looks OK but I get this permissions issue when
pushing as admin. I've run the one-liner as you've suggested and it has
returned a lot of the first two lines and then the paths of the repos:

Gem::SourceIndex#add_spec called from
/usr/local/lib/site_ruby/1.8/rubygems/sour                                
                   ce_index.rb:127.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec.
It wi                                                    ll be removed on
or after 2011-11-01.
Gem::SourceIndex#add_spec called from
/usr/local/lib/site_ruby/1.8/rubygems/sour                                
                   ce_index.rb:127.
do-something-good/do-something-good.git
innotate/innotate.git
innobridge/innobridge.git

Folder ownership is git, which corresponds to the user in gitorious.yml.
I've tried chmod 777 on the folder to see if it would make a difference and
it hasn't.

Thanks,
K

On Thursday, August 23, 2012 10:10:50 PM UTC+8, Thomas Kjeldahl Nilsson
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kal  
View profile  
 More options Aug 27 2012, 9:29 pm
From: Kal <k...@joffr.es>
Date: Mon, 27 Aug 2012 18:29:58 -0700 (PDT)
Local: Mon, Aug 27 2012 9:29 pm
Subject: Re: [gitorious] Re: Access denied or bad repository path for "admin"

I've checked using https://gitorious.domain.net/test/test/*writable_by?username=admin
*for the repo I'm working with and it returns a blank file in the browser.

Cheers,
K

On Thursday, August 23, 2012 10:10:50 PM UTC+8, Thomas Kjeldahl Nilsson
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Clark Yang  
View profile  
 More options Sep 12 2012, 5:48 am
From: Clark Yang <yangpic...@gmail.com>
Date: Wed, 12 Sep 2012 02:48:41 -0700 (PDT)
Local: Wed, Sep 12 2012 5:48 am
Subject: Re: Access denied or bad repository path for "admin"

hi,Bennit!
    You solve? I have the same problem.

在 2012年8月23日星期四UTC+8上午2时17分07秒,Bennit写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Clark Yang  
View profile  
 More options Sep 12 2012, 12:09 pm
From: Clark Yang <yangpic...@gmail.com>
Date: Wed, 12 Sep 2012 09:09:10 -0700 (PDT)
Local: Wed, Sep 12 2012 12:09 pm
Subject: Re: Access denied or bad repository path for "admin"

hi,Ben
    You solve? I have the same problem!

在 2012年8月23日星期四UTC+8上午2时17分07秒,Bennit写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bennit  
View profile  
 More options Sep 13 2012, 9:03 am
From: Bennit <ben.co...@gmail.com>
Date: Thu, 13 Sep 2012 06:03:40 -0700 (PDT)
Local: Thurs, Sep 13 2012 9:03 am
Subject: Re: Access denied or bad repository path for "admin"

I have not solved it. Haven't been trying either. But my next attempt would
be by testing push for a regular user (not admin).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Sommer  
View profile  
 More options Apr 17, 5:39 am
From: Martin Sommer <marwonline1...@gmail.com>
Date: Wed, 17 Apr 2013 02:39:30 -0700 (PDT)
Local: Wed, Apr 17 2013 5:39 am
Subject: Re: Access denied or bad repository path for "admin"

I had the same problem.

I could solve this by check my symbolic link /usr/local/bin/gitorious and
path environment variables from user git.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »