youngmon/atlassian-qna huggingface dataset:
My Bitbucket account has been locked and I cannot find captcha
Asked by Ankush Sharma:

I am trying to do a git clone of a repo but failed the authentication too many times when the Windows credential manager popped up (I probably inputted the wrong password) so now I'm getting the error:

*Your Bitbucket account has been locked. To unlock it and log in again you must solve a CAPTCHA. This is typically caused by too many attempts to login with an incorrect password. The account lock prevents your SCM client from accessing Bitbucket and its mirrors until it is solved, even if you enter your password correctly.*

*If you are currently logged in to Bitbucket via a browser you may need to logout and then log back in in order to solve the CAPTCHA.*

**My organization uses some certificates that get auto loaded in the browser for authentification so when I log out and log back into bitbucket, there is no CAPTCHA but instead a popup that prompts me to select a certificate.** Once I select the certificate, I am logged in without having to solve any CAPTCHA. However by skipping the CAPTCHA I can't "unlock" my account like the git clone error message was prompting me to. Any workaround for this?


Answers:
author: Aman Shrivastava
body: Hi Ankush,

Welcome to the Atlassian community.

The following error occurs when the user has tried to log in using the wrong password 5 times(Default value).   
If you can log in to the Bitbucket GUI using the same username then you can go to **Settings** \> **Users** \> Search your user and click on the username \> Click on **Clear CAPTCHA** button. If you do not have admin/sysadmin privileges then you may need to ask an admin or sysadmin to perform this procedure.

```
Your Bitbucket account has been locked. To unlock it and log in again you must
solve a CAPTCHA. This is typically caused by too many attempts to log in with an
incorrect password. The account lock prevents your SCM client from accessing
Bitbucket and its mirrors until it is solved, even if you enter your password
correctly.

If you are currently logged in to Bitbucket via a browser you may need to
logout and then log back in in order to solve the CAPTCHA.?
```

<br />

Regards,  
Aman

comments: author: Madhan
body: Can you tell me what shall I do for mac  
I am on browser when I log out and try to log in it gets logged in without asking password or captcha


author: Aman Shrivastava
body: Hi [@Madhan](/t5/user/viewprofilepage/user-id/5543950)   

Should your Bitbucket instance be set up with SSO as the only authentication method, you won't be able to see the username/password page in Bitbucket. Instead, SSO will allow you to log in to Bitbucket without requiring your username and password on the Bitbucket portal.  

If SSO is configured in your instance, you can ask the Bitbucket admin to clear CAPTCHA for your user. Admin needs to navigate to **Settings** \> **Users** \> \[search for your username\] \> \[Click on the username\] \> click on the **Clear CAPTCHA** button. The same set of steps can be followed even when your instance is not configured with SSO.

Regards,  
Aman


Tags: bitbucket-server

server
two step verification is now working
Asked by SANGMU KIM:

tow setp verification is not working

and recovery code also now working

how can I use recovery code?

just i inputed the code in code field.

but it doesn't work


Answers:
author: Nikola Perisic
body: Welcome to the community [@SANGMU KIM](/t5/user/viewprofilepage/user-id/5413281) !

You may want to refer to this page: <https://community.atlassian.com/t5/Bitbucket-questions/Two-step-verification-code-issue/qaq-p/2226002>

Let me know if it was helpful.

BR,

Nikola


Tags: bitbucket-cloud

cloud
About access logs
Asked by Noriko Yamaguchi:

In order to connect to BitBucketCloud from my company, could you answer my question below?

1) Did BitBucketCloud get access log?

2) If Yes, please advise how long access logs are stored in your server?

3) When incidents happen, is it possible to investigate access logs on your side?


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

* Yes, Atlassian do have access logs
* I understand that they are kept on the disk for 90 days, and included in the backups, so they are still retreivable for a couple of years (but over 90 days involves having to restore part of a backup, so it's not easy or quick to get to them). Do not take my numbers as accurate, they were what I was told several years ago, and have probably changed.
* Yes, Atlassian will investigate incidents for you if you have any. You'll need to raise a support request to ask them to investigate

The first two answers here are utterly irrelevant to you though. Bitbucket Cloud is provided as a service, it is not a server you can go rummaging around on. Our access to our services is only to what the UI shows us, we will never get access to logs or other server files. If there is an incident, it is part of the service for Atlassian to investigate.

comments: author: Noriko Yamaguchi
body: Thank you, Nic. It clears my questions.

I got all I wanted to know about BitBucketCloud.

Many thanks!


Tags: bitbucket-cloud

cloud
How can I fix a cloning issue? App password is not showing up which is making the clone process fail
Asked by Areej Imran:

When trying to add the URL of my bitbucket workspace onto IntelliJ into get from version control and then into the repository URL. It is not uploading properly.


Answers:
author: Patrik S
body: Hello [@Areej Imran](/t5/user/viewprofilepage/user-id/5413053) and welcome to the Community!

It seems like IntelliJ might be configured to use a credential manager to save your credentials to a cache, so it's using the old credentials for this cache instead of asking you to provide the new ones.

The following thread in Stack overflow provides some different approaches on how you can clear/reset the credentials on IntelliJ :

* <https://stackoverflow.com/questions/28142361/change-remote-repository-credentials-authentication-on-intellij-idea-14>

I would suggest going through those answers and trying the provided instructions to configure IntelliJ.

Thank you, [@Areej Imran](/t5/user/viewprofilepage/user-id/5413053) !

Patrik S


Tags: bitbucket-cloud

clone

cloud

intellij-idea
Pipelines fails to run more than one Multi-threaded/Multi-process test
Asked by Max Herman:

Hello,

I have some Python tests. Each test starts 3 separate threads:

1. Runs flask thread on port 500 (source API)  
2. Runs Another flask thread on port 501 (destination API)  
3. Third thread - starts a Python application (start "python main.py parameters" process), gathers data from source API, and writes to destination API.

After all 3 started, the test waits for a certain time/events and validates that the destination API received the correct data.

When I run tests (in any sequence) on my computer Windows, all tests, consistently pass. All ports are closed, and threads are exited.

If I run any single test on the BB pipeline - it consistently passes.

**PROBLEM**: If I run more than 1 test on BB pipeline, the first always passes, and the second - always fails. The fail - is that Destination API never receives the API calls from the main application. However, I do see that the calls are made, and the process acknowledges it.

**Questions:**

**1. Is there any problem with closing/shutting down listening on ports from Python? Maybe a delayed port release?**

**2. Is it possible that more than 1 process listens on the same port in**  
**image: python:3.10 ?**

**3. Any other ideas, of how it's possible?**


Answers:
author: Max Herman
body: OK, figured it out: the failure in cleanup (shutting down sub process on bitbucket BB/Linux).  

The 3rd process fails to exit from the first test run.

So when the 2nd test runs, it starts the 2nd "python main.py" process. And the log messages I see that write to destination API - is from the leftover process.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Review Pull Request Live Display
Asked by Nizar Abou Ibrahim:

I am wondering if there is a feature that shows which users are reviewing a Pull Request in live time.

Current behavior  
If I click on "Start review" for the PR, no one from the people whom can work on the PR is notified that I am working on it.

Proposed Behavior  
Once someone start working on the PR and clicks on "Start review", a notification would be displayed next to this button stating that someone is currently reviewing this PR.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hello Nizar,

welcome to the Bitbucket community. This is a very interesting question. Can you clarify whether you are using Bitbucket cloud (bitbucket.org) or the self-hosted Bitbucket server/datacenter instance?

Best, Ulrich

comments: author: Nizar Abou Ibrahim
body: Hello Ulrich,

We are using a self-hosted Bitbucket server. I believe its running version 8.14.0

Best,

Nizar


Tags: bitbucket-server

pull-request

review

server
How do i sync changes from one repo to another repo in Bitbucket Cloud
Asked by Contra Boy:

Hi,

My use case is pretty simple. I have done the following:

1. Created a new repo called repo2 by importing an existing repo (repo1)

2. I want to sync push/merges on the develop branch on repo1 to the new repo2 i created in step 1 above

Note: Both repos are in the same workspace and both of them are in bitbucket cloud

Is there a way built into bitbucket cloud to do this?

If webhooks are the way to go then can someone give me the steps, i already tried creating a webhook but it does not seem to work.  

Any advice would be helpful. Thanks!


Answers:
author: Ben
body: Hi Contra Boy!

Welcome to the Bitbucket Cloud Community! :)

I would suggest that if you want to push a commit to multiple repositories at once, that you define a git alias - more information can be found here:

* <https://stackoverflow.com/questions/4255865/git-push-to-multiple-repositories-simultaneously>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to fork without creating all branches
Asked by ccenvcvb:

I need to create a fork containing only the release branch of a repo.

The repo has hundreds feature / hotfix branches.

How can I select with branch(es) should be present in the fork ?

I tried creating a fork before but by default all branches are copied.

Deleting a single branch using git push --delete branch takes 3 seconds per branch.

In github there is an option to only fork the master branch. That is more or less what I'm looking for.


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

Currently, Bitbucket Cloud does not support the ability to fork specific branches. However, I am interested to understand the reason you require this ability so I can create a feature request.

Having said that, technically if you forked a repo you can bulk any branch you don't want by navigating to the branch tab \> click the "..." and select **Delete multiple**. This will allow you to select multiple branches and delete them in a much quicker way.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
This endpoint does not support token-based authentication | Default reviewers
Asked by Jaipal Solanki:

Hi Guys,

I am trying to add default reviewers to particular repositories using automation.

I am using the following endpoint to make an API call,  
"<https://api.bitbucket.org/2.0/repositories/>workspace/repo_name/default-reviewers", authentication is Token based (Username and Password), but I am getting the below error.  

\`This endpoint does not support token-based authentication\`  
Is there anything I am missing?  
Can someone please navigate me through this?  
Thank you  
Jaipal


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

A call like the following with curl (using username and app password for authentication), should work:

```
curl -u username:app_password --request PUT \
--url 'https://api.bitbucket.org/2.0/repositories/workspace-id/repo-slug/default-reviewers/reviewer_username' \
--header 'Accept: application/json'
```

where

* **username** is the Bitbucket username of a user with admin access to the repo (it can be found here <https://bitbucket.org/account/settings/> if this is your own user account)
* **app_password** is an [app password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) for this user with at least **Repositories - Admin** permissions (the account's password will not work, this can only be used for logging in to the website from browser)
* **workspace-id** is the ID of the workspace the repo belongs to
* **repo-slug** is the slug for the repository (you can see it in the repo URL on browser)
* **reviewer_username** is the Bitbucket username of the reviewer you want to add

I just ran such a call for one of my own repos for testing purposes and the reviewer is added.

Please feel free to let me know if it works for you and if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

default

reviewers
Push wahit ssh key
Asked by Anton G:

hi  
i want to make a push/pull  
upload my ssh key and getting no perdition  
where i can grand perdition to my key ?


Answers:
author: Theodora Boudale
body: Hi Andrew,

I assume that by 'no perdition' you mean 'no permission'.

If that is the case, my suggestions are the following:

**1.** Please ensure that the public key is added to your account's keys on this page: <https://bitbucket.org/account/settings/ssh-keys/>

In case it is added to a repo or a project, the key will grant you read-only access to that repo or the repos of the project respectively.

The key needs to be added to your account to have read-write access.

**2.** If you use OpenSSH (the most common SSH client), create a file named **config** in the **\~/.ssh/** folder on your computer and add the following content:

```
Host bitbucket.org
? ? AddKeysToAgent yes
? ? IdentityFile ~/.ssh/{ssh-key-name}
```

where **\~/.ssh/{ssh-key-name}** should be the path and file of the private SSH key, whose public key you have uploaded to Bitbcuket. If the file named **config** already exists, you can simply add the content to the file.

This will ensure that this specific SSH key will be offered every time you pull or push to a Bitbucket repo.

Please feel free to reach out if you have any questions or if you are still experiencing any issues.

Kind regards,  
Theodora


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

I think your translation software has mis-translated something to "perdition", and messed up a bit of the grammar - I am sorry, but it makes your question nonsense in English. (Perdition is a state of eternal damnation, I am sure you really don't want to get that from uploading an SSH key!)

Could you rewrite or re-translate your question? Or write it in one of your main languages and let us run it through our preferred translation software?


Tags: bitbucket-cloud

cloud
Jira Tickets are not being linked to their respective Pull Requests in BitBucket
Asked by Deepika_Kanaparthi:

Jira Tickets are not being linked to their respective Pull Requests in Bit Bucket Cloud.

We are using both Cloud version for Jira and Bitbucket. All the repositories are linked to Jira. still we are facing issue.

How to resolve this Issue.


Answers:
author: Patrik S
body: Hello [@Deepika_Kanaparthi](/t5/user/viewprofilepage/user-id/4577757) and thank you for reaching out to Community!

The Bitbucket and Jira integration was facing a temporary issue earlier today that caused some Jira issues to not correctly show the information from the linked Bitbucket data.

Our engineering team already did a resync for the affected instances which should have refreshed all the missing links.

If you notice there are still links missing in your Pull Requests, we kindly ask you to [create an internal support ticket with our team](https://getsupport.atlassian.com/) so they can investigate further.

Thank you, [@Deepika_Kanaparthi](/t5/user/viewprofilepage/user-id/4577757) !

Patrik S


Tags: bitbucket-cloud

cloud
LFS
Asked by Ryujii:

Hey, I have a paid plan, my LFS takes 2g out of 5g but I can't push for LFS


Answers:
author: Ben
body: Hi Ryujii,

As you are a paying customer, I will be raising a support ticket under your Standard workspace entitlement. Please check your email inbox for further correspondence.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Pull Requests - Reviewer groups
Asked by Simon Meyer:

Hello!  

Are there any plans to make the feature "Reviewer groups for pull requests" available in the Bitbucket cloud?  
As currently it is only available for "Data center and server".  

Please see:  
<https://confluence.atlassian.com/bitbucketserver/reviewer-groups-for-pull-requests-1064084872.html>  

Best,  
Simon


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

While reviewer groups are not available just yet - there is a feature request for that: <https://jira.atlassian.com/browse/BCLOUD-10833>

If you want to use reviewer groups now please check out [Workzone for Bitbucket Cloud](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=cloud&tab=overview) - we are providing this app to solve exactly this problem (and more..)

Simply configure existing groups as reviewers for PR branches, files and directories and even enforce an approval quota on each group. If the group quota is not reached, the PR can't be merged!

Let me know if this is helping.

Best, Ulrich


Tags: bitbucket-cloud

cloud

reviewer-groups
Visibility of public repositories in the private workspace
Asked by Mahesh Vecham:

Hi,

If we create a public repo in a public project, it can be found on the web, Even if the Workspace is Private!

Is this a defect on Atlassian Bitbucket system that the checkbox is still editable when the workspace is set to private?


Answers:
author: Theodora Boudale
body: Hi Mahesh,

This is expected behavior. Setting a workspace to private will prevent someone from seeing any public content listed if they enter in their browser's address bar <https://bitbucket.org/workspace-id/>, where **workspace-id** is the ID of your workspace.

This setting does not affect the visibility of individual repos. If certain repositories are public, they can still be accessed by anyone who has a link to the repo. A public repo is public to everyone.

If you want to prevent the creation of public repos in your workspace you will need to make all the projects of the workspace private, as public repos cannot be created in private projects.

We have a feature request to disable public access to all projects and repositories at the workspace level: <https://jira.atlassian.com/browse/BCLOUD-15488> You can add your vote (by selecting the Vote for this issue link) and feedback there if you'd be interested in that feature.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Crucible - Upon Review Completion
Asked by CTO Build, Run, and Architecture:

Upon the completion of a review, is it possible to post information to an URL? For example, post review related info to a webserver etc? or trigger a build on a CI server etc?

Is this feature/capability available out of the box? Or can we use Atlassian APIs to write something custom?


Answers:
author: Nick
body: There are no WebHooks for Reviews out of the box for Crucible Reviews (only for FishEye commits).

You can however write a very simply plugin to provide this functionality by registering a listener for a Review Event: [](https://docs.atlassian.com/fisheye-crucible/latest/javadoc/com/atlassian/crucible/event/package-summary.html)<https://docs.atlassian.com/fisheye-crucible/latest/javadoc/com/atlassian/crucible/event/package-summary.html>

For more information on Event Listeners, see <https://developer.atlassian.com/display/FECRUDEV/Event+Listener+Module+Type>
Get list of users sorted by last login or last activity date
Asked by Jason Ashby:

I was hoping to see a "last login date" or similar in the list of users in the Fisheye admin panel, but I do not.

Is there a way to use the REST API to get such a a list? If not, what about a raw SQL query (I'm using postgres)?

I'm trying to delete old users from the system, i.e. former employees or employees that do not Fisheye often.


Answers:
author: Nick
body: If you have access to the postgress database in use by Crucible, the following:

```
select cru_user_name, to_timestamp( max(cru_last_viewed)/1000), count(cru_user_name) from cru_recently_visited group by cru_user_name order by max(cru_last_viewed) desc;
```

Should give you roughly what you need.

It wont give you logins per-se, however will let you know which users recently viewed an 'entity' in FishEye/Crucible. An entity is: a repository, a project, a review or a user page.

You could also consult the cru_login_cookie table to get the last time a login cookie was created for any given user.

comments: author: Jason Ashby
body: Good advice, thanks. The postgres query gave me \`ERROR: column "cru_recently_visited.cru_last_viewed" must appear in the GROUP BY clause or be used in an aggregate function\`, so I removed the order by part and did the sorting in a script instead.


author: Dotun O
body: Hi,

I ran the query without the order part. Please could you interprete the results I have for me? What are the numerical figures and how do I use them to identify recent logins

1385416048262 \| user1

1344284846104 \| user2


author: Nick
body: Those numbers are Unix times: milliseconds since epoch.


author: Caterina Curti
body: Hi,

The information about the last login can be retrieved by following the steps / running the query on the following article:

- [How to query for inactive/idle users in FishEye/ Crucible](https://confluence.atlassian.com/pages/viewpage.action?pageId=949244076)

This page covers both older and newer (4+) versions of Fisheye.

Cheers,

Caterina - Atlassian


Tags: fisheye-crucible-administration
Linking Crucible projects to JIRA
Asked by Bill Mariasoosai:

All:

Fisheye /Crucible ( 3.1.4)

JIRA ( 6.1.2)

I have the following 3 fisheye/crucible projects :

Build: <https://atlass.dbm.com/svn/cmteam/build>

UI: <https://atlass.dbm.com/svn/cmteam/UI>

Tools : <https://atlass.dbm.com/svn/cmteam/tools>

The repository is "cmteam" and the projects are build, UI, tools

I would like to link them with JIRA. I have not created any JIRA project yet.

**Should I create 3 projects in JIRA and map them to these crucilbe projects**

**so that the three teams can work on build, UI, tools respectively.**

We have 50 repos like this. This will force us to create a lot

of JIRA projects.

**Is it possible to create one JIRA project "cmteam"**

**so that all the three teams can work on their respective**

**crucible projects(Build,UI,Tools)**

Thanks for your help.

Regards,

Bzoo


Answers:
author: Tom Davies
body: Hi Bzoo,

Yes, you can have several FishEye/Crucible projects linked to the same JIRA project.

You will be able to create reviews in separate Crucible projects, but issue keys in commit messages and review descriptions and comments will be hyperlinked to your single JIRA project.

Tom
Feed with all commits of a user
Asked by Christian Domsch:

Hi,

I want to monitor all commits of a user over multiple repositories inside fisheye. We are using version 3.1.4.

Is that possible?


Answers:
author: Jeff Thomas
body: If you go to a users page, you should see a list of their activity with a button to show only **Commits** . In the upper right corner, click on **Tools** then select **RSS Feed**. That will give you an RSS feed of that user's commits.

![](../../upfiles/Screen_Shot_2014-01-30_at_7.54.09_AM.png)

I'm on v3.2.3, but I believe this has been in Fisheye for several versions.

comments: author: Christian Domsch
body: Thanks!

Unfortunatly, the user I want to monitor is not itself registered as a fisheye user, but one allowed to commit to our repository. But I guess, I need to add him, in order to see his actions.