youngmon/atlassian-qna huggingface dataset:
missing repo
Asked by mike susko:

My repo is missing. It's listed, but when I try and go to the page, it's not there. I pushed code to it a week ago. It's in the bitbucket cloud.


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

Does this concern the repository that belongs to your personal workspace?

If so, this workspace was set to a dormant state which I believe may have been the reason why you couldn't access the repo.

I changed the workspace's status to active, can you please check if you are able to access the repo now?

Kind regards,  
Theodora

comments: author: mike susko
body: Thanks a gazillion. Is there anything I can do to prevent my account going dormant again in the future?


Tags: bitbucket-cloud

bug

cloud

repository
Prisma Cloud (twistcli) container scanning from BitBucket Pipeline - is this possible?
Asked by patrick feerick:

We are migrating from Jenkins CI to BBC pipeline and are blocked by this. Prisma provide a tool (twistcli) which we install in our image, however it tries to run Docker using the --security-opt argument and this is blocked by BBC.

Since Prisma is a relatively common tool I'm hoping someone else has already got around this?


Answers:
author: Mark C
body: Hi [@patrick feerick](/t5/user/viewprofilepage/user-id/5082722),

Thank you for reaching out to the community.

The Docker command with the **--security-opt** is indeed not allowed when you run it on Pipelines cloud infrastructure. - [Here's the full list of restricted commands](https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#Full-list-of-restricted-commands)

Alternatively, you can explore [Bitbucket Cloud Pipelines runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/) which will allow you to have more control as it runs on your self-hosted machine.  

Hope it helps and do let me know if you have further questions.

Regards,  
Mark C

comments: author: patrick feerick
body: Thank [@Mark C](/t5/user/viewprofilepage/user-id/1210823) I guess that is an option, although the need for server management does not at first glance make it look too attractive. AFAIK bbc-pipeline equivalents (on Azure, Github) seem to be supporting Prisma. You would have thought they were as similarly constrained vs Docker.

Paddy


author: anubhav_sharma
body: Hi [@patrick feerick](/t5/user/viewprofilepage/user-id/5082722) I am also trying to implement twistcli in CI pipeline.

Could you please help me how you have enabled it?


author: patrick feerick
body: Hi Anubhav,

We gave up on attempting to run twistcli in BBC because of the above restrictions. I haven't attempted since then but doubt those restrictions have gone away.


Tags: bitbucket-pipelines

cloud

docker
Microsoft Login Issue - Logs me in then switches me over to Anonymous
Asked by kwittmack:

I log in to the Bitbucket website using my Microsoft 365 authentication and it briefly shows my account in the top right corner then immediately changes the account to Anonymous.

I tried viewing my Jira account and was able to see that my account information was correct.

I tried to clear my cache and flush my DNS and hard refreshed my browser but nothing changed after trying to log back in.

I tried a different browser and computer but nothing changed after trying to log back in.

I can push/pull to the repositories using the SSH but cannot access the web client.

I deploy some of the repositories through Netlify using the Bitbucket account to authenticate. I am currently able to get into my Netlify account using the Bitbucket authentication.

Any more ideas on how to resolve this issue would be appreciated.


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

Has this issue been resolved for you as well?

We had a partial outage that day which I believe was causing this. Can you try flushing your cache now and hard reloading your browser, and let me know if you are able to log in then?

Kind regards,  
Theodora

comments: author: kwittmack
body: I gave the issue some more time and everything seems to have been resolved. Thank you.


author: Theodora Boudale
body: That's good to hear, thank you for the update.

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


author: SAURURUS sro
body: this works for me now:  
open bitbucket.com in web browser  
login in ( in our case with google account )  
when done, open this page in the same browser window <https://bitbucket.org/dashboard/projects>


author: SAURURUS sro
body: hi, we are using google account, but same for us.![Screenshot 2023-02-17 194919.png](https://community.atlassian.com/t5/image/serverpage/image-id/241019i97AFDEEA3E764903/image-size/large?v=v2&px=999 "Screenshot 2023-02-17 194919.png")


Tags: bitbucket-cloud

cloud
HTTP/2 errors communicating with the Bitbucket API
Asked by Pulumi Bot:

Hi,

We're seeing large volumes of HTTP/2 errors communicating with the Bitbucket API. These errors started appearing as of about 6:00AM Pacific time this morning. We're still investigating whether or not these errors are impacted by anything on our end given that the Bitbucket status page shows all systems operational. Any advice?

All errors are of the form:  

Get "[https://api.bitbucket.org/2.0/user/permissions/workspaces?q=workspace.uuid\[redacted\]](https://api.bitbucket.org/2.0/user/permissions/workspaces?q=workspace.uuid[redacted])": stream error: stream ID 15; STREAM_CLOSED; received from peer


Answers:
author: Romain T.
body: Same for us!  

Started to look into the cause, but seeing others affected and we didn't change anything that could cause those issues, I'd say it's on Atlassian ends or a more general network issues between their servers and us.

comments: author: Pulumi Bot
body: Glad to hear that this isn't just us!


author: Romain T.
body: Status page updated and acknowledging the outage by the way  
<https://bitbucket.status.atlassian.com/>


author: Pulumi Bot
body: Looks like this is now resolved: <https://bitbucket.status.atlassian.com/incidents/w8g9h5yx5f0j>


author: malsharbaji
body: we are also facing the same issue


Tags: bitbucket-cloud

cloud
Can you please run Garbage collector at server end for this repository
Asked by Kameshwaran:

Hi Team,

I have a real-time repository that has a repository size issue. Since I cannot play around with the project repository I am working with this dummy repository to delete the large-size files which are not needed.

So I have run the below commands.

git clone --mirror <https://{username}@bitbucket.org/{workspace-id}/{repo}.git>

java -jar bfg.jar --delete-files \*.mp4 root-testing.git

cd root-testing.git

git push origin --force

git reflog expire --expire=now --all

git gc --prune=now

But still, the size of the repository does not change. I understood from the different already available questions and its responses that it has to be cleared from the server end too.

My request is to run a garbage collector on the server for this repo and I want to see if the size goes down or not.

Kindly, do the needful and reply back.


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

This repo's size on Bitbucket Cloud was 872.9 MB when I checked a few minutes ago. I triggered a garbage collection for the repo and now its size is 871.0 MB, so approximately the same.

Please note that the git reflog and git gc commands on your local repo need to be run prior to the push, as mentioned here:

* <https://rtyley.github.io/bfg-repo-cleaner/>

What is the size of your local repo **root-testing.git** after you run BFG and also the following command?

```
git reflog expire --expire=now --all && git gc --prune=now --aggressive
```

You can check the size of the repo if you navigate to the repo's directory and then run

```
git count-objects -Hv
```

What output do you get from that command?

Just a heads up, I edited the repo URL from your post to comply with our privacy policy.

Kind regards,  
Theodora

comments: author: Kameshwaran
body: Dear Support,

I have run and you find the details

```
git count-objects -Hv
```

![Atlassian_clean.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/241310i8FC30DB15B01D53C/image-size/large?v=v2&px=999 "Atlassian_clean.JPG")

Local repo size after cloning in my local hard disk![Atlassian_local.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/241313i96F42294F74AC638/image-size/large?v=v2&px=999 "Atlassian_local.JPG")

I have run again with the mentioned above sequence.

Can you please try now at your end 'gc' to bring down the size of the repo?


author: Theodora Boudale
body: Hi [@Kameshwaran](/t5/user/viewprofilepage/user-id/5149765),

Thank you for the details. I ran another git gc, but the repo's size remains 871.0 MB.

I will go ahead and create a support ticket for you using your community account's email address, so we can further look into this issue. You should shortly receive an email with a link to the support ticket. Just in case you don't receive the email, please let me know and I can post the ticket URL here (the contents of the ticket will be visible only to you and Atlassian staff, no one else can see them even if they have the URL).

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket pipeline: API request return Cloudflare HTML in response
Asked by EvoX0:

Hello, I'm facing a problem with my pipeline.  
I try to make a GET request to my API in the pipeline and expected to receive an API response.  
Therefore I receive 403 or 200 with Cloudflare's response.  
In my local machine or my docker container all ok.   
API is open.

In Cypress tests situation is the same.  
Please help me with that.

![Screenshot 2023-02-17 at 12.41.02.png](https://community.atlassian.com/t5/image/serverpage/image-id/240921iB288FB49BC6E4D53/image-size/large?v=v2&px=999 "Screenshot 2023-02-17 at 12.41.02.png")


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

You mentioned that the API call works as expected in your Docker container. Are you running this API call in a Docker container based on the same Docker image as the one specified in your bitbucket-pipelines.yml file for that step?

Are you using the same Bearer token in the Pipelines as the one you use locally in the Docker container?

If the answer to any of the questions is no, could you please try running the API call locally in a Docker container based on the same image (and image tag) as the one in the bitbucket-pipelines.yml file for that step, and also use the same Bearer token; and then let me know if you see the same issue or not?

Kind regards,  
Theodora

comments: author: EvoX0
body: Hi, [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

The problem is solved, thanks for your reply.  
The issue was in Cloudflare protection against bots.  
Thanks


Tags: bitbucket-cloud

cloud
Where can I find a patched RPM package of git for Bitbucket Server 7.21.8?
Asked by Naushad Naleer:

Hi,

I need to update git on our Bitbucket Server 7.21.8 (on Centos7), we currently use git 2.24.4 ( as I couldn't find a higher supported version in rpm). I have been looking in many places but still unable to find a supported patched version of git, preferebly one of the following:

Patched versions {#toc-hId--493770816}
--------------------------------------

\>= v2.30.7, v2.31.6, v2.32.5, v2.33.6, v2.34.6  
[https://confluence.atlassian.com/security/multiple-products-security-advisory-git-buffer-overflow-cve-2022-41903-cve-2022-23521-1189805967.html?utm_source=alert-email\&utm_medium=email\&utm_campaign=multi-product-advisory_february-2023_EML-15103\&jobid=105935109\&subid=1514987739](https://confluence.atlassian.com/security/multiple-products-security-advisory-git-buffer-overflow-cve-2022-41903-cve-2022-23521-1189805967.html?utm_source=alert-email&utm_medium=email&utm_campaign=multi-product-advisory_february-2023_EML-15103&jobid=105935109&subid=1514987739)

Thanks for you help

Naushad.


Answers:
author: Luiz Elias
body: Hi Naushad,

Since IBM/RedHat decided to sunset the Centos project there has been very little updates for the packages.  
I'd suggest you download it and compile it from the source:

I'd also advise you to test it first in a development environment, here are the steps:

```
1) remove the current 1.8x version: 

sudo yum -y remove git
sudo yum -y remove git-*

2) Install dependencies:

sudo yum -y install epel-release
sudo yum -y groupinstall "Development Tools"
sudo yum -y install wget curl perl-CPAN gettext-devel perl-devel openssl-devel zlib-devel curl-devel expat-devel getopt asciidoc xmlto docbook2X

3)Download version 2.34.6 from git:

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.34.6.tar.gz

4) Compile 

tar -xvf git-2.34.6.tar.gz
cd git-2.34.6
make configure
sudo ./configure --prefix=/usr
sudo make
sudo make install

5) test it:

$ git --version
```

3rd parties maintain some repositories with the latest version of git, however, I'd not recommend using them since they're not official. Please use it at your discretion:

<https://packages.endpointdev.com/rhel/7/os/x86_64>

to install:

```
sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
```

or from IUS.io which is backed by rackspace

[https://ius.io/faq](http://IUS)

I hope that heps.

Cheers,

Luiz

comments: author: Naushad Naleer
body: Thanks Luiz,

I dowloaded and compiled it from the source. It worked.


Tags: bitbucket-server

git

server
Setup User / Group provisioning and SSO for BitBucket Cloud Instance
Asked by Christian Humer:

Hello

I want to setup security for our Bitbucket Cloud. It seams that it's not possible via Atlassian Access to setup user/group provisioning and SSO like for the other products of atassian.

Is there a dedicated plan needed to setup SSO?

Can you explain the solutions?  

Christian


Answers:
author: Theodora Boudale
body: Hi Christian,

While user provisioning with Atlassian Access is not possible for Bitbucket Cloud, SAML SSO is. Please see the details below:

++**User provisioning**++

This feature is on our roadmap:

[https://www.atlassian.com/wac/roadmap/cloud?selectedProduct=bitbucket\&search=user%20provisioning](https://www.atlassian.com/wac/roadmap/cloud?selectedProduct=bitbucket&search=user%20provisioning)

You can add yourself as a watcher to the following feature request if you'd like to get notified via email on updates:

* <https://jira.atlassian.com/browse/ACCESS-621>

In the meantime, you can create user groups manually from your workspace's Settings \> User groups and invite/add users to each group. Users can also be given direct access to a repository via a repo's Repository settings \> User and group access \> Add members.

We also have API endpoints for creating user groups:

* <https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/>

Inviting a user to a user group:

* <https://support.atlassian.com/bitbucket-cloud/docs/invitations-resource/>

Inviting a user to a single repo:

* <https://support.atlassian.com/bitbucket-cloud/docs/invitations-endpoint/>

<br />

++**SAML SSO**++

SAML SSO can be configured with Atlassian Access and it will apply to Bitbucket Cloud users as well. There is an option in <https://admin.atlassian.com/> (for Org Admins) called Authentication policies. You'll need to configure and save SAML and then enforce SAML single sign-on in an authentication policy. SSO will then apply to all users that are added under an SSO-enforced authentication policy; so, if your Bitbucket Cloud users are added to such a policy, they will need to use SSO to log in to Bitbucket Cloud.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
SourceTree for Mac is very slow on new 2018 MacBook Pro
Asked by mprcloud:

I'm using a brand new 2018 MacBook Pro 15 inch (16GB RAM, 200GB free space currently on SSD). SourceTree is extremely slow when doing server checks it seems.

I previously used SourceTree with the same repo on my 2012 MacBook Pro and it was significantly faster.

Every time I click on a commit in the browser that is origin or switch back from that to a another one, the ball keeps spinning for 5-7 seconds. My internet speed is quite fast and it works fine on my other machine.

I switched to using the system git because previously it was completely unusable. It's a bit better now but still have the 5-7 seconds lag and performance problems when committing, etc.

I tried downgrading to 2.5.3 as recommended in some similar posts but that did not work either.


Answers:
author: alessandrorolando
body: Same problem here, 2018 Macbook Pro 6core 512 ssd but Source Tree super slowly. Incredible. Do something!


author: Manju
body: We are continuously working on improving the performance of Sourcetree and the next release has significant improvements in this area. Please stay tuned for an update coming your way soon. Appreciate your patience in this.

Thanks!
Trying to login to bitbucket through sourcetree but every time I try nothing happens.
Asked by Matthew Finlay:

I am trying to pull a project that I have been working on. I have the repository already cloned from about 2 weeks ago (Meaning everything was working about that time). Now I am trying to pull the rest of the changes that's happened the past 2 weeks. On source tree, when I pull. A pop appears to log in. So I put in my credentials which are 100% correct and nothing happens, after a few seconds the pop up reappears again to login. I then input my credentials another 3 times and nothing seems to be happen until it gives me an error and it tells me to do an app password. I have tried to set an app password following a documentation on Atlassian Community. However, this is still not working for me. What is causing this as it is becomimg a real inconvenience, I literally cannot work and I am getting vert desperate for a solution as I am very stuck..

Thanks in advance


Answers:
author: Matthew Finlay
body: Found a solution ! Deleted source tree and now using Gitkraken ! Highly recommended.


author: Manju
body: Is this on Windows or macOS?

comments: author: Matthew Finlay
body: Windows 10


Tags: bitbucket

bitbucket-cloud

cloud

git
branches merged but not showing as merged in soucetree
Asked by majeedsahebzadha:

'origin/dev2' has been merged into 'develop', however the pink line which represents 'origin/dev2' is not merged into the blue line which represents the 'develop' branch.

My question is - why have these two branches not merged visually in sourcetree?

![merge issue.PNG](/t5/image/serverpage/image-id/29177iCE5E8744392B8271/image-size/large?v=v2&px=999 "merge issue.PNG")


Answers:
author: Mike Corsaro
body: Hello! I'll need a bit more info:

* Could you list the parents for the commit with the merge on it?
* Could you then list the SHA/Commit for 'origin/dev2' and 'Last tour edits'?


Tags: branch

merge
Why am I not able to login to my Atlassian account while installing Sourcetree on my mac
Asked by Bo Sheffield:

While installing sourcetree on my mac (running High Sierra 10.13.6) I'm asked to login to use an existing Atlassian account which I have. When I click the button a new window comes up asking me to login. I enter my email hit continue and the word continue disappears from the blue button, an edit icon shows up next to my login name but a password box never appears and it just sits like this until I cancel.


Answers:
author: Manju
body: Could you please include a screenshot?

comments: author: Bo Sheffield
body: bizarrely it was my docking station. When I'm using the MacBook by itself the password box comes up.
Authentication failure using windows source tree 2.6.10.0
Asked by Marc Bishara:

I am using windows 10, source tree 2.6.10.0, one morning authentication just keeps failing on all my repos.

I tried both OAuth and basic, both refresh just fine and say that the authentication status is "Ok" but then I try to pull anything and I keep getting the password prompt and even when I put the correct password, it just keeps throwing an error:

fatal: HttpRequestException encountered.  
An error occurred while sending the request.

remote: Invalid username or password.

Anyone ideas what's going on?


Answers:
author: bgannin
body: What service (Bitbucket, GitHub, etc.) are you trying to interact with? Presumably this is with Git?

comments: author: Marc Bishara
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444) Using bitbucket Git.

I uninstalled 2.6.10.0 and reinstalled, problem persisted. So I uninstalled and re-installed 2.0.20.1 (I had the exe on my laptop still) and now the GUI works fine.

Also another note from before, the terminal always worked just fine even when I was having trouble with the 2.6.10.0 installation which makes it seem like I ran into a bug and just can't refresh my way out of it.

Cheers


author: bgannin
body: There's a [known issue](https://community.atlassian.com/t5/Sourcetree-discussions/dev-team-Known-Issue-Bitbucket-Login-with-Git-Credential-Manager/m-p/863235) with Bitbucket and Git on Windows right now that we're waiting on the fix to ship for.


author: Marc Bishara
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444) Thanks for the input. This sounds about right. I will wait for a further update before upgrading my sourceTree version again.
'git status' failed with code 128: fatal: unable to read
Asked by Andrew Larter:

My technical skills and know-how with Source Tree are pathetic at best, so you'll have to be very, very slow. I use Source Tree for Unity, and the file still runs perfectly in the application, however a corrupted file formed in my folder. I removed it (perhaps foolishly) and now I receive the titled error. Source Tree will no longer allow me to access my file or commit further to it. I have no idea where to start. Thankyou for any help you can provide.


Answers:
author: Mike Corsaro
body: Hello! This answer might have the solution you're looking for: <https://community.atlassian.com/t5/Sourcetree-questions/Re-git-status-failed-with-code-128-error-bad-signature-fatal/qaq-p/207698/comment-id/6023#M6023>

To run that command, just open the repo and hit "Terminal".


author: atom888
body: I had an issue where the git version of 2.34.1 would NOT work suddenly for some reason.  

I was able to upgrade to the latest git, version 2.46.0 and then it worked!  

Steps to do this:  

sudo add-apt-repository ppa:git-core/ppa  
sudo apt update  
sudo apt upgrade git


author: Bilal Nadeem
body: i've tried deleting config file that is causing error and it worked for me.


author: Krzysztof Pawleta
body: Check in Sourcetree preferences if your project has proper path. It happened to me that I had the same error and somehow project path was reset.


Tags: atl-gruland