youngmon/atlassian-qna huggingface dataset:
What EC2 instance recommended for self hosted runner
Asked by Edward Davies:

Hello,

We have some self hosted runners on EC2 instances in AWS. However as builds are increasing in size they are becoming quite slow, what would be a recommended EC2 instance size/type for a self hosted runner?

Best regards,

Ed


Answers:
author: Victor Menes
body: Hey Ed, hope you are doing fine!

Regarding AWS general guidance for running Bitbucket, I would suggest checking out this page, which contains a bunch of important information when [dealing with AWS](https://confluence.atlassian.com/bitbucketserver/launch-bitbucket-in-aws-manually-776640204.html) configuration.

Regarding your specific question, you will find here on which [instance size/type to choose](https://confluence.atlassian.com/enterprise/infrastructure-recommendations-for-enterprise-bitbucket-instances-on-aws-970602035.html).

I hope this is helpful and you are able to successfully choose the best option for your environment! :)


Tags: aws

bitbucket-cloud

bitbucket-runners

cloud

server
git push with ssh from jenkins pipeline to bitbucket cloud
Asked by Ron:

Hi all ..

I'm trying to push code from pipeline to **bitbucket cloud** with ssh.

git pull \& git clone - works good .

**git push - failed !**

**I founded some info that we can't push with ssh to bitbucket cloud . thats correct ?**

**If yes , what can be the solution for push code from my pipeline to the repository in bitbucket cloud ?**

thanks .


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

Thank you for reaching out to Atlassian Community!

From the error you reported, I suspect you are using repository-level or project-level access keys, which indeed only provide read-only access (clone/pull) to a repository.

In case you also want to push using an access key, you will have to add the key at the workspace level. Workspace level access key provide read and write access to the repositories within a workspace.

For more details about the difference between each level of access key and how to add them you're welcome to take a look at the article [Difference between repository, project and workspace access keys](https://confluence.atlassian.com/bbkb/difference-between-repository-project-and-workspace-access-keys-1188785759.html) .

Thank you, [@Ron](/t5/user/viewprofilepage/user-id/5122560) !

Patrik S


Tags: bitbucket-cloud

cloud
error 429 when 'composer update'
Asked by Jordan:

I am receiving an error 429 (too many requests) when I run 'composer update' on my project.

It occurs when it tries to download some private repositories.

I am using the auth.json file for .composer, which includes my consumer-key, consumer-secret, access-token, and access-token-expiration.

In my composer.json file, my repositories are configured as follows:

{ "type": "vcs", "url": "[https://bitbucket.org/\*\*\*\*\*\*.git](https://bitbucket.org/******.git)" }

I have checked and I am under the limit of 60,000 requests per hour. Can anyone suggest a possible reason why I am receiving this error?


Answers:
author: Syahrul
body: Hey [@Jordan](/t5/user/viewprofilepage/user-id/5122476)

G'day, and welcome to the community!

I believe the composer update downloads the package via API, not through git. So if it goes through API, then the access uses */2.0/repositories/\** endpoint, and this is limited to only 1,000 requests per hour; [Bitbucket request limit](https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/)

I can dig into it further if you are interested please let me know so I can create a support ticket on your behalf of you.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Bitbucker Licensing
Asked by Bhushan Kulkarni:

HI ,

I have Bit bucket subscription account with required number of licenses as much as for those accessing the bitbucket repository. I plan to integrate the account with my organization people directory.

Please guide on how does the licensing work in this case , suppose i have 150 users using bitbucket in my organization as shown through directory, how can i count on the effective licenses that i need to purchase.

Regards

Bhushan


Answers:
author: Theodora Boudale
body: Hi Bhushan and welcome to the community.

Can you please confirm if your question concerns Bitbucket Cloud or Bitbucket Server/Data Center?

Your question has the tag bitbucket-cloud, however, in Bitbucket Cloud (<https://bitbucket.org/>) we don't sell licenses for a specific number of users. Billing works as follows:

A billing plan is associated with a certain workspace and user management is done from the workspace's settings. If a workspace is on the **Free** plan, you can have up to 5 users with access to this workspace's repos. If the workspace is on the **Standard** or **Premium** plan, then there is no limit on the number of users that can be granted access. The price for the Standard plan is $3 per user/month with a flat rate of $15/month for 1 - 5 users, and the price for the Premium plan is $6 per user/month with a flat rate of $30/month for 1 - 5 users. You can find more details here:

* <https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/>

If you want to buy an Atlassian Access subscription in order to connect your identity provider to your Atlassian Organization, there is an additional cost for this subscription that you can see here:

* <https://www.atlassian.com/software/access/pricing>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
can't add ssh key
Asked by Santiago Bertola:

Can't add my ssh key because someone has added on multiple repos as a access key.

Can you please tell me what those repos are so i can remove my ssh key?


Answers:
author: Patrik S
body: Hello [@Santiago Bertola](/t5/user/viewprofilepage/user-id/5122545) ,

I will raise an internal ticket with the e-mail you used to create the community questions. You should receive an e-mail with the ticket link shortly. In case you don't receive the e-mail, please let me know so I can share the ticket link here.

Thank you, [@Santiago Bertola](/t5/user/viewprofilepage/user-id/5122545)

Patrik S


Tags: bitbucket-cloud

cloud
How to change mysql default port in setting bitbucket-pipeline ?
Asked by Jo?o Salom?o:

![Captura de tela 2023-01-16 114104.png](/t5/image/serverpage/image-id/234629iD7D42ADF529E4376/image-size/large?v=v2&px=999 "Captura de tela 2023-01-16 114104.png")

The port mapping section does not seems to be working


Answers:
author: Theodora Boudale
body: Hi [@Jo?o Salom?o](/t5/user/viewprofilepage/user-id/5122497) and welcome to the community.

Bitbucket Pipelines don't support port mapping on services.

You can find a workaround mentioned in this post:

* <https://community.atlassian.com/t5/Bitbucket-questions/How-to-change-mysql-default-port-in-setting-bitbucket-pipeline/qaq-p/895956#M33467>

Please feel free to let me know if you would like me to create a feature request for supporting port mapping.

Kind regards,  
Theodora

comments: author: Jo?o Salom?o
body: Hi Theodora, thanks!

Yeah, will be awesome if we have this feature! How do I create the feature request?


author: Theodora Boudale
body: Hi Jo?o!

Our issue tracker can be found here: <https://jira.atlassian.com/secure/Dashboard.jspa> However, I believe that issue creation has been turned off for anyone other than Atlassian staff.

I went ahead and created a feature request to support port mapping here:

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

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

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Replace build number for deployment with custom version numbers
Asked by MacDonald, Lee:

Hi, in Bitbucket Pipelines, we have a three deployments, DEV, UAT and PROD. The deployments are working, but we are following a trunk based workflow and using semantic versioning. How can replace the build number in the deployment to that of a custom value, such as a semantic version, so we can see which semantic version is deployed to which environment without having to drill in further to each build.

Thanks.

Lee


Answers:
author: Mark C
body: Hi [@MacDonald, Lee](/t5/user/viewprofilepage/user-id/5118573),

Thank you for reaching out to the community.

Unfortunately, it's not possible to change the Pipelines build number/name at the moment.  
We do have an existing feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-22161>  
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

As a workaround, you can try to use tags to version your releases (if you haven't done it yet).

Let me know if you have further questions.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Could not read from remote repository.
Asked by Jeong HyeIn:

Hello. I'm inquiring because I'm experiencing the same problem. There was a problem from the time one of the existing users, 'A', was changed from write permission to read permission. 'A' was a user who registered a security key in \[Personal Settings-security-SSH key\] and set up git, so I tried as below because there were some suspicious things.

<br />

1. Change 'A' permission from read to rewrite  
2. Change git SSH security setter from existing 'A' to me  
3. Remove the 6th added user and reduce it to 5 people.  
4. Attempt to switch to HTTPs because I thought it was an SSH connection problem.  
5. Remove the 'A' user, which was the starting point of this problem, and reduce it to 4 people.

<br />

However, it is still unresolved and indicates a 402 error. Among the answers to the questions posted here, there was an answer that it might be a problem caused by the manager changing the plan, but is it a situation? I'm inquiring because it hasn't been solved even if I keep trying for a few days.


Answers:
author: Theodora Boudale
body: Hi [@Jeong HyeIn](/t5/user/viewprofilepage/user-id/5122022) and welcome to the community.

What exactly is the problem that you are facing? Are users unable to push to repositories and do they get a 402 error?

The workspace you selected when you created this community post is over the plan limit. It used to be on a paid billing plan, but the plan was downgraded to Free because there was a problem with the payment. If the billing plan of a workspace gets downgraded to Free, and there are more than 5 users on this workspace, then these users will not be able to push to the repos.

I would suggest that you reach out to one of the workspace's admins and ask them to contact their credit card provider in order to resolve the issue with the credit card on file for Bitbucket Cloud. After the issue is resolved, an admin will need to manually upgrade the billing plan from the workspace's settings (to either Standard or Premium), and then the users should be able to push to repos again.

If you have any questions, please feel free to reach out.

Kind regards,  
Theodora


author: Alex Koxaras _Relational_
body: Hi [@Jeong HyeIn](/t5/user/viewprofilepage/user-id/5122022) and welcome to the community,

Can you please take a look at these posts and see if these resolve your issue:

* <https://community.atlassian.com/t5/Bitbucket-questions/could-not-read-from-remote-repository/qaq-p/1977089>
* <https://community.atlassian.com/t5/Bitbucket-questions/could-not-read-from-remote-repository/qaq-p/983015>
* <https://community.atlassian.com/t5/Sourcetree-questions/Remote-repository-no-longer-accessible/qaq-p/1892481>
* <https://community.atlassian.com/t5/Bitbucket-questions/Could-not-read-from-remote-repository/qaq-p/1106530>

Let me know if the above helps.


Tags: bitbucket-cloud

cloud
Joining my class team
Asked by Wisam Dubaisi:

I am trying to search for my team to join it


Answers:
author: Mark C
body: Hi [@Wisam Dubaisi](/t5/user/viewprofilepage/user-id/5121829),

Welcome to the community.  
To join a team in Bitbucket Cloud, a Bitbucket Cloud administrator will need to invite you first.

Would you be able to confirm if an admin already invited you?

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Accessing Repository issues from eclipse myln
Asked by mikerb:

I have been using a mylyn plugin to tie Eclipse Tasks to my bitbucket repository issues. Initially the access was Username and Password, then it moved to Username and App password. Now we have Access Tokens and it does not work. Is anyone aware of how you enter the access token into the mylyn credentials screen


Answers:
author: mikerb
body: Got around it by creating a new API Access Token from the App Password on my account personal settings. This allows you to select Issues read/write


Tags: personal-access-token
What would my password be for cloning the repo?
Asked by Sophia Gostfrand:

I tried my computer password and my bit bucket account password and I keep getting login failed due to incorrect login credentials or method.


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

The password of your Bitbucket Cloud account can be used only for logging in to the website.

If you would like to clone (and then pull and push) to a repo with HTTPS, you can generate an app password:

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

The app password can be used instead of a password for cloning/pulling/pushing via HTTPS.

Please make sure that the app password has at least **Repositories: Read** and **Repositories: Write** permissions when you generate it, if you want to use it for both cloning and also pushing back to the repo.

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

Kind regards,  
Theodora


author: marc -Collabello--Phase Locked-
body: Usually, when cloning a repo, you get asked for your ssh key passphrase.


Tags: bitbucket-cloud

cloud
Can't read from remote repository
Asked by UnitFactory:

Hello,  

i create a new repository inside bitbucket. I run this commands, like the commands bitbucket shows on the repository page, copy and paste:

git remote add origin git@bitbucket.org:...  
git push -u origin master  

But by the push command i got the error:  
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.  

This is what i checked:  
- I renew my ssh key in bitbucket  
- git remote -v show the correct url to the repository  
- ssh -Tv git@bitbucket.org works fine, because i got the message "authenticated via ssh key. You can use git to connect to Bitbucket. Shell access is disabled"  

What can be wrong?  

Cheers  
Ralf


Answers:
author: Syahrul
body: Hey Ralf,

G'day.

I'd say use the following verbose command with the git push options parameter, as it'll give you more information on why the push failed:  

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" git push -u origin master
```

Look at what SSH config git uses and what keys are being offered to push. There's usually an issue where git uses a different ssh config that redirects to another ssh key which causes the issue.

Cheers,  
Syahrul

comments: author: UnitFactory
body: Hi Syahrul,

this is the result from your command:

```
redacted
```

As far as I can see, the id file is correct. The only error is, that the remote repository cant be read  

Cheers  
Ralf


author: Syahrul
body: Hey Ralf,

I remove the log due to privacy concerns.

From the log, I noticed it uses a different SSH key to authenticate from the default  
/Users/\<name\>/.ssh/config location, so I wonder which key you used on your account.

If it's the default id_rsa, then can I suggest you manually add the following in the  
/Users/\<name\>/.ssh/config to explicitly ask SSH to use the default key only:  
1. Run the following command, replacing the {ssh-key-name} with the name of the *private* key:

   `ssh-add ~/{ssh-key-name}`
2. To ensure the correct SSH key is used when connecting to Bitbucket, update or create your SSH configuration file (\~/.ssh/config) with the following settings:

   ```
   Host bitbucket.org AddKeysToAgent yes 
    IdentityFile /Users/<name>/.ssh/{ssh-key-name}
   ```

   Where {ssh-key-name} is the location of the *private* key file once it has been added to the ssh-agent.

Let me know how it goes.  

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
How to share Anchors in Bitbucket across pipelines?
Asked by sureshbabu_a:

Recently we migrated to Bitbucket and started writing pipelines.

I googled and understood that 'Anchors' in pipelines are used to avoid code-redundancy in pipeline.

**Example anchor**

    definitions:   steps:    - step: &build-test        name: Build and test        script:          - maven package        artifacts:          - target/**

Is there any way that I write the 'Anchor' in a common-location and call is across **multiple pipelines**?


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

Anchors can be used in multiple pipelines of the same repo, but not across different repos at the moment.

We have a feature request for reusable CI workflows that is on our roadmap for Q2 2023:

* <https://www.atlassian.com/wac/roadmap/cloud/reusable-ci-workflows?p=ca8f751c-aa>

This is tracked in the following feature request:

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

And you can see here the latest update that was posted 5 days ago by one of our product managers:

* [https://jira.atlassian.com/browse/BCLOUD-14078?focusedCommentId=3232757\&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-3232757](https://jira.atlassian.com/browse/BCLOUD-14078?focusedCommentId=3232757&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-3232757)

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Connect selenium to bitbucket piplienes
Asked by Mahmoud Sameer:

my code is running normal in my local machine but when im trying to run it on bitbucket piplines im getting error  
here is my yml file:

image: maven:3.6.3

pipelines:

default:

- step:

caches:

- maven

script:

- mvn test


Answers:
author: Theodora Boudale
body: Hi [@Mahmoud Sameer](/t5/user/viewprofilepage/user-id/5120905) and welcome to the community.

Bitbucket Pipelines builds run in a Docker container based on the image you have defined in your yml file. In your example, it will be a Docker container based on the Dockerhub image maven:3.6.3.

I would suggest debugging the build locally with Docker (using the image maven:3.6.3) as per the instructions in the following guide:

* <https://confluence.atlassian.com/bbkb/debug-pipelines-locally-with-docker-1167698072.html>

You will then be able to execute commands from the script of your yml file in this setup and see if they fail with the same error or not.

Your local machine may have dependencies and tools that this Docker image is missing and that you may need to configure. If you debug this locally with Docker and you get the same error, then the issue is most likely related to the configuration of your build.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
API call for user commit activity
Asked by David Whitlock:

I need to see if there is a way to get the commit activity of a user via the Bit Bucket APIs? I did not see anything in the doc <https://docs.atlassian.com/bitbucket-server/rest/4.1.0/bitbucket-rest.html>


Answers:
author: Mikael Sandberg
body: The document you found is for the old REST API, and it does have an endpoint for [commits](https://docs.atlassian.com/bitbucket-server/rest/4.1.0/bitbucket-rest.html#idp3411776), you would just have to filter out the result based on the specific user. Here is a newer version of the document, [Get commits](https://developer.atlassian.com/server/bitbucket/rest/v807/api-group-repository/#api-api-latest-projects-projectkey-repos-repositoryslug-changes-get).


author: Uladzislava Kastsitsyna _Stiltsoft_
body: Hi,

One of the options that you have is using our app called Awesome Graphs for Bitbucket to export data via direct CSV export or REST API. You can read in more detail about these features in [this article](https://link.stiltsoft.com/VoZrCr).

Best regards,  
Uladzislava


Tags: bitbucket-server

server
Restart pipeline wizard
Asked by Sachin Agrawal:

Once you setup a pipeline, is there a way to delete and start fresh with the pipeline wizard in the same repo?

Any help would be appreciated.


Answers:
author: Ben
body: Hey Sachin,

At present - there is no way to re-enable the Pipelines Wizard without creating a new repository, this has been logged with our developers in the past however - please feel free to "Watch" it for future updates:  
<https://jira.atlassian.com/browse/BCLOUD-20669>

I would suggest following our documentation below to configure Bitbucket Cloud Pipelines in the interim:  
<https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-bitbucket-pipelines/>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Bitbucket clone to Sourcetree, repeatedly asking for password
Asked by Britvak:

Me and my colleague are working on this project.

It's the first time that I'm trying to push the commit up to him. Before that he always did that. But as I try to do that I get this login window that is asking to login HIM, not me. His name is already written in the login window.

I tried logging it as myself but it says:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin TestNew:TestNew  
Logon failed, use ctrl+c to cancel basic credential prompt.  
remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.

How can this be fixed? Thanx a lot guys!


Answers:
author: Mike Corsaro
body: Hello! I'm not sure how another user's credentials are being used on your machine, but I'd recommend removing the remote account via the "Tools \> Options \> Accounts" menu, and then try re-adding your account.


author: Manju
body: Is this on windows? What version of Sourcetree are you using?

comments: author: Britvak
body: Windows 7.

### SourceTree 2.5.5 \[16 April 2018\] {#toc-hId-1620055156}


Tags: bitbucket
authentication error. reset password, can't locate "~/Library/Application Support/SourceTree" in Mac
Asked by Dan Chen:

I got following error after I change the password of my macBook. I searched the web site and try to delete password file from \~/Library/Application Support/SourceTree. The problem is that I can't locate the SourceTree folder under \~/Library/Appliction Support/ folder.

fatal: Authentication failed for 'http://d ........

IOS version: macOS High Sierra, Version 10.13.13

Any suggestions or solutions?


Answers:
author: Dan Chen
body: Thanks Manjunath, I located the password file and deleted. It works now.


author: Manju
body: Do you see the account added in Accounts tab of Sourcetree preferences? You can alternately search for Sourcetree in Keychain and remove items added by Sourcetree.


Tags: authentication

mac

password

reset