Git push returns error code 402

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When pushing to Bitbucket Server 1.0.0, it responds with the error code 402.

$ git push url directory
Cloning into 'directory'...
error: The requested URL returned error: 402 while accessing url
fatal: HTTP request failed

Cause

This may be caused by one of two things:

  1. Your Bitbucket Server License has expired.
  2. You have configured too many users for your current Bitbucket Server license.

Bitbucket Server 1.0.1 and above do not respond with a 402, instead they give an explicit error description in the output of the git command.

 

Resolution

Contact your administrator and let them know. You will have to renew your license, upgrade to a license that supports more users or reduce the number of active users.

See Administer Bitbucket Data Center and Server.

 

 

 

 

 

 

 

 

 

 

 

Last modified on Sep 16, 2015

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.