youngmon/atlassian-qna huggingface dataset:
How to find our current bitbucket server version?
Asked by rqian:

I need to find our current bitbucket server version, we want to migrate to BitBucket Cloud, to install migration assitant, it said needs to have server version 7 and up. What happened if our server version is less than 7?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@rqian](/t5/user/viewprofilepage/user-id/5165110) ,

as bitbucket administrator you can go on the Administration section and take a look to the footer of each page. There you will find your current bitbucket version.

Hope this helps,

Fabio


author: Eduardo Castro
body: Ok but how I find the version in Linux terminal?

comments: author: Aaron M_ Long
body: egrep 'home\\.build' /var/atlassian/application-data/bitbucket/home.properties  

If you've got your bitbucket home elsewhere, you might have to change the path leading to the property file.


author: Robert Wen_ReleaseTEAM_
body: Hello [@rqian](/t5/user/viewprofilepage/user-id/5165110) ! Welcome to the Atlassian Community!

If you're on an older version of Bitbucket Server, you'll probably need to upgrade so that BCMA works properly.


Tags: atl-gruland

bitbucket-server

migration-customer-care

server
Check your email to finish enabling two-step verification.
Asked by Sammy Lau:

I'm not receiving the bitbuck email "Check your email to finish enabling two-step verification."


Answers:
author: Patrik S
body: Hello [@Sammy Lau](/t5/user/viewprofilepage/user-id/5164593) ,

Welcome to Atlassian Community!

I've checked internally for your e-mail address, and it seems like the bitbucket e-mails are being correctly delivered to your mailbox. Could you please confirm if you have not received the e-mail yet?

In case you haven't, I would suggest starting over the process of setting up the 2SV so the e-mail is triggered again. Make sure to also look into the Spam folder of your inbox, as sometimes the e-mail might be wrongly classified as Spam.

Thank you, [@Sammy Lau](/t5/user/viewprofilepage/user-id/5164593) !

Patrik S


Tags: bitbucket-cloud

cloud
The bitbucket-pipe-release pipe does not support an empty list of files to update
Asked by oobug:

I am using version 5.1.0 of the Atlassian bitbucket-pipe-release within my own pipe repository. I am providing a version number manually and I do not want any of the built-in version number handling.

If I try to provide an empty string to the UPDATE_VERSION_IN_FILES argument, the pipe fails with the following output:

```
Traceback (most recent call last):
  File "/pipe.py", line 184, in <module>
    main()
  File "/pipe.py", line 180, in main
    release.run()
  File "/pipe.py", line 59, in run
    version = self.version_bump()
  File "/pipe.py", line 121, in version_bump
    f'{repo_slug}:[0-9]*\.[0-9]*\.[0-9]*(@sha256:[a-fA-F0-9]*)?') # noqa
  File "/pipe.py", line 37, in replace_content_by_pattern
    with open(filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: ''
```

This issue is caused by an incorrect check on [line 115](https://bitbucket.org/atlassian/bitbucket-pipe-release/src/c9684aef68bc932f8086db781bd061f12533d6d3/pipe/pipe.py#lines-115) of pipe.py. The code will exit when the filenames_to_update variable is equal to "". However, the .split() function has already been applied to this variable, so it will *never* be equal to "", but would instead be equal to \[""\]. Please fix.


Answers:
author: Igor Stoyanov
body: [@oobug](/t5/user/viewprofilepage/user-id/2548815) hi. Thank you for investigating this bug.

<br />

We will notify you when new pipe version with fix will become available.  

Regards, Igor

comments: author: oobug
body: I have created a pull request with a fix for this issue: <https://bitbucket.org/atlassian/bitbucket-pipe-release/pull-requests/16>


author: oobug
body: This was ultimately fixed in PR <https://bitbucket.org/atlassian/bitbucket-pipe-release/pull-requests/19>, producing release [5.3.2](https://bitbucket.org/atlassian/bitbucket-pipe-release/src/5.3.2/).


Tags: bitbucket-cloud

cloud
Problem: "Someone has already added that key as an access key to a repository."
Asked by AndreyVasylyuk:

Problem: "Someone has already added that key as an access key to a repository."  

Hi, I created ssh connection but I don't see it in "SSH keys" and I get

$ git push  
Unauthorized  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.  

I added new ssh key, cloned one more time but   
$ ssh -vT git@bitbucket.org  
shows connection with the first key, which I don't see in "SSH keys".


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

There's no easy way to work this out because the keys that belong to other accounts should not be shared.

If you shared the key with someone or used it with a different account, you should already know who it is. If someone gave you the key, you will need to ask them.

If you have no luck chasing it down, you can raise a support request with Atlassian, and they can search out the key for you and identify the account you shared it with.

If you don't want to spend ages chasing down the share, you can (and should) create a new key for your account and use that instead.

For a better explanation, see Theodora's answer on [![](https://community.atlassian.com/html/@D429FEBDA9386F85E874453DCFFCC546/assets/favicon-16x16.png)Problem adding SSH key: "Someone has already added that key as an access key to a repository."](https://community.atlassian.com/t5/Bitbucket-questions/Problem-adding-SSH-key-quot-Someone-has-already-added-that-key/qaq-p/2166987)

comments: author: AndreyVasylyuk
body: ok, thanks


Tags: bitbucket-cloud

cloud
(U) Bitbucket Data Center on Kubernetes
Asked by Ryan:

The latest helm chart for Bitbucket uses version 7.21.7. Are there plans to bring that up to the current LTS release for Bitbucket? Has anyone used this helm chart to successfully upgrade to a later version than 7.21.7?


Answers:
author: Yevhen
body: [@rwm rwm](/t5/user/viewprofilepage/user-id/5163508) you can easily override the tag when running helm install/deploy, for example

\`\`\`

helm install bitbucket -n bitbucket --set image.tag=7.21.10

\`\`\`

You may also override the tag in your custom values.yaml

comments: author: Ryan
body: <https://hub.docker.com/r/atlassian/bitbucket/tags> there is an 8.5.2 tag for bitbucket listed here. Is it safe to assume this helm chart would be compatible since there haven't been any updates to the chart that correspond with the new tag?


author: Yevhen
body: Helm charts use LTS tags only and 8.x are not yet LTS. And yes, it is safe to use any image tag with the Helm chart.


Tags: data-center

kubernetes

server
Getting error - Bad request (400) when attempting a push from Copado for Salesforce
Asked by Suresh Raman:

Getting error - Bad request (400) when attempting a push from Copado for Salesforce. It looks like there may be a size issue and a limit on the size.


Answers:
author: Theodora Boudale
body: Hi [@Suresh Raman](/t5/user/viewprofilepage/user-id/4824874),

If I understand correctly, you are pushing from Copado to a Bitbucket Cloud repo?

Could you please post here the exact command that is failing and the full output of the command (after sanitizing any private/sensitive data), so we can better help you?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not able to create a Pull request
Asked by Prachinnath_soparkar:

Hi,

I am using Visual studio code to create new branch from original branch. Then make the changes to new branch and push the changes.

Then create a pull request with source as my new branch and destination as original branch. But I am not able to see the new branch in the drop down for source.

Normally the steps would have been

1) Create New branch from original branch

2) Publish the new branch

3) Make the changes to new branch.

4) Push the changes to the branch.

5) Create Push request.

I missed the 2nd step and now not able to get the new branch for PR. I can see the branch in bitbucket.


Answers:
author: Edward Radcliffe
body: [@Prachinnath_soparkar](/t5/user/viewprofilepage/user-id/5164114) were you able to resolve this? I've taken the steps suggested by [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) but am still having this issue.


author: Patrik S
body: Hello [@Prachinnath_soparkar](/t5/user/viewprofilepage/user-id/5164114) ,

Welcome to the community!

From the description you shared, I assume you are using the Jira and Bitbucket (Atlassian Labs) VSCode extension. If this is the case, and given the fact that the branch is showing in Bitbucket UI, this might indicate your local copy of the repository is not up to date with the latest changes in the remote repo.

In order to get your local repository updated, could you please try using the Fetch option on VSCode?

![Screenshot 2023-03-16 at 11.41.40 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/245939iAC0DA67932A8B03D/image-dimensions/547x215?v=v2 "Screenshot 2023-03-16 at 11.41.40 AM.png")

The Fetch will download all the new remote-tracking branches and tags, including the new branch you have created. Once the fetch is completed you can confirm if the branch you are looking for is now showing when creating the Pull Request.

Thank you, [@Prachinnath_soparkar](/t5/user/viewprofilepage/user-id/5164114) !

Patrik S


author: Fabio Racobaldo _Herzum_
body: Hi [@Prachinnath_soparkar](/t5/user/viewprofilepage/user-id/5164114) and welcome,

please verify that you have write permission on the repo or that there are no branch permissions that are preventing you to do that.

Hope this helps,

Fabio


Tags: bitbucket-cloud

cloud
Bitbucket Pipelines: Unable to checkout git submodules with local macOS pipeline runner
Asked by Patrick Steiner:

Hi,

I have simple pipeline config where I have to checkout git submodules via an other git repository (which is also hosted on bitbucket cloud)

First it tried to just call:  

```
- git submodule update --init --recursive
```

<br />

But the pipeline always got stuck (without any error)

So I tried to setup my ssh settings as described here:

<https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-macos/>

This ends in the same problem, pipeline got stuck.

So I tried to setup my ssh settings as described here:

<https://support.atlassian.com/bitbucket-cloud/docs/set-up-pipelines-ssh-keys-on-macos/>

This ends in the same problem, pipeline got stuck.

I don't know which documentation is newer? And is it still required to setup a custom ssh key to fetch git submodules from a git repository (which is hosted on bitbucket cloud)

I have also added the public key to the access keys on the git repository.

Is there any way to get this running on a macOS pipeline runner?


Answers:
author: Patrick Steiner
body: I figured it out myself, the problem is that the macOS pipeline runner downloads the ssh keys which are created via **Pipelines** -\> **SSH Keys** but ignores the **known hosts** which are created there. So I had to create a **known_hosts** file in my **\~/.ssh** directory.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

mac
Bitbucket Cloud does not support webhook secrets, Atlantis integration
Asked by Yogi wahyu:

Hi all,  
I try to integrate my IAC/Terraform bitbucket repo to Atlantis using webhook, the Atlantis are deployed in GKE, but when I create pull request on allowed repo(already configured on \`values.yaml\`) it return "Bitbucket Cloud does not support webhook secrets...", The detail log that I have from Atlantis is like this

```
{
"level": "warn",
"ts": "2023-03-07T10:26:55.534Z",
"caller": "cmd/server.go:1027",
"msg": "Bitbucket Cloud does not support webhook secrets. This could allow attackers to spoof requests from Bitbucket. Ensure you are allowing only Bitbucket IPs",
"json": {},
"stacktrace": "..."
}
```

the \`values.yaml\` that I used to deploy the Atlantis is like this, any suggestion about my issue? please feel free to answer my question.  

<br />

```
# Replace this with your own repo allowlist:
orgAllowlist: bitbucket.org/ORGANIZATION_NAME/REPO_NAME
# logLevel: "debug"

...


# If using Bitbucket, specify like the following:
bitbucket:
  user: USER
  token: BITBUCKET_APP_TOKEN
```

<br />

<br />

Thanks,  

<br />


Answers:
author: Theodora Boudale
body: Hi [@Yogi wahyu](/t5/user/viewprofilepage/user-id/5163839) and welcome to the community!

The warning that you get is correct, Bitbucket Cloud webhooks do not support secrets at the moment. We have a feature request about this in our issue tracker:

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

If you want to restrict access only to Bitbucket IPs, the IP addresses used for Bitbucket Cloud webhook delivery are listed below in the **Outgoing Connections** section:

* <https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/#Outgoing-Connections>

Is the delivery of the webhook successful? You can check the following troubleshooting guide:

* <https://confluence.atlassian.com/bbkb/troubleshoot-webhooks-1167729092.html>

If you enable history for the webhook and then perform an action that triggers the webhook, what is the status code for this event? If you select **View details** next to the status code, what response do you see from your server and do you get the body of the request?

Kind regards,  
Theodora

comments: author: Yogi wahyu
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)   
Thanks for helping me by reply to this question,  
Yes I already solved the issue


author: Theodora Boudale
body: Hi [@Yogi wahyu](/t5/user/viewprofilepage/user-id/5163839) ,

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

webhook
Can I forbid people to approve their own changes on a pull request?
Asked by Fabian Schmied:

Using Bitbucket Server, I want to ensure that every change is reviewed by a different person before it can can be merged to the main branch.

I therefore

* configure *Branch Permissions* on *main* to require a pull request for every change,
* I configure that every pull request needs at least one approval, and
* I configure the *auto-unapprove* plugin to automatically withdraw the approval if additional changes are pushed to a pull request.

Now, let's say, a colleague of mine opens a pull request in Bitbucket Server and assigns me as a reviewer. I then push a change to the pull request's branch and then I approve the pull request. This has successfully circumvented the original requirement that every change is reviewed by a different person.

Can I somehow prevent that?


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

that's a great question. It's a good idea to keep your pull request workflow clean so that your very clever developers can't cut corners :D

I don't think the 'ignore committer approvals' feature is available in Bitbucket server/dc.

We have built Workzone for Bitbucket enterprise teams that offers extensive reviewer and merge configurations.

On of the features is 'Ignore committer approvals' in [Workzone's merge configuration](https://izymes.com/docs/workzone-merge-control-configure-automatic-pull-request-merge/) . When Bitbucket+Workzone count pull request approvals for a merge-check (the verdict whether or not a PR can be merged or not) any reviewer who has also committed code to the PR source branch and is therefore part of the changeset authors will be ignored when counting approvals.

With this setting in place the effective approval count would be 0 in your use case.

I hope this helps, let us know if you need any further assistance solving your use case.

Best, Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)

comments: author: Fabian Schmied
body: So this is not possible in Bitbucket server per se, but Wokzone would solve it. Thank you for your answer!


Tags: bitbucket-server

server
Unable to receive email notifications of activities or comments on JIRA/BitBucket
Asked by MH_MinhVB:

My Atlassian account was working fine and was always getting notifications via email everywhen I had a new comment on Pull Request of BitBucket, or everywhen there was a new task assigned to me on JIRA.  
Unfortunately, since last week I cannot receive any email notifications anymore, which makes it really hard for me to track the tasks and Pull Requests.  
I'd appreciate it if you could support and resolve this issue for me.

My email is \<email_removed\>.

Thank you.


Answers:
author: Theodora Boudale
body: Hi [@MH_MinhVB](/t5/user/viewprofilepage/user-id/5163495) and welcome to the community!

Your email address was in one of our suppression lists because we attempted to send you an email about a week ago and received a hard bounce response from your mail server with the message 'mailbox unavailable'.

I went ahead and removed your email address from our suppression list. If your email account is active and there are no issues with your mail server at the moment, you should be able to receive our emails from now on.

Can you please keep an eye and let me know if the issue is resolved?

Just a heads up, I removed your email from your post to protect your privacy.

Kind regards,  
Theodora

comments: author: MH_MinhVB
body: Thanks [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) . I'm able to receive notifications again now.


author: Theodora Boudale
body: That's good to hear and you are very welcome.

Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud

jira

jira-cloud
Cannot log in, stuck at "we couldn't log you in"
Asked by Sam Pearson:

When I attempt to log in at bitbucket.org , I'm always redirected to the "we couldn't log you in" page. I've tried disabling ublock origin and don't have any other extensions on firefox.

I'm making a thread per the suggestion at <https://community.atlassian.com/t5/Bitbucket-questions/Stuck-in-quot-We-couldn-t-log-you-in-quot/qaq-p/1660635>


Answers:
author: Patrik S
body: Hello [@Sam Pearson](/t5/user/viewprofilepage/user-id/381297) ,

Thank you for reaching out to Atlassian Community.

Checking internally for the bitbucket account associated with the same e-mail used to post this question, I noticed it was in an Inactive state. I went ahead and set it to Active again, so you should be able to log in as usual now.

Could you please try again and let us know how it goes?

Thank you, [@Sam Pearson](/t5/user/viewprofilepage/user-id/381297) !

Patrik S


Tags: bitbucket-cloud

cloud
not able to log in to bitbucket
Asked by panchalbhavin82:

Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ,

I am getting same error, could you please help me on this?

<br />

Thanks,

Bhavin Panchal


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

Just a heads up, I moved your question to a new post (in the future, please create a new question if you need assistance so that your request has better visibility to the rest of my team in case I am out of office).

I am looking into the deactivation of your account, I will let you know as soon as I have an update.

Kind regards,  
Theodora

comments: author: Theodora Boudale
body: Hi [@panchalbhavin82](/t5/user/viewprofilepage/user-id/5163120) ,

We have reactivated your Bitbucket Cloud account, you should be able to access it now.

Please feel free to let me know how it goes and if you need anything further.  

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
What is Bit Bucket cluster requirement on Red Hat Enterprise Linux 8
Asked by Hemant Manjrekar:

We have a pair of VMs for each component as follows and expected to create a cluster on RHEL8. Bitbucket, PostgreSQL, Elastic Search, Bamboo, Ansible, Nexus.

Can any of you redirect me to link or document to some detailed step by step procedure along with prerequisite in detail to achieve the same. Thank you.


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@Hemant Manjrekar](/t5/user/viewprofilepage/user-id/5163232) ! Welcome to the Atlassian Community!

Have a look at these docs that talk about using Bitbucket Data Center to set up a cluster.

<https://confluence.atlassian.com/bitbucketserver/clustering-with-bitbucket-776640164.html>

comments: author: Hemant Manjrekar
body: Hi Robert..thanks for response, \& sorry for delayed reply. The link what you have shared I had visited that link earlier but I realized that is for application cluster..and my devops team want OS level cluster. That means pacemaker cluster on RHEL which will be used for Bitbucket.

If you have come across such situation please guide me how to do. Thank you.


Tags: bitbucket-server

server
can't login to bitbucket in any browser
Asked by ricardo vergara:

in any browser , in mac os, after login / including two step verification it send me to the page "<https://bitbucket.org/product/>". , I click in the login link and show me a message ,

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

but if I try for example directly "<https://bitbucket.org/account/settings/>" sometime i can get to the page but most of the time i get can't login page.

also when i'm able to get to the page i get a login popup to enter user and password again.

Do you have any tip how I can solve this situation ?

thanks


Answers:
author: Patrik S
body: Hello [@ricardo vergara](/t5/user/viewprofilepage/user-id/5163068) ,

Welcome to the community!

I checked internally for the bitbucket account associated with the same e-mail address you used to post this question, and it was in an Inactive state. I went ahead and changed it to active again, so you should now be able to log in and access your workspace as usual.

Could you please try again and let us know how it goes?

Thank you, [@ricardo vergara](/t5/user/viewprofilepage/user-id/5163068) !

Patrik S


Tags: bitbucket-cloud

cloud
Had SSH key in repo, moved to personal and can't push
Asked by Burt Gordon:

I have seen similar problems, but not the same and none of the other post answers helped. Here's the situation:

\* I accidentally added SSH access keys to a repo and not personal settings

\* pulled a branch and created a branch from it, did some work

\* Tried to push changes on new branch and got access errors, realizing that I had put the SSH keys in the repo

\* Removed SSH key from repo and put them in personal settings

\* Tried to push new branch to remote using "git push -u origin \<new_branch_name\>"

\* Getting the following error:

\<code\>

The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.

\</code\>

I can create a branch via the web browser (did a separate test branch), so i know I have the right permissions. I also used a command with ssh -vvv to see that it was using the proper key, which it was. So, it looks like I may have created a branch locally using a repo ssh key and now that I removed that key and added to my person settings I cannot upload the work to the repo. How do I recover the work and upload the branch given these circumstances?


Answers:
author: Burt Gordon
body: Ahhh, I figured it out. I did have the right key but in the wrong account. I have two bitbucket accounts and accidentally added the key to the wrong account. I removed it from there and put it in the right one. The push then works and branch was properly created on the remote repo.


Tags: bitbucket-cloud

cloud