youngmon/atlassian-qna huggingface dataset:
Unable to view repositories
Asked by deepaksharma01:

I logged in to bitbucket online after several months and I can not see any of the repositories. I can still push to these repos through XCode but for some reason I can't view the repos. What has changed?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Atlassian has made a change to how Bitbucket cloud loads your first page. The first page load no longer links to your personal workspace. Now the last shared workspace you visited loads by default. Click on your avatar top right to switch between workspaces or see a list of all workspaces, including personal ones.

Hope you find your repos that way.


author: Kesab Nandi
body: Hi,  

If it was your free account, you already should have received email on the deletion of your repo after one year when you created it. If it is a paid account, you can ask for support.


Tags: bitbucket-cloud

cloud
Workspace not accessible
Asked by Beulac:

My workspace is not accessible (can't view it) in Bitbucket anymore. It still does exists, because when I try create a new workspace with same name, the system gives an error that it already exists.


Answers:
author: Ben
body: G'day!

We recently changed the way that workspaces are shown (it is now a single workspace view rather than an overview), so you may not be seeing your workspace when you log in.

Try clicking your Avatar in the top-right, then select **"All workspaces"** and see if your intended workspace shows here - I can see that your account has access to a team workspace :)

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Beulac
body: Thanks.

The workspace that has disappeared is \*\*\*\*\*\*\*\*\*. In the meantime I've created a new workspace \*\*\*\*\*\*\*\*\*.

When I select **All Workspaces**only \*\*\*\*\*\*\*\*\* appear.


author: Ben
body: Hi [@Beulac](/t5/user/viewprofilepage/user-id/5308988)

I have edited your reply as this is a public forum and it contains identifying information about a workspace.

I have searched that workspace you mentioned and can see that it does exist, but the email you have logged this community post using differs from the email that is present as a member on that workspace. Notably, the domain name is different.

Unfortunately, as per our security policies concerning the protection of user data - I cannot reveal more information than this as you have not logged this community post using that email address - therefore, we cannot verify ownership.

If you are unsure of what this email address may be, I would suggest reviewing your existing email addresses that you may have access to/used in the past and also checking your git config locally (***git config --list command***) as this may potentially contain username/email information.

What has likely happened is that you have attempted to log in to your Bitbucket Cloud workspace using what is called an email alias - more details can be found here:

* [Email address transferred to a new account](https://confluence.atlassian.com/bbkb/email-address-transferred-to-a-new-account-1188411865.html?)

You will need to login to Bitbucket Cloud using that other email address to access the workspace that you have mentioned.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Webhook MS Teams Error 400
Asked by Revan Hernandy:

Hello,

We have MS Teams incoming webhook for changes in repo, now we're unable send with error code 400 and summary is  
`Summary or Text is required.`


Answers:
author: Move Work Forward
body: Hi,

Thanks for asking [@Revan Hernandy](/t5/user/viewprofilepage/user-id/4544106)

Short answer: the way you send the notification to Microsoft Teams is incorrect. Your JSON payload does not contain required fields. If you provide more details how you do this - I can help further.

Long answer: you need to use a specific app, like [Advanced Microsoft Teams Bitbucket Connector](https://marketplace.atlassian.com/apps/1216365/advanced-microsoft-teams-bitbucket-connector?hosting=cloud&tab=overview), that transforms Bitbucket webhook data into the specific Microsoft Teams message.

Please let me know if you got further questions.

Regards,  
Leo

comments: author: Revan Hernandy
body: Hi Leo,

Appreciate the feedback. Actually, it worked like a charm previously, we are getting the hook into MS Teams. We don't need another connector, only use the native BB Cloud webhook


author: Move Work Forward
body: Probably, you generated an Incoming Webhook URL on the Microsoft Teams side which does not understand the Bitbucket. You may need to use a specific app on the Microsoft Teams side.

How do you generate the URL on the Microsoft Teams side?


author: Revan Hernandy
body: I'm using Incoming Webhook for Teams


author: JP Roussel
body: How did you get rid of the 400 error?


author: Hui Shan Lim
body: [@Revan Hernandy](/t5/user/viewprofilepage/user-id/4544106), could you share how did you make it without another connector?

I bump into the same issue with bitbucket cloud.


Tags: bitbucket-cloud

cloud
JWT Token generated always results in 401 Unauthenticated
Asked by nithin bodanapu:

I have created a developer app and set the authentication to JWT as seen below.

{  
"key": "com.\<product_name\>",  
"name": "\<Product Name\>",  
"description": "Product Desctiption....",  
"vendor": {  
"name": "Slik"  
},  
"baseUrl": baseUrl,  
"lifecycle": {  
"installed": f"{baseUrl}/installed",  
"uninstalled": f"{baseUrl}/uninstalled"  
},  
"authentication": {  
"type": "JWT"  
},  
"scopes": \["webhook", "repository"\],  
"modules": {  
"webhooks": \[  
{  
"event": "repo:push",  
"url": "/webhook_listener"  
}  
\]  
}  
}

When I create the app, I get a client_id and client_secret and once I connect the app to a workspace, I get the following info

> key: \<Same as Above\>  
> clientKey:  
> ari:cloud:bitbucket::app/\<Workspace UUID\>/\<key (same as above)\>  
> publicKey: \<Public Key\>  
> sharedSecret: \<client_secret\>

While trying to generate the JWT Token I am using the python library atlassian_jwt as follows:

> import atlassian_jwt  
> token = atlassian_jwt.encode_token(http_method="GET", url="<https://api.bitbucket.org/2.0/repositories/>\<workspace name\>/\<repo name\>/diff/96c7b8e", clientKey=\<clientKey that was generated above\>, sharedSecret="\<Shared Secret from above\>")

The token I get here, when used to make the call to the URL "<https://api.bitbucket.org/2.0/repositories/>\<workspace name\>/\<repo name\>/diff/96c7b8e" results in a 401 unauthorised error.

Kindly let me know if I there is a mistake of some kind here which is causing this problem


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

The Bitbucket Cloud API documentation has a section containing instructions on how to exchange the JWT connect token for an OAuth access token that can then be used to make requests to Bitbucket Cloud API :

* [Bitbucket Cloud JWT Grant (urn:bitbucket:oauth2:jwt)](https://developer.atlassian.com/cloud/bitbucket/rest/intro/#4--bitbucket-cloud-jwt-grant--urn-bitbucket-oauth2-jwt-)

If after following those instructions you are still facing issues with the authentication, since this is more of an app development question, as you are using a developer app to authenticate, I would suggest reaching out to our community dedicated to developers:

* <https://community.developer.atlassian.com/>

as they will have more expertise on this topic.

Thank you, [@nithin bodanapu](/t5/user/viewprofilepage/user-id/5308723) !

Patrik S


Tags: bitbucket-cloud

cloud
The non-default group "Developers" gets permission for any repository
Asked by ymyung:

Hi,

I have been playing with the groups and their permissions, and I found unexpected behaviours as below:

First, after I created a new group, "group_A", and set it as a default, new members get the group permission of "Developers", not "group_A" automatically.

Second, if a user, who's a member of "group_A (default)" and "group_B" but "Developers", and creates a repository, its repository gives permissions to the group of "group_A" and "Developers" but "group_B".

Does anyone face similar situations like this?

Best,

Yoochan


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

From your description, I suspect that the "**Automatically assign new repository permissions**" is enabled in the Developers groups, which will make that group to be added automatically to any newly created repository.

To check for these settings you can navigate to **Workspace Settings \> User groups \>** select the **Developers** group and click on the **Edit** button. A page similar to the one below should be shown :

![Screenshot 2023-09-05 at 4.49.16 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/278945iC40EC0E005382D6C/image-dimensions/487x509?v=v2 "Screenshot 2023-09-05 at 4.49.16 PM.png")

In the example above, the Developer group will be automatically given Write permission to any new repository created in the workspace. If you don't want this to happen, you can click on the dropdown and select the option **None**.

The same setting might be enabled for the other groups you mentioned, so I would recommend checking how that option is configured for the other groups.

It's important to note as well that any group with the option "Can administer all workspace and repository setting" checked is considered admin of the workspace and will inherit admin permission to any existing or new repository created in the workspace.

Hope that helps to clarify your questions :)

Thank you, [@ymyung](/t5/user/viewprofilepage/user-id/1837786) !

Patrik S


Tags: bitbucket-cloud

cloud
i am getting this problem in bitbucket pipeline
Asked by Siddhant Pandey:

can anyone provide me some kind of help i am going through![152.jpg](/t5/image/serverpage/image-id/278716iF52C543819A91F3F/image-size/large?v=v2&px=999 "152.jpg")![153.jpg](/t5/image/serverpage/image-id/278719iCC3176A9A7242C2C/image-size/large?v=v2&px=999 "153.jpg")![154.jpg](/t5/image/serverpage/image-id/278721i17103B99D61640BA/image-size/large?v=v2&px=999 "154.jpg")


Answers:
author: Theodora Boudale
body: Hi [@Siddhant Pandey](/t5/user/viewprofilepage/user-id/5236498)!

I believe that the reason for the error you get is that you are using variables that do not exist in the pipe's definition. Please take a look at the **REDAME** file of this pipe's repo:

* <https://bitbucket.org/atlassian/rsync-deploy/src/master/>

The variables provided there are the ones you can use with this pipe. If you add variables that do not exist in the pipe's definition, the pipe will not recognize them.

Specifically:

**1.** Instead of DEPLOY_USER, use USER

**2.** Instead of DEPLOY_SERVER, use SERVER

**3.** Instead of DEPLOY_PATH, use REMOTE_PATH

**4.** You can omit the variable SSH_USER

**5.** On the third screenshot you posted here, we can see that there is already an SSH key pair at the repo, from **Repository settings \> SSH keys** . If you use this SSH key pair to connect to your server, there is no need to use the variable SSH_KEY. This is needed only if the SSH key pair is not added to **Repository settings \> SSH keys** . ++You just need to ensure that the public SSH key is added to the **\~/.ssh/authorized_keys** on your server.++

I would also recommend using the latest version of the pipe, 0.9.0, as 0.2.0 is an old version.

You can try a definition as follows:

```
- pipe: atlassian/rsync-deploy:0.9.0
  variables:
    USER: $DEPLOY_USER
    SERVER: $DEPLOY_SERVER
    REMOTE_PATH: $DEPLOY_PATH
    LOCAL_PATH: '.'
```

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,  
Theodora

comments: author: Siddhant Pandey
body: First of all i wanna thank you for responding on my query. I will do what the changes you have suggested. Thankyou


author: Theodora Boudale
body: You are very welcome! Please feel free to reach out if you need anything further!


Tags: bitbucket-cloud

cloud
Rest api endpoint to create a folder in forked repository.
Asked by Sravya Nalla:

The requirement is -

I should be able to create a folder inside forked repo and in the newly created folder,i should next create two files.

The idea is to automate this process without having it to be done in local system.


Answers:
author: Patrik S
body: Hey [@Sravya Nalla](/t5/user/viewprofilepage/user-id/5308601) and welcome to the Community!

You can leverage the [Create a commit by uploading a file endpoint](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post) to commit the files you want using the rest API.

Following is an example API request to that endpoint using curl :

```
curl -X POST -u USERNAME:APP_PASSWORD https://api.bitbucket.org/2.0/repositories/WORKSPACE/REPOSITORY/src -F /my_folder/myfile.txt=@myfile.txt
```

This will create a new commit on top of the main branch, uploading the local file **myfile.txt** to the directory **my_folder**inside the repository. If the destination folder does not exist in the repository, it will get automatically created.

In this example, we are using basic authentication to authenticate the request, where :

* **Username** : your bitbucket username (you can check your username under your [Account personal settings](https://bitbucket.org/account/settings/))
* **App Password** : a token used to authenticate API calls. If you haven't already, you can [Create a new app password](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) on your account.

For additional details on that particular endpoint, you can refer to the official API reference below :

* [Create a commit by uploading a file \| Bitbucket Cloud API Reference](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post)

Hope that helps! You can try following the example above and let us know how it goes.

Thank you, [@Sravya Nalla](/t5/user/viewprofilepage/user-id/5308601) !

Patrik S

comments: author: Sravya Nalla
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) , thanks for the response!!

Here i don't want to upload any files from local system instead I want to create folder and files(ymls) inside that folder using endpoints.


Tags: bitbucket-cloud

cloud
"We couldn't log you in" when trying to access Bitbucket
Asked by Janos Rusiczki:

Hello, I haven't used my Bitbucket account for a long while. I can log in to <https://start.atlassian.com/> but when I click "Switch to Bitbucket" after a few reloads I get the following error message:

![Firefox_Screenshot_2023-09-04T12-06-52.319Z.png](https://community.atlassian.com/t5/image/serverpage/image-id/278708i378DF6CCE6C4D891/image-size/large?v=v2&px=999 "Firefox_Screenshot_2023-09-04T12-06-52.319Z.png")

I have tried to log out and log back in, deleted cookies, but it's the same.


Answers:
author: Mark C
body: Hi [@Janos Rusiczki](/t5/user/viewprofilepage/user-id/5308213),

Welcome to the community.  
It seems that your Bitbucket Cloud account was marked as a dormant account due to not logging into **Bitbucket.org** for a long period of time.  
I went ahead and reactivated your Bitbucket Cloud account.

You should be able to log in now.  
I hope it helps and let me know how it goes.

Regards,  
Mark C

comments: author: Janos Rusiczki
body: Thank you, it works now.


Tags: bitbucket-cloud

cloud
you do not have permission to merge this branch into
Asked by Andrew Hardy:

Hi I am getting this message when I try to merge one particular branch into another. This is not conflicted merge. I understand I have been given full write access to the repo and as I understand it nothing else has been changed IRO my rights on this repo which I used to merge in regularly.  

I would be grateful of some detailed steps that could be followed to resolve this issue.

Many thanks


Answers:
author: Theodora Boudale
body: Hi Andrew,

This message shows if there are branch restrictions for the branch you are trying to merge into. Branch restrictions allow admins to configure which users can write to certain branches or merge pull requests into certain branches:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/>

You can reach out to one of the repo's admins and ask them what branch restrictions they have configured for the branch you are trying to merge into, and what workflow you need to follow if you need to merge.

Please feel free to let me know if you have any questions!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Repository size 4gb Exceeds, need cleanup 'git gc' at server end
Asked by kdurai:

Dear Team,

Repository size 4b is already exceeded. Ran the below command to do the cleanup and push but it failed since it's no longer allowed to take any changes.

commands from this link [bfg repo cleaner](https://rtyley.github.io/bfg-repo-cleaner/)

Could you please help me clean up the repository at the server end to bring down the repository's overall size?

Or let me know if you want me to execute anything to get this resolved.

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

<br />


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

Welcome to the community!

I have triggered the Git GC on your affected large repository, and the size has been reduced to 1.1 GB. Could you please check this and confirm with me?

Regards,  
Syahrul

comments: author: kdurai
body: Thanks, Syahrul.

Currently, I am able to commit my changes so for sure repository size might have come down. Will check with admin and confirm.

Need your guidance to maintain repository size to not grow more than 4 GB


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

Awesome. I highly suggest you review our documentation on how to maintain your repository size at

[Reduce repository size](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/)

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Why was the --ff-only --squash option removed from PRs?
Asked by samar:

![](https://confluence.atlassian.com/bitbucketserver/files/844499235/939515504/1/1508806261702/merge+pull+request.png)

As you can see in this official guide from <https://confluence.atlassian.com/bitbucketserver/pull-request-merge-strategies-844499235.html>

at one point this was an option. Now there are only three available, --no-ff, --ff-only, and --squash. I saw some similar discussion about it from a year ago, and that it's something that they want to introduce... but it was already there. Why was this removed? And seriously, how hard could it be to add another option?


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

I'm afraid that the merge strategy --squash --ff-only was never available in Bitbucket Cloud. The documentation you posted is for Bitbucket Server. The two products have a different source code base and some features (like the merge strategies) are different. The merge strategies for Bitbucket Cloud are documented here:

* <https://support.atlassian.com/bitbucket-cloud/docs/merge-a-pull-request/>

We have an open feature request in our issue tracker for adding this merge strategy:

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

You can add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps our 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

cloud
Recent Inability to Push or Fetch
Asked by Alexandra Lavacek:

Yesterday I noticed that I am not longer able to push or fetch changes on any of the Bitbucket repos I am apart of. I keep getting this error:

fatal: remote error: CAPTCHA required Your Bitbucket account has been locked. To unlock it and log in again you must solve a CAPTCHA. This is typically caused by too many attempts to login with an incorrect password. The account lock prevents your SCM client from accessing Bitbucket and its mirrors until it is solved, even if you enter your password correctly. If you are currently logged in to Bitbucket via a browser you may need to logout and then log back in in order to solve the CAPTCHA. Visit Bitbucket at <https://studio.eecs.umich.edu/bitbucket> for more details.

I usually push through Github Desktop, but after this error appeared I tried Gitbash and Source Tree, and still had no luck.

Ive tried logging out and logging back in and no luck. I really need to get this working and can't figure out why it started happening all of the sudden.


Answers:
author: Sven Rollinger
body: <https://community.atlassian.com/t5/Sourcetree-discussions/CAPTCHA-Error-Bitbucket-works-fine-in-Browser/td-p/638690>

comments: author: Sven Rollinger
body: Clear contents of below files placed in your source tree folder.

<br />

\<your user path\>\\AppData\\Local\\Atlassian\\SourceTree\\userhost  
\<your user path\>\\AppData\\Local\\Atlassian\\SourceTree\\passwd


Tags: bitbucket-server
Execute a GC on my repo
Asked by nistormarian:

I have done what was mentioned in <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Removing-large-files> but my repo still has a size over 2Gb.
> After you remove any large files, you will need to [contact our Support team](https://support.atlassian.com/contact/#/) to run GC for you and reduce your repository size.

Can anyone please run a GC on my repo?

Thanks in advance,

Nistor.


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

Welcome to the community.

I've gone ahead and run Git GC against the repository with the size of **2.6 GB** .  
From 2.6 GB, it is now down to **1.3 GB**.

I hope it helps and let me know if you have any further questions.

Regards,  
Mark C

comments: author: nistormarian
body: Thanks a lot. Yes that is perfect. No other questions.

Best regards,  
Nistor


Tags: atl-rvw

bitbucket-cloud

cloud