youngmon/atlassian-qna huggingface dataset:
Accepting BitBucket Invitation lets me create a User Account and Log in then fails.
Asked by jon.nebenfuhr:

I receive an error that my email is already used for a BitBucket account and after signing in I receive a general error with no info on how to resolve the issue.

I attempted signing in with an Incognito Window and the same "We couldn't log you in" error comes up.


Answers:
author: Syahrul
body: G'day, [@jon.nebenfuhr](/t5/user/viewprofilepage/user-id/5354051)

Welcome to the community!

It appears that your Bitbucket account was in a "Dormant" state due to inactive. I have proceeded to reactivate your account. Could you attempt to log in again and let me know how it goes?

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Windows Hello
Asked by Bj?rn Erik Haug:

In the setup for two-step verification there is the option to register a FIDO2 device, which would allow for Windows Hello to be used. But when I try adding it I only get the option to insert a USB device. Windows Hello is not available. Will this options become available?


Answers:
author: Theodora Boudale
body: Hi Bj?rn,

At the moment, Bitbucket Cloud supports 2FA using an authenticator app on the user's mobile device or a security key. I went ahead and created a feature request for what you are asking:

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

Please make sure to add your vote (by selecting the **Vote for this issue** link) to the feature request to express your interest, as the number of votes helps the development team and product managers better understand the demand for features.

You are more than welcome to leave 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 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


Tags: bitbucket-cloud

cloud
How to squash the merge commit directly from ui
Asked by mihir shah:

Hi is it possible to squash a commit direct;y from bitbucket ui.instead of manual command line merge and squash


Answers:
author: Navpreet Ahuja
body: Hi

You can use \`squash\` merge strategy for your pull requests

On click of the merge button on any pull request page, opens up the merge dialog. Here under merge strategy change it to the desired strategy.

![Screenshot 2023-11-06 at 8.43.45 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/290237i2C24592B545EEFB0/image-size/large?v=v2&px=999 "Screenshot 2023-11-06 at 8.43.45 pm.png")

*** ** * ** ***

If this merge strategy doesn't appear, make sure it is enabled under Project or Repository settings

- Go to Project/Repository settings

- Under Pull requests select merge strategies

![Screenshot 2023-11-06 at 8.46.13 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/290239i5C12810956A23549/image-size/large?v=v2&px=999 "Screenshot 2023-11-06 at 8.46.13 pm.png")

On a side note, If squash is the preferred merge strategy for the team, you can also "Set it as default" using meatball menu under Actions


Tags: bitbucket-server

server
SSH "continue connecting (yes/no)?" fails silently
Asked by TinkerBill:

I have a script that uses SSH to pull the latest repo from bitbucket.org to a remote server.

```
ssh -t -t -p 722 <server-credentials> <<'ENDSSH'
  cd <path-to-server-repo>.git
  git fetch -vvv ssh://git@bitbucket.org/<path-to-bitbucket-repo>.git master
  git --work-tree=$HOME/<path-to-work-tree> reset --hard FETCH_HEAD
ENDSSH
```

When it reaches the git fetch line it responds with...

```
The authenticity of host 'bitbucket.org (104.192.141.1)' can't be established.
ECDSA key fingerprint is SHA256:FC73VB6C4OQLSCrjEayhMp9UMxS97caD/Yyi2bhW/J0.
ECDSA key fingerprint is MD5:dc:05:b9:ef:7e:67:f0:a5:16:2c:28:1a:b8:3a:86:2c.
Are you sure you want to continue connecting (yes/no)?
```

When I enter yes, nothing happens. Until eventually...

```
packet_write_wait: Connection to <IP and port>: Broken pipe
```

This script works fine on another server - just not this one.

Examining \~/.ssh/known_hosts, there are several entries for bitbucket.org - at least some of which seem to correspond to the required public key.

1. Do I need to purge known_hosts of all but one bitbucket.org entry?
2. Is there a way of getting more feedback as to what's going on at the remote server?


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

You can execute the following command in order to remove any old Bitbucket host keys from the known_hosts file and ensure that the current host keys are there:

```
ssh-keygen -R bitbucket.org && curl https://bitbucket.org/site/ssh >> ~/.ssh/known_hosts
```

This command needs to be executed on the remote server where you fetch from the Bitbucket repo.

You can then execute the following command

```
ssh git@bitbucket.org host_key_info
```

and compare the fingerprint in the output with the fingerprints listed [here](https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/#SSH-Host-Keys), to ensure that it matches one of our keys.

The broken pipe error seems to come from the SSH connection between the machine that runs the script and the server it connects to. The server may be closing connections that are idle for too long.

You can try updating the ClientAliveInterval option on your server's sshd_config file:

* <https://man.openbsd.org/sshd_config#ClientAliveInterval>

However, this error may go away if you update the host keys in known_hosts and the git fetch command no longer requires input.

Kind regards,  
Theodora

comments: author: TinkerBill
body: Thanks [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) . That's working.

I now realise that I'd been investigating/changing the known_hosts file on my Mac, whereas it's the one on the remote server that bitbucket is checking.

Older, wiser and grateful.

Bill


author: Theodora Boudale
body: Hi Bill,

That's good to hear and you are very welcome.

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

Kind regards,  
Theodora


Tags: authentication

bitbucket-cloud

cloud

ssh
Missed build complete webhook
Asked by C:

Is there a way to force Bitbucket to update the status of builds? We have Bitbucket Data Center connected to Bamboo and they appear to communicate with webhooks. Sometimes Bitbucket will miss the "build complete" webhook from Bamboo, which results in a build showing In Progress in Bitbucket forever -- even long after the build is complete in Bamboo.

This usually happens with something like the following sequence:

1. Build starts, Bitbucket shows in-progress build
2. During the build, Bitbucket goes down for maintenance
3. While down, Bamboo completes the build. Since Bitbucket is down it misses the notification that the build completed.
4. Bitbucket comes back up. The build continues to show In Progress forever.

Is there some way to have Bitbucket reach out to Bamboo and correct its view of the build status?


Answers:
author: Navpreet Ahuja
body: Hi

Bitbucket does not ask Bamboo for the build status. It gets told via a POST.

There are 2 ways that I can think of to update the build status

- Retrigger the build on bamboo

- Create a new build status using REST endpoint: <https://developer.atlassian.com/server/bitbucket/rest/v815/api-group-builds-and-deployments/#api-api-latest-projects-projectkey-repos-repositoryslug-commits-commitid-builds-post>, you can mark the state as "SUCCESSFUL"


Tags: bamboo

bitbucket-server

server

webhook
How to keep runners online for always. When I created runner they automatically gets offline.
Asked by Sai Nithin Reddy:

How to keep runners online for always. When I created runner they automatically gets offline hence pipeline queued/failed.

Please suggests some ways its urgent.


Answers:
author: Theodora Boudale
body: Hi Sai and welcome to the community!

After you create a runner on Bitbucket website, you need to use the preconfigured command we give in order to start the runner.

**1.** Are you executing this command in order to start the runner?

**2.** If you are executing this command can you please locate the runner log as per [these instructions](https://confluence.atlassian.com/bbkb/troubleshooting-runners-1167819666.html#Troubleshootingrunners-Reviewingrunnerlogs) and post here the log entries from around the time the runner goes offline (please make sure to sanitize any private data, prior to sharing)?

**3.** What type of runner are you using? is it a Linux Docker, Linux Shell, MacOS, or Windows runner?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Hi, I'm having trouble logging into my Bitbucket account
Asked by Roman Kakhnii:

Hi, I'm having trouble logging into my Bitbucket account. Constantly displays the error Two-step verification failed. Tried entering the recovery code/authy code, but nothing helps


Answers:
author: Roman Kakhnii
body: \*\* I also tried executing the command ssh git@bitbucket.org recovery_codes, the output was:

authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled


author: Mark C
body: Hi [@Roman Kakhnii](/t5/user/viewprofilepage/user-id/5353637)  

Welcome to the community.  

To disable your Bitbucket Cloud account's 2FA, you can follow this knowledge-based article. - [How to Disable/Reset 2FA on Bitbucket Cloud and Atlassian Account](https://confluence.atlassian.com/bbkb/how-to-disable-reset-2fa-on-bitbucket-cloud-and-atlassian-account-1236932929.html)  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
How to Restrict App Password Access to a Specific Repository in Bitbucket?
Asked by paranjay-patel-us:

I'm looking to grant limited access to a specific repository in my Bitbucket account using an app password. Ideally, I would like to create an app password that can only access a single, designated repository while keeping the rest of my repositories secure.


Answers:
author: Saxea _Flowie_
body: Hi [@paranjay-patel-us](/t5/user/viewprofilepage/user-id/5323159)

See repository tokens - <https://support.atlassian.com/bitbucket-cloud/docs/create-a-repository-access-token/>


Tags: bitbucket-cloud

cloud
I cannot login, i've got a message: It looks like your account has been deactivated
Asked by Peter Zenin:

I have another account: ++\<email_removed_for_privacy\>++ and I cannot login into.

I've always got a message:

*It looks like your account has been deactivated.*

*We've sent you an email with details of who to contact to get more information about this.*

I read another same issues, where said that ask administrator for solve that problem.

But I hasn't any administrators or organizations, I am on my own!

What I must do for working normally like I do always in the past?


Answers:
author: Patrik S
body: Hello [@Peter Zenin](/t5/user/viewprofilepage/user-id/528036) ,

Since this is a deactivated account issue, I would suggest raising a support ticket on <https://getsupport.atlassian.com> selecting the option **My account \> Other**.

Please make sure to include in the ticket description the email of the affected account and mention that you are receiving a message saying the account was deactivated.

Thank you, [@Peter Zenin](/t5/user/viewprofilepage/user-id/528036) !

Patrik S


Tags: bitbucket-cloud

cloud
Pipeline triggering based on branch
Asked by Sofiane Hadjadj:

Hello,

Is there a way to ensure that a webhook URL is only associated with one branch?

I'm currently using Jenkins, and I've found a way to deploy my code into a dev or prod environment and separate the pipelines into branches.

So the develop branch is deployed in dev and the master branch in prod.

My problem is that I have the impression that we can't really configure Bitbucket so that it triggers a pipeline based on a branch, do you have any ideas?

Thanks in advance.


Answers:
author: Syahrul
body: G'day, [@Sofiane Hadjadj](/t5/user/viewprofilepage/user-id/5353568)

Welcome to the community.

I understand you wish to trigger a webhook based on a specific branch to your Jenkins server. Unfortunately, the webhook in Bitbucket cloud will trigger for all branches now. We do have an existing feature request that I highly suggest you keep an eye on:

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

I hope this helps.

Regards,  
Syahrul


author: Weronika Spaleniak Appfire
body: Hey [@Sofiane Hadjadj](/t5/user/viewprofilepage/user-id/5353568) !

<br />

You could try using[Webhook to Jenkins for Bitbucket](https://marketplace.atlassian.com/apps/1211284/webhook-to-jenkins-for-bitbucket?hosting=cloud&tab=overview) plugin that does offer this functionality.

<br />

If you'd like to chat about your use case and see how the app works, you can book some time in my [calendar](https://calendly.com/weronika-spaleniak/wjbb-demo) or you can just give it a try.

<br />

Full disclosure- I work for Appfire, the plugin's developer.

<br />

Best,  
Weronika


Tags: bitbucket-cloud

cloud

jenkins
Can't login into bitbucket account
Asked by F?bio Machado:

I cannot log in to bitbucket and end up on a Cannot Log You In page with this message:

"You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."

I have tried the solutions here:

<https://confluence.atlassian.com/bbkb/we-couldn-t-log-you-in-error-message-1236932685.html>

Including:

\* Multiple browsers

\* Incognito/private mode

None of that works.


Answers:
author: Mark C
body: Hi [@F?bio Machado](/t5/user/viewprofilepage/user-id/5353218)  

Welcome to the community.  

You can't log in to Bitbucket.org because your Bitbucket Cloud account was marked as a "Dormant" account due to not logging in to Bitbucket.org for a long period of time.  

I've reactivated your BB Cloud account on my end.  
Could you try logging in again?  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
For aws-ecs-deploy pipe print the taskdefinition revision number at the end of the deployment
Asked by Thirukumaran Kubendran:

Can you please enhance the pipe aws-ecs-deploy so that at the end of deployment it also print the taskdefinition revision number?

<https://bitbucket.org/atlassian/aws-ecs-deploy/src/master/>


Answers:
author: Oleksandr Kyrdan
body: Hi [@Thirukumaran Kubendran](/t5/user/viewprofilepage/user-id/4352790)

We released a new version of the pipe with logging of revision version:

```
script:  - pipe: atlassian/aws-ecs-deploy:1.10.1    variables:      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY      AWS_DEFAULT_REGION: 'us-east-1'      CLUSTER_NAME: 'my-ecs-cluster'      SERVICE_NAME: 'my-ecs-service'      TASK_DEFINITION: 'task-definition.json'
```

Best regards,  
Oleksandr Kyrdan


author: Igor Stoyanov
body: Hi [@Thirukumaran Kubendran](/t5/user/viewprofilepage/user-id/4352790) . Thanks for your feature request.

We will notify you when this feature will become available.

Regards, Igor


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud
Multiple directories in Crowd - can we create user in 1st and group in other directory and assign user to group?
Asked by Archanaa Panda:

In my enterprise installation of Crowd, I would like to create multiple directories - the first directory would be a Delegated Authentication Directory - so that users can be authenticated by my enterprise microsoft AD LDAP. The users in this directory would be employees of my organization.

The second directory I would like to create for non-employees like contractors or client counterparts.

To this instance of Crowd I would be connecting my JIRA, Confluence and Fisheye applications.

Now I create a group corresponding to each project and to a group I want to add both the employees of Dir1 and non-employees of Dir2.

So, how should I go about it?

- Should I create the same group in both the directories? If I do so, will crowd be able to recognize by virtue of same group name that it is the same group?

- Can I create the group in just DIR1 or DIR2 and assign to it users in the same directory + users of the other directory?

I am currently using Crowd 2.4.2 but I can upgrade to Crowd 2.5.x if there is an improvement/fix related to this query. Please advise accordingly.


Answers:
author: fsim
body: Hey Archanaa,

Group memberships across directories are not currently possible, so you will have to create the group in both Dir1 and Dir2. The group will be separated across directories, meaning to say that Crowd will treat them as separate entities, despite them having the same name. But, if you add both Dir1 and Dir2 to the list of directories mapped to an application, for example, Confluence, Confluence will treat these 2 groups as the same group, and its members will be aggregated in Confluence, and if you view the group in Confluence, you will see its members from both Dir1 and Dir2 (in Confluence).

Hope this answers your question. Let me know if you have any doubts with this.

Thanks and Regards,  
Foogie

comments: author: Jonathan Derham
body: Hi Foogie,

This is certainly the case with Confluence, but I've found with Crucible/Fisheye (v2.10.7) it only sees the groups in a single directory- ie, the directory that the user was authenticated through.

Can you please let me know why this is the case? Or if there is a way, how to get Crucible to amalgamate the memberships from multiple directories?

Thanks,

Jonathan


author: Paula Mercer-Fiola
body: Amalgamate....reminds me I love amalgamated rocks.


author: Jonathan Derham
body: Hi Foogie,

This is certainly the case with Confluence, but I've found with Crucible/Fisheye (v2.10.7) it only sees the groups in a single directory- ie, the directory that the user was authenticated through.

Can you please let me know why this is the case? Or if there is a way, how to get Crucible to amalgamate the memberships from multiple directories?

Thanks,

Jonathan


Tags: crowd

group

multiple

user-directory
Problem integrating Atlassian Stash and Fisheye
Asked by Sean Bridges:

I'm using fisheye Version:2.7.15 Build:20120709053240 2012-07-09 and stash Atlassian Stash. v1.3.0

I'm following the instructions for integerating the two [here](http://blogs.atlassian.com/2012/07/linking-your-stash-git-repositories-to-crucible-for-code-reviews/).

I enter the repository location, path is blank, authentication style is "password for http(s)", and enter the password. When I try to test the connection I get the following error message,

```
Error testing connection.Error talking to repository: at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:162)at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:450)at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:540)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)Connection failed.
```

Using the same URL/password, a git clone works. I can telnet to the stash server from the fisheye server on the https port.


Answers:
author: Sean Bridges
body: We hadn't configured fisheye to use git from the command line. Not sure if fisheye was trying to use jgit. Using jgit to connect to stash has failed for us (from fisheye and bamboo), but command line versions of git have worked.

comments: author: Conor
body: FishEye does not use jgit - it always exec's command line git.


Tags: bitbucket-server
SVN- Jira Can I track issue commits for a build
Asked by showkat ally:

Hi

I am enquiring if there is a way to track commits and issue keys for a build release.

Regards


Answers:
author: Norman Abramovitz
body: The short answer is yes. There are multiple ways to accomplish this.

One way is the following which does not cost anything extra.

You add your jira issue identifier to your svn commit. The subversion plugin code will associate the commit to the issue. You will be able to see the commits within the issue.

You define a version which is associated with the build release and manually assign the version to the issue.

You can also look at using bamboo.


Tags: cloud

fisheye-crucible-svn-ondemand
Error parsing config file when starting FishEye/Crucible from the command line by running ./bin/run.sh from the FishEye/Crucible installation directory
Asked by sepideh setayeshfar:

I receive the following error when starting fisheye by running the run.sh file:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

2012-11-13 17:17:14,690 INFO - FishEye/Crucible 2.8.2 (20121005010724), Built on 2012-10-05

2012-11-13 17:17:14,691 WARN - Unsupported java version detected: 1.8.0-ea

2012-11-13 17:17:14,692 WARN - Currently supported versions: 1.6 and 1.7

2012-11-13 17:17:14,693 WARN - Running with your current version may be unstable.

2012-11-13 17:17:19,482 INFO - Starting UpgradeManager...

2012-11-13 17:17:20,583 ERROR - Errors parsing /opt/fisheyecrucible/config.xml:

2012-11-13 17:17:20,584 ERROR - at line 59: Expected elements 'ssl@http://www.cenqua.com/fisheye/config-1 ajp13@http://www.cenqua.com/fisheye/config-1' instead of 'web-server@http://www.cenqua.com/fisheye/config-1' here in element web-server@http://www.cenqua.com/fisheye/config-1

2012-11-13 17:17:20,584 ERROR - Problem with config file: Error parsing config file (see logs): /opt/fisheyecrucible/config.xml

If the error is related to a an unsupported java version, then the manual instructions about installing java versions of 6u23 or later will not match with fisheye settings: <https://confluence.atlassian.com/display/ATLAS/Dragons+Stage+1+-+Install+JIRA#DragonsStage1-InstallJIRA-Step1.InstallJava>

I also find a similar error message in this document, applied the changes to SSL settings as instructed in this document but the still received the same error when running the run.sh.

<https://confluence.atlassian.com/display/FISHEYE027/FishEye+SSL+Configuration>

\*I was unable to provide the SEN since I could not open the interface.

\*The OS is Ubuntu Server 12.04


Answers:
author: Sergey Svishchev
body: The manual clearly says to install "the latest version of the **JDK 1.6**", not 1.7 or 1.8 or whatever Ubuntu is packaging these days.


Tags: ubuntu
Deleted users still appear in UI
Asked by Newt Nik:

Somehow duplicate users were created in our system, e.g. JSmith and jsmith. We've deleted the correct dupes and yet both users still appear in the "Reviewers" drop down list when creating a review. What else must be done to remove these users completely? We are using a 5 person starter license and are still running with the embedded database.


Answers:
author: David Toussaint _Communardo_
body: Best thing is to not revome users at all! Chances are you are ending up in a total mess in the end. I had a discussion giong on here about this and basically the conclusion was to not remove users: [https://answers.atlassian.com/questions/95362/how-to-handle-removed-users](/questions/95362/how-to-handle-removed-users)

Oh, and try to avoid messing with the database (which might be an Idee popping up right now).

Sorry to say this. Hope it kinda helps anyway.

EDIT: I am just recognising this now, but you are talking crucible while I was taking JIRA. I guess the answer is still valid as the approach would be quite the same.

comments: author: Newt Nik
body: Thanks but that really doesn't help. Having almost identical users (FBar vs. fbar) is confusing and error prone... there must be a better way.