youngmon/atlassian-qna huggingface dataset:
We are getting issue in push
Asked by roxplayer2015:

remote: \[ALERT\] Your push failed because the account 'roxplayer' has exceeded its remote: \[ALERT\] user limit and this repository is restricted to read-only access.remote: \[ALERT\] To restore write access, ask an account administrator to upgrade their plan.remote: \[ALERT\] For more info:remote: \[ALERT\] <https://confluence.atlassian.com/x/MAF8DQ>fatal: unable to access '<https://bitbucket.org/roxplayer/tap_tap_shots.git/>': The requestedURL returned error: 402


Answers:
author: Victor Menes
body: Hey RoxPlayer,

Have you had the chance to take a look on below article?

[Fix error "Your push failed because the account has exceeded its user limit"](https://confluence.atlassian.com/bbkb/bitbucket-cloud-fix-error-your-push-failed-because-the-account-has-exceeded-its-user-limit-1183680240.html)

Depending on your plan (upgraded or free customer), it might be due you have indeed reached the limit of users and pushes are affected by that. So, you might wanna get an upgrade or remove users accordingly.

Otherwise, you can also have a failed payment method, which could also be checked on how to resolve on the article provided :)

I hope that helps somehow and you are able to get pushes back on track :D


Tags: bitbucket-cloud

cloud
Repository size exceeds limit due to a mistake with running BFG
Asked by David Bergevoet:

Hello,

I tried to clean up the repository, of 3.3 GB, but I made a mistake with BFG by not cloning a mirror, but a normal clone. Now I cannot fix or revert this change since the repository is over 4GB. I hope someone can help me with this. I will (most likely) not make this mistake again. Thank you in advance!


Answers:
author: Theodora Boudale
body: Hi David,

I checked the repositories your Bitbucket Cloud account has access to, and I can't see any repo being over the 4 GB limit.

I'm not sure if the automated garbage collection reduced the repo's size, or if you perhaps deleted and recreated the repo.

Do you still need assistance with this issue? If so, could you provide the repo name masked (with some asterisks) so I can identify it and run a garbage collection for it?

Kind regards,  
Theodora

comments: author: David Bergevoet
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

Thank you for your quick response! I checked today and the repository size was smaller than yesterday. I guess the automated garbage collection reduced the size.

I didnt know the garbage collection was a thing. It seems to be solved now. Thank you for letting me know there is automated garbage collection!

Regards,

David


Tags: bitbucket-cloud

cloud
Set filter to Jira Cloud Integration in Bitbucket Cloud
Asked by Petrus Hakakoski:

We have our Jira Cloud added to our projects <https://support.atlassian.com/bitbucket-cloud/docs/use-jira-software-projects-in-bitbucket/>

But we use the same project for multiple different repos and I would like to filter the tickets in the tab based on the Component as that is how we tag them in the Jira. Is there a way to set up a filter that would only show tickets with certain component in the integration tab?


Answers:
author: Theodora Boudale
body: Hi [@Petrus Hakakoski](/t5/user/viewprofilepage/user-id/4725937),

It is not possible to filter by component in the **Jira issues** page of a repository at the moment.

I went ahead and created a feature request in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-22378>

Please make sure to add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


author: Ashley Hudson
body: Heya [@Petrus Hakakoski](/t5/user/viewprofilepage/user-id/4725937)

So in terms of creating a filter for the integration tab, as far as I'm aware you would generically want to create a filter within Jira's issues tab which would look something like this:

```
project="myProject" AND (component = XYZ)
```

I'm unsure of creating custom filters within the integration tab so perhaps this is the solution you are looking for? I hope this helps! :)

Kind Regards,

Ashley Hudson

comments: author: Petrus Hakakoski
body: Hi.

The only filters in the tabs are Project and Status, and there doesn't seem to be any controls to add more or even control those two.


Tags: bitbucket-cloud

cloud

integration

jira-cloud
How to avoid the problem that bitbucket's account verification window keeps popping up ?
Asked by Anubis Chen:

When downloading bitbucket repository through git bash,I'm sure there is no OAuth set under the workspace and two-step verification is not enabled either.

But every time the verification window of bitbucket will pop up,Even if I include username in the download URL (username@bitbucket.org).

In addition,

I set "git config credential.helper manager", And save the account password in the credential manager of the computer in advance.

But it seems that when downloading the repository of bitbucket,Neither access the credential,Always jump out of the account inquiry window.


Answers:
author: Theodora Boudale
body: Hi [@Anubis Chen](/t5/user/viewprofilepage/user-id/5080145),

What kind of verification window are you seeing? Is it about OAuth authorization?

If so, this is most likely related to the configuration of the credential manager.

If the credential manager you are using is the following one:

* <https://github.com/GitCredentialManager/git-credential-manager>

then please check my reply to another post below with more info on how to disable OAuth and use Basic configuration only:

* <https://community.atlassian.com/t5/Bitbucket-questions/APP-Password-not-working-with-Git-Bash/qaq-p/1964120#M79246>

Kind regards,  
Theodora

comments: author: Anubis Chen
body: We see this verification window.  
We'll test the relevant link instructions to see if that resolves it. Thanks for your quick reply![BBO.png](https://community.atlassian.com/t5/image/serverpage/image-id/234032iB9579A95DCF2CD99/image-size/large?v=v2&px=999 "BBO.png")


author: Theodora Boudale
body: You are welcome, please feel free to let me know how it goes.


author: Anubis Chen
body: Worked by GCM + wincred + basic + stopped all interactive \^\^


author: Theodora Boudale
body: That's good to hear, thank you for the update! Please feel free to reach out if you ever need anything else.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

credential

verify
Do we need to create jira account for users who want to access our code on bitbucket
Asked by Vijay, Shivani:

We have started using bitbucket for our code management.

I need to to give access to other users, should those users shall have jira account, because i am not able to add them on the fly.


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Vijay, Shivani](/t5/user/viewprofilepage/user-id/5117273) and welcome to the community,

Jira access, as product access, will not be necessary. Perhaps what you mean is for a user to have an atlassian account in order to access your workspace should you give him the appropriate product access. Then yes, users should have an atlassian account.


author: Ste Wright
body: Hi [@Vijay, Shivani](/t5/user/viewprofilepage/user-id/5117273)

I don't believe you *need* Jira access to access Bitbucket - you should be able to grant users access using these instructions: <https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/>

If users want to see Bitbucket information on Jira issues though, they'd need access to Jira also. See more about how to integrate the two tools on [this help page](https://support.atlassian.com/jira-cloud-administration/docs/integrate-with-development-tools/)

Ste


Tags: bitbucket-cloud

cloud
Uanble to access account
Asked by gusleo:

I'm not sure that I forgot the email address, but I have username and access to bitbucket from git command. when login with email, it's likes create new repo


Answers:
author: Patrik S
body: Hello [@gusleo](/t5/user/viewprofilepage/user-id/5117066) ,

Since you mentioned having access to the account locally using **git** command, could you please share with us the **masked** name of your workspace and repository that you have locally? The masking is necessary since this is a public forum :)

An example of a masked version of **my_workspace/my_repository** would be :

m\*\*\*\*\*e/m\*\*\*\*\*y

Let me know in case you have any questions.

Thank you, [@gusleo](/t5/user/viewprofilepage/user-id/5117066) !

Patrik S


Tags: bitbucket-cloud

cloud
AWS Codebuild returning dial tcp 104.192.141.1:443: i/o timeout
Asked by Jging Fai Chong:

I have a AWS CodeBuild project that would download source from bitbucket.

When running AWS CodeBuild, I received the timeout error below?

"<https://bitbucket.org/XXX/XXXX.git/info/refs?service=git-upload-pack>": dial tcp 104.192.141.1:443: i/o timeout

Re-running the CodeBuild project it would sometime work without issue. It would fail about 50% of the time.


Answers:
author: Patrik S
body: Hey [@Jging Fai Chong](/t5/user/viewprofilepage/user-id/5117208) ,

Welcome to Atlassian Community!

The error being reported seems like a firewall issue blocking the connections and causing them to time out.

In this case, could you please make sure that your AWS Code Build environment is allowing access to the Bitbucket Cloud IPs listed in the below documentation?

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-bitbucket.org--api.bitbucket.org--and-altssh.bitbucket.org>

comments: author: Jging Fai Chong
body: Thanks I am following up this with our team to check this is particular IP may be blocked.  
Will update here ASAP.

<br />

On another post, I found that there is some one mentioning this IP is not supported. Is this still the case? As it looks like it should be covered by 104.192.136.0/21  

Post: <https://community.atlassian.com/t5/Bitbucket-questions/IP-Blacklisted-104-192-141-1/qaq-p/2191936>

![bitbucket_forum.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/233816iD17D004C65E7C11F/image-size/large?v=v2&px=999 "bitbucket_forum.PNG")


author: Patrik S
body: Hey [@Jging Fai Chong](/t5/user/viewprofilepage/user-id/5117208) ,

The IP 104.192.141.1 is still supported and, as you mentioned, is covered in the range 104.192.136.0/21 provided in our official [Bitbucket Cloud IP's documentation](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-bitbucket.org--api.bitbucket.org--and-altssh.bitbucket.org)


author: Jging Fai Chong
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,

My colleague which manages firewall could see the the traffic for 104.192.141.1 passed through fine when I received "<https://bitbucket.org/XXX/XXXX.git/info/refs?service=git-upload-pack>": dial tcp 104.192.141.1:443: i/o timeout" from AWS COdeBuild.

He said it looks like 104.192.141.1 is rejecting the request.

Are you able to assist?


author: Patrik S
body: Hello [@Jging Fai Chong](/t5/user/viewprofilepage/user-id/5117208) ,

I did some research on this error on the internet, and it seems to be related to your VPC configuration. I found the following post in another forum that might be of help:

* <https://stackoverflow.com/a/52034099>

If that does not help, I'd suggest reaching out to AWS support to check on your network configuration.

Thank you, [@Jging Fai Chong](/t5/user/viewprofilepage/user-id/5117208) .


Tags: aws

bitbucket-cloud

cloud
question about git push
Asked by phillip_feldman:

I'm looking at the tutorial on \`git push\` at [https://www.atlassian.com/git/tutorials/syncing/git-push#:\~:text=The%20git%20push%20command%20is,exports%20commits%20to%20remote%20branches](https://www.atlassian.com/git/tutorials/syncing/git-push#:~:text=The%20git%20push%20command%20is,exports%20commits%20to%20remote%20branches).

I'm confused by the following paragraph:

"Push the specified branch to , along with all of the necessary commits and internal objects. This creates a local branch in the destination repository. To prevent you from overwriting commits, Git won't let you push when it results in a non-fast-forward merge in the destination repository."

Firstly, something is missing after the word "to". Secondly, what is meant by the term non-fast-forward merge?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Philip, welcome to the community!

I understand you need some clarification on 'git push'.

I think the sentence should be like "Push the specified branch to **the remote repository**, along with all of the necessary commits and internal objects. This creates a local branch in the **remote**destination repository ...."

*Fast forward push*

When you work on a git branch and commit code on your local branch, you need to push your work to the remote branch (in bitbucket) to be able to share it with others or create a pull request. Ideally nobody else should be committing and pushing to your working branch. Then every change you commit and push is a direct successor of the previous change. That's called a fast-forward (push) merge.

*Non-fast-forward push*

If someone else 'interfered' with your branch and pushed 'their' changes to the remote before you pushed yours, your update is **not fast-forward** any longer, since the last commit is from someone else, but your new commit is based on an earlier stage of the branch. You are in a little bit of trouble now because you need to update your local branch with the 'alien' commit from someone else to merge their and your work before you can push the result, i.e. your work and 'their' work combined, back to Bitbucket (remote).

*Conclusion*

1. Don't work on shared branches, complete your feature on your branch

2. Run 'git pull' before your commit local changes. It doesn't hurt and in case someone else interfered with your remote branch you are updating your local branch

3. Commit your changes

4. Safely push your changes to remote, they will always be a fast-forward (push) merge in the remote.

Hope that helps!

Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd) - Bitbucket apps for efficient teams


author: Collin
body: Hi [@phillip_feldman](/t5/user/viewprofilepage/user-id/5116797) - Thank you for bringing this to our attention. We will get the content you mentioned updated and edited accordingly ASAP. Cheers

[@Ulrich Kuhnhardt _IzymesCo_](/t5/user/viewprofilepage/user-id/4011392) - Thank you for providing such a thorough and thoughtful answer. Much appreciated.


Tags: bitbucket-cloud

cloud
Account has exceeded its user limit and this repository is restricted to read-only access.
Asked by aray729:

We already have the Standard account plan and total no of user is 7.

We are not being able to push any code from the terminal. We are getting error stating:

Your push failed because the account 'Parentcraft_Admin' has exceeded its

user limit and this repository is restricted to read-only access.

To restore write access, ask an account administrator to upgrade their plan.  

<br />


Answers:
author: Patrik S
body: Hello [@aray729](/t5/user/viewprofilepage/user-id/5116602) ,

I checked for your workspace and it's indeed currently in the Standard plan. I see no blockers in your workspace or repositories that would prevent you from pushing. It might have been just a synchronization delay if you had recently upgraded your plan.

In case you are still facing the issue, please let us know so we can raise an internal support ticket for you.

Thank you, [@aray729](/t5/user/viewprofilepage/user-id/5116602) !

Patrik S


author: Ste Wright
body: Hi [@aray729](/t5/user/viewprofilepage/user-id/5116602)

This can happen if you are over your user limit - how many users is your maximum on Bitbucket? Or are you paying per user, per month?

If you're unsure from your billing page, I'd recommend contacting Atlassian Support who can investigate further - <https://support.atlassian.com/contact/>

Ste


Tags: bitbucket-cloud

cloud
Are Templates available in the Bitbucket WIKI?
Asked by Allen Huffman:

I have done much work with Mediawiki over the years, and one feature I use often are Templates. They allow making a common bit of wiki code that can be imported on multiple pages. If the common code changes, all pages display the update.

Is there something like that with the wiki that Bitbucket is using?

Thanks...


Answers:
author: Patrik S
body: Hello [@Allen Huffman](/t5/user/viewprofilepage/user-id/5116622) ,

Welcome to Atlassian Community!

I'm afraid that Bitbucket Cloud currently does not offer the functionality of using Templates on the repository Wikis. I went ahead and created a feature request for it, which you can find on the following link :

* <https://jira.atlassian.com/browse/BCLOUD-22376>

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Allen Huffman](/t5/user/viewprofilepage/user-id/5116622) !

Patrik S

comments: author: Allen Huffman
body: The system wants me to accept this answer. How does one do that?


author: Patrik S
body: Hello [@Allen Huffman](/t5/user/viewprofilepage/user-id/5118938) ,

Only the account that created the question can accept the answer. and it seems like you replied with a different account the second time.

No worries, I can set the answer as accepted for you!

Thank you, [@Allen Huffman](/t5/user/viewprofilepage/user-id/5118938) !

Patrik S


Tags: bitbucket-cloud

cloud

template

wiki
Automated Validation script after the repository migration on Bitbucket server/cloud
Asked by Dnyaneshwar Borase:

Hi Team,

We are planning to migrate ClearCase repository to Bitbucket. After the migration we need to perform the below validation activity from both source and target instance;

1. Scripts/query to capture files/folders count in both ClearCase VOB and Bitbucket Repo  
parameter ---

* Repo Name, Size
* Total count of files with size
* Branch name and size
* Relation with Repo with branch

2. Utility/script/query to perform the CRC Binary Comparison of files between the Source (ClearCase) and Target (Bitbucket) ----- (Name and Size of the binary files comparison )

If you can help us how to get information from bitbucket side then it will be helpful to us for develop the script.

You help is really appreciated!!

Regards,

Dnyaneshwar Borase


Answers:
author: Dnyaneshwar Borase
body: Hi team,

Please provide your inputs of suggestions here

Regards,

Dnyaneshwar


Tags: bitbucket-cloud

bitbucket-server

migration

server
Automating repository imports
Asked by Steve Morris:

Hi,

We are looking at migrating a large number (600+) of git repositories from Gitlab to Bitbucket Cloud as part of this move. While the Bitbucket import tool does a good job on importing the repos we've tried it on, it's not really practical to manually import that many. Is there an API or HTTP request that we can use to automate this process?

The REST API documentation doesn't list anything related to importing repositories; only creating new ones.


Answers:
author: Aron Gombas
body: I don't think that there is an API dedicated to imports.

But, I think if you can create repos through the API, then you can easily develop a script which:

1. iterates over the projects/repos in GitLab
   1. creates the corresponding project/repo in Bitbucket
   2. "git pulls" from GitLab
   3. "git pushes" to Bitbucket
   4. ..

comments: author: Steve Morris
body: Thanks Aron, that is the option we're looking at but I was hoping there was an API which would make things slightly easier and reduce the possible number of failure points.


author: Thomas Totter
body: [@Steve Morris](/t5/user/viewprofilepage/user-id/2113681)

Actually, this should not be so difficult to implement with Rest-Api. I did something similar last year. The only difference being that in my case the basis for the newly created repositories was a local folder structure with around 100 top level folders.

For each of those folders i created a bitbucket repository (repo-name = folder-name) and set all (non-standard \& non-inheritable) properties according to a config (json) file. If you want to do the same thing i would recommend structuring the json exactly the same way as the body/payloads that you need later when invoking the post/put api-calls. Any common settings that you can inherit from the parent workspace/project(s) should be set there, then you don't need to deal with the api there....

My repo settings included things like: basic repo infi/descriptions, branch restrictions, repository variables, user- and group permissions and for sure some more stuff that i just can't remember right now...

Well, since we also used build/deploy pipelines, i had to create deployment-environments plus their variables and additionally handle any pipeline/deployment-specific repo-settings.

Then i copied a ".gitignore" and "bitbucket-pipelines.yml" file to each directory (based on templates plus some minor replacements according to the processed folder). Next thing was the whole git-part: i locally initialized git in each folder and added/committed/pushed the containing files to the newly created repos (after configuring git remotes of course...).

Since it seemed very likely that some settings will be changed, i built the script to (conditionally) create-or-update on all levels. This turned out to be a very wise decision a few weeks later ;)

In your case the process should be simpler, since you already have the git repos initialized. I have no clue about Gitlab, but i'm sure you will find a way to automatically clone/pull all repos to your local machine without too much pain.


Tags: bitbucket-cloud

cloud