youngmon/atlassian-qna huggingface dataset:
Erroring out while cloning bitbucket repository
Asked by Abhinav Shukla:

Hi,  

I have created the ssh key using ed25519 algorithm and added the key in bitbucket account but while cloning the repository I am getting below error.

\[abhinav.shukla@RA-INT-HIE-DEV-UCDB01 riayati\]$ sudo git clone ssh://git@ra-hie-bbk01.\*\*\*.intra:7999/\~abhinav.shukla/dev-test.git  
\[sudo\] password for abhinav.shukla:  
Cloning into 'dev-test'...  
ssh: connect to host ra-hie-bbk01.\*\*\*.intra port 7999: Connection timed out  
fatal: Could not read from remote repository.

Any suggestions?


Answers:
author: Erez Maadani
body: Connection time out usually indicates on a big repo or network issues, so my first recommendation would be to create a new empty repo and see if you can clone that without an issue.

If you have an issue cloning an empty repo, it's most likely a network/configuration issue.

If you don't have an issue with an empty repo, try cloning with --depth 1 and/or with --filter=blob:none.

I recommend going over the flags of [git clone](https://git-scm.com/docs/git-clone) to try and find which one suit you best.

comments: author: Abhinav Shukla
body: Yes. I am cloning an empty repo, looks like network/key configuration issue.

I am trying to set up ssh connection on two different servers like Bitbucket is installed in one server and trying to clone the repository in other servers.

Do you have any suggestions for this scenario?


author: Erez Maadani
body: Start with this article: <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/> and if you still having issues, try this one: <https://support.atlassian.com/bitbucket-cloud/docs/troubleshoot-ssh-issues/>

These two should help you establish an ssh connection into BitBucket.

Also, try connecting first from a local dev machine. It's usually easier to debug and sometimes even to install software on dev machine rather than on a server.


author: Abhinav Shukla
body: Thank you.


Tags: bitbucket-server
Can't add SSH key
Asked by Qianlong Morel:

I've got the error "Someone has already added that key as an access key to a repository" when I tried to add my ssh public key, I checked all my company's account but haven't found any repo with my key configured. Could you help me?


Answers:
author: Ben
body: Hey Qianlong,

Sure thing - I have raised a support ticket on your behalf using your work email address - please check your inbox for the link to the support portal.

As this is a public forum, we will need you to share the SSH key on that ticket to avoid revealing any sensitive information.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
fatal: unable to access 'https://bitbucket.org/s****/my******.git/': Could not resolve host
Asked by Preksha Shukla:

I'm able to access bitbucket from browser but when i'm trying to clone the code

I'm getting this error  
fatal: unable to access '[https://bitbucket.org/stoneridge/s\*\*\*\*/my\*\*\*\*\*\*.git/](https://bitbucket.org/stoneridge/s****/my******.git/)': Could not resolve host: bitbucket.org  
Following are the logs:  
![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/219462iDE0B22D32593DE03/image-size/large?v=v2&px=999 "Capture.PNG")  
\[2022-10-06T12:03:30.429Z\] Log level: Info  
\[2022-10-06T12:03:30.435Z\] \[info\] Validating found git in: C:\\Program Files\\Git\\cmd\\git.exe  
\[2022-10-06T12:03:30.449Z\] \[info\] Validating found git in: C:\\Program Files (x86)\\Git\\cmd\\git.exe  
\[2022-10-06T12:03:30.456Z\] \[info\] Validating found git in: C:\\Program Files\\Git\\cmd\\git.exe  
\[2022-10-06T12:03:30.463Z\] \[info\] Validating found git in: D:\\Users\\2413061\\AppData\\Local\\Programs\\Git\\cmd\\git.exe  
\[2022-10-06T12:03:31.800Z\] \[info\] Using git 2.37.3.windows.1 from D:\\Users\\2413061\\AppData\\Local\\Programs\\Git\\cmd\\git.exe  
\[2022-10-06T12:03:54.613Z\] \> git clone [https://Preksha028@bitbucket.org/s\*\*\*\*/my\*\*\*\*\*\*.git](https://Preksha028@bitbucket.org/s****/my******.git) d:\\Users\\2413061\\Documents\\my\*\*\*\*\*\* --progress \[13236ms\]  
\[2022-10-06T12:03:54.614Z\] Cloning into 'd:\\Users\\241061\\Documents\\my\*\*\*\*'...  
fatal: unable to access '[https://bitbucket.org/s\*\*\*\*/my\*\*\*\*\*\*.git/](https://bitbucket.org/s****/my******.git/)': Could not resolve host: bitbucket.org


Answers:
author: Erez Maadani
body: Your browser and git client (VS code) may not have the same network configuration.

You will have to open each network configuration and match both (proxy?).

Another option is to try connecting using SSH, which uses a different port (22) which might be open for your git client.


Tags: bitbucket-cloud

cloud
Container 'docker' exceeded memory limit.
Asked by Oluwaseun Oyebowale:

I have been trying to run sonarcloud on a repository using Bitbucket PHP pipeline and it returns "Container 'docker' exceeded memory limit.".  

image: composer:2.0

clone:  
depth: full # SonarCloud scanner needs the full history to assign issues properly

pipelines:  
default:  
- parallel:  
- step:  
name: Test  
script:  
- composer install  
- ./vendor/bin/phpunit test  
caches:  
- composer  
- step:  
name: Lint  
script:  
- composer install  
- ./vendor/bin/phplint . --exclude=vendor  
caches:  
- composer  
- step:  
name: sonarcloud  
script:  
- pipe: sonarsource/sonarcloud-scan:1.4.0  
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6  
caches:  
- composer  

i don't know how to address the error message.  


Answers:
author: Syahrul
body: Hey [@Oluwaseun Oyebowale](/t5/user/viewprofilepage/user-id/5036905)

Welcome to the community.

The error message you've shared indicates that the memory allocated to the **docker** **service** container is insufficient.

However, I can't see any **docker services**in your YAML config, so I wonder if you have any other services in the YAML.

Nevertheless, the default memory limit for the Docker service container is 1024 MB. So the error means your services are using more than the allocated memory.   
You can increase the memory allocated to the Docker service container as below.  

```
 definitions:  services:    docker:      memory: 2048
```

I hope this helps.

Cheers,  
Syahrul

comments: author: Oluwaseun Oyebowale
body: Thank you for the feedback


author: Patrik S
body: Hello all,

The error message "Container 'docker' exceeded memory limit" indicates that the memory allocated to the **docker service**in your pipeline is insufficient, and the docker command(s) being executed requires more memory.

By default, the docker service is allocated **1024 MB** of memory. This can be changed by following the instructions outlined in the article below :

* [Troubleshooting Pipelines - Scenario 12 : Pipeline build failed with Container "Docker" exceeded memory limit error](https://confluence.atlassian.com/bbkb/troubleshooting-bitbucket-pipelines-1141505226.html#TroubleshootingBitbucketPipelines-scenario12)

Thank you!

Patrik S


Tags: bitbucket-cloud

cloud

sonarcloud
Repository is over the size limit (4 gb) and will not accept further additions
Asked by Aaditya Raj Karki:

![limit.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/219412iFDEE55BDDCC2E168/image-size/large?v=v2&px=999 "limit.JPG")  
I can't commit. I have deleted some branch in repo to reduce its size but its not decreasing. Anyone who can help me solve this problem and explain the cause so that we can fix it together.


Answers:
author: Jools
body: Deleting branches won't do much if large files have been pushed to master/develop for instance. You need to remove them from Git cache and rewrite history.

We did that and repo still showed a high usage even though it was 30MB when checkout out.

Let's call the problematic repo "my-repo". What I did was:

1. [remove large files from "my-repo" history](https://support.atlassian.com/bitbucket-cloud/docs/maintain-a-git-repository/)
2. push to "my-repo"
3. clone "my-repo"
4. rename "my-repo" to "my-repo-old" in Bitbucket
5. create a new "my-repo" on Bitbucket
6. push repo you've cloned on step 3.
7. "my-repo" is now up to date and way smaller than the original one.

That's it.


author: Blazej Chabierski
body: Why would you even have a repository that's 4gb ? I would advise you to rethink of what you are keeping there.


author: Aaditya Raj Karki
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) i have created new question like suggested. can you help me solve this problem. Thank you


Tags: bitbucket-cloud

cloud
How to Setting a Bitbucket cloud Timezone?
Asked by Rogerio:

Hello Everybody,

I like to setting a specific timezone for Bitbucket cloud product. Is It possible? How to setting the Bitbucket timezone?


Answers:
author: Caroline R
body: Hi, [@Rogerio](/t5/user/viewprofilepage/user-id/4973483),

I saw that you created a ticket with our support related to the same question, and one of our support engineers has already answered you through that ticket, so I will share their answer here to help other community members that may have the same question.

The way Git works is to create an epoch time, which is automatically generated by each local machine to determine what time it is. Bitbucket simply reads the epoch time and translates it to what time a certain change/commit/pull request happened, so Bitbucket's UI does not control this information, this information comes from Git configuration on the local machine of the user.

With that said, the only way to control this is to check user by user and confirm if their local time and timezone are synchronized with the company standard.

Kind regards,  
Caroline

comments: author: Rogerio
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) , how are you?

Now, I understood. Thank you so much for your support.

Kind regards,

Rogerio


Tags: bitbucket-cloud

cloud
put sql in bitbucket but treats it as binary so pull requests do not show diffs
Asked by Joel Sciandra:

trying to put sql in bitbucket but it wants to treat it as binary so pull requests do not show diffs. I know that gitattributes solves this on the local side but not bitbucket. Any solutions?


Answers:
author: Joel Sciandra
body: when you export sql files from MS SQL Server Management Studio in unicode (by default), it puts a "FF FE BOM" at the front of the file which forces bitbucket to treat it as binary. Exporting as ANSI solved it.

comments: author: Onur Barl?k
body: Thanks, saving with UTF-8 (without BOM) solves that issue too. But this is a only a workaround.


Tags: bitbucket-cloud

cloud
Kubernetes pipes via OpenID connect
Asked by Baran B?Y?K:

Hi,

We're using bitbucket pipeline for our projects. After docker images build successfully, we want to run some kubectl commands in pipeline. We are using oidc in order to authenticate our clusters.

I've investigated to achieve this problems on google but I couldn't find a solution. Could you please help us to achieve this issue?

Have a good day.


Answers:
author: Yevhen
body: Hi [@Baran B?Y?K](/t5/user/viewprofilepage/user-id/4839467) Can you please elaborate on what exactly you're doing and what exactly fails for you?


Tags: bitbucket-cloud

cloud

kubernetes
Unable to view files with brackets in the filename "An error occurred"
Asked by jlindblom:

Bitbucket's UI shows an error when attempting to view filenames with brackets in them (e.g. "\[foobar\].ts"). This defect effects both the diff view as well as the source code view in the repository, and hinders our ability to review code in PR's.

Has anyone found a solution for this?


Answers:
author: Ben
body: G'day!

I have not been able to reproduce the issue that you have specified, I created a file called \[foobar\].txt with text and was able to see this without issue both in src view and viewing the diff after creating a PR.

Are you able to provide more information in regards to the exact scenario you are experiencing?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: jlindblom
body: Thank you for attempting to reproduce Ben. Please see my screenshots below. Our Bitbucket version is a little out of date as well (Atlassian Bitbucket v5.8.2) so it's possible it was fixed in a later release.

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


author: Ben
body: Hi again,

My apologies - you had tagged this ticket as "Bitbucket Cloud" so I was answering from a Bitbucket Cloud standpoint as I am an employee working on that team.

I would suggest raising your query again with the bitbucket-server tag as I am not familiar with supporting this product, this is to ensure that this is visible to that team and to make sure your query is answered.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Rex
body: Hello\~

This issue was also seen in version '7.21.7' - in our case, it was square brackets and the directory name containing the file, not the file itself. Is there anything you know about that case? (Note: it didn't happen in '8.9.0' - it's not the same server, it's a separate server, so it's possible that it's OS affected, but there could be other factors).

If there is anything further confirmed or known, we'd appreciate it if you could share.


Tags: bitbucket-cloud

bitbucket-server
A rogue former employee has just deleted everything on bitbucket, what should we do?
Asked by David Elliot Johnson:

A former employee has just deleted everything in our bitbucket account - all repos, everything. What should we do? Is there any way it can be recovered?


Answers:
author: Peter Van de Voorde
body: Hey David,  

Welcome to the Atlassian Community, that sounds like something terrible!   

If it's Bitbucket Cloud you could reach out to Atlassian Support to see if they can help recover your code: [https://support.atlassian.com](https://support.atlassian.com?)

Otherwise I would hope that your developers have local copies of your bitbucket repositories and you can recover your repositories from their local instances.  

Cheers,  
Peter


author: Theodora Boudale
body: Hi [@David Elliot Johnson](/t5/user/viewprofilepage/user-id/5047173),

If you are using Bitbucket Server (self-hosted instance), then the way to recover would be from any backups or from the clone that other developers may have on their machine.

If you are using Bitbucket Cloud (repos hosted in <https://bitbucket.org/>):

I cannot see a Bitbucket Cloud account in our system with the email of your community account. If your question concerns Bitbucket Cloud and you are using an account with a different email, we may be able to help restore the core repository content only, as long as the deletion happened within the last 7 days. We are unable to recover metadata or any content that was deleted past 7 days.

I would suggest to first check with any other employees who may have a clone of the repos locally and see if you can restore the repos from these clones.

If this is not possible, and the deletion happened within the last 7 days, and you are on the Free plan and can't create a support ticket yourself as Peter suggested, then please log in to community with the email of your Bitbucket Cloud account that had access to these repos, and leave a comment here.

I can then create a support ticket for you so that we check if we can restore these repositories from our backup.

Kind regards,  
Theodora
Is there a Bitbucket Webhook for "Pull Request Task created"?
Asked by Antonius Golly:

As the title suggest: there is a long list of Pull Request triggers for Webhooks. Ie. PR created, updated, declined. Even "Request changes".

But is there also "Task created"? We use this alot and not triggering a webhook is a big problem for our infra to inform us.

Can it be implemented?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Unfortunately there is none. Here is a feature request <https://jira.atlassian.com/browse/BCLOUD-22013> for the Bitbucket team to implement this. It would be good to add the 'task created' event into the webhook event space.


Tags: bitbucket-cloud

cloud
Trying to activate my account but using a different email address - no email coming
Asked by Ian Butt:

Hi I have been trying to use a different email account but I am not getting the activation emails. Initially my email account wasn't setup correctly but now that has been fixed. Can someone reset this so I can get the activation email please.

Email address is \<email removed due to privacy reasons\>

Thank you


Answers:
author: Caroline R
body: Hi, [@Ian Butt](/t5/user/viewprofilepage/user-id/5047155), welcome to the community!

I checked our logs and confirmed that your email had a block on the server that prevented emails from being sent to you. So I removed your address from this suppression list.

Could you please confirm if you receive the email now?

Kind regards,   
Caroline

comments: author: Ian Butt
body: Awesome thanks for your help. I am able to get the email.

Ian


author: Caroline R
body: Thanks for your confirmation, Ian! Glad to know that!


Tags: cloud
Default Pull Request Tasks: More control.
Asked by mark_gillespie:

Really like the default tasks for pull requests feature in the latest Bitbucket release, however for large codebases, the tasks need to be very generic.

I was hoping there would be some way to add conditions, e.g. if files in a particular folder or namespace have changed, or file changes with a wildcard or regex.

<br />

Is that something on the plan? It would make this feature really useful, as sadly at the moment, it's quite limited.


Answers:
author: Michael R?egg _Mibex Software_
body: Hi,

You could use our app [Checklist Buddy for Bitbucke](https://marketplace.atlassian.com/apps/1225571/pull-request-checklist-buddy-for-bitbucket?tab=overview&hosting=datacenter)t which supports adding different PR tasks based on the PR file content.

It uses configuration as code with rules for default tasks.

Here's an example: to have different default tasks when a PR contains \*.js files, just add this rule  

```
--files *.js   +task+  UI changes visually inspected on [Firefox](https://www.mozilla.org/en-US/firefox)
```

As you can see, file pattern similar to .gitignore are supported to specify conditions for the files in the pull request. You can use markdown for the default task descriptions.

For more details, check our [documentation](https://mibexsoftware.atlassian.net/wiki/spaces/CB/pages/2936144097/Getting+started).

[Let us know](mailto:support@mibexsoftware.com)if you have any questions.

Best regards,

Michael


Tags: bitbucket-server

pull-request

server
Problem with remote repositories
Asked by jai_holloway:

Hi there

Hope you can help me out. I was prompted to change my password this morning. Since doing so, I am unable to see our shared repositories. The only repository I have access to in SourceTree are repositories owned by me.

How do I get access to team repositories again? This is super urgent, as I am unable to work at the moment. Please help as soon as possible,


Answers:
author: Jeremy M
body: Dear Jai,

Can it be that someone has disabled your access/permissions to certain repositories?

Friendly Regards,

Jeremy

comments: author: jai_holloway
body: Hi Jeremy, sorry for the very late response on this. But we have double checked and my rights are the same as all my team members. So, it's not rights.

Further to not being able to see team repositories, I am also unable to create a team repository. I am only able to create a repository that I own.

This is very frustrating. Hope you have some suggestion to solve this.
Sourcetree always asks my ssh passphrase
Asked by Sam94:

I work on some projects hosted on gitlab.com and I'm using ssh to connect to these repositories. In SourceTree, I checked the option to save my ssh passphrase, but at ever action I take, a popup asks for it again... That's *very*irritating!

How can I save the passphrase manually for that account

Note that the passphrase is saved for a project hosted on a custom gitlab installation though...


Answers:
author: bgannin
body: What OS platform and what version of Sourcetree are you using?

comments: author: Sam94
body: I'm on macOS High Sierra (Version: 10.13.2 Beta (17C60c)) an I'm using SourceTree 2.6.3 (134).


author: Sam94
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444)

Do you have any idea what this is caused by and how to fix it? It really bothers me!


author: Manju
body: Can you please check if the ssh keys are loaded to the agent? You can do so by running below command on a terminal window.

```
ssh-add -l
```

It should list down the keys added to the agent. If you don't find anything listed, please add the key to the agent with the command below,

```
ssh-add <path_to_key>
```


author: Sam94
body: That was indeed empty, I now added my ssh key and guess what, it works. Thank you very much!


author: josh_sutterfield
body: I have the same issue but in Windows 10. ssh-add from command-line doesn't seem to work right. (Error connecting to agent: No such file or directory) Regardless, what would address the root cause? What can be set or done from the sourcetree application to remedy this?


author: Thomas_Varghese
body: I have the same problem. Tried setting up ssh-agent as a service using PowerShell, but does not make any difference.


author: Dominick Sidiropoulos
body: Had the same problem. I had to convert the .ppk key-file to openssh file-format and then I fed that file into ssh-add. It worked and I think it achieves the desired result but I'm not quite sure. Will keep an eye on this thing over the next few days.


Tags: authentication

ssh