youngmon/atlassian-qna huggingface dataset:
The local repository size is 500 MB, but Bitbucket shows it as 3.4 GB.
Asked by ???_WM_:

I got a 2GB alert, so I tried to clean up and downsize the storage. I deleted the large folders from the history and storage. The local storage size is now 500MB, but the storage size in the bitbucket cloud was \~3.4GB, which was the same as before. I tried several things including deleting large folders with git gc, filter-branch, but it didn't help. Please guide me on how to reduce the remote storage size in the bitbucket. Why is it different if the remote and local gc?


Answers:
author: Mark C
body: Hi [@???_WM_](/t5/user/viewprofilepage/user-id/5564569)

Welcome to the community.  

What I can do is to run Git GC (Garbage Collection) against your remote repository on my end.

Would you be able to provide your repository URL?  
You can mask your repository URL by following the format below:

```
https://bitbucket.org/w*******e/r**o/
```

Example URL: <https://bitbucket.org/workspace/repo/>

Regards,  
Mark C

comments: author: ???_WM_
body: Thank you so much\~\~

[https://bitbucket.org/w\*\*\*\*\*-\*\*\*e/m\*\*\*-\*\*\*\*\*\*\*-\*\*\*-\*\*\*\*\*p](https://bitbucket.org/w*****-***e/m***-*******-**b)

The link above is the repository address.

<br />

<br />

<br />

- Could you please delete a folder from the remote repository using the command below?  

git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch npm-packages-offline/\*' --prune-empty --tag-name-filter cat -- --all


Tags: bitbucket-cloud

cloud
pipeline stuck
Asked by Louis Cheung:

hi

I run my pipeline using self-host macos runner and I use pipeline to run fastlane command to build my ios app, it can be started but got stuck during the process . There is no problem if run the same command directly in the mac machine.


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

There are a few things to check here:

* Does your Mac meet the prerequisites listed on this page for MacOS runners
  * <https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-macos/>  

* Are you using the latest version of the runner, which is 2.6.0 at the moment?  

* Do you use the same terminal application with the runner as when you run the fastlane command outside of the runner?  

* Do you start the runner by running the preconfigured command we provide directly on a terminal? Or are you using some script that runs this command automatically? I have seen errors occur when the preconfigured command is used in a script that runs automatically upon login.  

* Does the fastlane command have an argument/option to show verbose output that may give an indication on what the command is doing and why it is stuck?  

* Can you also check resources like CPU and memory usage on the Mac while the command is stuck?  

* Another thing to take into account is that MacOS Runners use Bash to run pipeline steps directly on your MacOS machine (host device). This does not provide an isolated build environment (like Docker containers). Does the command in the pipelines build perhaps attempt to access resources used by another process at the same time?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Issue with Billing Date and Credit Card Update
Asked by Kyejeong Lee:

Hello,

I am a user of Bitbucket and I'm writing to inquire about an issue related to billing.

My Bitbucket billing date is July 30th, but the payment didn't go through. When I logged into the Bitbucket site and checked the Plan Details, I encountered the following warning message:

*"If we can't charge the credit card for \<workspace-id\> within the next 3 days, we'll downgrade you to the free plan..."*

Based on this message, I assumed there was an issue with my credit card, so I clicked on "Update Credit Card" and changed the payment method. After doing this, the warning message disappeared, but the billing date (Jul 30, 2024 - Jul 30, 2024) has not changed.

Could you please confirm if I need to wait for the billing date to be automatically updated, or if there is something else I need to do on my end? I would appreciate your guidance on this matter.

Thank you.

Best regards,

Kyejeong Lee


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

If a payment fails, the system will attempt to charge the credit card on file after 2 or 3 days, and if that also fails it will try again in 2 or 3 days. If that last attempt also fails, then the workspace's billing plan will be downgraded to free.

I can see that payments with the new credit card have failed as well, so I suggest reaching out to your credit card provider to ask the reason why.

For billing-related questions, you can also reach out to our customer advocate team via this link:

* <https://www.atlassian.com/company/contact/purchasing-licensing#/>

Just a heads up, I removed the workspace id from your post for privacy reasons.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Will switching all our pipeline sizes to use the new 8x size affect our billing/costs?
Asked by Andy:

I am seeing an increase in 3x in price for our plan since making the change.


Answers:
author: Aron Gombas _Midori_
body: It will, yes. (Otherwise everyone would use "8x".)

For one "actual" minute using the "8x" size, you will pay for 8 minutes. It is that simple.

comments: author: Andy
body: OK, great, thanks! But it would be good if this was called out in the docs because the table simply says price is based on time.


Tags: bitbucket-cloud

cloud
Python Bitbucket Project
Asked by Ahmet Kas?m:

I have created a Python module to interact with Bitbucket. This module consists of all the curl commands in official Bitbucket REST API for Data Center instances.

On that module, I built an application capable of transferring all the, projects, users, groups with repositories; as it is in the source Bitbucket instance. This project is open-source and publicly available on [Github](https://github.com/kasimerbay/transfer-project).

Can I share this Python module in official pages and my project in Atlassian Marketplace (with Java version)? Are there any legal issue?


Answers:
author: Neil
body: Hi [@Ahmet Kas?m](/t5/user/viewprofilepage/user-id/5563851) Welcome to the Community! I'll start at a high level, in terms of a great place to start. Information about submitting a DC app to the Marketplace can be found here: <https://developer.atlassian.com/platform/marketplace/dc-apps-submitting-your-app/>

You cannot just submit a source code repo to be listed in the Atlassian Marketplace. But generally speaking, if you *were* to build this as a Bitbucket DC app/plugin (see <https://developer.atlassian.com/server/bitbucket/how-tos/beginner-guide-to-bitbucket-server-plugin-development/>) then you could submit it for review.


Tags: api

bitbucket-data-center

data-center

python
Please Execute Git GC on this repository
Asked by Mohamed Haggouna:

Hello Atlassian Team,

I have following repository on my workspace , I have take required steps to reduce the Size of My repo But the Changes are not reflected yet on Bitbucket.

It would be great if you run git gc on my repo from your side. And Please Mention the Updated Size.

Repo: HubidAsw


Answers:
author: Mark C
body: Hi [@Mohamed Haggouna](/t5/user/viewprofilepage/user-id/5563906)  

Welcome to the community.  

I've run Git GC against the remote repository, however, the size remains the same.  
Would you be able to try to reduce the repository size again and let me know once done so that I can run GC again?  

Let me know how it goes.  

Regards,  
Mark C

comments: author: Mohamed Haggouna
body: Hi [@Mark C](/t5/user/viewprofilepage/user-id/1210823)

Thank you for your response, Actually it seems that it does not work when I push changes in normal Git mode, I have tried in Bar mode but I'm not able to push my changes( I'm in the list of people who can push directly to our main branch). Any suggestion?

![push.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/341239i6BFE13DAB6D54E91/image-size/large?v=v2&px=999 "push.PNG")![countobjects.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/341240i8EA58BFA53E0ECC1/image-size/large?v=v2&px=999 "countobjects.PNG")


author: Mark C
body: Hi [@Mohamed Haggouna](/t5/user/viewprofilepage/user-id/5563906)  

I've temporarily removed the push restriction for your repository.  

Would you be able to try to push again?  

Let me know how it goes.  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
How to create Checkbox and receive `Like` button event on Comment?
Asked by Aashish Chauhan:

I would like to add a checkbox in my comment on a Pull Request to enhance understanding and encourage responses from users. However, I cannot find a way to include a checkbox in the comment. Could anyone please suggest how to do this?  

Additionally, I want to capture the "Likes" on the comment. Is there a way to receive an event via a webhook or similar whenever a user clicks the "Like" button on a comment?


Answers:
author: Theodora Boudale
body: Hi Aashish,

It is not possible to add a checkbox inside a comment, but you can add one in the form of a task. After you add a comment, you will see a link **Create task** like in the screenshot below:

![Screenshot 2024-08-13 at 12.21.24.png](https://community.atlassian.com/t5/image/serverpage/image-id/341482i6FD82B025B772B91/image-size/large?v=v2&px=999 "Screenshot 2024-08-13 at 12.21.24.png")

You can use it to create a task and a checkbox will be added next to the task. Please keep in mind that once a user clicks that checkbox the view will be updated for all users and so the checkbox will shows as checked to all users.

I'm afraid that there is no webhook event for likes on PR comments. We have a feature request in our issue tracker:

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

The feature request was closed as a result of inactivity (no votes or comments for an extended period of time) but you can still leave a comment to express your interest as our product managers continue to monitor even closed requests.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
i need clone repos but have error
Asked by mqawasmeh:

get this error

ssh_dispatch_run_fatal: Connection to 185.166.143.49 port 22: message authentication code incorrect fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output


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

The message authentication code is used in SSH connections to validate data integrity. This error means that the data Bitbucket sent is not what you received so the connection is dropped. This might be intentional tampering, but it may also be caused by an antivirus, firewall, or it could be a network problem on your computer or router.

We have the following guide for troubleshooting network issues that you can check:

* <https://confluence.atlassian.com/bbkb/troubleshooting-network-issues-389778693.html>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Pull Request Comment Update Webhook Event Not Triggered
Asked by Aashish Chauhan:

I'm updating comments on a pull request, the webhook event for Pull Request: comment updated is not being triggered. I have checked the "View request logs" in Bitbucket but no requests are logged. Additionally, our server is not receiving any events.  

Has anyone experienced a similar issue or can provide guidance on how to resolve this?  

![Screenshot 2024-08-08 at 3.09.25?PM.png](/t5/image/serverpage/image-id/340708iBE5774C80D0B1A98/image-size/large?v=v2&px=999 "Screenshot 2024-08-08 at 3.09.25?PM.png")

![Screenshot 2024-08-08 at 3.14.43?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340711i99657B29943E0EFC/image-size/large?v=v2&px=999 "Screenshot 2024-08-08 at 3.14.43?PM.png")


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

Please see below the explanation from our documentation:
> **Comment updated**
>
> A user updates a comment on a pull request. If a user updates the same comment with not much time in between, Bitbucket only sends the event request the first time the comment is updated. However, if some time passes and that user updates the comment again, Bitbucket sends the event request a second time.

Reference:

* <https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/#Comment-updated>

If the comment is updated shortly after it is created, Bitbucket will not send a request.

With regards to the requests for **Comment created** , the screenshot you shared here shows 404 errors. If the server that should receive the webhook requests is behind a firewall, you may need to whitelist the IPs used by Bitbucket for webhook delivery. You can find these IPs on the documentation below, section **Outgoing Connections**:

* <https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/#Outgoing-Connections>

Please also ensure that you are using a public domain name or public IP address in the webhook URL.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
naming convention user name
Asked by Pooja Mishra:

pooja.mishra


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

Usernames in Bitbucket Cloud must contain only ASCII letters, numbers, dashes and underscores. It is not possible to use a dot in the username, but you can use a dash or an underscore instead.

The username can be changed from this page:

* <https://bitbucket.org/account/settings/>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Feature request for arm64 platform support for email-notify
Asked by Ivo:

Hello guys,   

We use self-hosted runners with arm64 platform and need to send notification emails for successful deploy for our pipeline. email-notify is good solution for this purpose but it doesn't support arm64 platform and unfortunately we can't use it. If you have any other alternatives, please let me know. If not, please consider with your pipe team to create multi-platform support.   

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested  

Kind regards,  
Ivo


Answers:
author: Oleksandr Kyrdan
body: Hi [@Ivo](/t5/user/viewprofilepage/user-id/5517588)

Thanks for your request!

Happy news, we have released a new version of the [email-notify pipe](https://bitbucket.org/atlassian/email-notify) with multi-platform support(**linux/amd64 and linux/arm64)**

```
script:  - pipe: atlassian/email-notify:0.13.2    variables:      USERNAME: 'myemail@example.com'      PASSWORD: $PASSWORD      FROM: 'myemail@example.com'      TO: 'example@example.com'      HOST: 'smtp.gmail.com'
```

It would be nice, if you could provide us with your feedback.

Best regards,  
Oleksandr Kyrdan


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pipes
Finding Which Issue a Commit Belongs To in Bitbucket
Asked by Jenna:

How do I know, to which issue, a commit belongs to in Bitbucket?


Answers:
author: Aron Gombas _Midori_
body: Commits are linked to an issue using one of the strategies:

1. when the commit message contains the issue key (e.g. "Fix for FOO-123")
2. when the branch name on which the commit is present contains the issue key (e.g. "bugfix/FOO-123-prevent-out-of-memory")

Both require your developers creating branches and commits with the issue key mentioned in it. (It is possible to enforce it using third party apps.)


Tags: bitbucket-cloud

cloud

jira-software
No Default branch in /api/latest/projects/projectKey}/repos response
Asked by deep_meena:

Hi , I am using docker image to host Bitbucket server in a EC2 instance, When I am calling \`api/latest/projects/projectKey}/repos\` its not returning default branch in response. Even though there is default branch , I also verified using the

/api/latest/projects/{projectKey}/repos/{repositorySlug}/default-branch, its returning the default branch.

Due to performance reasons , I can't call the second api for each repo. Please let me know why default branch is not coming in Get repos call.


Answers:
author: Aman Shrivastava
body: Hi [@deep_meena](/t5/user/viewprofilepage/user-id/5563394)

Welcome to the Atlassian community.

The [Get repositories for project](https://developer.atlassian.com/server/bitbucket/rest/v814/api-group-project/#api-api-latest-projects-projectkey-repos-get) endpoint doesn't actually return the default branch.  
After discussing the code and documentation with the developers, we concluded that this is a bug and filed [BSERV-19566](https://jira.atlassian.com/browse/BSERV-19566) to correct the documentation.  
We are truly grateful that you brought this to our attention and assisted us in making improvements to our system.

The only workaround, as stated in the [BSERV-19566](https://jira.atlassian.com/browse/BSERV-19566), is to retrieve the default branch using the [Get repository default branch](https://developer.atlassian.com/server/bitbucket/rest/v814/api-group-project/#api-api-latest-projects-projectkey-repos-repositoryslug-default-branch-get) API. Because it's such a light API, Bitbucket performance won't be impacted if you use it serially for multiple repositories.  

Regards,  
Aman


Tags: api

bitbucket-data-center

bitbucket-server

data-center

rest-api
Bitbucket Pipeline artifact error
Asked by Liz Eipe Cherukalethu:

I tried to configure a bitbucket pipeline. I have installed the PHP using Docker.

But I am getting the attached error.

Thanks

Liz

![Screenshot 2024-08-07 at 14.38.06.png](/t5/image/serverpage/image-id/340565i9998C951883279F5/image-size/large?v=v2&px=999 "Screenshot 2024-08-07 at 14.38.06.png")


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

The error indicates that PHP's zip extension is needed.

I assume this is the extension the error message is referring to:

* <https://www.php.net/manual/en/book.zip.php>

You can check the extension's documentation on how to install it.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Python Scripts no longer providing live feedback
Asked by daniel.king:

I have a number of pipeline steps that run python scripts. In the last couple of weeks we have noticed that it waits till the script has finished to print out the full log. It should print out as it runs. Has anything changed??


Answers:
author: Theodora Boudale
body: Hi Daniel,

Changes in Pipelines infrastructure are posted here:

* <https://confluence.atlassian.com/bbkb/infrastructure-changes-in-bitbucket-pipelines-1142431176.html>

I'm not sure if any of the recent changes listed there could have affected this.

Could you please create a ticket with the support team for further investigation? You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
runner-autoscaler. Not updating
Asked by daniel.king:

Hi,

I have an EKS Cluster running the runner-autoscaler.

Is there a way to force the runners to update? I am deploying the service via GitOps (Flux). Is there a simple way to force them to upgrade?

Runner version:

current: 1.581  
latest: 2.6.0  
Many thanks  
Daniel


Answers:
author: daniel.king
body: Worked it out 1.581 is the last version 1  

Needed to change docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1  

to

docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:2


Tags: bitbucket-cloud

cloud
i cant login
Asked by renalpha:

My account seems deactivated. Im trying to sign in with brave but get We couldnt log you in.


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

Your Bitbucket Cloud account was indeed in a dormant state; I went ahead and reactivated. Can you please check if you can log in, when you have some time?

I also wanted to give you a heads up that Brave is not one of the browsers we support. You can see the supported browsers here:

* <https://confluence.atlassian.com/bbkb/which-web-browsers-does-bitbucket-support-1168845119.html>

You can still use another browser of your choice, but you may encounter issues and we do not provide support for issues that are not reproducible on supported browsers.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
cannot access imported repository
Asked by Luca Magnaguagno:

Hello,

I imported 2 repositories and apparently it was successful, but they don't show up in the list. When I try using the link, it says "not found"

However, when I try renaming a repository using that same name, it says that a repository with that name already exists.

this happens with two repositories: \<redacted\> and \<redacted\>.

Any advice/suggestion?

thanks

Luca


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

I can see in our system that these two repositories were in a state of 'Partially created'. It looks that the import task failed and the size of both repos shows as 0 bytes.

I changed the repositories' status to 'Available'. Are you able to access them now and check if they have any content or not?

If you still cannot access them, I can delete them for you (if you give me permissions to do so) since you are an administrator, and you can try to import them again.

Just a heads up, I removed the screenshots and repo names from your post for privacy reasons.

Kind regards,  
Theodora

comments: author: Luca Magnaguagno
body: Thanks Theodora.

No, I cannot find them. Anyhow I have already imported them with different names.

Please proceed removing them: \<redacted\> and \<redacted\>, if you could.

Many thanks

Luca


author: Theodora Boudale
body: Hi Luca,

Thank you for your reply.

I went ahead and deleted these two repositories. You should be able to rename now the ones you imported with different names, if you wish. Please feel free to let me know how it goes.

Kind regards,  
Theodora


author: Luca Magnaguagno
body: Thank you so much Theodora. I managed to rename those repositories.


author: Theodora Boudale
body: That's good to hear Luca and you are very welcome.

Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
User didn't get invitation email
Asked by James Hicks:

Hello, I tried invite user in free plan but user didn't get any invitation email. So can you have a look on this and help us to add user.

Thank You


Answers:
author: Theodora Boudale
body: Hi James,

I suggest asking the user to check their Spam folder and also if there are any filters on their email account that would make Atlassian/Bitbucket emails skip their Inbox. If they are still experiencing issues and this user can receive emails from others:

We need to know the user's email address in order to check our logs. I would not recommend posting it here, as this is a public forum.

Does the user have an Atlassian account with that email address, and can they log in to <https://community.atlassian.com/> with it? If so, can you ask them to leave a reply to my answer below? If they post a reply, I'll be able to see the email address of their account and check our logs.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud