youngmon/atlassian-qna huggingface dataset:
Cannot push to different owner repository
Asked by eyesofjeremy:

I maintain a couple bitbucket repositories, and I had to adjust my access credentials after the March 1 2022 switch. It seemed to work ... okay.

But since then I picked up a project I was working on in 2020, with a repository that a different owner ("OtherUser") maintains. I have not been able to push my changes into that repository.

Thus far, I have undertaken the following steps:

* added my own app password
* tried supplying the app password when pushing from Sourcetree (note, this seemed unlikely, as the message at that point was looking for the password for the OtherUser)
* had the other owner remove my access and then grant it again
* received admin credentials to the other repository
* added my own SSH key to my account
* cleared the user.password in my local Git settings
* confirmed I can push to other repositories after accessing Bitbucket via SSH instead of HTTPS
* restarted my computer

I am getting this message when trying to push:

```
Pushing to bitbucket.org:OtherUser/RepositoryName.git
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights 
and the repository exists.
```

I'm stuck and don't know what else to try.

Thanks.


Answers:
author: Alex Koxaras _Relational_
body: Hi [@eyesofjeremy](/t5/user/viewprofilepage/user-id/1011034)

On that repository, are you an admin or have write permissions?

comments: author: eyesofjeremy
body: Thanks [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197), I am an admin.


Tags: bitbucket-cloud

cloud

sourcetree
Need Git GC on remote
Asked by felix.peng:

Hello,

I have a repository that is approaching the size limit of 4GB. It was ported over from a previous repository that hit the size limit due to some large files being pushed. However, the long commit history seems to be inflating the repository size greatly. I have tried several methods on my machine to reduce the repo size, but to no avail. I would appreciate any assistance with running a gc on the remote side.

Thanks!


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

I can see two repositories, owned by your personal workspace, that are close to the 4 GB limit. I ran a git gc for both of them and their size has been reduced. In case your request concerns a repo owned by a workspace other than your personal one, please let me know the first two letters of the workspace and repo so I can identify it and run a git gc for it.

If you would like to further reduce the repos' size, you can check this post of mine in a different question with more details:

* <https://community.atlassian.com/t5/Bitbucket-questions/Revert-bitbucket-repository-state-to-one-day-prior/qaq-p/1908360#M76762>

If you decide to proceed with the steps I mention in that post and rewrite history in the repo with BFG, please keep in mind that the repo's size will get increased again once you push your changes. The repo will then need another git gc for the old commits (prior to history rewrite) to get removed and for its size to get reduced.

You can let me know here and I can then run another git gc for the repo. It is not possible for users to trigger git gc for their remote repos at the moment, but we have a feature request that you can vote for and add yourself as a watcher for updates: <https://jira.atlassian.com/browse/BCLOUD-11593>

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

Kind regards,  
Theodora


author: Aron Gombas _Midori_
body: I think you can ask for this via the official Bitbucket support channel and they will GC the repo for you.


Tags: bitbucket-cloud

cloud

garbage-collection
How can I get a reliable Markdown preview?
Asked by Eric Barbosa:

Hi All,  

I'm trying to update the README.md on our repo. The output I get in the repo is different from all the previews I have tested. I've tested various VSCode extensions and online Markdown editors.  

Thanks in advance.  


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

If you go to the **Source** page of the repo on Bitbucket Cloud website \> select the README.md file \> select **Edit** to edit the file, you will then see the option **Preview** next to the **Commit** button, at the bottom of the page:

![Screenshot 2022-11-01 at 14.38.43.png](https://community.atlassian.com/t5/image/serverpage/image-id/223564i369B99D68A861570/image-size/large?v=v2&px=999 "Screenshot 2022-11-01 at 14.38.43.png")

<br />

Please note that you need to make some edits in order for the **Preview** button to become enabled.

If you have some content that does not get formatted the way you expect it, please provide us with

* some demo content (it doesn't have to be the actual text from your file, just some dummy text to demonstrate the issue)
* some explanation of how you expect it to be formatted instead (you could also provide us with a link to an online markdown preview editor that formats it differently)

Kind regards,  
Theodora

comments: author: Eric Barbosa
body: Thanks for the reply.  

I will create a screen cast of the and post it soon.


author: Theodora Boudale
body: You are welcome Eric, please feel free to post it when you can.


Tags: bitbucket-cloud

cloud

markdown
Clarification for "Limitations for Linux Shell Runner"
Asked by Lassi Henriksson:

Hi,

What does "Custom build images on AWS ECR" exactly mean under the "Unsupported features" list for the Linux Shell Runner? Does this mean that we can still push container images to AWS ECR, but we cannot just use any images from the AWS ECR?

Reference: <https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-linux-shell/>

<br />

<br />

<br />


Answers:
author: Ben
body: Hey Lassi,

Unfortunately, due to security concerns - build/push to AWS ECR and indeed using AWS ECR images is not possible within Linux Shell Runners.

This is due to "ECR credentials" being out of scope for Shell runners, as well as service containers not being supported. Docker would need to be used to push to AWS ECR but it can only be implemented with a service container and is therefore not possible.

If you wish to use custom AWS ECR build images and work within these environments, you would need to make use of Linux Docker instead:  
<https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-use-runners-for-linux/>

Cheers!

- Ben (Bitbucket Cloud Support)


author: Lassi Henriksson
body: Hi,

Thanks for the clarification. Yes, we are pushing everything into AWS ECR, so we'll have to then continue using the Linux Docker version instead. Downside of using the Linux Docker version is that it's lacking support of Arm based instances. It takes ages to do Arm builds as you need to emulate everything.  

Any plans for the Arm support?

comments: author: Ben
body: Hey Lassi,

Not a problem, glad to be of assistance :)

We do have an existing feature request for supporting ARM architecture in our Bitbucket Runners, this is with our developers and unfortunately, we cannot provide an ETA as to its inclusion in the product:  
<https://jira.atlassian.com/browse/BCLOUD-21704>

Feel free to "Watch" this feature request to receive future updates and "Vote" for it to improve visibility in regards to customer demand.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
Asked by Helio Jesus:

Hi all,

I have just received this

"

remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.  
remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>  
remote: App passwords are recommended for most use cases and can be created in your Personal settings:  
remote: <https://bitbucket.org/account/settings/app-passwords/>  

"

I Revoked my previous password and created a new one and still not able to Merge my Projects...

Anyone knows the reason why ?

Thanks in advance.


Answers:
author: Helio Jesus
body: Actually is working.. my console is the one misbehaving adding extra chars when pasting...

Thanks all.


Tags: bitbucket-cloud

cloud
How to use Docker with Self-hosted Linux Shell runner?
Asked by Ievgen Koshevyi:

When i'm trying to start this pipeline

```
pipelines:
  branches:
    master:
      - step:
    name: Step 1
    runs-on:
      - self.hosted
      - test
      - linux.shell
    script:
      - docker version
```

i got thin result

"Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?"  

I have Docker installed, docker.service and docker.socket is active on runner.


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

Docker has not been tested and is not supported for Linux Shell Runners. That being said, I think the issue is that we are setting the variable DOCKER_HOST to tcp://localhost:2375 which leads to issues.

In order to work around this, you can add the command **export DOCKER_HOST=""** in your script as follows:

```
pipelines:
  branches:
    master:
      - step:
          name: Step 1
          runs-on:
            - self.hosted
            - test
            - linux.shell
          script:
            - export DOCKER_HOST=""
            - docker version
```

Please feel free to let me know if that solves the issue and if you have any questions.

Kind regards,  
Theodora

comments: author: Ievgen Koshevyi
body: Yeah. It works. Thank you!


Tags: bitbucket-cloud

bitbucket-runners

docker

shell
Bitbucket upgrade to 8.5 - git version
Asked by Mark Douglas:

Hi guys,

we are planning to upgrade our bitbucket data center to 8.5. Which git version is required?

thanks in advance


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Mark Douglas](/t5/user/viewprofilepage/user-id/676248) ,

please take a look to the following article [Supported platforms \| Bitbucket Data Center and Server 8.5 \| Atlassian Documentation](https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html)

Because a security issue on git, please take a look also to the following article <https://confluence.atlassian.com/bitbucketserver/installing-and-upgrading-git-776640906.html>

Hope this helps,

Fabio


Tags: bitbucket-server

server
Trigger a TFS 2018 build with webhook from Bitbucket?
Asked by Lars Ruoff:

Is there a way to configure a Bitbucket post-push webhook to trigger a MS TFS 2018 build definition?


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

In Bitbucket Cloud, it is possible to configure a webhook for a repository that will get triggered on every push:

* <https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/>

The webhook URL is provided by the receiving application. I am not familiar with MS TFS 2018, but if they provide a webhook URL you can use to trigger a build, it should be possible to add this to a repository.

Kind regards,  
Theodora


Tags: cloud

team-foundation-studio
Incorrect Jira Link Used In Pull Request
Asked by Vladislav:

Hi Community!   

So, this question has been raised from my own and my reviewers lack of attention. Our bitbucket is connected with Jira and Jtmf, so I, as a tester, create branch for my test cases from Jtmf story. When making pull request we are accepted to include something like this: "Bla bla bla for US XXX" where US stands for User Story and XXX the number part of Jira ticket ID.   
As a mistake, I included the whole Jira ticket ID instead of only the number part, so now that commit(not the pull request itself) is associated with Jira issue and it is causing a problem when that story is marked "Done" in Jira. Pull request was approved and merged, branch deleted and my team and me are stuck with "Unreviewed Code" warning on the release board.   

Any suggestions on possible fix?   
P.S. There were around 6 other merges after my merge

Thank you all in advance!


Answers:
author: Vladislav
body: I was able to get rid of Unreviewed code issue by making a repository on Jira issue which had merge commit connected, but no pull request. Then make a pull request and merge code. This fixed the issue my team was facing.

comments: author: Hana Ku?erov?
body: Thank you for sharing your solution.


author: Fabio Racobaldo _Herzum_
body: Hi [@Vladislav](/t5/user/viewprofilepage/user-id/5066048) ,

welcome to the Atlassian community!

Did u try to amend the commit message? <https://stackoverflow.com/questions/14381044/how-do-i-change-a-git-commit-message-in-bitbucket>

Hope this helps,

Fabio

comments: author: Vladislav
body: Hi Fabio!   

Thank you for your response. No, we haven't tried amending, as that pull request is not the most recent. Do you know if the Jira issue will be unlinked if the commit message will be changed?   
It's just the only other way is to rebase(which we are strongly discouraged to do).


author: Hana Ku?erov?
body: I few years ago I tested this and I wasn't able to get rid of the link once it was created. Hopefully it is possible now, please let me know, if you try it. Thank you.


author: Vladislav
body: Thank you for sharing your experience! Was your issue resolved? If so, how did you achieve it?


author: Hana Ku?erov?
body: No, I wasn't able to solve it :-(


author: Vladislav
body: I see. Haven't tried rebasing though, because I have found one way to fix it. Going to post here as answer


Tags: bitbucket-server

jira

pull-request

server
What's the difference between repo and project in Bitbucket
Asked by kaizoku-kuma:

Hello,

just a very simple question :

What is the betweend repo and projet in Bitbucket ?

In Github, if I'm not wrong a Repo can contain multiple projects but the other way is not possible

So in Bitbucket, is it the same or is it inverted ?

Thank you in advance,

Gauthier


Answers:
author: Mikael Sandberg
body: Projects in Bitbucket is a way to organize your repositories and apply the same configuration to those repositories, like access, branching strategy, default reviewers etc, instead of having to do that for each repository.

comments: author: Mikael Sandberg
body: And I forgot to add, welcome to Atlassian Community [@kaizoku-kuma](/t5/user/viewprofilepage/user-id/5065938) !


author: kaizoku-kuma
body: Hi thank you for the answer ! I understand now how it is thank you again !


author: Chris S
body: I think there is a small error in the original answer from [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579). I think the list of configuratino should say instead:

"Projects in Bitbucket is a way to organize your repositories and apply the same configuration to those repositories, like access ***keys***, branching strategy, default reviewers etc, instead of having to do that for each repository."

An Access Key is very different than Access, or Permission to access a repo. We recently had confusion in a meeting that this slight difference caused. I may be wrong though, so feel free to let me know if I missed something.


author: Zoey Wang
body: Thanks Chris


Tags: cloud
Run GC on remote repo
Asked by Prateek Sehgal:

Hi Team,

We have deleted certain files from our repo reducing the size from 4.36Gb to 1.51Gb. Still there is no change in the size over remote.

Can we please run GC on the remote to unblock us for further commits wherein we can reduce the size even further ?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Prateek Sehgal](/t5/user/viewprofilepage/user-id/3376571) ,

Atlassian team can support you on that. Please raise a request here <https://support.atlassian.com/contact/#/>

In the future, GC can be run by an admin (<https://jira.atlassian.com/browse/BCLOUD-11593>)

Hope this helps,

Fabio


Tags: bitbucket-cloud

cloud

garbage-collection
What is the difference of these parameters?
Asked by Asarudeen S:

What is the difference of these parameters.

plugin.search.config.baseurl=\<search server URL\> #e.g. <http://localhost:9200/>

plugin.search.config.username=\<username\> #e.g. bitbucket

plugin.search.config.password=\<password\> #e.g. the password that was hashed

* and

plugin.search.search.baseurl=

plugin.search.search.username=

plugin.search.search.password=

The Opensearch installation page has given the first set of parameters

Change password page has given the 2nd set of parameters.

Both are same ?


Answers:
author: Christian Glockner
body: Hi Asarudeen,

Thanks for pointing this out! The correct parameters are  

plugin.search.search.baseurl  
plugin.search.search.username  
plugin.search.search.password

I've updated the page at <https://confluence.atlassian.com/bitbucketserverkb/troubleshooting-steps-for-bitbucket-server-code-search-827125334.html?_cachebust=2446057267> with the correct parameters, if you found incorrect ones anywhere else please let me know and I'll get that updated too.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Asarudeen S
body: This page - <https://confluence.atlassian.com/bitbucketserver/administer-code-search-913477074.html#>


author: Christian Glockner
body: Hi Asarudeen,

Thanks for letting us know, I've submitted a documentation bug for this, which should get picked up and fixed soon.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
'Something went wrong' error displaying new pull request
Asked by ade:

I have a very large pull request from a dev branch with lots of changes into my main branch (3 months of daily work). The pull request cannot show the diff, understandably but it won't even show the files changed.

![Screenshot 2022-10-27 at 13.58.01.png](/t5/image/serverpage/image-id/222891i9F2630C6729A10EF/image-size/large?v=v2&px=999 "Screenshot 2022-10-27 at 13.58.01.png")

![Screenshot 2022-10-27 at 13.59.49.png](/t5/image/serverpage/image-id/222892iE4E195A0E0F3D404/image-dimensions/288x139?v=v2 "Screenshot 2022-10-27 at 13.59.49.png")

I have reloaded several times to no avail.

Is this likely just a display issue? Can I safely merge the PR (blindly) or may it actually be corrupted somehow?


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

These errors usually occur when a PR's diff is above our limits, I don't think there is a corruption issue and you can merge the PR.

Please check the following page for the limits we have for viewing diffs In Bitbucket Cloud:

* <https://support.atlassian.com/bitbucket-cloud/docs/limits-for-viewing-content-and-diffs/>

If the PR is still open, you can change its Settings to load files individually, this will apply then to all PRs in the repo. You can also exclude files from PRs. Details for both options are provided in the doc I shared. Please feel free to let me know if this helps or if you're still experiencing issues.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

error

pull-request
Unable to login to my Bitbucket account
Asked by Ashok Kumar Pooniya:

I have lost my recovery codes and I don't have access to authy app. please help me log in to my account. I have tried with the 24-hour method but I haven't received anything regarding recovering my bitbucket account. Please help me getting my account back without 2 step verification.


Answers:
author: Caroline R
body: Hi, [@Ashok Kumar Pooniya](/t5/user/viewprofilepage/user-id/5064860), welcome to the community!

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How to block write in bitbucket-pipeline.yml file
Asked by Rafael Pereira Silva:

Hello there,

In my stack i have a lot of repositories and teams, so i have a template pipeline that and

we want everyone in the company to use this same template passing only parameters.

So, what would be the best approach in this case?

* I would have a bitbucket-pipeline.yml (default) and in it I would have all the steps differentiating only the arguments?
* Or is it possible to include another .yml from another repository?
* It is possible to block anyone from writing to the bitbucket-pipeline.yml file

thanks.


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

> * I would have a bitbucket-pipeline.yml (default) and in it I would have all the steps differentiating only the arguments?
> * Or is it possible to include another .yml from another repository?

At the moment, it is not possible to share the same bitbucket-pipeline.yml among multiple repsoitories, each repository uses its own bitbucket-pipeline.yml file. You can of course create the same bitbucket-pipeline.yml file for each repo, but there is no way to enforce all repos of a workspace to use the same template.

We have a feature request in our issue tracker for the ability to have centrally managed and customizable templates for the bitbucket-pipeline.yml file:

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

> * It is possible to block anyone from writing to the bitbucket-pipeline.yml file

I'm afraid this is not possible either. In case you'd be interested in that in order to have more control over deployments or who can access certain variables, one solution could be deployment permissions (deployments can be restricted to admins only) and the use of deployment variables <https://bitbucket.org/blog/deployment-permissions-now-available-in-bitbucket-pipelines>. Please note that this feature is available for the Premium plan.

We have a feature request for what you are asking as well:

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

If the reason you're asking for this feature is different, you can share it in the feature request for our product managers to take into account.

I would also suggest adding your vote (by selecting the **Vote for this issue** link) to both feature requests to further express your interest. 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.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

continuous-delivery
can I use ssh instead of password?
Asked by Kenan Hussein:

I am using

```
pipe: atlassian/ftp-deploy:0.3.7
```

it requires

```
PASSWORD: $FTP_PASSWORD
```

can I use ssh instead of a password? and how??  

thanks


Answers:
author: Igor Stoyanov
body: [@Kenan Hussein](/t5/user/viewprofilepage/user-id/5065336) hi. Thanks for your question.  

Unfortunately, [ftp-deploy](https://bitbucket.org/atlassian/ftp-deploy/src/master/) does not support ssh keys.  

But we have a lot of alternatives with using ssh-keys.  

You may try:

* [rsync-deploy](https://bitbucket.org/atlassian/rsync-deploy/src/master/)
* [sftp-deploy](https://bitbucket.org/atlassian/sftp-deploy/src/master/)
* [scp-deploy](https://bitbucket.org/atlassian/scp-deploy/src/master/)

Regards, Igor


Tags: bitbucket-cloud

cloud

ftp