youngmon/atlassian-qna huggingface dataset:
Stopped receiving email notifications
Asked by Kenny Schrock:

I am no longer receiving email notifications for updates/comments in pull requests. I have confirmed that my settings are correct. My coworkers aren't having the same issue. It seems like my email was added to the suppression list.


Answers:
author: Patrik S
body: Hello [@Kenny Schrock](/t5/user/viewprofilepage/user-id/3801532) ,

thank you for reaching out to Community!

I confirmed internally that your email was added to a suppression list which was preventing you from receiving those notifications.

I went ahead and removed it from that list, so you should be receiving new emails going forward. In case you identify the emails are still not being delivered, please let us know.

Thank you, [@Kenny Schrock](/t5/user/viewprofilepage/user-id/3801532) !

Patrik S

comments: author: Kenny Schrock
body: Thanks! They are working now!


author: A Gladys
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) Even I'm facing the same issue. I have stopped receiving email notifications.

comments: author: Patrik S
body: Hello [@A Gladys](/t5/user/viewprofilepage/user-id/5284302)

I checked internally for the email you used to post this comment and it was not in any of our suppression lists, so you should be receiving the emails as usual.

Could you please confirm if the email where you are facing the issue is the same as the one you used to post this question?

Patrik S


Tags: bitbucket-cloud

cloud
A repo is part of a Fishing attack
Asked by boberv:

*** ** * ** ***

*** ** * ** ***

*** ** * ** ***

removed


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

As Perisic says, you're not the first person to report this abuse, but the more reports we send to Atllassian about malicious systems the better!

The best thing to do is report this to Atlassian directly. If you got an email from this system, please forward it to abuse@atlassian.com. There is no need to explain anything in the email, literally click "forward" and "send".

If you got told about the site by other means, then it's best to send an email to the same abuse address, with a minimal description - "bitbucket.org/dsnsgovua is hosting infected files, and this site/person told me to go there" is enough!


author: Nikola Perisic
body: Hello [@boberv](/t5/user/viewprofilepage/user-id/4077922) ,

I saw another post regarding this issue, I'd recommend reporting it to the Atlassian directly.

comments: author: boberv
body: thanks


author: Nikola Perisic
body: Can you mark my answer as accepted as well please? Thanks!


author: boberv
body: I do not find it useful. It is not the answer to my question/request.


Tags: bitbucket-cloud

cloud
?????????????
Asked by ????:

????????????gmail????????????????

??????????????????????????????????????????????????????????????????????????????????????????????

??????????SourceTree?????????????????


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

The email address of the community account you used to make this post is an alias to a Bitbucket Cloud account.

You can view the aliases of the Bitbucket account on this page <https://bitbucket.org/account/settings/email/> if you log in with the account's ++primary email address++ (it is not possible to log in with the alias).

Additionally, there is an Atlassian account with this email address.

What is your goal? Do you want to make this email alias the primary email of the existing Bitbucket Cloud account that it is linked to?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
bitbucket cloud rest api: list all repositories a user has access to
Asked by Rocelito Abano gmail:

hi,

I would like to ask how can I get a list of all repositories a specific user has permissions to.

My goal is, as part of user off-boarding, is to remove all the individual/explicit permission a specific user has in all repositories.

There is [this one](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-users-get), but the user is restricted to the caller calling the API (and owner of the credentials).

There is also [this one](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-users-selected-user-id-get) but I need to specify the repository as well.

My organization has 1000+ repos and I don't want to call bitbucket api 1000+ times just to check if the user has access to all of them.

In the UI (Bitbucket\> workspace settings \> User Directory \> (select a user then click View Access) we can see list of repositories that use has permissions to. Hope there's an equivalent in REST API as well.

Please help.

Thanks in advance!


Answers:
author: Patrik S
body: Hello [@Rocelito Abano gmail](/t5/user/viewprofilepage/user-id/5410876) and welcome to the Community!

In case you are interested in a consolidated list of the repository permissions of users in a workspace (including inherited permissions from projects), I would suggest using the endpoint [List all repository permissions for a workspace](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-permissions-repositories-get).

This endpoint will return an object for each repository permission for all repositories within a workspace.

Permissions returned are effective permissions: the highest level of permission the user has. This does not distinguish between direct and indirect (group) privileges.

Following is an example request to that endpoint filtering by a user whose name contains the word *John* :

```
https://api.bitbucket.org/2.0/workspaces/WORKSPACE/permissions/repositories?q=user.nickname+%7E+%22John%22
```

You can modify that query according to the results you are looking for by using [filtering, sorting and partial results](https://developer.atlassian.com/cloud/bitbucket/rest/intro/#filtering).

Also, if your end goal is to fully revoke access of a user in the workspace (removing the user from any groups and any direct permission to repositories/projects as well), you will find a remove option by navigating to **W** **orkspace Settings** \> **User Directory** \> in the line of the user you want to remove click on the **Tree dot icon** \>**Remove**. This will fully remove the user's access to any content on the workspace.

Thank you, [@Rocelito Abano gmail](/t5/user/viewprofilepage/user-id/5410876) !

Patrik S


Tags: bitbucket-cloud

cloud

rest-api
Succes logged to the Atlassian account but not to the Bitbucket account.
Asked by Liliya Gorobets:

I easily log into my Atlassian account and use Jira.  
When I try to log into Bitbucket, a 2FA requirement pops up.  
The code generated by the Auth app for Bitbucket is not accepted  
(code accepted for Atlassian account)


Answers:
author: Ben
body: Hi [@Liliya Gorobets](/t5/user/viewprofilepage/user-id/5410658)

If you are unable to access your Bitbucket Cloud account due to 2FA being enabled, you will need to follow our guide below to reset your 2FA:

* <https://confluence.atlassian.com/bbkb/how-to-disable-reset-2fa-on-bitbucket-cloud-and-atlassian-account-1236932929.html>

Please do so and let me know how this goes.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Not receiving 2 factor auth confirmation email
Asked by Juan E_ Chemello:

Hi, I have to enable 2FA to access a company repository but after scanning QR code with auth app I don't receive the confirmation email. Tried 2 o 3 times but nothing happens even after 24hs.


Answers:
author: Syahrul
body: G'day, [@Juan E_ Chemello](/t5/user/viewprofilepage/user-id/5137981)

Based on my observation, the email was sent to your mailbox without issues. The email may have been redirected somewhere in your mailbox, such as spam or others, or if you have another filtering folder in your mailbox.

I suggest checking each of the folders available in your mailbox or search the following email details:

```
Email:?notifications-noreply@bitbucket.org
Subject: [Bitbucket] Finish enabling two-step verification
```

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
how to fix error: unable to validate your permissions
Asked by Timothy Smallwood:

when clicking on the "Security" tab, I get the following error

"Something went wrong

We were unable to validate your permissions on this  
Workspace. Wait a few minutes and try again"

Any suggestions ?


Answers:
author: Patrik S
body: Hello [@Timothy Smallwood](/t5/user/viewprofilepage/user-id/5410375) and thank you for reaching out to Community.

The Security tab shown in the left navigation bar when accessing a Bitbucket repository will actually access a third-party integration called Snyk.

Snyk enables developers to find, fix, and monitor vulnerabilities in their open-source dependencies and container images across their Bitbucket Cloud development workflow.

However, since this is an integration with an external application, only admins of the workspace have the required permissions to install the integration. Currently, you are not an admin of the workspace, and this is the reason why you are seeing the permission issue message when trying to access the Security tab.

In case you want to use that feature, you will need to first contact your workspace admin to install the security integration([learn more](https://snyk.co/udski)). Once the integration is installed in the workspace by an Admin, you should be able to access that page.

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

Thank you, [@Timothy Smallwood](/t5/user/viewprofilepage/user-id/5410375) !

Patrik S


author: Timothy Smallwood
body: this error is while I was logged into BitBucket .. the Security tab on that web page


Tags: bitbucket-cloud

cloud
Possible to Decrease Bitbucket Runner Default Memory Consumption
Asked by tonywu:

We currently run 1 EC2 instance and have multiple Bitbucket Docker runners on it. Each Bitbucket runner allocates roughly 500MB of memory even when idle (we see allocation from a java process), and we are at the point that we can't no longer put additional runners on this EC2 instance even though most runners are idle most of the time.

Is it possible to reduce the default memory allocation of runners when they are idle and doing nothing?

Thanks.


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

I believe it's impossible to decrease the current runner's default memory consumption while in idle mode. However, if you want to see this feature, please let me know so I can create a feature request on your behalf.

With that being said, since you mentioned having multiple runners on a single instance, I thought of something we recently released that will allow you to upscale and descale runners easily.

[Automatically scale runners in Bitbucket Pipelines](https://bitbucket.org/blog/runners-autoscaler)

This feature should allow you to better manage your instance resources and descale the runner whenever you don't need them etc.

For more information, please check our documentation at: [Autoscaler for Runners on Kubernetes](https://support.atlassian.com/bitbucket-cloud/docs/autoscaler-for-runners-on-kubernetes/)

Regards,  
Syahrul

comments: author: tonywu
body: Hi Syahrul,

Thanks for the information, I'll look into it. We are not currently running Kubernetes, but still good information even if not applicable to us.

If you wouldn't mind, I think a feature request for idle memory reservation would be very much appreciated as well.


author: Syahrul
body: Hi [@tonywu](/t5/user/viewprofilepage/user-id/4860501)

Noted! Please check the following feature request and make sure to **Vote** and **Watch** them so that you'll received an update if we have any update in the future.

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

Cheers,  
Syahrul


Tags: bitbucket-runners

cloud
Using diffstat I get back 404 in bitbucket
Asked by fernando.biagetti:

Good morning, I am having a very strange error, because when using the api <https://api.bitbucket.org/2.0/repositories/${workspace}/${this.repoSlug}/pullrequests/${pullRequestsId}/diffstat> in my local in a library works correctly and returns me that I have deleted lines so you can not merge the pull request. Now in bitbucket when running the same script to check for deleted lines that api I mentioned above returns 404 with the same credentials, same pull request id and same repository.


Answers:
author: Patrik S
body: Hello [@fernando_biagetti](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5409758) and welcome to the Community!

The error 404 usually indicates that the URL is incorrect or that the credentials you are using don't have access to a given resource.

I would suggest trying to test doing a request to that endpoint without using the library, but calling it directly using **curl**, as in the following example :

```
curl -X GET -v -u USERNAME:APP_PASSWORD https://api.bitbucket.org/2.0/repositories/{workspace}/{repository}/pullrequests/{Pull request number}/diffstat
```

You can test this request in your local machine, and once it works locally, include the same command in your pipeline using the same credentials, and verify if the error persists.

If the curl command succeeds on the pipeline as well, it may be the case that the library is configured to use the wrong set of credentials.

Thank you, [@fernando_biagetti](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5409758) !

Patrik S


author: fernando.biagetti
body: \<redacted\> The strange thing is that it only happens in the bitbucket pipe, in my pc this error does not happen.


Tags: bitbucket-cloud

cloud

diff
Recover deleted repository
Asked by tomboxfan:

Hi, everyone  
My account was misused and my code repository was deleted, and native repository was also removed, could you help me recovery it, very Important to me. Paid for help


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

I can see in our system that the repo you mentioned has been restored. You should be able to find it listed in your workspace's repos. The repo name includes the date it was deleted, but this is something you can change from **Repository settings**.

Please feel free to let me know if you can access it now.

Just a heads up, I removed the repo name from your post to protect your privacy.

Kind regards,  
Theodora


author: tomboxfan
body: my repo name is: \<repo_name_edited\>. Please help me. Thank you!!!!


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

There is unlikely to be anything you can do, unless you took a backup before the person you shared your account with deleted it.

Do you have any copies of the content anywhere? I have a habit of coding on different computers, so I usually have 2-3 copies of my repositories on local machines. If you have that, your Bitbucket repository data is not too hard to recreate and import into.

comments: author: tomboxfan
body: Thank you very much for your reply!

Unfortunately, I don't have. I've searched within the community, saying the repo can be restored by Atlassian support team within 7 days of deletion.

That's probably my last hope. Crying.
Not receiving email to complete 2FA email verification process for Bitbucket
Asked by Kalpesh Shah:

![MFA bitbucket.png](https://community.atlassian.com/t5/image/serverpage/image-id/301406i0A62CEAA6DDCF7B1/image-size/large?v=v2&px=999 "MFA bitbucket.png")

Though, it (Ref. snap) showing you will receive mail, it is not receiving. I attempted 3 time entire process, but failed. Kindly help

Regards,

Redacted


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

Based on my observation, the email was sent to your mailbox without issues. The email may have been redirected somewhere in your mailbox, such as spam or others, or if you have another filtering folder in your mailbox.

I suggest checking each of the folders available in your mailbox or search the following email details:

```
Email:?notifications-noreply@bitbucket.org
Subject: [Bitbucket] Finish enabling two-step verification
```

Regards,  
Syahrul

comments: author: Kalpesh Shah
body: Thanks, it was redirected to one of the filtering folder.


Tags: bitbucket-cloud

cloud
Bitbucket extension in VSCode
Asked by marcusobrien:

Is the only way to commit changes to a Bitbucket repo before pushing them from the VS code IDE, to use the in built commit feature in VS Code or the VS code Terminal/command line or can I setup the Bitbucket extension to do it also ?


Answers:
author: Theodora Boudale
body: Hi Marcus,

It is not possible to commit with Atlassian for VS Code extension. You can check the documentation below about what functionalities are available:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-the-atlassian-for-vs-code-extension/>

If you want to commit from VS Code, you will need to use VS Code's built-in commit feature or the integrated terminal.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Atlassian Community email notification - DMARC failure/SPAM
Asked by Saxea _Flowie_:

Hi,

Sorry, I couldn't find a proper topic for this, so posting here.

Later last year I noticed the **email notifications** from Atlassian community started to go to **SPAM** and in some cases not even being received.

I had a look today, and noticed that **DMARC** is **failing:**

```
Authentication-Results: mx.google.com;
dkim=pass header.i=@us.khoros-mail.com header.s=s1 header.b=U7tAj6cI;
dkim=pass header.i=@sendgrid.info header.s=smtpapi header.b=ew6X9hR5;
spf=pass (google.com: domain of bounces+13947486-38cc-xxxxxxxxxx.xxxxx=gmail.com@em9032.us.khoros-mail.com designates 149.72.223.204 as permitted sender) smtp.mailfrom="bounces+13947486-38cc-xxxxxxxxxx.xxxxx=gmail.com@em9032.us.khoros-mail.com";
dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=em.atlassian.com
```

<br />

It would be nice to have this fixed, so we can start getting notifications again.

Thanks and regards,  
Renato


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

Yes, this is a known fault with Community - I get several hundred a day, and noticed suddenly about 50% going into spam.

I was able to turn off my email provider's spam filtering, but that's not ideal - I do get a couple of other things going to my community account, so I'm getting a few more spams get through. Of course, not everyone can change their provider's spam filter settings either.

The Community team are aware and they're looking into it, but there is no easy fix at the moment. More detail in the [announcement](https://community.atlassian.com/t5/Announcement-articles/Community-emails-marked-as-spam/ba-p/2560840) about it. I would watch that for updates.


Tags: bitbucket-cloud

cloud
How do I get list of changed files from one commit to another commit in bitbucket api
Asked by Sri Harsha Gangavelli:

Hi,

I need to get list of file changes from one commit sha to another commit sha or a branch. I found similar API but it will work only for two specific commits(prev,next) for compare **diffstat.**I can have n no. of commits in between from commit and to commit, please let me know if any API gives all changes at one go instead of triggering the same API with each commit id every time.

Attached screenshot for reference.

Below is the Azure DevOps API which provides similar case. For n no. of commits we can give from and to and get all the changes files.

[https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repo_id}/diffs/commits?baseVersion={from_commit_id}\&baseVersionType=commit\&targetVersion={branch_name}\&targetVersionType=branch\&api-version=7.1-preview.1\&%24top={max_page_size}](https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repo_id}/diffs/commits?baseVersion={from_commit_id}&baseVersionType=commit&targetVersion={branch_name}&targetVersionType=branch&api-version=7.1-preview.1&%24top={max_page_size})

![Screenshot 2024-01-19 064210.png](https://community.atlassian.com/t5/image/serverpage/image-id/301379iC0CDA9119CD7A3A7/image-size/large?v=v2&px=999 "Screenshot 2024-01-19 064210.png")


Answers:
author: Mark C
body: Hi [@Sri Harsha Gangavelli](/t5/user/viewprofilepage/user-id/5409230),

Welcome to the community.

I understand that you're using the **/diffstat** API endpoint to view file changes from one commit to another, however, you'd like to have the result all at once.  
Depending on the number of data, you can try to increase the number of API data resulting in one API call up to 100. - <https://developer.atlassian.com/cloud/bitbucket/rest/intro/#pagination>

However, if it goes beyond 100, unfortunately, you'll have to run multiple API calls to get all the results.

Let me know if you have any further questions.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Unable to pull image: Get \"https://k8s-docker.packages.atlassian.com/v2/\": net/http: TLS handshake
Asked by Alexei.Yugov:

?Hello. I'm experiencing an issue with my Linux/Docker runner. Occasionally, for the same commit, I encounter the error "Unable to pull image: Get \\"[https://k8s-docker.packages.atlassian.com/v2/\\](https://k8s-docker.packages.atlassian.com/v2/\)": net/http: TLS handshake timeout", or "Unable to pull image: Head \\"[https://docker-public.packages.atlassian.com/v2/sox/atlassian/bitbucket-pipelines-dvcs-tools/manifests/prod-stable\\](https://docker-public.packages.atlassian.com/v2/sox/atlassian/bitbucket-pipelines-dvcs-tools/manifests/prod-stable\)": Get \\"[https://docker-public.packages.atlassian.com/api/docker/docker-public/v2/token?scope=repository%3Asox%2Fatlassian%2Fbitbucket-pipelines-dvcs-tools%3Apull\&service=docker-public.packages.atlassian.com\\](https://docker-public.packages.atlassian.com/api/docker/docker-public/v2/token?scope=repository%3Asox%2Fatlassian%2Fbitbucket-pipelines-dvcs-tools%3Apull&service=docker-public.packages.atlassian.com\)": net/http: TLS handshake timeout"  
But sometimes a build for the same commit is passed successfully!  
The behavior has been observed since January 2023. Is there a way to extend the TLS handshake timeout limit?"


Answers:
author: Syahrul
body: G'daym [@Alexei.Yugov](/t5/user/viewprofilepage/user-id/5040403)

The issue might be related to your local network rather than the runner. So, merely extending the timeout limit may not offer a permanent solution.

Since this issue is related to your network, I can offer some potential avenues for investigation that might help identify the cause of the error:

* Investigate whether recent modifications to the runner's host setting or network could have triggered this error.
* Examine if Docker is setup to utilize any proxy (Change Docker Desktop settings). Ensure the proxy is functioning correctly.
* If a firewall protects the runner's host, verify that "\***.packages.atlassian.com"** is not being obstructed by any proxy or firewall within the network.
* Attempt to launch the runner on an alternate machine (where the local pull operates) and determine if the build is successful.
* Consider upgrading Docker to the most recent version if it's outdated.

Let me know how it goes.

Regards,  
Syahrul


Tags: bitbucket-pipelines

cloud