youngmon/atlassian-qna huggingface dataset:
Run gc
Asked by Kristoff.Fluyt:

Hi,

Is it possible to run gc manually on '\<repo_name_removed\>'?

I deleted some big files with BFG, and the size locally after deleting the big files seems to be 1.31 MiB (using git count-objects -vH in the .git folder), but on bitbucket the size still seems to look like 83.71 MB.


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

I ran a git gc for this repo. Its size has been reduced, but only to 68.7 MB.

Could you please try the following:

**1.** Take a mirror clone of the repo with the command (this will clone all branches from the remote repo)

```
git clone --mirror <repo_url>
```

**2.** Navigate to the directory of the mirror clone

**3.** Run the command **git count-objects -vH** there

What output do you get from this command?

I would like to understand if the difference in size is because of branches that are not present in your local clone or if there is another reason for this difference.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

garbage-collection
how to monitor bitbucket pipelines
Asked by Someshwaran C:

Recently , i have noticed that the build have take long time because of error loop i did not noticed for 2 months so it consumed my build minutes 10x the usual. i like to monitor pipeline - this is my requirement.. i have searched some of the monitoring tools but i am getting documentation for configuring with bitbucket server and datacenter. could you please provide recommended tool or option to monitor bitbucket pipeline. if you have the solution i like to get that with full details to configure.


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

The available options are the following:

**1.** If you are a workspace admin, you can go to **Workspace settings \> Plan details**. On this page, you can see the build minutes used for the current billing period. This is the total across all repos of the workspace.

**2.** On the **Pipelines** page of each repo, the column **Duration** shows the duration of each build. Please note that the build minutes used may be different if you run parallel steps, if you use steps with size 2x, or if you reran a certain build's step.

**3.** We have a pipe that you can use to get build statistics for all repos of the workspace. You can check the following knowledge base article for more details:

* <https://confluence.atlassian.com/bbkb/how-to-export-bitbucket-pipelines-minutes-usage-report-in-bitbucket-cloud-1223824065.html>

The example on this page is for the default pipeline. However, you can create a [custom pipeline](https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Custom--manual--pipelines) that doesn't run automatically, and run it every time you want to get the build statistics.

The report generated by this pipe will show the total number of build minutes used by each repo during the last 30 days. You can also specify a different number of days, see here for more details:

* <https://bitbucket.org/atlassian/bitbucket-build-statistics/src/master/>

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not receiving email to complete 2FA for BitBucket
Asked by Fernando Villarreal:

Not receiving email to complete verification process, even though I have tried several times.  

![Screenshot 2024-01-28 at 11.53.41?a.m..png](/t5/image/serverpage/image-id/302874iA2CC86B943C5CB67/image-size/large?v=v2&px=999 "Screenshot 2024-01-28 at 11.53.41?a.m..png")  


Answers:
author: Nikola Perisic
body: Welcome to the community [@Fernando Villarreal](/t5/user/viewprofilepage/user-id/5416418) !

This issue happened here as well: <https://community.atlassian.com/t5/Bitbucket-questions/Not-receiving-email-to-reset-Bitbucket-2FA/qaq-p/2348301>

Another reference which is more accurate than the previous one was in here with the same screenshot from your issue: <https://community.atlassian.com/t5/Bitbucket-questions/Not-receiving-email-to-complete-2FA-for-BitBucket/qaq-p/1763663>

Solution for this is to raise a support ticket for Atlassian to remove your email address from the supression list.

I will also add a tag for Atlassian to take a look at this issue.


Tags: bitbucket-cloud

cloud
How to work with scaffolding and different repositories
Asked by javichuteck:

I am planning some projects. I don't care about the technology, the language and the framework. The doubt is conceptual, how to work with the base structure.

I have a repository in Bitbucket with a base scaffolding (repository: scaffolding).

* I start the project A from that scaffolding. How? a fork? a clone of that repository?

* I start project B, from that scaffoldinb. How, a fork, a clone of that repository?

And all of a sudden, I update things in the scaffolding, and I need project A and B to download those base changes.

How should this be set up so that if the scaffolding updates the rest of the projects easily?


Answers:
author: Theodora Boudale
body: Hi Javi,

You can create forks for project A and project B, from the scaffolding repo.

On the **Source** page of these forks (on Bitbucket website) you will see a **Sync** option, that you can use to merge any new changes from the scaffolding.

Please keep in mind that this will only sync the scaffolding's main branch to the fork's main branch.

If you use multiple branches and you want to sync them as well to respective branches of the fork:

**1.** You can create a new branch in the fork (if it doesn't exist). Then, select the branch you want to sync as the main branch on both the parent and forked repos (you can do that from **Repository settings** and you can change it back later). You can then sync them with the **Sync** option from the **Source** page.

**2.** Another option is in the knowledge base article you shared, syncing locally by pushing from a clone of the scaffolding to the fork.

In case you use multiple branches and you want to maintain multiple branches in the fork, be mindful of which branch you are pushing from and which branch you are pushing to.

Kind regards,  
Theodora


author: javichuteck
body: I think I have succeeded.  
I used this reference: <https://confluence.atlassian.com/bbkb/how-to-auto-sync-forked-repositories-in-bitbucket-cloud-1223820803.html>

Is this correct?


Tags: bitbucket-cloud

cloud
Cannot access BitBucket Web Portal For my repo
Asked by davejanello:

I have a repo with username format XXXXX@bitbucket.org

The repository still commits/pulls/pushes from command line using the supplied password.

However, I cannot find the repo in the web browser (tested numerous browsers). Without the web browser I don't know what the clone URL is.

Here is the error message:

"User does not have the attributes required to login. Please contact your administrator." {#toc-hId--406126503}
---------------------------------------------------------------------------------------------------------------

I have been active with pushes/pulls via command line but have not looked at the web portal in a long time.

Is this part of the migration plan for the server product? It is not clear from the docs.

Thanks!


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

Welcome to the community!

Are you trying to access the repository from Bitbucket server as the error indicates that you don't have access to it or are you using Bitbucket cloud?

Having said that, can you navigate to the repository via the terminal to get the repository URL, please follow these steps:

1. Open terminal
2. Navigate to the repository directory
3. Run the following command

   ```
   git remote -v
   ```

4. It should give you the workspaceID/repoName  

   ```
   origin git@bitbucket.org:workspaceID/repoName.git (fetch)

   origin git@bitbucket.org:workspaceID/repoName.git (push)
   ```

5. From there use the following URL to access the repository

   ```
   https://bitbucket.org/workspaceID/repoName
   ```

Let me know how it goes.

Regards,  
Syahrul

comments: author: alevi dcosta
body: Hello Syrahul,

I am facing the same issue as [@dav](/t5/user/viewprofilepage/user-id/4573302) . I logged in after a long time. However, as mentioned above, i am unable to view my repository. It says repository not found although i am able to commit the code, etc.

Best Regards,

Alevi


author: alevi dcosta
body: Hello Syrahul,

I was able to access it the way you suggested. Thank you.

However, i am still wondering why this could be needed. Visiting any different link loses the access. Have to retype the link.

Although i did find that <https://bitbucket.org/WorkspaceID/workspace/projects/PROJ> displays all the repositories.

Best Regards,

Alevi


author: Syahrul
body: Hey [@alevi dcosta](/t5/user/viewprofilepage/user-id/5477761)

Would you mind creating a new thread for your question? That way, we can ensure that anyone with the same issue won't get confused with unrelated problems.

Thanks!  
Syahrul


Tags: bitbucket-cloud

cloud
Cache and Reuse atlassian/google-app-engine-deploy
Asked by Bishan V:

I'm using self hosted linux env to run bitbucket pipeline. It is always pulls "atlassian/google-app-engine-deploy" which consume lot of data. How can I install it once and reuse?

```
script:  - pipe: atlassian/google-app-engine-deploy:1.5.0    variables:      KEY_FILE: $KEY_FILE      PROJECT: 'my-project'
```


Answers:
author: Syahrul
body: G'day [@Bishan V](/t5/user/viewprofilepage/user-id/5415849)

Welcome to the community!

If I understand this correctly, you're looking to cache the pipe to avoid downloading it each time your pipeline runs.

Unfortunately, this function is not currently available. However, we have a feature request that closely matches your needs. I strongly recommend that you vote for and watch this request. By doing so, you'll receive updates whenever there are any developments. Here's the link:

[Cache dependencies for Bitbucket Pipes](https://jira.atlassian.com/browse/BCLOUD-18478)

Regards,  
Syahrul


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

google
How to Remove Members? (non technical user of BB)
Asked by Laurin Mills:

Hello, I am trying to figure out something on my Bitbucket account so I can give access to a new development team.

When I log into our account and go to People, it shows I have 5 members. One of the Members that is showing is an older developer, and I see no way to remove them.

Logically, it seemed like it would be under Manage Users. But when I go to this tab, it shows I only have 3 active users under the User groups, and the Member I wish to remove is not even listed here. Users seem to be removed from this screen, but Users do not appear to equal Members (under People it shows I have 5 members, under Users it shows I have 3). I am not a developer, so I am not a regular user of BB- I am baffled!

Does anyone know how to remove the members I no longer want to give access to? And what is the difference between Members and Users? Thanks so much for your help!


Answers:
author: Ben
body: Hi Laurin,

I have taken a look at your workspace and can see that there are 5 users, 3 of these users are present in user groups - so this may be why you aren't seeing the other two.

The full list of users in your repository are present in **Workspace Settings \> User Directory**.

To remove users from your workspace, I would suggest following our article below:

* [Remove Bitbucket Cloud Users from a Workspace](https://confluence.atlassian.com/bbkb/how-to-remove-bitbucket-cloud-users-from-the-plan-1217306510.html)

Hopefully this is helpful, please let me know if you encounter any issues removing those users.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: WW PIT Admin
body: I have a similar issue. The linked article shows options to delete users on that page, but I do not have options to delete users on that page. How can I get those buttons to appear?


author: Ben
body: Hi [@WW PIT Admin](/t5/user/viewprofilepage/user-id/5534603)

I can see that you are using the new user management experience, so users are managed via Atlassian Admin rather than via the Bitbucket Cloud UI.

Please refer to this article below:

* <https://support.atlassian.com/user-management/docs/remove-or-suspend-a-user/>

Cheers!

- Ben (Bitbucket Cloud Support)


author: WW PIT Admin
body: Hello Ben,

Thank you for the response. It worked and I was able to remove users.

Thank you!


author: Julian Governale
body: Hi [@Ben](/t5/user/viewprofilepage/user-id/4537226) ,

I wanted to confirm if we remove a user from the workspace, what information is also removed for that user? Will all the repos they created be removed as well?


author: Ben
body: Hi [@Julian Governale](/t5/user/viewprofilepage/user-id/1147654)

Removing a user from a workspace will only remove their access, it will not remove any repositories/commits/metadata associated with their account.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: cloud
hi, first question here
Asked by luis emilio beyghau:

I have been after a long period of not using git or bitbucket,

i have an unupdated repo here in bitbucket, and a actualized one in my "manjaro"linux. I want to actualize bitbucket to the latest version of dotfiles (.bashrc,.bash_alias,.bash_funks(functions) \& bash_history  
could you help me?


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

If you only want to update Bitbucket with the latest version of these files and you're not interested in preserving older history, you can do the following:

1. Clone the Bitbucket repo on your Linux machine

2. Copy-paste in the clone directory these files

3. Commit the changes in the clone directory

4. Push them to the Bitbucket Cloud repo

We have the following tutorials if you are not familiar with Git:

* <https://www.atlassian.com/git/tutorials>

The commands for the operations I mentioned are in the sections **Getting started** and **Collaborating workflows** (git clone, git add, git commit, and git push).

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora

comments: author: luis emilio beyghau
body: Hi Theodora, thanks for visiting my question. I did it other way at the end: cloned bitbucket repo in my home directory, replaced cloned files with the ones i have in my linux system , and hard-linked .bashrc ... etc to the cloned repo, so it's up to date without much effort, it's working.


author: Theodora Boudale
body: Thank you for the update, Luis Emilio, that's good to hear.

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


Tags: bitbucket-cloud

cloud

git

repository
User has lost 2FA, not recieving emails or recovery codes
Asked by Avinash Achari:

Hello! A user in my company is having issues with logging into his BitBucket account, seems like his 2FA authenticator is not working. He has tried to recover his account through email, but is not receiving anything. How can I ensure he gets the email so he can continue with his recovery process?


Answers:
author: Ben
body: Hi [@Avinash Achari](/t5/user/viewprofilepage/user-id/5415717)

I've raised a support ticket on your behalf, as you have access to a Premium workspace and are therefore entitled to Premium support from our staff.

Please check your email for further correspondence.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
activate my account
Asked by Ryan Gordon:

cant login, activate my account


Answers:
author: Patrik S
body: Hello [@Ryan Gordon](/t5/user/viewprofilepage/user-id/5415641),

Your account was in Inactive state due to a long period of inactivity.

I've just set it to Active again, so you will be able to log in as usual.

Let me know if you are still facing issues getting into your Bitbucket account.

Thank you, [@Ryan Gordon](/t5/user/viewprofilepage/user-id/5415641) !

Patrik S


author: Michael Yaroshefsky - Visor for Jira
body: Hi [@Ryan Gordon](/t5/user/viewprofilepage/user-id/5415641)  

Welcome to the Atlassian Community.   

Does using a different browser help? I checked to see if there were any bitbucket bugs, and only maintenance is in progress today, Jan 26 <https://bitbucket.status.atlassian.com/>  

I've also seen [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) from the Atlassian team help others with this. You can tag him or reach out to him directly <https://community.atlassian.com/t5/user/viewprofilepage/user-id/4603309>  

Let us know if that helps,  

Michael


Tags: bitbucket-cloud

cloud
Integrate Bitbucket Pipelines cache with buildkit
Asked by Ben Scholzen:

When building images which require buildkit features the standard docker driver caching becomes unavailable.

There are a couple workarounds at the moment, with the primary one being caching in a repository. This is feasible only when the the repository in question already exists, which in case of e.g. CDK is not the case on initial build, plus it doesn't give you access to latest tags anyway.

The way we are currently working around it is to --cache-to=type=local to a known directory, and then utilize a defined cache in bitbucket-pipelines.yml to cache that directory, with the Dockerfile being the key. Since our layers cache maxes out at around 80-100MB uncompressed, this works okay'ish, but obviously invalidates all caches when something in a later step in the Dockerfile changes, which should not affect previous layers.

Now here's my recommendation:

Buildkit already has a [cache backend](https://docs.docker.com/build/cache/backends/gha/) for the GitHub Actions cache, so it can immediately directly communicate with the cache. Bitbucket could implement the GitHub Actions cache protocol in its cache, which would allow to use tha gha cache type directly, no changes required upstream.

Alternatively, Atlassian could contribute a cache backend for their Bitbucket Pipelines cache to Buildkit (e.g. type=bp), which would allow docker to immediately cache from and to the Bitbucket cache.

Considering that buildx is becoming the standard, an out-of-the-box caching solution should be found.


Answers:
author: Theodora Boudale
body: Hi Ben,

Thank you for the suggestions!

We have a feature request in our issue tracker for caching layers produced when using BuildKit:

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

I went ahead and added a comment with a link to your post and I also quoted your feedback. You can add your vote to that feature request (by selecting the **Vote for this issue** link). You are more than welcome to leave a comment if you have any additional 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.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

docker
Branch trigger on pipelines
Asked by Felipe Oliveira:

Hello community! I have some doubts. I need to set up the trigger to run my pipeline on a specific branch, but despite inserting the code snippet below, it always runs. Is it possible to make this kind of configuration? How can I set it up so that it only runs on this branch? Thank you!  

branches:  
only:  
- hml  


Answers:
author: Ben
body: Hi Felipe,

Welcome to the Bitbucket Cloud community! :)

The **default**tag configured in your YML config should be the only tag where builds will run upon every commit, regardless of the branch.

Limiting the builds to a singular branch (in this case, the master branch would look like this):

```
pipelines:
 branches:
master:
- step:
name: 'Echo Message'
script:?echo "Hello world!"
```

I would suggest double checking your YML config, and also reading our documentation for YML configuration below:

* <https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Unable to login to BitBucket with any Browsers
Asked by Jonathan Baltus:

Hi :)   

I have the same error as other users. I can't log in to bitbucket with error :   

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/171977i84B3A949A1AF8088/image-size/large?v=v2&px=999 "Capture.PNG")  
It seems that my account is inactive and we can't do anything to fix it. Could you fix it please ?   


Answers:
author: Nikola Perisic
body: Hello [@Jonathan Baltus](/t5/user/viewprofilepage/user-id/5413454) and welcome to Atlassian community!

Yesterday, someone had this issue as well: <https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-login-to-BitBucket-with-any-Browsers/qaq-p/2589591>

[@Patrik S](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4603309) could you please take at look at this as well? Or someone from the Atlassian team can assist Jonathan.

Thanks!


author: Jonathan Baltus
body: Hi,   

It's fixed by Suyog D. (from Altassian Bitbucket Support).  

Thank you all and have a nice day !


Tags: bitbucket-cloud

cloud
bitbucket recovery mail system make me crazy!!!!!!!!!!!!!!!!!!!!!
Asked by ???:

My origin account is 'redacted'.  
but i lost my authenticator and recovery key.   
your recovery mail request system bug. recovery mail request is faeild  
so i request recovery mail to ticket.   

yesterday I received email that attached image.  
but i can't receive any recovery mail.  
your email recovery system bug make me crazy.

How long should I put up with your company's wrong system?  
Why do you answer late when you can't handle things?  
Are your bosses aware of this?  
Do I have to formally challenge the board?  

<br />

![?????????? 2024-01-26 ????? 9.21.55.png](/t5/image/serverpage/image-id/302631i1204B6B85A51FA63/image-size/large?v=v2&px=999 "?????????? 2024-01-26 ????? 9.21.55.png")![?????????? 2024-01-26 ????? 9.21.49.png](/t5/image/serverpage/image-id/302632i492F1B8382E6791A/image-size/large?v=v2&px=999 "?????????? 2024-01-26 ????? 9.21.49.png")  


Answers:
author: Syahrul
body: G'day,

I believe we triggered an email reset to your account last Friday and today. Could you respond to the ticket so we can continue the investigation if you still can't access your account?

You can check your existing ticket in our support portal:

<https://support.atlassian.com/requests/>

Regards,  
Syahrul


Tags: unknown-hosting-type
Security between Sourcetree and Bitbucket
Asked by tpascal:

Hi,

<br />

I have had SourceTree connected to my bitbucket account for a few years.

All seemed ok. Sometime in the past 6 months, my security stopped working.

Perhaps my SSH key expired.  

I have:

- Used PuttyGen to generate a new key

- Saved public and private keys

- copied public key to Bitbucket

- Selected new private key using Pageant on my windows laptop.  

Yet... I still get an error when I try to push to the server?

"The host key does not match the one that Putty has cached"  

Any suggestions?  

Terry


Answers:
author: Theodora Boudale
body: Hi Terry,

Bitbucket Cloud updated its host keys last year. These are the keys that a client uses to verify the authenticity of Bitbucket Cloud and they are not related to the SSH keys you configure for your Bitbucket Cloud account.

Based on the error you get, it sounds like PuTTY may still be configured to use one of Bitbucket's old host keys.

You can check the **Technical Questions** on the following page, specifically question number 9, "**We are using SourceTree for Windows and are connecting via SSH, will I need to make changes to my known_hosts file ?"**

* <https://confluence.atlassian.com/bbkb/bitbucket-cloud-ssh-host-key-rotation-faq-1235851234.html>

You can follow the steps that are provided in this question, to ensure that PuTTY uses one of the new host keys of Bitbucket Cloud.

Please feel free to reach out if you have any questions!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

sourcetree