threads / discuss / 18229

push problem for new repo on repo.or.cz

Subject: push problem for new repo on repo.or.cz

## tl;dr

6 messages between Mar 9, 2009 and Mar 9, 2009.

replies: 5people: 3as markdown or json

Michael J Gruber· Mar 9, 2009, 16:02 UTC · lore
Hi there

I have problems pushing into a new project on repo.or.cz. My user (mjg) is added in the admin interface, the key is correct because I've been using it for a while already for other projects (forks though). I'm using a qualified refspec. What else could be wrong on my side, assuming it's not the scripts on repo.or.cz? My git is 1.6.2.

Michael
git  push  git+ssh://repo.or.cz/srv/git/conformal.git master:master
Counting objects: 14, done.
Delta compression using 2 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (14/14), 11.50 KiB, done.
Total 14 (delta 3), reused 0 (delta 0)
error: unpack failed: unpacker exited with error code
To git+ssh://repo.or.cz/srv/git/conformal.git
 ! [remote rejected] master -> master (n/a (unpacker error))
error: unable to create temporary sha1 filename ./objects/a3: Permission
denied

fatal: failed to write object error: failed to push some refs to 'git+ssh://repo.or.cz/srv/git/conformal.git'

Johannes Schindelin· Mar 9, 2009, 16:14 UTC · re: Michael J Gruber · lore

Re: push problem for new repo on repo.or.cz

Hi,
On Mon, 9 Mar 2009, Michael J Gruber wrote:
Show 5 quoted lines
> I have problems pushing into a new project on repo.or.cz. My user (mjg)
> is added in the admin interface, the key is correct because I've been
> using it for a while already for other projects (forks though). I'm
> using a qualified refspec. What else could be wrong on my side, assuming
> it's not the scripts on repo.or.cz? My git is 1.6.2.
I guess it is your impatience.

Users are not really added from the web interface, that would be dangerous, as the web application would need more permissions than it deserves. Therefore, the web application writes to a file which is handled by a cron job with those permissions.

So, wait 10 minutes and try again; I am sure it will work then.

Ciao, Dscho

Michael J Gruber· Mar 9, 2009, 16:46 UTC · re: Johannes Schindelin · lore

Re: push problem for new repo on repo.or.cz

Johannes Schindelin venit, vidit, dixit 09.03.2009 17:14:
Show 18 quoted lines
> Hi,
> 
> On Mon, 9 Mar 2009, Michael J Gruber wrote:
> 
>> I have problems pushing into a new project on repo.or.cz. My user (mjg)
>> is added in the admin interface, the key is correct because I've been
>> using it for a while already for other projects (forks though). I'm
>> using a qualified refspec. What else could be wrong on my side, assuming
>> it's not the scripts on repo.or.cz? My git is 1.6.2.
> 
> I guess it is your impatience.
> 
> Users are not really added from the web interface, that would be 
> dangerous, as the web application would need more permissions than it 
> deserves.  Therefore, the web application writes to a file which is 
> handled by a cron job with those permissions.
> 
> So, wait 10 minutes and try again; I am sure it will work then.
You mean like as in 360 seconds? I can't wait!!!

Well, actually, I tried several times, and it's been more like something between half an hour and an hour now. The project's gitweb site is up, so something has had the permissions to create something, so to say, or else I would have suspected cronjob inflicted time quantisation or backlog as you did. Which is why I suspected that I missed something (such as having to set core.allowDenialofPushToEmptyRepoWithoutExplicitForceOption to false).

OK, I'll try again tomorrow. How patient is that ;)
Michael
Petr Baudis· Mar 9, 2009, 16:51 UTC · re: Michael J Gruber · lore

Re: push problem for new repo on repo.or.cz

  Hello,
On Mon, Mar 09, 2009 at 05:02:55PM +0100, Michael J Gruber wrote:
Show 5 quoted lines
> I have problems pushing into a new project on repo.or.cz. My user (mjg)
> is added in the admin interface, the key is correct because I've been
> using it for a while already for other projects (forks though). I'm
> using a qualified refspec. What else could be wrong on my side, assuming
> it's not the scripts on repo.or.cz? My git is 1.6.2.
  your user has actually not been added in the admin interface, please
try again.
  Best,
				Petr "Pasky" Baudis
Johannes Schindelin· Mar 9, 2009, 16:59 UTC · re: Petr Baudis · lore

Re: push problem for new repo on repo.or.cz

Hi,
On Mon, 9 Mar 2009, Petr Baudis wrote:
Show 9 quoted lines
> On Mon, Mar 09, 2009 at 05:02:55PM +0100, Michael J Gruber wrote:
> > I have problems pushing into a new project on repo.or.cz. My user 
> > (mjg) is added in the admin interface, the key is correct because I've 
> > been using it for a while already for other projects (forks though). 
> > I'm using a qualified refspec. What else could be wrong on my side, 
> > assuming it's not the scripts on repo.or.cz? My git is 1.6.2.
>
> your user has actually not been added in the admin interface, please try 
> again.
Indeed.  I should have checked before giving a smart-ass answer ;-)
Note: when adding a user, you have to enter the admin password...  Failing 
that, you will see exactly the same form, but a red warning saying that 
the user has not been added.

Ciao, Dscho

Michael J Gruber· Mar 9, 2009, 17:11 UTC · re: Johannes Schindelin · lore

Re: push problem for new repo on repo.or.cz

Johannes Schindelin venit, vidit, dixit 09.03.2009 17:59:
Show 18 quoted lines
> Hi,
> 
> On Mon, 9 Mar 2009, Petr Baudis wrote:
> 
>> On Mon, Mar 09, 2009 at 05:02:55PM +0100, Michael J Gruber wrote:
>>> I have problems pushing into a new project on repo.or.cz. My user 
>>> (mjg) is added in the admin interface, the key is correct because I've 
>>> been using it for a while already for other projects (forks though). 
>>> I'm using a qualified refspec. What else could be wrong on my side, 
>>> assuming it's not the scripts on repo.or.cz? My git is 1.6.2.
>> your user has actually not been added in the admin interface, please try 
>> again.
> 
> Indeed.  I should have checked before giving a smart-ass answer ;-)
> 
> Note: when adding a user, you have to enter the admin password...  Failing 
> that, you will see exactly the same form, but a red warning saying that 
> the user has not been added.
Uhm, what I had done:
- added the user
- got back the same admin form /which now listed mjg as a user which had
been added/ (with a checkmark)
- after the push failed, went to the form again, hit update again, still
saw mjg listed as a user for the project.
So, there was no red warning, instead there was a confirmation.

OK, I went back now. mjg was not listed any more. Added it (again), now things work, I'm happy, I shut up.

Well, what may have happened was that the red warning was displayed at the top of the paage while the confirmation was listed at the bottom.

In any case, thanks for hosting!

Cheers, Michael

← back to recent threads