youngmon/atlassian-qna huggingface dataset:
Run GC
Asked by Sumeet.d.kumar:

Hi,

I have cleaned my repository from local through bfg. Can you run gc on this repo git@bitbucket.org:sk29325/spm-reports-clone.git. Is it possible to run gc by myself?


Answers:
author: Syahrul
body: Hey [@Sumeet.d.kumar](/t5/user/viewprofilepage/user-id/5427454)

Welcome to the community!

I have triggered Git GC on the affected repository, which remains at 2.5 GB. This means that there are still many large files in your repository.

I suggest reviewing them again, identifying which files are huge, and deleting them one by 1 through BFG.

[Identify large files](https://confluence.atlassian.com/bbkb/how-to-check-your-repository-s-size-and-identify-large-files-1178867192.html)

As for triggering GC on yourself, unfortunately, you can't now. You have to raise a support ticket with us or a community post. Note that we automatically trigger GC on the repository from time to time.

Regards,  
Syahrul

comments: author: Sumeet.d.kumar
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) ,

I deleted files through BFG. Size got reduced from 2.42 GB to 2.24GB in my local machine. However I am unable to push my changes to Bitbucket Cloud Repository. It says "Everything up-to-date". Is there any other way to achieve this part. Am I missing something?

Attaching screenshot with this.

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

Thanks,

Sumeet


author: Syahrul
body: Hey [@Sumeet.d.kumar](/t5/user/viewprofilepage/user-id/5427454)

You need to make sure to follow the BFG steps and clone as well as run the BFG onto the --mirror (Bare) repository.

In some cases, you may need to use no blob protection parameter if the files you wish to delete are in the protected HEAD

    bfg --delete-files {filesname} --no-blob-protection my-repo.git

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Unable to receive recovery email
Asked by Masroor Aijaz:

Hi, I've been trying to reset my BitBucket account, but unable to receive recovery email. Could you please check if my email is on the suppression list?

Regards!


Answers:
author: Nikola Perisic
body: Welcome to the community [@Masroor Aijaz](/t5/user/viewprofilepage/user-id/5427422)

Usually, this issue happens when your email is on the supression list from the Atlassian side.

Reference: <https://community.atlassian.com/t5/Jira-Software-questions/not-receiving-Recovery-link/qaq-p/2229824>

and

<https://community.atlassian.com/t5/Halp-questions/Recovery-link-never-arrives/qaq-p/2470968>

I will tag Atlassian on this issue for higher visibility, if this is an urgent issue, you can raise a support ticket for Atlassian:

<https://support.atlassian.com/contact/#/>


Tags: bitbucket-cloud

cloud
bitbucket repository has vanished
Asked by Chris Hutchinson:

I have (had) a repository at <https://OurOrg@bitbucket.org/ourdev/icmcom.git> but this has vanished from the bitbucket UI and all other repos in that <https://OurOrg@bitbucket.org/ourdev/> location are gone.

I can see some expected repos at <https://OurOrg@bitbucket.org/> such as <https://OurOrg@bitbucket.org/xyz>, but repositories located under the path 'ourdev' are gone.

Is there any way to find these missing repos?


Answers:
author: Ben
body: Hi Chris,

The location you've mentioned refers to a personal workspace, this personal workspace does not have the username you have mentioned present as a member, therefore you can't authenticate using username@bitbucket.org.

I would suggest double checking your remote locations with the following command for the true repository location:

* git remote -vvv

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Workspace error Resource not found
Asked by lucianboboc:

I am not able to leave a workspace and when i login i am redirected to the wrong workspace and i see "Resource not found" error.

How can i leave or remove that workspace?


Answers:
author: Ben
body: Hi Lucian!

This is likely due to the [recent changes that were made to workspace view](https://bitbucket.org/blog/improving-navigation-for-bitbucket-users) - where previously all workspaces you had access to were displayed in a dashboard, and now only a single default workspace is displayed.

When you log in to Bitbucket Cloud, click your avatar in the top-right corner and select **"All Workspaces"** . From this view, you can click the **"Leave"** button next to the workspace you no longer need access to, once that's done you shouldn't see the error anymore as the workspace you are expecting will load by default when you are logged in.

We have more information in an article here:

* <https://confluence.atlassian.com/bbkb/workspace-has-disappeared-incorrect-workspace-loaded-1319573739.html>

Please let me know if you encounter issues after following the above.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
delete folder with web interface
Asked by amidevous:

please add with Bitbucket web interface

easy delete folder contain 9000 files (I say 9000 for the example)

doing 1 by 1 is too slow

on github we can delete all a folder as well as all its subfolders

directly on the online interface in 10 seconds

and on Bitbucket there is no button to do it

false all do 1 by 1

Bitbucket

![](https://i.ibb.co/7GJnWRH/bitbucket.png)

Github

![](https://i.ibb.co/51Kj4ZZ/github.png)

please add delete folder or delete directory on Bitbucket web interface


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

Thank you for your feedback. I went ahead and created a feature request for what you are asking in our issue tracker:

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

I would suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for 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 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.

In the meantime, if you want to delete a folder with a very large number of files, this should be faster to perform locally. You can delete the folder in a clone of a repo, commit the deletion, and then push to Bitbucket.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
how to updload my code into new repository
Asked by juerg:

I can not push my local repository to a newly created repository on bitbucket  
I cd to my project folder, then enter  
git init  
git add -A (needed to add an exception on the first try)  
git commit -m 'initial commit'  
this list my files in the local repository  
git remote add origin <https://bitbucket.org/>...  
git push -u origin main  

I am asked for username and password  
very confusing what my 'username' would be but I tried all possible combinations and I am very sure that I entered the correct password (I can at least login to bitbucket with it)  
the response is always 'Invalid credentials'  

I have even tried to completely sign off from bitbucket and atlassian, waited the 10 days period and started from fresh.  

I still get "invalid credentials" and am completely stuck


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

When you clone, pull, or push to a Bitbucket repo with basic authentication over HTTPS, you need to use the following credentials:

* your Bitbucket username, which can be found here (after you log in to the website): <https://bitbucket.org/account/settings/>
* an app password for your account with at least **Repositories - Read** and **Write** permissions: <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

Your account's password can be used only for logging in to <https://bitbucket.org/> from browser, it cannot be used for Git operations over HTTPS.

When you set a remote URL for your clone, it is also common to include the username in the URL as follows:

```
git remote add origin https://username@bitbucket.org/workspace-id/repo.git
```

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

Kind regards,  
Theodora


author: Aron Gombas _Midori_
body: I think the username would be the email address you created your Atlassian account with.

But, for the long run, your life will be easier if you use SSH based authentication. It will not ask for credentials at every push and it is secure.


Tags: bitbucket-cloud

cloud
Not receiving verification email
Asked by ariffmunshi:

I got this error when I tried to SSH: The RSA host key for bitbucket.org has changed.

I had not logged in for some time.

So on Bitbucket, when I tried to log in to change this, I am asked to click on a verification link but I never receive the email.

Could you check if \*\*REDACTED\*\* is on the block list?


Answers:
author: Ben
body: G'day!

We updated our host key back in May 2023, please follow our documentation below to update your host key locally:

* <https://bitbucket.org/blog/ssh-host-key-changes>

As for that email you've mentioned (I've redacted this as this is a public forum), there's no Bitbucket Cloud account connected to that email and all emails were blocked by your mail server with the following SMTP bounce:

```
554 5.7.1 [internal] recipient address was suppressed due to customer policy
This error is encountered on your mail server when any of the following conditions are met:
* The address was invalid (address does not exist)
* The user clicked the list-unsubscribe header
* The user clicked one of your emails and flagged it as SPAM. This FBL (FeedBack Loop) event should add that email address to your Suppression List.
```

I have removed the email address from the suppression list, so you should receive emails now - please attempt that verification process again.

I would also suggest reaching out to your email administrator to whitelist our email accounts as follows, to prevent the issue from occurring in future:

```
noreply@am.atlassian.com
no-reply@atlassian.com
noreply@mailer.atlassian.com
notifications-noreply@bitbucket.org

```

For your reference, we also have a knowledge article online that details the email troubleshooting process in further detail:  
[Email notifications not working](https://confluence.atlassian.com/bbkb/email-notifications-not-working-1224343600.html)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: account

cloud

email
Support for bugs and security issues
Asked by dovi5988:

Hi,

It seems that EOS for the Server version of Atlassian products is Feb 15th 2024. The docs for LTS versions says that they will get security fixed for two years from release. We are unable to move to the cloud and currently the data center version is cost prohibitive. Should there be a security vulnerability will Atlassian release a fix for LTS versions for those that have not moved to a data center version or are we out of luck unless we move to a data center licence?

TIA.

Dovid


Answers:
author: Jimi Wikman
body: "After 12 a.m. PST on February 15, 2024, Atlassian and Marketplace Partners will no longer provide technical support for any issues, **security updates**, or bug fixes for critical vulnerabilities. Regular security updates help protect your business from threats and vulnerabilities, so we recommend moving to our Cloud or Data Center products before the end of support date."

<https://www.atlassian.com/migration/assess/journey-to-cloud>

So no, you will not get any security releases once server products have reached their EOS.

What is prohibiting you from moving to the cloud, if you do not mind me asking?


Tags: bitbucket-server

server
Forgot email for my alternative bitbucket account
Asked by gjutrisa:

Hi,

can someone help me to login my "REDACTED" workspace. I cannot remember what email was associated with. Sending reset password would be helpfull.

Thanks.


Answers:
author: Mark C
body: Hi [@gjutrisa](/t5/user/viewprofilepage/user-id/329451)  

Thank you for reaching out to the community.  

I went ahead and sent a password recovery email to the primary email address associated with the workspace.  

Regards,  
Mark C


author: Sharu - Empyra
body: Hi [@gjutrisa](/t5/user/viewprofilepage/user-id/329451)

You must either reach out to your administrator or raise a support ticket with Atlassian- [Atlassian Support](https://support.atlassian.com/)

Thanks,

Sharu


author: sehar talokar
body: contact customer support


Tags: bitbucket-cloud

cloud

sourcetree
Bitbucket Cloud API, Project-level branch permissions (not Repo-level)
Asked by Edwin Chung:

Hi, does anyone know how I can do the following?

I want to set a \<Project\> -\> Project Settings -\> Branch Restriction using the REST API.

The rest API documents how to set this in a Repository, but I don't see any command to set it for the Project.

Ref: [How to create/edit branch restrictions in Bitbucket Cloud repositories via API \| Bitbucket Cloud \| Atlassian Documentation](https://confluence.atlassian.com/bbkb/how-to-create-edit-branch-restrictions-in-bitbucket-cloud-repositories-via-api-1283364401.html)

Ref: <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-branch-restrictions/#api-repositories-workspace-repo-slug-branch-restrictions-post>


Answers:
author: Mark C
body: Hi [@Edwin Chung](/t5/user/viewprofilepage/user-id/658509),

Thank you for reaching out to the community.  
Unfortunately, we don't currently have an available REST API endpoint for branch restriction at the project level.

We do have an existing feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-22732>  
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.

We appreciate your patience and understanding as we continue to improve Bitbucket Cloud according to our policy on [implementing new features](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Regards,  
Mark C

comments: author: Edwin Chung
body: Thank you, Mark, for the reply and link to the feature request!


Tags: bitbucket-cloud

branch

cloud

rest-api

restriction
Pipeline failing due to atlassian classes not found issue
Asked by Bhavani Ramalingan:

**"composer validate --no-check-all --ansi in /opt/atlassian/pipelines/agent/build"**

above command failed due to the classes are not found.

In AutoloadGenerator.php line 1396:  
require(/opt/atlassian/pipelines/agent/build/docroot/core/includes/bootstrap.inc): Failed to open stream: No such file or directory.


Answers:
author: Theodora Boudale
body: Hi Bhavani and welcome to the community!

Just to give you some context, Pipelines builds run in Docker containers. For every step of your build, a Docker container starts (the build container) using the image you have specified in your bitbucket-pipelines.yml file. The repo is cloned in the build container, and then the commands of the step's script are executed. When the step finishes that Docker container gets destroyed.

Build errors may be related to your source code, any dependencies you use, or the Docker image you use as a build container. You can narrow down whether this is a pipelines-specific issue by reproducing the build locally with Docker, using the following guide:

* <https://confluence.atlassian.com/bbkb/troubleshoot-failed-bitbucket-pipelines-locally-with-docker-1318882094.html>

Just make sure you replace the path /opt/atlassian/pipelines/agent/build in the command with the path where your repo's clone exists in the local Docker container. If the build fails when you rerproduce locally with Docker as well, then the issue is not specific to Pipelines. You'll need to debug this further until you have a build that succeeds locally, so it can also run on Pipelines.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Sending a notification to Slack to notify\mention a specific user from Bitbucket pipeline
Asked by Andrei Hryharouski:

Good afternoon!  
Can you please tell me if there is any way to send a message to Slack with the mention (@USERNAME) of a specific user?

The goal is to be able to send a message to the person in Slack who initiated the launch of the pipeline. This will perform a condition check at the end. For example:

```

- step: Some-step-name
? ? name: Some name
? ? script:
? ? ? ? - ...
        - if [ "$CHECK_ERRPR" != '"ERROR"' ]; then exit 0 ; fi
? ? ? ? - pipe: atlassian/slack-notify:2.3.0          variables:            WEBHOOK_URL: $WEBHOOK_URL            MESSAGE: '"[${ENVIRONMENT_NAME}] problem with something"'
```

I'd like to understand how when Bitbucket and Slack connect, messages can notify certain users, and I can't figure out how to identify user data (email for example) in the Bitbucket API with which I could identify the same user in Slack and get their ID using the Slack API.


Answers:
author: Emel Do?rus?z
body: Hey [@Andrei Hryharouski](/t5/user/viewprofilepage/user-id/4632925) !

There is a dedicated app for Bitbucket Pipelines management within Slack: <https://actioner.com/app-directory/bitbucket-pipelines-15>

It's fully customisable, too, with a generous free plan. Let me know in case you have any questions about this solution.

Regards,

Emel


author: Syahrul
body: G'day [@Andrei Hryharouski](/t5/user/viewprofilepage/user-id/4632925)

That's an interesting use case of slack pipe notification. I believe you can use the default variable we have to fetch the user that triggers the pipeline build UUID:

<https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/>

|-------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| BITBUCKET_STEP_TRIGGERER_UUID | The person who kicked off the build ( by doing a push, merge etc), and for scheduled builds, the uuid of the pipelines user. |

Using the UUID you can fetch the user information via the following API endpoint:

[Get user](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-users/#api-users-selected-user-get)

You should get results of the user display_name that you can use with Slack API to mention the user. I can't help much on the Slack API end, but I believe you could create a script that fetches a user display name and matches it to get the user Slack ID stores it as variables, and uses it in the Slack pipe message notifications for example:

```
          script:            - echo "Notify someone in Slack"            - pipe: atlassian/slack-notify:2.3.0              variables:                  WEBHOOK_URL: '<Webhook>'                  MESSAGE: 'Hey <@$slackID>'?
```

Regards,  
Syahrul


Tags: api

bitbucket-cloud

bitbucket-pipelines

cloud

slack
PostgreSQL not tested!
Asked by Miba:

Bitbucket is upgraded to version 8.14.5, and based on the supported version, PostgreSQL between 12-16 is supported, so I updated DB to 16.2.0, and now Bitbucket complains about it

**Support for PostgreSQL 16.2.0 is not tested and may be broken without notice.** You should migrate to a supported database.

Is it safe to continue without any action, or must be downgraded.


Answers:
author: Reese
body: As far as I am aware, PosrgreSQL 12 is depreciated. But newer versions should be fine... maybe raise a support ticket?


Tags: bitbucket-server

server
How to upgrade from Bitbucket Server v5.16 to v8.14
Asked by aleripe:

Hi, I know support for server ends in a few days. I'd like to upgrade to the latest server version possibile, but I see we need an active subscription. So I have to upgrade to a program that will be retired in a few days or are there other possibilities? I'm on the free tier.

Thanks for your kind help!


Answers:
author: Reese
body: You cannot upgrade as you need an active maintenance/licence - which renewal is not possible for SERVER licences anymore.

Therefore, you are stuck on this version of Bitbucket. Make sure it's not publicly accessible - it's an old, unsupported version with no upgrades.

If you really want to keep it, you'll need a datacenter licence:

<https://www.atlassian.com/software/bitbucket/pricing?tab=self-manageddata-center#tab-da943052-c38f-41be-a30f-3d8df1b92973>

comments: author: aleripe
body: Thanks for your kind help, we'll migrate to GitLab. Cheers


Tags: bitbucket-server

server
Tag description variable
Asked by Tushar Kurjekar:

As we have **BITBUCKET_TAG**variable where we are using the value of this default variable to write tag in xyz.txt while running build pipeline like this :

echo -e "Tag : $BITBUCKET_TAG" \>\>xyz.txt

How Can I write tag description in a similar way so that I can get tag value and tag description in xyz.txt, are there tag description variable present if not any other approach.

Thanks!


Answers:
author: Ben
body: Hi Tushar,

This is not yet a default variable that is available in Bitbucket Cloud so we would need to raise a feature request with our developers to include it. May I know the use case for this - and may I also have clarification on what is required? Do you mean the tag message that comes with an annotated tag?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Tushar Kurjekar
body: Hi Ben,

Thanks for the reply. So right now we are having tag based build and deployment with Bitbucket Pipeline and as a part of build pipeline yml configuration we are running below command as a script to get the tag value and storing this tag value in xyz.txt file for version tracking in a similar way while creating tag we will get option to add tag description and we are looking for to write a tag description in xyz.txt as we are writing tag value.

**echo -e "Tag : $BITBUCKET_TAG" \>\>xyz.txt**

**and now we are looking for : echo -e "Description : $BITBUCKET_DESCRIPTION" \>\>xyz.txt**

![Screenshot 2024-02-12 at 10.26.56?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/305893i855B2D29CFEF8D20/image-dimensions/404x228?v=v2 "Screenshot 2024-02-12 at 10.26.56?PM.png")


author: Ben
body: Hi Tushar,

Thank you for the further details, I've just raised a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) ticket with our developers. Feel free to **Watch** this for future updates related to it and **Vote**for it to imrpvoe its visibility with regard to customer demand:

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

Unfortunately, the functionality you have described is not yet possible in the product.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Tushar Kurjekar
body: Thanks!! [@Ben](/t5/user/viewprofilepage/user-id/4537226)


author: Tushar Kurjekar
body: Hi [@Ben](/t5/user/viewprofilepage/user-id/4537226)   

Any update on this? we are waiting for this feature. Thanks!


author: Ben
body: Hi [@Tushar Kurjekar](/t5/user/viewprofilepage/user-id/5426213)

Unfortunately there is no update at present, please refer to our [feature request policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) for context as to how feature request tickets are chosen for implementation and follow the ticket I've logged for updates from our devs.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

default

description

tag

variable