youngmon/atlassian-qna huggingface dataset:
I can't create any issues?
Asked by Richard Barber:

Also confirming this problem trying to create an issue on [agriggio/art](https://bitbucket.org/agriggio/art/)

**We can't let you see this page**
To access this page, you may need to [log in with another account](https://id.atlassian.com/login?application=bitbucket&email=not%3Akd6kxr%40gmail.com&continue=https%3A%2F%2Fbitbucket.org%2Faccount%2Fsignin%2F%3Fnext%3D%252F%26redirectCount%3D1). You can also return to the previous page or go back to your [dashboard](https://bitbucket.org/dashboard/overview). {#toc-hId--470537739}
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Answers:
author: Patrik S
body: Hello [@Richard Barber](/t5/user/viewprofilepage/user-id/5185611) ,

Thank you for reaching out to Atlassian Community!

I've moved your response to the previous thread to a new question for easier tracking.

In order to investigate the issue you reported I went ahead and created an internal support ticket using the email of your community account so we can look into this. You should be receiving an email soon with the ticket link, but in case you don't receive it, please let me know so I can share the ticket link here.

Thank you, [@Richard Barber](/t5/user/viewprofilepage/user-id/5185611) !

Patrik S
How do I clone a repository from event payload?
Asked by JONATHAN ALVARES:

I have implemented an \`Atlassian cloud app\`, I need to clone the repository from the event payload. How do I do it?


Answers:
author: Patrik S
body: Hey [@JONATHAN ALVARES](/t5/user/viewprofilepage/user-id/5185339) ,

Welcome to the Atlassian Community!

I'm not sure if I fully understand your question. Could you please clarify what exact event payload you are referring to? Can you share more details about your use case and what you are trying to achieve?

Thank you,

Patrik S


Tags: bitbucket-cloud

cloud
AWS ECS Deploy pipe failing due to security token
Asked by R_D:

Upon attempting to deploy to ECS using the most up to date pipe(1.7.0), my pipeline fails due to this error

    An error occurred (UnrecognizedClientException) when calling the RegisterTaskDefinition operation: The security token included in the request is invalid.

I've made sure to validate that the credentials are the correct ones. I am not running through OIDC


Answers:
author: Riley Venable
body: The error "UnrecognizedClientException" when calling the RegisterTaskDefinition operation usually occurs due to invalid AWS access or secret key. Here are the steps you can follow to resolve the issue:   

1. Check if the correct AWS access and secret keys are used in your Bitbucket Pipelines settings. Ensure there are no typos or extra spaces in the values.   

2. If you are using an IAM user, ensure that it has programmatic access and the necessary permissions to execute the RegisterTaskDefinition action.   

3. Check if the region specified in the AWS_DEFAULT_REGION variable is the same where your ECS cluster is located. If not, update the region to match your ECS cluster.   

4. Try to regenerate your AWS access and secret keys and update them in the Bitbucket Pipelines settings.   

5. Verify that there are no other AWS authentication methods in place, such as IAM roles or instance profiles, which may be interfering with your access keys.   

6. If you are still facing the issue, try running the deployment script manually on your local machine using the same credentials and see if you get the same error. This will help isolate if the issue is with your credentials or the Bitbucket Pipelines environment. It is also worth noting that if you are not running through OIDC, you may need to use the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables instead of assuming an IAM role.


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud
can not use sourcetree with bitbucket cloud.
Asked by David Ballard:

First of all out of frustration what pice of sh\*\* sourcetree is!

What the hell does "The host key is not cached for this server: bitbucket.org"

I followed the recommendations in an advisory from Atlassian with two ways to resolve this issue and neither of them worked. So explain to me what the above error message means!

Oh one more thing; I don't think anyone could write a more worthless error message!


Answers:
author: Riley Venable
body: I'm sorry to hear that you're having trouble with Sourcetree. The error message "The host key is not cached for this server: bitbucket.org" usually means that the SSH key for the Bitbucket server is not recognized on your local machine. To resolve this issue, you can try the following: 1. Open a terminal window. 2. Type the following command: \`ssh -T git@bitbucket.org\` 3. You will be prompted to add the host to your known_hosts file. Type \`yes\` and press enter. 4. Enter your passphrase, if prompted. If this doesn't work, you can also try deleting the existing key for Bitbucket and generating a new one. You can follow the steps outlined in the Atlassian documentation <https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html> to do this. I understand that error messages can be frustrating, but they are designed to provide information about what went wrong so that the issue can be resolved. If you continue to have trouble, please feel free to raise a support request or search the Atlassian Community for further assistance.


Tags: bitbucket-cloud

cloud

sourcetree
is it possible to dynamically create parallel steps?
Asked by Bill Lazar:

As we add new (unit and Cypress) tests to our repo, the the PR build time grows. We've tried manually splitting them into multiple steps but this doesn't scale.

We tried using <https://github.com/bahmutov/cypress-split> but saw no change in run times.

Most recently we manually created parallel steps for Cypress steps but as mentioned this won't scale as our app grows.

Is it possible to dynamically create steps in a pipeline?


Answers:
author: Mark C
body: Hi [@Bill Lazar](/t5/user/viewprofilepage/user-id/4776387),

Thank you for reaching out to the community.  

Unfortunately, it is not possible to create dynamic steps in Bitbucket Cloud Pipelines.  
However, you can try to programmatically update your **bitbucket-pipelines.yml** file by editing the file adding steps and pushing it to your repository using the below API endpoint.

```
POST /2.0/repositories/{workspace}/{repo_slug}/src
```

[API Reference here](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post)

Hope it helps and do let me know if you have further questions.

Regards,  
Mark C

comments: author: Bill Lazar
body: Doesn't really help but thank for the answer.


author: aserece
body: It does help, bit it needs more development of your own. You have to run a pre-push script that updates the "parallel" section inside pipelines.yml based on your existing tests and use cases. Then you push that change with this endpoint


author: Bill Lazar
body: Thanks but I'm not going to do that.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Error: I am getting below error after I login to BitBucket.
Asked by Prithvi Manohar:

![BitBucket Error.JPG](/t5/image/serverpage/image-id/249094i3A3B37324FF086CA/image-size/large?v=v2&px=999 "BitBucket Error.JPG")


Answers:
author: Patrik S
body: Hello [@Prithvi Manohar](/t5/user/viewprofilepage/user-id/5184907) ,

Welcome to the Atlassian Community!

I was not able to find any Bitbucket account linked to the email address you used to post this question.

If you are trying to log in with a different email address, we kindly ask you to login in to Atlassian Community with that same email, and reply to the question here, so we can check internally for that particular account.

If you have any questions, feel free to ask!

Thank you, [@Prithvi Manohar](/t5/user/viewprofilepage/user-id/5184907) !

Patrik S


Tags: bitbucket-cloud

cloud
Request for Garbage Collection
Asked by kennethlam:

Hello,

I have a repository approaching 4GB in space because of two commits with huge file by one of the contributors. The commits with huge file are in a branch and that branch has been deleted. However, the repository size is still 3.8G (each commit should be about 1.6G)

I reviewed the document about reducing the git repository size. It said the git gc will be running automatically. However, it has been several days but the repository size has not been updated. It looks like I need to contact support to request a manual git gc running at the cloud. Could you help to run this for the related repository?

Thank you very much and hope the repository size can be updated so that we can carry on the normal development and deployment processes.

Best regards,

Kenneth


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

I have triggered the GC as requested on the affected repository. The repository size was reduced to 68 MB after it was completed.

Can you review it and let me know how it goes?

That said, after removing large files, you must [contact our Support team](https://support.atlassian.com/contact/#/) to run GC for you and reduce your repository size.

I hope this helps.

Cheers,  
Syahrul

comments: author: kennethlam
body: Dear Syahrull,

Thank you so much for your support. The repository size is good and we can carry out normal deployment operation now.

Thanks \& regards,  
Kenneth


Tags: bitbucket-cloud

cloud
VSCode: Unable to Select Branch
Asked by Edward Radcliffe:

I am using the VS Code extension "Jira and Bitbucket (Atlassian Labs)". I am unable to create a pull request.

When selecting the 'Source branch" drop down, no branches are populated it simply gets stuck on Loading...

I am able to open details of pending pull requests and interact with them, so it's not an authentication issue.

Can anyone help?


Answers:
author: Patrik S
body: Hello [@Edward Radcliffe](/t5/user/viewprofilepage/user-id/1788237) ,

Thank you for reaching out to Atlassian Community!

Our development team has released a new version of the [**Jira and Bitbucket (Atlassian Labs)**](https://marketplace.visualstudio.com/items?itemName=Atlassian.atlascode) (v3.0.3) which contains the fix for the issue where branches were not being listed.

To install the new version of the extension you will need also to update your VSCode to the release 1.77+.

Let me know in case you run into any issues.

Thank you, [@Edward Radcliffe](/t5/user/viewprofilepage/user-id/1788237) !

Patrik S

comments: author: Edward Radcliffe
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) can confirm v3.0.3 fixes this w/ vscode v 1.77x

Thank you!


author: yakirgb
body: I'm facing similar issue, in my case i'm getting error of : "No Bitbucket repositories found in this workspace"

Versions:

vscode: 1.77.0

Atlascode plugin: 3.0.3

Atlassian Bitbucket: 7.4.0

Any workaround for this issue ?

Thank you,

Yakir Gibraltar


author: Damian Shaw
body: It might be this known issue: <https://community.atlassian.com/t5/Bitbucket-discussions/vscode-extension-no-longer-works-for-new-PR/td-p/2302297#M3978>


Tags: app

bitbucket-cloud

cloud

vscode
Getting '? Failed to send email to 123@gmail.com.' for build failure using email notify pipe 0.8.0
Asked by Depstan Thankachan Xavier:

We are getting the following message "  
? Failed to send email to 123[@gmail.com](mailto:FLT@wfscorp.com). Check your configuration settings." when our build is failed.  
Where as we are getting the emails and requested details when the build is success. In both the scenarios the after script and email notify pipe were same.  
Sample script used in our project.

```

 after-script:
            - HTML_FILE=$(find . -iname testResult*.html)
            - if [[ BITBUCKET_EXIT_CODE -eq 0 ]]; then ALERT_TYPE="SUCCESS" ; else ALERT_TYPE="FAILED" ; fi
            - pipe: atlassian/email-notify:0.8.0
              variables:
                USERNAME: $USERNAME
                PASSWORD: $PASSWORD
                FROM: 'abc@gmail.com'
                TO: '123@gmail.com'
                HOST: 'smtp.office365.com'
                PORT: '###'
                SUBJECT: '[Test Run] - ${ALERT_TYPE} - ${BITBUCKET_BRANCH} : Build #${BITBUCKET_BUILD_NUMBER}'
                BODY_PLAIN: '[Test Automation Run Results] - ${BITBUCKET_BRANCH}  - Build No:- ${BITBUCKET_BUILD_NUMBER}'
                ATTACHMENTS: ${HTML_FILE}
```

Could you please help me what is the problem here ?

[@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705) - could you please share some insights on this? Please feel free to let me know if you need more details regarding the issue?

Thanks

Depstan T


Answers:
author: Oleksandr Kyrdan
body: Hi [@Depstan Thankachan Xavier](/t5/user/viewprofilepage/user-id/4902864)

Thank you for your question!

Looks like your ATTACHMENTS file are not correct/or not exist when your build failed.

Could you validate and check the testResult with \`ls\` or \`cat\` command.  

Best regards,  
Oleksandr Kyrdan


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

email

notification
Bitbucket datacenter self build on AWS loadbalancer question
Asked by Eric Seibert:

I'm building a Bitbucket DC HA cluster on aws ec2 linux and following the prescribed installation steps, the AMI isn't approved by our security team so I had to build it by hand.

I am at a roadblock with the LB portion I am trying to configure this LB and I can't figure out which way to go since we need an application lb for http/https and a network lb for the ssh 22 \> 7999 but you can't point a dns entry to two places,so what solution did you all use for your LB id you did a self-install? I looked at the classic LB but I read that the classic lb is deprecated, and I see the Gateway LB which seems to be a serious overkill.  

We aren't using an elastic IP and then setting up our own ha proxy when AWS has a good tool that has awesome features to it, and requires substantially less configuration than setting up ha proxy and nginx and a slew of other things that require lots of hand-crafted maintenance.   

Until I can configure the LB the only thing I can do is access the application, because ssh isn't available unless we set up a second dns entry for the cloning process for ssh.  

<br />

One other thing I wanted to see what your thoughts were. For the cluster you have to have a network share for the shared directory, what did you use for this I have heard s3 was okay but using the efs isn't compatible. I haven't got the cluster going yet but that will happen as soon as I get the LB set up.


Answers:
author: Eric Seibert
body: For the lb I set up an nlb, then forwarded it to the alb, still trying to figure out whats going on with the ssh issue for doing git clone using ssh but it is up and running, and I used an EBS /dev/sdf a for my mounts. I have yet to get the other node up and running, once thats done I'll figure out the shared folder concept.


Tags: aws

data-center

load-balancer

server
bitbucket.org took too long to respond.
Asked by KiranKesarkar:

Hello, I am not able to log in to the website since morning. I was trying to send the PR from the source tree and this error occurred. Using OAuth authentication. No any proxy/firewall settings on my machine.

Any help would be appreciated.

Details

This site can't be reached {#toc-hId--470601915}
------------------------------------------------

**bitbucket.org** took too long to respond.

Try:

* Checking the connection
* [Checking the proxy and the firewall](chrome-error://chromewebdata/#buttons)
* Running Windows Network Diagnostics  
ERR_TIMED_OUT


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

are u able to reach URL using your browser?

Fabio

comments: author: KiranKesarkar
body: No. Not able to reach URL using browser too.


author: Fabio Racobaldo _Herzum_
body: So it is you network error. I just checked and my bitbucket instance is up and running and there are not active incidents <https://bitbucket.status.atlassian.com/>

Please take a look or your network side.

Fabio


author: KiranKesarkar
body: I have already checked with my network team no blocked incidents or firewall settings. Rest all the websites and network activities I am able to perform on the machine.

I tried to refresh the OAuth token from the source tree, but still it is giving the same error.


author: Fabio Racobaldo _Herzum_
body: If you can't reach the URL via browser, it is not an OAuth token issue. There is something on your side that blocks you to reach that url. Please, verify that other people can access bitbucket URL form the same network.


Tags: bitbucket-cloud

cloud
Authentication Issues deploying to Azure Kubernetes Cluster
Asked by Sunil Lath:

When trying to apply/deploy a containerized image from an azure container repository to an Azure Kubernetes cluster we get the following issue:

![DeploymentIssues.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/248703iDDEB2CFFD041AE19/image-size/large?v=v2&px=999 "DeploymentIssues.jpg")

We are required to authenticate / approve access from within the bitbucket deployment pipeline, which isn't a workable when setting up an automated deployment pipeline.

Any workarounds / fixes for this would be appreciated.

```
pipe: atlassian/kubectl-run:3.3.1
```


Answers:
author: Igor Stoyanov
body: [@Sunil Lath](/t5/user/viewprofilepage/user-id/5183701) hi. Thanks for your question.  
Maybe [this article](https://serverfault.com/questions/1065401/azure-pipeline-getting-failed-with-below-failed-to-acquire-a-token-kubernetes-ta) will help you.  

Regards, Igor

comments: author: Sunil Lath
body: Thanks [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492) - this does look promising, will try and get a AKS k8s service account setup and see if that allows us access to deploy via our bitbucket pipelines.

The example is using AzureDevOps but will give it a go via bitbucket, I've seen examples that setup the kubeconfig based on the k8s service account here:

<https://stackoverflow.com/questions/53778272/kubectl-with-custom-kubeconfig-file-for-a-serviceaccount-gives-unauthorized-erro>


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

kubernetes
spam on issue tracker: both as new issues and as comments
Asked by angusyeh:

Hi,

Issues #121-#228 are spam.

<https://bitbucket.org/angusyeh/tim/issues>

I have labelled some of them as spam, but not sure how that helps. Should they be removed/deleted all together? The web page is really slow to go through them one by one.

Recently it's getting worse, now I have spam in the form of comments, coming in. I am worried that it would get worse soon and it would be difficult to deal with.

Can support help me to remove these issues? Thanks

Regards,


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

Thank you for reaching out to Atlassian Community!

I went ahead and marked issues #121-#228 in the repository you shared. Also, to help prevent spam on your issue tracker, we recommend not allowing anonymous users to create issues by navigating to**Repository Settings \> Issue Tracker \>** uncheck **Anonymous users can create issues**.

Thank you, [@angusyeh](/t5/user/viewprofilepage/user-id/2720022) !

Patrik S


Tags: bitbucket-cloud

cloud

spam
Not Receiving bitbucket invitation
Asked by Rozaini:

Hi

I just started using bitbucket, but I am not able to access my colleague bitbucket workspaces. I am not receiving any invitation emails that are supposed to have been sent. I don't understand why it doesn't work, I have received "Welcome to Bitbucket" emails and similar from Atlassian.

My email address is rozaini@whb.com.my

I have checked my spam folder, but it is empty.

regards,

Rozaini


Answers:
author: Syahrul
body: G'day [@Rozaini](/t5/user/viewprofilepage/user-id/5183457), and welcome to the community.

Based on my observations, there was no indication of an issue with sending the invite email. Therefore, I suspect a filter in your mailbox might have filtered the invitation email from your primary mailbox.

That said, I can see that you've successfully accepted an invitation to your coworker's workspace. Could you please confirm whether or not this issue is still occurring on your end?

Cheers,  
Syahrul

comments: author: Rozaini
body: Hi Syahrul,

I receive the invitation the day after, not sure of any issue that make the email delay from receiving on our end.

However, the issue is considered resolved since I already receive the email and view the workspace. Thanks for following up.

Regards,

Rozaini
Request For Garbage Collection
Asked by zachredfern:

Hello,

I have a repository approaching 4GB in space and would like garbage collection performed on it.

This repository also has an upstream that I would like cleaned as well.

The workspace is called "\*\*\*\*\*\*" and the last few characters of the repository in question are "\*\*"

Thanks for your time,

Zach


Answers:
author: Ben
body: G'day Zach!

I've censored all parts of the workspace/repo identifiers just in case given this is a public forum.

I located both the fork repo and the upstream repo based on your description and have executed a gc operation against both of these, the new sizes are as follows:

* **Fork:** 3.4GB \> 301.3MB
* **Upstream:** 2.5GB \> 121.3MB

**NOTE:**Yourself and your colleagues will need to perform a fresh clone of both of those repositories, this will avoid any possibility of pushing back old refs and inflating the size again.

Hope this helps!

Cheers!

- Ben (Bitbucket Cloud Support)h


Tags: atl-rvw

bitbucket-cloud

cloud

garbage-collection

git
Cannot see all projects anymore?
Asked by fezztah:

Hi,

I have three "projects" A + B + C, each containing 50\~100 repositories. I used to log in to the website and I could switch between them, view all the repositories in each project. Now, when I log in I only see one project A on the drop down list. If go direct to a repository in a different project group B using its repository url, then I can suddenly see all repositories in THAT project and no other. The project drop down now just shows B. I can do the same with group C too. This seems wrong and it didn't used to work like this. Is it me, is it a bug, has some workflow changed?

thanks...  
Mark


Answers:
author: Mark C
body: Hi [@fezztah](/t5/user/viewprofilepage/user-id/193086),

After you logged in, could you provide the exact URL where you only see Project A on the dropdown list?  
Additionally, could you also provide a screenshot of that dropdown list masking any sensitive information such as your email etc.?

Regards,  
Mark C


Tags: bitbucket-cloud

cloud