youngmon/atlassian-qna huggingface dataset:
Webhook error (Atlantis Integration)
Asked by Mayank Gupta:

An Atlantis Server has been setup on EC2 instance and the corresponding URL has been mapped to a DNS. The same URL has been put into the Webhook configuration on Bitbucket and some triggers have been configured. But whenever the events (say: pullrequest) triggers the Atlantis Server running on EC2 instance, it gives -: HTTP 403 "Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect." :- error.

The end requirement for the POC is to Integrate Atlantis with Bitbucket to initiate Terraform plan on pull request.


Answers:
author: Patrik S
body: Hello [@Mayank Gupta](/t5/user/viewprofilepage/user-id/4954157) ,

Welcome to Atlassian Community!

The HTTP 403 error you are receiving means there was some issue with the authentication between bitbucket and your destination server. You have either not provided the credentials in your webhook URL or the credentials were not correct.

Currently in Bitbucket Cloud webooks only support HTTPS basic authentication, and you need to specify the credentials as part of the webhook URL, as the below example :

```
https://<username of the destination>:<password of the destination>@<URL of the destination> 
```

I'd like to point out that e-mail addresses are not currently supported to be used as the username in the webhook's URL, and this is being tracked in the bug ticket [BCLOUD-14773](https://jira.atlassian.com/browse/BCLOUD-14773) .

Additionally, I'd also like to share that we already have a feature request to include the possibility of adding a secret as part of the webhook configuration to be an alternative method of authentication. You can take a look at that feature request in the following link :

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

You can feel free to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Mayank Gupta](/t5/user/viewprofilepage/user-id/4954157) .

Kind regards,

Patrik S


Tags: aws

bitbucket-cloud

cloud
I'm not receiving verification emails from Atlassian
Asked by Gihan Perera:

I'm trying to create a new account and I don't get any verification email from Atlassian.

Even my organization has sent me an invitation request also I'm not getting any email


Answers:
author: Andy Heinzer
body: Hi Gihan,

I see that you had another ticket over in <https://getsupport.atlassian.com/servicedesk/customer/portal/35/CA-1833879> where you disclosed your email address. I was able to remove this from our suppression list.

You should not be able to receive new notifications from our Cloud services.

Andy
Unable to login with my org Google Email account
Asked by Charishma C:

Hello team,

I'm trying login to my Bitbucket account with my Org's email ID - [charishma.chandrakumar@aptos.com](mailto:charishma.chandrakumar@aptos.com) (Organization - Aptos) but I get the below error.  
Also I did not receive any instructions to my Org email ID as mentioned in the error message.  
I tried to follow the instructions in <https://support.atlassian.com/user-management/docs/deactivate-a-managed-account/> to reactivate my account, but the site [admin.atlassian.com](http://admin.atlassian.com/) redirects me back to the login page I'm facing issues with.  
I'm told that this is not something my Organization manages, and hence I'm reaching out to you  
Request you to please help resolve this issue and reactivate my account.  
Please let me know if I should be reaching out to a different team / individual or if you need any further information from my side.  
Thanks!  
![bitbucket error.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/200040iFD2F63EBB376A5A6/image-size/large?v=v2&px=999 "bitbucket error.JPG")


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

welcome to the Atlassian community!

An Org Admin should reactive your account and verify that you have grants to access that repo

<https://confluence.atlassian.com/cloudkb/enabling-a-deactivated-account-to-provide-site-access-1005792657.html>

Hope this helps,

Fabio

comments: author: Charishma C
body: Thanks for your response [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) :)

I checked internally, and I'm told that at this point there is no Org structure created, and hence there is no managed accounts directory available.

When my 'Admin' tries to login to [https://admin.atlassian.com](https://admin.atlassian.com/) he's asked to create an organization afresh.

Even though we login with our org email ID's we create the accounts on our own. Our Org 'Admin' user only manages the Access request Directory (in which my account is not available, and is not part of the list visible to my Org 'Admin')

Is there a way my Account can be 'unlocked' / reactivated from your / Atlassian end?


Tags: bitbucket-cloud

cloud
Problem Error waiting for service to become stable: Waiter ServicesStable failed: Max attempts exc
Asked by Ruben Baeza Colin:

Hi

I have this problem in the last step of pipeline (atlassian/aws-ecs-deploy:1.6.1):

**`? Error waiting for service to become stable: Waiter ServicesStable failed: Max attempts exceeded`**  
And in the aws ecs events I see this:  
**service any-service** **was unable to place a task. Reason: You've reached the limit on the number of tasks you can run concurrently.**  
Can you help me?


Answers:
author: Patrik S
body: Hello [@Ruben Baeza Colin](/t5/user/viewprofilepage/user-id/4953641) ,

Welcome to Atlassian Community!

From the error you are receiving in aws ecs event, you're likely exceeding the AWS ECS service quotas of your account :

* <https://docs.amazonaws.cn/en_us/AmazonECS/latest/developerguide/service-quotas.html>

Since you are exceeding the limits, AWS is not being able to complete your deployment. I did some research and found this StackOverflow thread that suggests temporarily launching a basic EC2 instance in the region your are using, as it will enable you to run multiple tasks :

* <https://stackoverflow.com/a/70011605>

If using that workaround does not fix the issue, I would suggest you to [contact AWS support](https://aws.amazon.com/contact-us/), as this is a limitation on AWS side not in the Bitbucket pipelines itself. AWS team will be able to further check your AWS account and potentially increase the limits.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Ruben Baeza Colin](/t5/user/viewprofilepage/user-id/4953641)

Kind regards,

Patrik S


Tags: atl-gruland

aws

bitbucket-cloud

cloud
Recovering mercurial repositories
Asked by yilmaza:

Hi;

I had a number of Mercurial repositories, which I now need access. Is there a way to restore them?


Answers:
author: Patrik S
body: Hi everyone,

Atlassian made a decision to move away from maintaining and supporting Mercurial repositories in 2019.

This was announced in community:

* <https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380>

and on our blog:

* <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>

Bitbucket Cloud Support team is no longer able to restore those repositories.

If you are looking for a Mercurial repository that was public, all the public repos were archived by Software Heritage:

* <https://bitbucket-archive.softwareheritage.org/>

We will not be able to meet any further requests for recovery of private HG repositories and users will need to recover those from local copies only.

Kind regards,  
Patrik S


Tags: bitbucket-cloud

cloud
Suggestions for Software Development Analytics Tools
Asked by Ian Huang:

Hello,

Not sure if this question was asked before and I apologize if I repeat the same as I don't seem to find a discussion thread in the archive in Atlassian Community.

I'm looking for some recommendations for software development analytics tools that can provide data-driven engineering practices and insights for a growing Agile team. We are using Bitbucket, JIRA and Confluence in Atlassian Cloud. A couple of products or add-ons were mentioned, such as Waydev, Pluralsights Flow, Awesome Graph for Bitbucket etc, but I would like to know if you have recommendation, experience and insight for a well-rounded analytical product that can help Agile software development team move toward data-driven engineering journey.

Thanks in advance!

Ian


Answers:
author: Patrik S
body: Hello [@Ian Huang](/t5/user/viewprofilepage/user-id/4581778) ,

Thank you for reaching out to Atlassian Community.

Unfortunately, at this moment, Bitbucket Cloud does not offer a native analytics solution that you can use to gather statistics about your workspace and repositories. We have a feature request to implement that, though :

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

I would recommend you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

While this feature is not implemented, in case you want to leverage some analytics in your repositories, I would suggest exploring the apps available in our [Bitbucket Cloud Marketplace](https://marketplace.atlassian.com/search?hosting=cloud&product=bitbucket), such as [Awesome Graphs For Bitbucket](https://marketplace.atlassian.com/apps/1210934/awesome-graphs-for-bitbucket?tab=overview&hosting=cloud) and [Team Performance Summary.](https://marketplace.atlassian.com/apps/1225369/team-performance-summary?hosting=cloud&tab=overview)

Do let us know in case you have any further questions.

Thank you, [@Ian Huang](/t5/user/viewprofilepage/user-id/4581778) .

Kind regards,

Patrik S

comments: author: Ian Huang
body: Thanks for the reply, Patrik. It seems that the mentioned feature request might deliver some of useful insights, but it doesn't seem to be complete.

Since then, I googled some and found two products seem to be interesting: Waydev and Pluralsight Flow. Especially, it seems Waydev is providing some interesting data and dashboards for different audience (executive, engineering managers, project leaders, software engineers) and can help grow proactive engineering management journey.

From data-driven engineering perspectives, it would have been a very useful product if natively supported within Bitbucket. Regarding those two mentioned 3rd party apps in Bitbucket Cloud Marketplace, it doesn't seem there is a wide adoption based on the reviews there.


Tags: analytics

bitbucket-cloud

cloud
Restrict origin of users' SSH keys
Asked by Nicholas Williams:

We run Bitbucket Server (will soon "switch" to Bitbucket Data Center, as Server licenses are going away). Up until now, we have not enabled the bundled Apache Mina SSHD server to provide SSH access to Git repositories, but we want to do that. However, due to internal security restrictions, we cannot allow users to upload any arbitrary SSH key to their account. Rather, all the SSH keys we use within our organization are issued/signed by a central authority. So, we need to restrict the SSH keys that users upload to their accounts so that they are from this trusted source and not something they have arbitrarily generated on this machine.

Is it possible, in Bitbucket, to in any way restrict the keys that users upload? If not, we would not be able to use the SSH feature.

So, at the time I posted this, I had not been given all the information about what exactly we needed, so I did not ask the correct question...

Our organization-provided key pairs do not contain any kind of special data that identifies them as coming from our organization. So, what we actually need is a way to enable SSH key access for all users but permit only Bitbucket administrators the ability to add keys for the users (in other words, users would not be able to upload their own SSH keys). The Bitbucket administrators would be responsible for uploading the organization-provided public keys to Bitbucket.

Is this possible?


Answers:
author: Nicholas Williams
body: So, at the time I posted this, I had not been given all the information about what exactly we needed, so I did not ask the correct question...

Our organization-provided key pairs do not contain any kind of special data that identifies them as coming from our organization. So, what we actually need is a way to enable SSH key access for all users but permit only Bitbucket administrators the ability to add keys for the users (in other words, users would not be able to upload their own SSH keys). The Bitbucket administrators would be responsible for uploading the organization-provided public keys to Bitbucket.

Is this possible?


Tags: bitbucket-server

server

ssh
No email notifications
Asked by gipert:

Hi, I'm not receiving any email notification from watched content, and my settings look like this:

![Screen Capture_select-area_20220531165259.png](https://community.atlassian.com/t5/image/serverpage/image-id/199962i7D406E4163D8C185/image-size/large?v=v2&px=999 "Screen Capture_select-area_20220531165259.png")

I checked the spam folder. I suspect there is something wrong on your side.


Answers:
author: gipert
body: Hi, yes I got it:![Screen Capture_select-area_20220602110031.png](https://community.atlassian.com/t5/image/serverpage/image-id/200267i0E9467144D726A88/image-size/large?v=v2&px=999 "Screen Capture_select-area_20220602110031.png")


author: Mark C
body: Hi [@gipert](/t5/user/viewprofilepage/user-id/4952932)

Welcome to the community.

I've checked your email in our email suppression list, however, I didn't see your email listed there.

Would it be possible for you to try to request a reset password email through this link? - <https://id.atlassian.com/login/resetpassword>  
You don't have to reset your password, let's just see if you're able to receive the reset password email notification.

Thanks and let me know how it goes.

Regards,  
Mark C

comments: author: gipert
body: Sorry, I posted my reply as an answer...


Tags: bitbucket-cloud

cloud

notification
how do i install php on bitbucket
Asked by Coolvibes Reloaded:

hi all i would like to know how i enable/install php onto bitbucket????


Answers:
author: Nic Brough -Adaptavist-
body: You don't. Bitbucket is not a web server or a web application server, it is a source control application. None of it is written in php, so there's no need for it

Could you explain maybe why you think you want to add php support?

comments: author: Coolvibes Reloaded
body: i'm trying to get this on-air script for my website

it's an on-air script were the djs image shows up and its in php


author: Nic Brough -Adaptavist-
body: Why are you trying to run a website in Bitbucket?


author: Coolvibes Reloaded
body: Ray was the one that said to run a website in bitbucket


author: Nic Brough -Adaptavist-
body: I have no idea who Ray is (I know a few people called Ray, one runs a pub, one is a close friend's mother, one works in a local pharmacy. None of them know more than I do about Bitbucket)

Could you please explain

1) What you are trying to achieve (not the tech side, just tell us what the end result should be)

2) Why you think "installing php in bitbucket" will help with point 1.


author: Coolvibes Reloaded
body: this here <https://forums.broadcastingworld.com/topic/4031-useful-now-on-air-script/>

is a php script you'll see a post that starts \<php

this is what i'm trying to achieve onto my website


author: Nic Brough -Adaptavist-
body: Again, Why are you trying to run a website in Bitbucket?


author: Coolvibes Reloaded
body: Because I absolutely hate paying for a server that's why I'm using bitbucket plus it's easy to upload via cmd


author: Nic Brough -Adaptavist-
body: That's basically a terrible idea. The software is for doing source control, it is not a web server.


Tags: php
Unable to login Bitbucket - We couldn?t log you in
Asked by Lam Nguyen:

Hi,  

I am getting following error when login to bit bucket account.

"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."

Thanks,

Lam


Answers:
author: Theodora Boudale
body: Hi Lam,

I replied to your other post yesterday, I just wanted to leave a note that the issue was resolved here: <https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-login-Bitbucket-We-couldn-t-log-you-in/qaq-p/2042402#M82344>

Kind regards,  
Theodora

comments: author: Lam Nguyen
body: Thanks [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

It works fine now.

Cheers


Tags: bitbucket-cloud

cloud
Is it possible to skip a push if image already exists in ECR?
Asked by Tom M?ller:

I have a pipe which pushes to Amazon ECR. The repository is immutable. Can I configure the plugin, so that the pipeline skips pushing the image, if it already exists in ECR?


Answers:
author: Mark C
body: Hi [@Tom M?ller](/t5/user/viewprofilepage/user-id/4952540)

Welcome to the community.

Unfortunately, it's not possible to skip the entire build for validating if an ECR image exists.  
However, I do believe it would be possible if you could validate if an ECR image exists first then do a signal through an environment variable and lastly, do an if/else against the result.

Here's an example YAML configuration:

```
pipelines:  default:    - step:        name: Test        script:          - export ECR_PUSH=0          - echo "Validation here" # Validate if an ECR exists here then change the ECR_PUSH to 1 if it exists          - if [ $ECR_PUSH = 1 ]; then echo "Proceed"; else exit 0; fi          - pipe: some/pipes_here:1.0.1            variables:              VAR_TEST: "TEST"
```

Hope it helps and let me know if you have further questions that I can help with.

Regards,  
Mark C


Tags: aws

bitbucket-cloud

cloud
How Can I notify the developer who commits and build his code in case of success/faile
Asked by yosser_mahfoudh:

can anyone please tell me how to configure for every build success/failure. Need to send to the one who commits his code that the build failed or successeded ?


Answers:
author: lissyaka
body: [@yosser_mahfoudh](/t5/user/viewprofilepage/user-id/3803216)hi.  

Also you can check [this answer](https://community.atlassian.com/t5/Bitbucket-questions/How-can-I-trigger-email-notification-on-Pipeline-build-failure/qaq-p/1262863) where pipe [email-notify](https://bitbucket.org/atlassian/email-notify/src/master/) used.  

Cheers


author: Mark C
body: Hi [@yosser_mahfoudh](/t5/user/viewprofilepage/user-id/3803216)

Thank you for reaching out to the community.

If you're using [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines), you can use the YAML configuration called [After scripts](https://bitbucket.org/blog/after-scripts-now-available-for-bitbucket-pipelines).

After scripts, allows you to run scripts at the end of a step execution, regardless of whether the step has failed or succeeded.

Here's a sample YAML configuration:

```
pipelines:  branches:    master:      - step:          name: Test          script:            - #some scripts here          after-script:            - ./send_notifcation.sh $BITBUCKET_EXIT_CODE
```

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

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
I stopped receiving bitbucket email notifications
Asked by Rod:

Hello,

I've stopped receiving any notifications from Bitbucket (not pull requests or any mentions). Could you please check this up?

Thanks

Rod


Answers:
author: Theodora Boudale
body: Hi Rod,

Your email was in one of our suppression lists with the error message

```
550: 550-5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces.
```

This occurs when we attempt to send an email to an email address and receive a hard bounce response from the recipient's mail server, indicating that the email doesn't exist or some other permanent failure.

I went ahead and removed your email from the suppression list.

Could you please keep an eye on your inbox and let me know if you can receive notifications now?

Kind regards,  
Theodora

comments: author: Rod
body: Yes, now i can receive notifications, thank you!


Tags: bitbucket-cloud

cloud
How to download a file from bitbucket downloads?
Asked by Joel Stephen:

I need to download the file from the bitbucket repository download. I have used the wget and curl command the file is downloading but it is downloaded in the wrong format and when I untar the file it shows like "tar: This does not look like a tar archive"


Answers:
author: Theodora Boudale
body: Hi Joel,

1. Is this a file that was uploaded manually by yourself or one of your team members in the **Downloads** section of the repo?  
   Or is it one of the downloaded files created by Bitbucket, e.g. "Download repository" or the download options for **Tags** and **Branches** on that page?  

2. What is the extension of that file?  

3. If you download this file from the **Downloads** page of our website, do you get the same error when you try to untar it? I'm just trying to understand if the issue occurs only when the file is downloaded with curl and wget, or if it occurs when you manually download it from the website as well.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How do I set the embedded git options for SourceTree Windows?
Asked by jwatson_utah_edu:

I need to increase http.postBuffer size.


Answers:
author: Johannes Kilian
body: This is a standard git setting. It's not directly accessible via SourceTree. Anyway you can set it as any other git setting via command line:

```
git config http.postBuffer (VALUE)
```

See: <https://git-scm.com/docs/git-config>
Sourcetree started tracking thumbs.db
Asked by Vipul Kapoor:

I don't know what I did or If I did it but Sourcetree has suddenly started tracking thumbs.db files in all my repositories. I don't know if Windows was not generating thumbs.db previously or sourcetree was never tracking them, but this time, they're everywhere.

It's not possible to remove all of them individually because every folder has it and gitignore will only work for repositories created in the future. What do I do about the old repositories?


Answers:
author: thinsoldier
body: How many commits back do you have to go to find a commit state that does not contain a thumbs.db file?

You could make a new branch at that commit, then cherry pick the next commit (which would be the one where you first accidentally started tracking the thumbs.db file), then delete thumbs.db and commit but choose to amend the previous commit, all commits after that (unless the thumbs.db file changed in those also) should be able to cleanly cherry pick over to your new branch. Then delete the old branch and rename the new branch with the name of the old branch.


author: Seth
body: .gitignore works on current and future commits in any repository.

However, .gitignore only affects files that aren't already being tracked.

Definitely add thumbs.db to your .gitignore, but you'll also need to delete all the thumbs.db files and commit that. You might try this solution (make sure to back up the repo first just in case): <https://confidentialfiles.wordpress.com/2010/06/02/a-quick-way-to-delete-all-files-with-a-certain-name-pattern-in-windows/>

After you've committed the deletion AND added thumbs.db to your gitignore, the thumbs.db files should no longer show up in SourceTree, even if Windows re-creates them.


Tags: git-ignore

windows