Access denied or wrong repository path.......gitorious_auth.log inside

1,228 views
Skip to first unread message

HugoKuo

unread,
May 24, 2011, 4:33:05 AM5/24/11
to Gitorious
Hi guys ,
While I want to push , I get into trouble. I can create project and
repository on Dashboard.
But while I turn into console, I got error as follow.
I'm sure that the repositories folder could be access by git. There're
several file which I created from Dashboard.

****************************************************************************************
hugo@i-00000092:~/projects/mumbo$ ssh g...@git.myserver.com
PTY allocation request failed on channel 0
Welcome, hugo. Use git to push/pull your repositories
Connection to
git.myserver.com closed.
****************************************************************************************
hugo@i-00000092:~/projects/mumbo$ git push origin master

== Gitorious:
==========================================================
Access denied or wrong repository path
========================================================================

fatal: The remote end hung up unexpectedly

****************************************************************************************
===gitorious_auth.log===
I, [2011-05-24 16:15:47#7876] INFO -- : Connection from "172.16.2.155
55349 22" (hugo): git-receive-pack '/hugo/mainline.git'
I, [2011-05-24 16:15:47#7876] INFO -- : Access denied or bad
repository path for "hugo": "git-receive-pack '/hugo/mainline.git'"

==while I try on gitserver localhost==
I, [2011-05-24 16:29:15#8368] INFO -- : Connection from "127.0.0.1
38101 22" (hugo): git-receive-pack '/mumbo/mainline.git'
I, [2011-05-24 16:29:15#8368] INFO -- : Access denied or bad
repository path for "hugo": "git-receive-pack '/mumbo/mainline.git'"

****************************************************************************************
I got same problem...
Any suggestion would be helpful!!!!

HugoKuo

unread,
May 24, 2011, 5:12:45 AM5/24/11
to Gitorious
PLz ignore this message, problem is been resolved

Marius Mårnes Mathiesen

unread,
May 24, 2011, 5:24:34 AM5/24/11
to gito...@googlegroups.com
On Tue, May 24, 2011 at 10:33 AM, HugoKuo <tony...@gmail.com> wrote:
****************************************************************************************
hugo@i-00000092:~/projects/mumbo$ git push origin master

== Gitorious:
==========================================================
Access denied or wrong repository path
========================================================================

There are (at least) two things that could cause this:
- The path is incorrect. Does `git ls-remote origin` give a listing of the refs in the repository?
- The user isn't allowed to push to the repository. Does the hugo user have access? You could verify this by hitting the URL http://<your-gitorious-host>/hugo/mainline/writable_by?username=hugo

Does this give any hints?

Cheers,
- Marius

郭耀謙

unread,
May 24, 2011, 5:25:58 AM5/24/11
to gito...@googlegroups.com
Thanks , it caused by a path typo .....Thanks for your recommand.

Cheers 
Hugo Kuo

2011/5/24 Marius Mårnes Mathiesen <marius.m...@gmail.com>

--
To post to this group, send email to gito...@googlegroups.com
To unsubscribe from this group, send email to
gitorious+...@googlegroups.com

jt whissel

unread,
Oct 24, 2011, 1:58:45 PM10/24/11
to gito...@googlegroups.com
what path error was it, since I am having this problem. 

Rafael Quirino

unread,
Jan 18, 2012, 2:00:39 PM1/18/12
to gito...@googlegroups.com
HugoKuo <tonytkdk <at> gmail.com> writes:

>
> PLz ignore this message, problem is been resolved
>
>

> > hugo <at> i-00000092:~/projects/mumbo$ git push origin master


> >
> > == Gitorious:
> > ==========================================================
> > Access denied or wrong repository path
> > ========================================================================
> >
> > fatal: The remote end hung up unexpectedly
> >
> > ***************************************************************************
*************
> > ===gitorious_auth.log===
> > I, [2011-05-24 16:15:47#7876]  INFO -- : Connection from "172.16.2.155
> > 55349 22" (hugo): git-receive-pack '/hugo/mainline.git'
> > I, [2011-05-24 16:15:47#7876]  INFO -- : Access denied or bad
> > repository path for "hugo": "git-receive-pack '/hugo/mainline.git'"
> >
> > ==while I try on gitserver localhost==
> > I, [2011-05-24 16:29:15#8368]  INFO -- : Connection from "127.0.0.1
> > 38101 22" (hugo): git-receive-pack '/mumbo/mainline.git'
> > I, [2011-05-24 16:29:15#8368]  INFO -- : Access denied or bad
> > repository path for "hugo": "git-receive-pack '/mumbo/mainline.git'"
> >
> > ***************************************************************************
*************
> > I got same problem...
> > Any suggestion would be helpful!!!!
>

I'm having the same problem.

I, [2012-01-18 15:56:09#12185] INFO -- : Connection from "189.X.X.X 6055 22"
(rquirino): git-receive-pack '~/repositories/foo/repo.git'
I, [2012-01-18 15:56:09#12185] INFO -- : Access denied or bad repository path
for "rquirino": "git-receive-pack '~/repositories/foo/repo.git'"

Anyone have any ideas?


krak3n

unread,
Jan 29, 2012, 12:15:38 PM1/29/12
to Gitorious
I am also experiencing this issue, what was your fix?

On Jan 18, 7:00 pm, Rafael Quirino

Jon Sawyer

unread,
Oct 16, 2013, 7:13:40 PM10/16/13
to gito...@googlegroups.com

Here's what I did to fix this issue. I checked gitorious.yml settings and noticed that "gitorious_client_host" was set to "localhost". I changed it to "gitorious.myhost.com", restarted git-daemon, and it worked.

I followed the suggestions above about making sure gitorious user, "git", had all the proper permissions and they already were correctly set. I was also able to create a repo through the website and whatnot. So it must have been something internal. And that's where I got the idea to change "gitorious_client_host".

Good luck!

Reply all
Reply to author
Forward
0 new messages