youngmon/atlassian-qna huggingface dataset:
Adding a new memeber to project
Asked by davidfdezc:

Hello, I have invited a member to project and repositories, buy he is not receiving email invitation, have canceled invitation and done a new one, but still doesn?t receive email.

Can you please let us know if there is a way to enable this email: \<email_removed\>.

This user has access to other projects in Bitbucket, but is not getting hold of the invitation from this specific project.


Answers:
author: Theodora Boudale
body: Hi [@davidfdezc](/t5/user/viewprofilepage/user-id/3819502),

The email you mentioned was in one of our suppression lists. We received a hard bounce response from your mail server when we first attempted to send an email to this address, with the error message:

```
550: 550-5.2.1 The email account that you tried to reach is disabled.
```

I went ahead and removed this email from our suppression list. I would suggest making sure firth that this email is operational (e.g. by sending this user a test email from your email and confirming if they receive it). If the email is operational now, you can resend the Bitbucket invitation (the user should be able to receive it now that I removed their email from the suppression list). The invitation needs to be resent now, as the previous ones were dropped.

Just a heads up, I removed the email from your post for privacy reasons.

Please feel free to let me know if things are ok now and if you need anything further!

Kind regards,  
Theodora

comments: author: davidfdezc
body: Thank you Theodora for you answer and support, with this action we were able to invite our teamate. Great solution :)


Tags: bitbucket-cloud

cloud
Can't login to my bitbucket account
Asked by PatrickB:

I can no longer log into my bitbucket account. It seems fine when I login to atlassian but clicking on the bitbucket icon I get the message that I couldn't be logged in.


Answers:
author: Caroline R
body: Hi, [@PatrickB](/t5/user/viewprofilepage/user-id/4641178)! Welcome to the community!

I confirmed that your Bitbucket account is active, so you should be able to log in. In this case, could you please confirm the following information, so we can further investigate this issue?

* What is the browser you are using? Could you please check which version you are using to navigate on Bitbucket?

* Do you have any add-ons enabled for this browser such as AdBlock or any similar extension? If you do, could you please try turning it off and try to log in again? The reason we ask this is is that, sometimes, the AdBlock app blocks specific features from our page that cause it to throw some errors.

* Could you please open the page <https://bitbucket.org/> in an incognito window using Chrome and test if you can access your Bitbucket account?

Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: Patrick B
body: Apologies for the confusion.... I had to create a second account to get access to the repos that I was invited to. It looks like I used the newer account to make the post on accident instead of this older account that was inaccessible. To answer your questions I tried various browsers: Chrome, Firefox, and Safari. Some had add-ons disabled and some had no add-ons but it's not add-ons. I did the same login procedure with privacy mode/icognito mode to no-avail.


author: Caroline R
body: Hi, Patrick!

Thanks for the additional information! I checked this old account and confirmed that it was inactive. This happens when the account is not accessed for a long time.

I have reactivated this Bitbucket account so you should be able to access it now, could you please test and confirm if you can log in using this address?

Looking forward to hearing from you.

Kind regards,  
Caroline


author: Patrick B
body: Looks like it is working now, thanks!


author: Caroline R
body: Hi, Patrick! Thanks for your confirmation, I'm glad to know it worked :)

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

login
Repo size note reduced after large file history delete using BFG
Asked by KULarmin:

Hello,

I used BFG to remove a large file from my repo history. In other questions on the forum I read that the gc operation takes a bit of time to be executed. It has been over a day and nothing has happened yet on the remote repo. I am over the 4GB size limit and need to push to keep working on my project (deadlines approaching). I turned on the '  
Delete dangling commits when over size limit' option in labs. Could you please have a look at my repo and do a manual start of the gc operation please?


Answers:
author: Theodora Boudale
body: Hi [@KULarmin](/t5/user/viewprofilepage/user-id/3105093),

I checked the repositories you own and have access to, I could find one that is over the limit so I went ahead and triggered a manual git gc for it. Its size now is 1.2 GB.

Does this agree with the size of your local repo if you run git count-objects -Hv, or do you have a local repo of a smaller size? If your local repo has a smaller size after you ran BFG, you can push your changes and let me know so I can trigger another git gc.

If the feature **Delete dangling commits when over size limit** is enabled for your account and the repo is over the size limit, a git gc will be triggered automatically if you undo the last commit and push that, see our documentation here:

* <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Undoing-the-last-push>

The git gc will not get triggered if you push anything else, like history rewrite.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora

comments: author: KULarmin
body: Hi Theodora,

thank you very much for your swift help and explanations. At the moment I do only have a local mirror repo (`git clone --mirror git://example.com/some-big-repo.git)`on which I did the history rewrite.

That repo is 923.83 MB large according to git count-objects -Hv. So slightly smaller than the remote one. That is okay for me and I leave it at that.

Kind regards,  
Armin


Tags: bitbucket-cloud

cloud

git-lfs
Lost access to public repository
Asked by ??????? NA:

I have a pullic repository. I did nothing, but today morning users started to tell me that they can't get access to repository.

They see Error: "You were never here"

Screeshot: <https://yadi.sk/i/EEeqj7A5oeklZA>

It seems like bitbucket platform bug.


Answers:
author: Theodora Boudale
body: Hi [@??????? NA](/t5/user/viewprofilepage/user-id/3614643) and [@oleg_davydov](/t5/user/viewprofilepage/user-id/2183741),

This was indeed a bug where non-workspace members were unable to access public repos in a private workspace, we apologize for the inconvenience caused by this.  
Our development team has deployed a fix, so the issue should be resolved now.

Please feel free to let me know if things are ok or if you're still experiencing any issues.

Kind regards,  
Theodora

comments: author: oleg.davydov
body: It is alright now, many thanks!


author: oleg.davydov
body: I have the same issue with my repository:

<https://bitbucket.org/meshlessFD/mfdlab>


Tags: bitbucket-cloud

cloud
How to reverse a commit on a respository greater than 4GB in size?
Asked by Cole Ferguson:

Hi,

I wasn't aware of the file size limitations on bitbucket and uploaded more than 4GB in a single commit. I'm trying to reverse the commit but I can't push the reversed commit because the repository is now of a size larger than 4GB and won't let me push anything.

How can I delete these files so that I can push again? I just want to reset my last commit.

Thanks in advance for all the help!


Answers:
author: Theodora Boudale
body: Hi Cole,

You can check the following documentation page on how to undo the last push:

* <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Undoing-the-last-push>

As mentioned there, make sure you enable the **Delete dangling commits when over size limit** feature for your account in <https://bitbucket.org/account/settings/features/>, so that a garbage collection will get triggered automatically after you follow the steps on that guide. The repo size should then be reduced in a few minutes. If you don't see the repo size getting reduced a few minutes after you have followed the steps on the guide, please feel free to let me know and I can trigger a garbage collection manually.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Where's my data stored now?
Asked by Mik Clarke:

So BitBucket clould has just moved onto a AWS platform.

Under the old scheme my data used to be stored in data centers in Virginia and California.

Where is it stored under this new scheme? Has it left the US? Has it been imported into some 3rd country? Is there any way we can influence where it is stored and where builds occur?

Mik


Answers:
author: Caroline R
body: Hi, [@Mik Clarke](/t5/user/viewprofilepage/user-id/1188382)!

Thank you for reaching out to Atlassian Community!

Currently, repository data is all stored in the US regardless of the sign-up region. Our primary data storage region is us-east with our DR being in us-west.

We do have a feature request to allow users to select which region they wish to store their Bitbucket data:

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

In case you would like to have this feature implemented, I would suggest that you 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.

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Obtain PR Title from Bitbucket Pipeline
Asked by Kevin Shelley:

I have a pipeline that runs a script when pull requests are merged to the *master* branch. I want to obtain the title of that PR so I can use it to rename the generated artifact at the end of the deployment script. I know I can use the **BITBUCKET_PR_ID** variable to obtain the PR's ID, but I can only use this variable on pull request pipelines, and not the branch pipeline I'm using.

Any suggestions?


Answers:
author: Caroline R
body: Hi, [@Kevin Shelley](/t5/user/viewprofilepage/user-id/4608693)! Welcome to the community!

In order to better understand your use case, would you mind sharing your YAML file with us?

In case you don't want to share this here, I see that all the repos you have access to are under a workspace that is on the Premium plan, so I would suggest that you open a support ticket with us, so we can access this YAML file internally to further understand your business case and better guide you on this.

You can open a support ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as the product. Please make sure to also give the repository name in question. The support ticket will be visible only to you and Atlassian staff, and with an open support ticket, the engineer handling your case will be able to access the YAML file and help you.

Please feel free to share any questions or concerns regarding this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Like many people stick to page "We couldn?t log you in"
Asked by Akretion Audit:

Hi I try to connect to my bitbucket account and always go to the page

"We couldn't log you in" {#toc-hId--1210397134}
-----------------------------------------------

I try

- on my phone with 2 different browser (chrome and firefox)

- on my computer (chromium and firefox) private or public navigation more

- I clear my cookie, local storage...

I try with 2 differents account (I create a new one)...

Can you help me ?

Thanks


Answers:
author: Caroline R
body: Hi, [@Akretion Audit](/t5/user/viewprofilepage/user-id/4639905)! Welcome to the community!

I appreciate the detailed description of your problem. I confirmed that the Bitbucket account linked to the email you used to create this account is active, so you should be able to log in. Could you please confirm if this is the account that you are using to access Bitbucket Cloud and facing this problem?

If that's the case, could you please confirm the following information for us?

* Could you please check if your browser version is up to date?

* Could you please open the page <https://bitbucket.org/> in an incognito window using Chrome and test if you can access your Bitbucket account? (I see you mentioned you already tried to use Chrome on your phone, but I understand you haven't used incognito mode in this case, please feel free to correct me in case I have misunderstood something here)

Thank you. Looking forward to hearing from you.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
When I try to clone a repository, authentication fails.
Asked by Daniel Mathers:

When I attempt

git clone https://\<our repository\>.git --progress

I get the error

fatal: Authentication failed for 'https://\<our repository\>.git'.

My first attempts were in a Docker container running Linux on a windows machine.

* First, I tried authenticating by putting my credentials into the url, like so:

git clone https://\<username - the email I use for Bitbucket\>:\<my personal access token\>@\<url of our repository\>.git

I have two PATs. One is read-only and one has read and write privileges. Neither worked.

* Then (still in the Linux Docker container) I ran the command

git config --global credential.helper store

hoping that it would find the credentials (username: email i use with Bitbucket/ password: read-write PAT) that I have stored locally on Windows. Then I ran

git clone https://\<our repository\>.git --progress

after nearly 20 minutes it returned

fatal: Authentication failed for 'https://\<our repo\>.git

* Next I created a file called .git-credentials in the directory I was trying to clone into. The file contained just the line:

'https://\<email\>:\<PAT\>@\<repo url\>.git'

(I tried it with an '@' in the email and also with '%40' in place of the '@'. ) I then ran the commands

git config --global credential.helper "store --file .git-credentials" --add

git clone https://\<our repository\>.git --progress

This failed with the same error.

* I then decided to see whether I'd have better luck outside the Docker container. I installed Git for Windows and in the MINGW64 terminal I typed $ git config --global credential.helper manager-core

then

git clone https://\<our repository\>.git --progress

A form entitled The Windows Security Git Credential Manager appeared and asked for a username and password. Again I entered my email and PAT. Failure. Then I repeated these steps and entered the password I use to log into Bitbucket. That didn't work either.

If anyone here could suggest something else I might try, I would be deeply grateful.


Answers:
author: Daniel Mathers
body: Another update:

I can also clone from Gitlab into the Docker container.


author: Daniel Mathers
body: Update:

I tried cloning one of our repos hosted on Gitlab into the Windows environment. That worked with no issue. My authentication problem seems to be with Bitbucket.

comments: author: Daniel Mathers
body: Update:

We've resolved this issue at our end.

Dear moderator: I think you should delete this question, as the problem was actually specific to the way our corporate network works. If someone happens across this post, and has the same problem I was having, their resolution will probably be different.


Tags: bitbucket-server

server
ERROR: (gcloud.auth.activate-service-account) Could not read json file /tmp/key-file.json: Expecting
Asked by Micha? Kochman:

Hi,

I'm trying to configurate autodeploys with bitbucket pipeline and google cloud.  
I have base yaml:  

```
 - pipe: atlassian/google-cloud-storage-deploy:1.0.1
variables:
KEY_FILE: $KEY_FILE
PROJECT: 'somexyz'
BUCKET: 'somexyz'
SOURCE: './test'

```

And I have problem with access ;(  
So I have cloud priv key  

```
MIIEvgIBA...
```

I generated base64 from it base64 -w 0 \< file  

```
SUV2Z0lCQURBTkJna3F...
```

I set on bitbucket secured key KEY_FILE with base64 value and I get

```

ERROR: (gcloud.auth.activate-service-account) Could not read json file /tmp/key-file.json: Expecting
```

Any idea why?


Answers:
author: Micha? Kochman
body: I've found the answer :D  
Ehh all generated key file should be converted to base64 and passed as secure bitbucket variable XD  
Quite strange that when I created json structure only with private keys(key -\> value) I didn't get info like no access or missing access data from gcloud but the same error as it was empty XD


Tags: bitbucket-pipelines

cloud
Merge Pull Request but keep working on codereview
Asked by Michael Handl:

As I understand it correctly, the only way to do a codereview is using a pull request. Is there a way to merge the pull request but keep the codereview open?

In our workflow it's more important to quickly merge the changings into our develop branch rather than waiting before the code review is done. But we want to have the codereview afterwards.

Thanks,  
Michael


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Michael,

while best practice is to review and merge small change sets often, you could merge changes from 'feature' and 'bugfix' branches to your 'develop' branch and then create a 'release' pull request from develop to your 'release' branch and review the code then. Any updates and review feedback can flow into 'develop' until the PR is approved and merged to 'release'.

You could then tag the merge commit with your release version or sprint number etc.

Hope that helps,

Best, Ulrich


Tags: bitbucket-cloud

cloud
Own domain
Asked by Fernando Ducloux:

Is it possible to use bitbucket cloud with my own domain?

instead of bitbucket.org i\`d like to use subdomain.mydomain,.com.


Answers:
author: Caroline R
body: Hi, [@Fernando Ducloux](/t5/user/viewprofilepage/user-id/702391)!

Thank you for reaching out to Atlassian Community!

Currently, it's not possible to use a custom domain in Bitbucket cloud, however, we are considering implementing this feature, thus we have a feature request for this as you can see here:

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

I would suggest that you 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,  
Caroline


Tags: bitbucket-cloud

cloud
optional steps without blocking pipeline
Asked by Bach T Dao _Jimmy_:

Hi everyone, I want to include post deployment tests for each deployment into the pipeline but I don't know how to make the step to be optional (can be skipped and go to next deployment). Ideally post deployment test step need can be run only when the deploy step finished.

At the moment only solution I can think of is group all the deploy steps into parrallel and trigger them manually, but I would rather it to be automatically and sequentially and also the tests ca also able to be skipped when not needed to be run.

Thanks everyone.  
![Screen Shot 2021-11-17 at 4.42.01 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/169583i26C9BC61A958B42A/image-size/large?v=v2&px=999 "Screen Shot 2021-11-17 at 4.42.01 pm.png")


Answers:
author: Syahrul
body: Hi [@Bach T Dao _Jimmy_](/t5/user/viewprofilepage/user-id/4638520)

Welcome to the community!

I understand that you wish to have optional or skippable steps in the pipeline and unfortunately this is not possible at this moment. Steps are run according to the sequence and can't be skipped unless manual steps.

We do have an existing feature request on this, please **Vote \& Watch** so that you'll receive an update whenever we have any at:

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

It is as you mention, the best is to create the steps as a manual trigger so you can trigger the steps whenever you need to deploy.

I hope this helps, let me know if you have any additional questions.

Cheers,  
Syahrul

comments: author: Bach T Dao _Jimmy_
body: Hey [@Syahrul](/t5/user/viewprofilepage/user-id/744536) , thank you very much for your response!  

That is exactly what I was looking for, I hope to see that feature in the future.


Tags: bitbucket-cloud

cloud

test
Bitbucket not working on linux but works on mac
Asked by Ty Hudson:

Listen I have been using bitbucket since 2012 with ssh keys. I have never had this issue and I can not seem to figure it out.

I am using version 2.30.1 on my mac and 2.17.1 on my Linux machine.

I can pull on my Linux machine but I can not fetch or push on it.

I can pull, fetch, and push on my mac. I even was able to do this just fine yesterday. 11-15-2021 but today "git push" "git push origin master" just hangs along with "git fetch --all"

What is the issue? I have a whole day of coding that I can commit but not push I don't want to lose this commit and I can't figure it out. This is happening on all my repos on Linux 18.04. Am I just going to have to format this Linux box?

Please what could be the issue?


Answers:
author: Denis Moskowitz
body: I had a similar issue. It turned out to be that two of the keys I had loaded in my ssh-agent were both valid to connect to bitbucket and the first one had less permissions than the second. If you think you may be in that situation, the command
> GIT_SSH_COMMAND="ssh -vvv" git push origin HEAD

will let you know which key pair bitbucket actually accepts. Removing and re-adding the troublesome key so it's farther down in the list returned by \`ssh-add -l\` resolved the problem.


author: Ty Hudson
body: git push -u just worked as I typed this.. so it appears to be hanging for about 15 mins.

This is scary I have never had issues with git ever.
Bitbucket service to webhook migration
Asked by Philip Knight:

Given I have a couple of services defined, Do I only have to recreate these services using webhooks? There's no repo migrations involved?

Thanks


Answers:
author: seanaty
body: Correct. No need to migrate a repository. Just need to create a new webhook if you want it to keep operating. Please note that not all services are still working. It all depends on the service that you're using. Of course the POST service is generic.


Tags: bitbucket-cloud

cloud