Clicking on a bitpack: authorization failed

I am git and github user new to mercurial and bitbucket and I am trying to use bitbucket for a project.

So far, I had write access to the new private Bitbucket repository, and I started :

  • Cloning
  • adding my existing project
  • committing
  • trying to push, I get authorization failed via:

Https

  $ hg push https: // mariusbutuc@bitbucket.org / DB2UAdmin / repo
 http authorization required
 realm: Bitbucket.org HTTP
 user: mariusbutuc
 password: 
 pushing to https: // mariusbutuc@bitbucket.org / DB2UAdmin / repo
 searching for changes
 abort: authorization failed

Ssh

  $ hg push ssh: // hg@bitbucket.org / DB2UAdmin / repo
 pushing to ssh: // hg@bitbucket.org / DB2UAdmin / repo
 searching for changes
 remote: adding changesets
 remote: adding manifests
 remote: adding file changes
 remote: added 1 changesets with 9664 changes to 9664 files
 remote: You're not allowed to write to this repository.
 remote: transaction abort!
 remote: rollback completed
 remote: abort: pretxnchangegroup.bb_perm hook failed

I also tried using simple HTTP to get similar results, for example, using HTTPS .

How can I make it work?

Additional information:

  • python 2.7.1 +
  • mercurial 1.7.5
  • on Ubuntu 11.04
+4
source share
2 answers
  • The bitpack account was opened under my gmail address [addr A].
  • The SSH key was created at my company address [addr B].
  • addr B was added to my account as a secondary address.
  • I had access to the entry for the mariusbutuc account, which had both addresses.

... I still could not pass the auth test.

  • I received an invitation from the administrator, at my work address addr B. Not only write with administrator rights.
  • Trying to accept the invitation, I could not: my account already had access to the repository.
    I had to cancel my own access in order to be able to
  • accept administrator rights.
  • Successfully pressed SSH :
  $ hg push ssh: // hg@bitbucket.org / DB2UAdmin / repo
 pushing to ssh: // hg@bitbucket.org / DB2UAdmin / repo
 searching for changes
 remote: adding changesets
 remote: adding manifests
 remote: adding file changes
 remote: added 1 changesets with 9664 changes to 9664 files
 remote: bb / acl: mariusbutuc is allowed.  accepted payload.

I still don’t know why the failure via HTTPS [username / password] failed!

+4
source

For those of you who came here from Google "pretxnchangegroup.bb_perm hook failed", this may be due to an attempt to merge with a branch in which you do not have permission to "write" in the "Branch permissions" section of the bitpacket. This is presumably due to the fact that you should use the transfer request to merge, rather than go ahead and merge with the local one.

+1
source

All Articles