youngmon/atlassian-qna huggingface dataset:
Bypass cached repository when pushing
Asked by Magnus Granander:

Hi!

I'm having issues with doing Git push for both tags and commits when using a cached repository setup in Bamboo.

The scenario:

We are using a child plan that builds our application. During the bild we generate files and create tags. Both pushing the commits and the tags seem to work (no errors), but never show up in the logs at the remote (Stash). Found this in the logs:

```
build	08-Nov-2013 12:51:13	version  DONE pushing commitbuild	08-Nov-2013 12:51:13	tagging  #################################################################build	08-Nov-2013 12:51:13	tagging  Starting taggingbuild	08-Nov-2013 12:51:13	tagging  build	08-Nov-2013 12:51:13	tagging  -*- EXECUTING: git tag -a -mAuto-Release-Build-b-feature-feature-DEV-10171-update-build-script-to-use-alternative-4-based-on-feature/DEV-10171-update-build-script-to-use-alternative b-feature-feature-DEV-10171-update-build-script-to-use-alternative-4build	08-Nov-2013 12:51:13	tagging  build	08-Nov-2013 12:51:13	tagging  DONE creating vcs tag b-feature-feature-DEV-10171-update-build-script-to-use-alternative-4build	08-Nov-2013 12:51:13	tagging  build	08-Nov-2013 12:51:13	tagging  -*- EXECUTING: git push --tagsbuild	08-Nov-2013 12:51:13	tagging  error	08-Nov-2013 12:51:13	To file:///opt/atlassian/application-data/bamboo-agent/xml-data/build-dir/_git-repositories-cache/1c07087b9ce946f558f8dfc5679a2dbd3342378berror	08-Nov-2013 12:51:13	 * [new tag]         b-feature-feature-DEV-10171-update-build-script-to-use-alternative-4 -&gt; b-feature-feature-DEV-10171-update-build-script-to-use-alternative-4build	08-Nov-2013 12:51:13	tagging  DONE pushing tag
```

The line with "To file://..." caught my eye. To me it looks like the push is done to the cache, and not to the actual remote.

So my question is this, is there a way to bypass/specify not to use the cache when pushing?


Answers:
author: Manuel Mall
body: We had what I think is a similar issue and the instructions in <https://confluence.atlassian.com/display/BAMKB/Merging+and+pushing+to+remote+repository+fails> did help us.


author: Marcin Gardias
body: Have you tried specifying repository url? as in: git push \<options\> \[repositoryUrl\]

See also: <https://www.kernel.org/pub/software/scm/git/docs/git-push.html>

You can get repository url from variable: ${bamboo.planRepository.\<repositoryNumber\>.repositoryUrl}

where repositoryNumber is position of the repo in plan's repository list. (you can omit this for default repository)


Tags: bamboo-administration

git
ssh key / deploy key already stored but where?
Asked by Bernd Wahlen:

i know that i can store ssh keys / deploy keys at the following places:

- to my user (personal ssh key)

- repository read access (deploy key) ({workspaceName}/{repoName}/admin/access-keys/)

- project read access (deploy key) (projects/{projectName}/settings/access-keys)

- workspace write access (workspace/settings/ssh-keys)

When i try to add ssh key of a server in repository read access, it says that key is already stored somewhere by someone. I checked all repositories, in project we have no keys at all and in workspace only a few others. This key works from all machine, so there must be another location to store ssh keys with global read access. I am sure i added these keys earlier (in old design?), but cannot find this section anymore.


Answers:
author: Theodora Boudale
body: Hi [@Bernd Wahlen](/t5/user/viewprofilepage/user-id/1543134),

The Bitbucket Cloud support team can assist you with this, I went ahead and created a support ticket for you using the email of your community account.   

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please leave a comment in the support ticket and share the content of the public key you are trying to add. The engineer working on your ticket can then check where this key is added.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

key
Uploading pipeline artifacts to OneDrive
Asked by Phil Brandvold:

So we have a build pipeline that builds a Linux kernel, and we use Microsoft Teams for project files. The artifact we end up with is 1.3GB, which is over the 1GB limit to be available in the pipeline GUI. We'd like to put the file into the Teams folder the project team is using, which leverages OneDrive on the backend. Has anyone had luck getting files from Bitbucket over to OneDrive? Or even uploading files from a linux container or build server to OneDrive programmatically?


Answers:
author: Ben
body: Hey Phil!

Whilst Bitbucket Cloud does not formally support OneDrive, and providing assistance with scripting is outside of our support scope, here are some possible things that you can try:

* To copy and zip the files you require, I would suggest installing/making use of the **CURL/Zip packages** within your yml configuration.
* Once this is installed, create a directory to store your files, move the files to this directory using the **cp command** to copy and **zip command** to compress the folder.
* I would then suggest checking out the OneDrive API documentation to prepare a **cURL script** to upload the resulting zipped directory to the location you require:   
  <https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/upload?view=odsp-graph-online>
* **Example:**

```
pipelines: 
   default: 
    - step: 
      script: 
        - apt-get update 
        - apt-get -qq install zip curl
        - mkdir $FOLDERNAME
        - cp folderpath/filepath.extension $FOLDERNAME/
        - zip -r $FOLDERNAME.zip $FOLDERNAME/
        - curl INSERTAPICOMMANDHERE
```

Hope this helps to steer you in the right direction.

Cheers!

- Ben (Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud

ms-teams

onedrive
Why can I no long connect over SSH
Asked by rsbeckerca:

I have been working with my repo continuous for years. Around 0000h UTC, I am now getting key exchange problems over SSH and cannot push or fetch. What is going on and why is this not showing up on the status board? How can I fix this?


Answers:
author: rsbeckerca
body: Ok, it showed up on the status board, finally.


Tags: bitbucket-cloud

cloud

key

ssh
BitBucket suddenly Failing to Accept Push: "kex_exchange_identification"
Asked by John Meyer:

Problem occurred starting today at 3 PM, I have been using this for years.

**kex_exchange_identification: Connection closed by remote host**

**Connection closed by 104.192.141.1 port 22**

**fatal: Could not read from remote repository.**

Steps Taken:

Checked bitbucket status site, which reports 100.0% uptime.

Verified am able to push to gitHub.

Verified my account on Bitbucket is still active with a valid credit card.

I've been on Jira Clloud with Atlassian for years and have not been previously redirected to community support to report critical issues, so I'm not quite sure how to proceed.


Answers:
author: John Meyer
body: The status page reports the issue has been investigated and is now operational, and I am again able to push to the remote host.


Tags: bitbucket-cloud

cloud
Cannot access Bitbucket repository; 'admin must whitelist your ip' error
Asked by kevin.butler:

I'm attempting to use my org's bitbucket repository to clone down to my PC for our Workday projects. I generated the SSH key using Git Bash and I have successfully added it to my Bitbucket profile. I also ensured that my key was added to my local ssh-agent. It will not allow me to clone down to my local directory and gives the error message shown below. Am I doing something wrong or is it a matter of not being granted access? I'm not sure how to tell. I am working from home, but also over a corporate software VPN.

![2022-02-03_09-45-22.png](/t5/image/serverpage/image-id/181540iE8A4C15B4652A838/image-size/large?v=v2&px=999 "2022-02-03_09-45-22.png")


Answers:
author: Dave Chevell
body: [@kevin.butler](/t5/user/viewprofilepage/user-id/4742293) good question! Your workspace admin has the ability to control access to repositories based on IP address, and might have [configured an IP Allowlist](https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-private-content-in-a-workspace/). If you try to visit the repository in your browser (e.g. bitbucket.com/piercecountywa/workday-report.git) you can see your IP address here, and send that to your workspace admin or IT team to check whether the allowlist is configured correctly for VPN connections.

I hope that helps!

comments: author: kevin.butler
body: Thank you very much! I'll see if I can find out who my workspace admin is and work with them on this.


Tags: bitbucket-cloud

cloud
Is there a way to get Bitbucket dashboard to sort Jira issues in a way that makes sense?
Asked by Brian Fett:

When I look at my dashboard (<https://bitbucket.org/dashboard/overview>) it has a section for Jira issues, but it works poorly:

1: it defaults to showing only 5 issue, which wouldn't matter so much except

2: it doesn't seem to order them in any way (certainly no configurable way) and

3: it includes closed issues


Answers:
author: Pramodh M
body: [@Brian Fett](/t5/user/viewprofilepage/user-id/4731349)

Welcome to the community ?

Bitbucket dashboard shows the issues assigned to you and if there is none it will be empty!!

It can show up to 8 issues

Interesting to know yours is 5?

Can you assign yourself and see if we can get more

For closed it should be resolved, meaning the resolution should be set

Thanks

comments: author: Brian Fett
body: I have 10 issues assigned to me, and I can click the button to show more (which I think shows me all 10 of them), but that is an extra step. If the issues were ordered more sensibly (eg. In Progress, In Review, open, hold, closed) it likely wouldn't be needed.

As to the second part, that is another thing I was confused about as our issues do not seem to be resolving when closed, nor can I see a way to adjust the state of these items from "unresolved" in our system. Perhaps that is a separate question I should ask about in the Jira questions.


Tags: bitbucket-cloud

cloud
Git via SSH is down
Asked by Kevin Potgieter:

cant do git push/pull

*kex_exchange_identification: Connection closed by remote host*   
*Connection closed by 104.192.141.1 port 22*   
*fatal: Could not read from remote repository.*

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


Answers:
author: Kevin Potgieter
body: They are aware now.

**Investigating** - The Bitbucket engineering team is currently analyzing the problem and working on a solution  
Feb 3 2022, 23:15 UTC


author: Edem
body: Happening to me today, but not every time, just like every 3rd run, otherwise it passes; indicating that the configuration is correct, the endpoint has issues though.

comments: author: David Amin Hossein Mohammadi
body: And how do you solve this problem?


author: Tiago Ferrer
body: Same...

kex_exchange_identification: Connection closed by remote host  
Connection closed by 2406:da00:ff00::6b17:d1f5 port 22  
fatal: Could not read from remote repository.

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

comments: author: David Amin Hossein Mohammadi
body: Hey I have the same issue, did you solve it and if you did how did you do it I am stuck for 2 days at this problem


author: arokhmanov
body: Something definitely broken on Bitbucket side. Last 20 minutes the interaction with Git was extremely slow, getting reply after several seconds delay. Then I've started getting this errors too.


author: rodney
body: Seeing the same.

*@ git fetch*   
*ssh_exchange_identification: Connection closed by remote host*   
*fatal: Could not read from remote repository.*

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

comments: author: David Amin Hossein Mohammadi
body: Hey I also have this problem did you solve it?


Tags: bitbucket-cloud

cloud

ssh
Unable to receive repository transfer request
Asked by Seth:

A team member is trying to transfer a repository to a workspace I own and I'm not receiving an email to accept the transfer. He tried transferring to two different workspaces, both of which I own. When I tried transferring to his workspace, however, the transfer went as expected and he received the transfer email, so I suspect it's my account with the issue.


Answers:
author: Caroline R
body: Hi, [@Seth](/t5/user/viewprofilepage/user-id/4740327), 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 email from this suppression list.

Could you please ask them to transfer this repository to your workspace again and check if you receive the email now?

Kind regards,  
Caroline

comments: author: Seth
body: That did the trick, thank you so much!


Tags: bitbucket-cloud

cloud
Automatic Merge branching
Asked by Joao Reis:

Hello!

I found [this](https://confluence.atlassian.com/bitbucketserver/automatic-branch-merging-776639993.html) awesome functionality and I'm trying to implement it in a repository just for testing. According to the documentation, to enable the feature, apart from setting a branching model, I need to set it to **On**the Automatic merging setting. In order to do so, the following steps must be done:

1. Go to **Repository settings** \> **Branches**.
2. Under **Automatic merging** , select the **On** status and then select **Save**.

However, I'm not being able to find these options in the repository settings:  

![image.png](/t5/image/serverpage/image-id/181501iF0FC2BCA65B993A7/image-size/large?v=v2&px=999 "image.png")

![image.png](/t5/image/serverpage/image-id/181502i2434CF6B229E1F12/image-size/large?v=v2&px=999 "image.png")

Am I missing something?

Thanks in advance for the help!


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hello Joao,

Welcome to the community!

The feature you are referring to is for Bitbucket server/datacenter. This type of Bitbucket runs on your own infrastructure, you'd be hosting it yourself.

Telling by the screenshot you're looking at Bitbucket Cloud, the SaaS version of aforementioned Bitbucket server/dc. The feature is not available in BB Cloud, unfortunately.

Hope that helps,

Best Ulrich

comments: author: Joao Reis
body: Hello Ulrich!!

Thank you so much for the fast response. Yes, that's a bummer, that feature would help me a lot. But thanks for the clarification.

Best regards!  

Jo?o Reis


author: Roman Stoffel
body: In the meantime. We have released DevSensei Automerge for Bitbucket Cloud. It automatically merged pull requests which have a '\[SHOW\] prefix.

<https://marketplace.atlassian.com/apps/1228648/devsensei-auto-merge-for-bitbucket?tab=overview>


Tags: merge
Error : user with the username already exist.
Asked by Mohammed.Bolar:

My email Id changed when I became contractor to full time but my username is still the same. So now whenever I tried to register for the bitbucket cloud it always connect to the new mail id and prompt me this error.

Please suggest me how to resolve the error : user with the username already exist.


Answers:
author: Caroline R
body: Hi, [@Mohammed.Bolar](/t5/user/viewprofilepage/user-id/4741862), welcome to the community!

You mentioned your email Id changed and when you try to register in Bitbucket Cloud, it always connects to the new mail id. In this case, I understand you created a second Bitbucket account with this new email, is that correct?

If that's the case, the error message you are receiving is expected because your previous account is already using this username. Since usernames must be unique for all accounts in Bitbucket, you won't be able to create an account using this username.

As a solution for this issue, we suggest that you either:

a) Choose a different username for this new account;

b) If you still have access to your previous account, you can change your username there to release that username. Once you pick a username that has not been chosen in Bitbucket for another user yet (not just on your company), you will be able to change your username;

c) If you haven't created an Atlassian account with this new email, you can change the email linked to your account by following the steps described here:

* [Change Atlassian account email addresses](https://confluence.atlassian.com/cloudkb/change-atlassian-account-email-addresses-969508513.html)

I hope this helps, but please let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Application Id's
Asked by eisgitrepo:

If we upgrade to a standard plane, will we still need to convert to use application id's?


Answers:
author: Mikael Sandberg
body: If you are referring to the announcement of [Deprecating Atlassian account password for Git and Bitbucket API activity](https://bitbucket.org/blog/deprecating-atlassian-account-password-for-git-and-bitbucket-api-activity) then the answer is yes, this applies to everyone, no matter what plan you are on.


Tags: bitbucket-cloud

cloud
How can I run Runners on demand?
Asked by Rafal Janicki:

My use case: I'd like to use hosted BitBucket runners for running my BB pipelines. However, I don't want the runners to be active 24x7 as there's no need. Instead, I'd like to get a trigger (a webhook of some sort) that lets me know that a pipeline is waiting for a runner. Once I get the trigger, I autoscale my instances to at least one instance what'd allow the runner to run the pipeline. The pipeline should also have a timeout configuration, so it fails if no runners are available in xxx minutes.


Answers:
author: Norbert C
body: Hi Rafal,

Thank you for contacting Atlassian Support, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

I'd like to inform you that we don't have a solution for this use case. What I can recommend you is that in case you know that you would like to run a build always at a specific time, you can setup in crontab that a few minutes before it'll start the runners, but unfortunately we don't have an out-of-box solution for this.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

bitbucket-runners

bitbucket-server

cloud
How to disable inherit settings of branching model using PUT(with json file)
Asked by dcoral:

![branching_model.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/181369i02F6DC36CE7B69A2/image-size/large?v=v2&px=999 "branching_model.PNG")


Answers:
author: Alex
body: When inherit setting is enabled, where does it inherits from ?

comments: author: Theodora Boudale
body: Hi Alex,

When this setting is enabled, the repo inherits from the settings of the project where this repo belongs.

We recently released this feature, admins can now configure additional settings in Projects, which can then be inherited by the repositories of the project:

* <https://bitbucket.org/blog/project-settings-are-now-available-in-bitbucket-cloud>

This is the documentation that includes all topics regarding project settings:

* <https://support.atlassian.com/bitbucket-cloud/docs/configure-project-settings/>

Kind regards,  
Theodora


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

I'm afraid that it is not possible to disable inherited settings via API at the moment.

We have a request about this in our issue tracker:

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

I would suggest adding your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for features. You are more than welcome to leave any 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 new 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.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How can add app password to GitAhead
Asked by montte:

Hi,

I'm using GitAhead in my Manjaro, and i don't know how can i add Bitbucket App Password.

I have created App Password but when i try to create new Bitbucket account returns authentication error.

Can you help me?

Thanks,


Answers:
author: montte
body: Hi Theodora,

I'm not sure that i gave all permissions and i create new app password.

I try again but same result. Authentication error.

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

What can i do?

Thanks,

comments: author: Evgen1y
body: Hi! You should use this generated password and your username which you are using for cloning repo *git clone https://**username**@bitbu?ket.org/.../foo.git* (not your mail or label of this app pasword or full name).


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

I'm not very familiar with GitAhead, but it is possible that the app password you created doesn't have enough permissions for the operations that are performed.

I downloaded the application to test this and I tried to add my Bitbucket Cloud account. When my app password had only repository permissions, the authentication failed. However, it succeeded with an app password that had Account:Read permissions along with Repositories permissions.

I would suggest creating a new app password with both Account and Repositories permissions and see if that works for you.

Kind regards,  
Theodora
BitBucket Search Code
Asked by JoMi:

Good day Atlassian community!

I got a problem, *could you help me* , please? I have accidentally deleted the app: **BitBucket Code Search** and now I *couldn't find it among the apps available* in the Marketplace :( What shall I do to in order to return it back?

Thank you!


Answers:
author: seanaty
body: Good day!  

If you navigate to the search screen you should see a button to enable it again. They key to remember is that code search is installed into a workspace. So when you go to bitbucket.org/search you'll have to select the appropriate workspace. This is what it'll look like:

![bitbucket.org_search_account=%7B0091251c-6b75-458d-94fa-7a3d7974fc56%7D.png](https://community.atlassian.com/t5/image/serverpage/image-id/181526i534852753D4F2F28/image-size/large?v=v2&px=999 "bitbucket.org_search_account=%7B0091251c-6b75-458d-94fa-7a3d7974fc56%7D.png")

See the "Enable code search" button.


Tags: application

bitbucket-cloud

cloud

code

search
Can't access repositories over SSH
Asked by Ian Scriven:

I'm trying to set up a new SSH key to access my repositories. I think I've done everything correctly, but I can't actually access anything.

Running "" ends with the following:

```
debug1: Authentication succeeded (publickey).
Authenticated to bitbucket.org ([104.192.141.1]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: filesystem full
debug1: Sending environment.
debug1: channel 0: setting env LANG = "en_AU.UTF-8"
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3572, received 2212 bytes, in 10.2 seconds
Bytes per second: sent 349.8, received 216.6
debug1: Exit status -1
```

I think it should be saying something along the lines of "you can use git to connect to bitbucket", but I don't, and then get the following when I try to clone a repo:

```
fatal: Could not read from remote repository.

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

What am I missing?


Answers:
author: Ian Scriven
body: Not really a complete answer, but this had something to do with my network. All worked fine once I connected to a VPN. A bit strange.


Tags: bitbucket-cloud

cloud