youngmon/atlassian-qna huggingface dataset:
Bitbucket not up-to-date
Asked by Erez koren:

We have 2 local user that work locally on the same project on Bitbucket

user 1 create tag named "XCD2.1.11.507" on 4.11.2021, and other changes on 14.11.2021

both operations were committed and pushed to repository.

user 2 clone this project from repository on 25.4.22. The project was cloned successfully but without the tag operation from 4.11.2021 (all others branches and tags was update)

So, on Source Tree of user 1 and user 2 the only different is this tag operation.

it seems that for some reasons, the tag operation on 4.11.2021 not exist on the repository

Also, the commits information is very old and not up-to-date, and also the files content, not up-to-date to the last commit and pushed version

please advice


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

Is this a repository hosted in Bitbucket Cloud or is it hosted in your own Bitbucket Server instance?  
You can tell that from the repo URL on your browser.  
Bitbucket Cloud repo URLs always start with <https://bitbucket.org/> while Bitbucket Server repos have a custom URL.

I see that your question has the tag 'bitbucket-cloud'. However, if I check the repositories that your Bitbucket Cloud account has access to, I see only one repo, and that repo shows to have been created at a date later than 4.11.2021 and it is empty.

In case the repo is hosted in Bitbucket Cloud, do you have access to it with an email different than your community account?

Kind regards,  
Theodora

comments: author: Erez koren
body: Hi

the repository hosted on our Bitbucket server

I add the screen capture of user 1 and user 2

![SourceTree_user1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/212322iA7FAFD894C05785C/image-size/large?v=v2&px=999 "SourceTree_user1.PNG")![SourceTree_user2.png](https://community.atlassian.com/t5/image/serverpage/image-id/212323i747F6E73B19308CE/image-dimensions/607x302?v=v2 "SourceTree_user2.png")


Tags: bitbucket-server
Is it possible to open teminal in sourcetree window like visual studio or vscode?
Asked by ???:

Hi, i have just started sourcetree and i'm learning it

Because i am used to typing command in git CLI, i want to use CLI in sourcetree not new terminal window like visual sutdio or vscode

Is it possible to open terminal in sourcetree window?

somewhere like in red box

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

Thanks for your help!


Answers:
author: Syahrul
body: Hey [@???](/t5/user/viewprofilepage/user-id/5009886)

Welcome to the community.

I believe Sourcetree doesn't have a built-in Terminal that you can use in the same windows.

Unfortunately, you'll have to use the external terminal by clicking the Terminal button on the top right corner. This will pop up a Terminal window externally.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cli

cloud
Infinite loading on initial forking
Asked by Muammar Ghadafi Bin Badrul Hisham:

one of my repos which is gkm-sisbaservices is on infinite loading on forking, and it does not allow me to delete it and make another fork


Answers:
author: Syahrul
body: Hey [@Muammar Ghadafi Bin Badrul Hisham](/t5/user/viewprofilepage/user-id/5008849)

Welcome to the community.

Based on my investigation, the forked repository got stuck in the creating steps, which is why it's not accessible and loading.

I have removed the affected forked repository since it can't be used because the repo creation is not completed.

Can you verify that and re-create the fork again?

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Bitbucket pipeline fails with '<package> not found' error
Asked by DS:

Hi there, I'm trying to run \`eslint\` and \`test\` in my pipeline but they both fail with the following error:

    + yarn run test 

    yarn run v1.22.15

    $ react-scripts test

    /bin/sh: 1: react-scripts: not found

    error Command failed with exit code 127.

    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This is my \` bitbucket-pipeline.yml\` file with those specific steps (here is not properly indented, but it is in my actual file)  

```
image: node:16.13.0

pipelines:

default:

- step:

name: Installing Dependencies ??

script:

- "yarn install"

- step:

name: Code Quality Checks ?

script:

- "yarn run lint"

- step:

name: Unit Testing ?

script:

- "yarn run test"
```


Answers:
author: Syahrul
body: Hey [@DS](/t5/user/viewprofilepage/user-id/4183757)

G'day.

I believe you received the error because the image you use doesn't have **react-scripts**installed in it; hence the command was not found.

I found an article that explains this issue and workaround better [here](https://exerror.com/sh-react-scripts-command-not-found/) , which suggests you install the **react-scripts**as the example below in your YAML:

```
script:

- npm i react-scripts
- yarn run test
```

This should fix the issue; if not, I suggest you review and try the other suggested workaround on the page [here](https://exerror.com/sh-react-scripts-command-not-found/).

Cheers,  
Syahrul

comments: author: Tommo
body: I don't suggest using both npm and yarn at the same time. It should be one or the other, not both, wherever possible.  

I suggest that the issue is that bitbucket pipeline steps do not share their files. Each step runs in a separate container.

So assuming you already have the correct dependencies in package.json, the error is splitting the steps up when the files from "install dependencies" are needed in the "test" step.  

I would expect a pipeline like this:

```
image: node:16.13.0
pipelines:
  default:
  - step:
      name: Code Quality Checks ?
      script:
        - "yarn run lint"
  - step:
      name: Unit Testing ?
      script:
        - "yarn install"
        - "yarn run test"
```

It's possible to share artifacts from one step to another, but in my experience it is simply faster to install the node_modules folder as needed in each step.  
<https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-pipeline-reuse-source-code-from-previous-step/qaq-p/1711660>


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

react.js

test
Repository is over the size limit (4 GB) and will not accept further additions
Asked by Bleik Urrego:

I am unable to remove old Jar files from history and I can no longer make updates to my repository - bitbucket.org:bleikg9/lndl80.git what can I do to remove the old Jar files from history I've reset my Repo to 29.70 mb but still unable to push the commit


Answers:
author: Syahrul
body: Hey [@Bleik Urrego](/t5/user/viewprofilepage/user-id/5009569)

Welcome to the community.

I did trigger a Git GC on the affected repository you mentioned, and once the GC is complete, I can see the repository size has been reduced to 430MB.

This means you are no longer blocked from making changes or removing large files from your repository. Please check our guide below on how to reduce your repository size:

* <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>

Cheers,  
Syahrul

comments: author: Bleik Urrego
body: Thank you! ??


Tags: atl-rvw

bitbucket-cloud

cloud
Integration on-premise BitBucket with cloud version of Jira and Confluence
Asked by DawAnk:

Hi. My company is in the middle of a migration from on-premise Jira and Confluence to the cloud version. We are also using on-premise BitBucket, but we received information that we have to stick with this because the cloud version is not meeting our requirements.  
My question is - what is the proper way to integrate the server version BitBucket with the cloud version of Jira and Confluence? (if there is any)


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@DawAnk](/t5/user/viewprofilepage/user-id/5009456) ! Welcome to the Atlassian Community!

Instructions for connecting your Jira Software Cloud to your Bitbucket server are here:

<https://confluence.atlassian.com/enterprise/integrate-jira-software-cloud-with-server-dev-tools-bitbucket-bamboo-fisheye-crucible-1101925709.html>

comments: author: DawAnk
body: Thank you, Robert!


Tags: bitbucket-server

migration-customer-care

server
Enabling JMX Hosting Tickets
Asked by Ishmael Shariff:

Hello,

we're integrating our Bitbucket server with New Relic. We've successfully followed all steps in this document <https://confluence.atlassian.com/bitbucketserver082/enabling-jmx-counters-for-performance-monitoring-1141979329.html> but when configuring our file for hosting ticket data, it seems to be not finding any data at this endpoint **com.atlassian.bitbucket:name=HostingTickets .**

The error block received from New Relic is this:

```
time="2022-08-15T15:47:13Z" level=debug msg="Integration stderr (not parsed)." component=integrations.runner.Runner env=staging integration_name=nri-jmx line="[ERR] can't parse response: empty data for pattern, Pattern: com.atlassian.bitbucket:name=HostingTickets" 
```

We're sure that this isn't due to New Relic or our configuration because all other data works correctly. We suspect that maybe our Java version is too low or Bitbucket configuration doesn't allow for Hosting tickets by default.

* Our BB version: Atlassian Bitbucket v8.2.1


Answers:
author: Pavel Tyumenev
body: Same problem in BB 8.9.4 and 8.14  
[@Ishmael Shariff](/t5/user/viewprofilepage/user-id/5009363) Did you find the solution?


Tags: bitbucket-server

jmx

newrelic

server
Build error: Cannot call constructor
Asked by Jeff Greenberg:

Have been building without issue, and then this morning they spontaneously began to fail continuously fail with:  

Fatal error: Uncaught Error: Cannot call constructor in /opt/atlassian/pipelines/agent/build/vendor/symfony/finder/Comparator/DateComparator.php:48


Answers:
author: vsevolodkovalchuk
body: Hello [@Jeff Greenberg](/t5/user/viewprofilepage/user-id/3423779)

Did you find the solution? I just found your question on Google.

I have the same issue with Magento instances on Jenkins. Different projects are failing randomly from time to time.

The strange thing, I was able to reproduce the issue a couple of times on my local, but XDebug did not stop on this line no matter I had a breakpoint there.

Thank you in advance if you have any information on this issue.


author: Theodora Boudale
body: Hi Jeff,

The issue could be related to changes in your source code, dependencies, or the Docker image you use for your builds.

I would suggest debugging this locally with Docker first to figure out if that's the case. If the build fails with the same error locally, then the issue is most likely not related to Pipelines, and you can debug this locally without consuming Pipelines minutes.

You can find step-by-step instructions on how to debug this locally in my reply to another question here:

* <https://community.atlassian.com/t5/Bitbucket-questions/Failing-test-step-do-not-show-all-logs/qaq-p/1912462#M77040>

It's important to use a clone of the repo at the commit with the failed build, and also use the same Docker image that you use as a build container for the failed step.

Kind regards,  
Theodora

comments: author: Jeff Greenberg
body: Hi. The non-pipeline possibilities as the issue might make sense if failure were consistent rather than my experience of 5 succeed, 1 fails, 2 succeed, 4 fail, etc.


author: Theodora Boudale
body: Hi Jeff,

You can create a ticket with the support team and provide the URL of some of the builds that fail and some of the ones that succeed, so we can look further into this issue. If there is a support ticket open, the engineer working on your case will be able to access the builds and additional logs in order to investigate.

You may still be asked to debug one of the failed builds locally, as that's usually the first step in determining if the issue is likely to be caused by pipelines or not.

You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to login to bitbucket using MFA
Asked by pshetye14:

Hello Team,

Whenever I am trying to login to bitbucket site <https://bitbucket.org/> using my organization's credential and code from microsoft authenticator app , it keeps saying that code is invalid , even though the code is valid ,

1) Date time sync in phone I have tried and it's not helping

2) I have recovery key when for the first time I enabled the MFA but that is also not helping it keeps saying invalid keys

3)Tried to get recovery key using below command

ssh git@bitbucket.org recovery_codes

But, I ain't getting any recovery keys in it, only an empty response!

Now waiting for recovery link which I will receive after 24 hrs but if issue is with code and atlassian itself then it will still persist , can anyone help me on this ? whether we are following right path?


Answers:
author: Syahrul
body: Hey [@pshetye14](/t5/user/viewprofilepage/user-id/5009221)

Welcome to the community.

Can you share the page screenshot currently not accepting your MFA code?

The reason I ask is that some users may have enabled 2FA for the Atlassian account and 2SV on their Bitbucket account. These two use completely different MFA codes, and you may use the wrong MFA code on the authentication page; hence it's not accepting the code.

There's a way to identify this. If you use DUO or Google Authenticator, you'll notice that the MFA code will say **Atlassian** or **Bitbucket.**

Next is to identify the image shown in the MFA code page request as follows:

If you see Atlassian on the page, then you should use **Atlassian** MFA code in your authenticator:![Screenshot 2022-08-18 at 1.46.48 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/211580iE4831506ABB26F59/image-size/large?v=v2&px=999 "Screenshot 2022-08-18 at 1.46.48 PM.png")

If you see Bitbucket in the page, then you'll need to use **Bitbucket**MFA code in your authenticator:

![Screenshot 2022-08-18 at 1.46.54 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/211581i3D0F2D4582464D98/image-size/large?v=v2&px=999 "Screenshot 2022-08-18 at 1.46.54 PM.png")

That said, since you already requested the reset email you'll received the email within **24 hours** and you can follow the link to reset.

As for the recovery code via the SSH we no longer allow this so you'll have to ensure you've kept the code safely to recover in the future.

I hope this clarifies.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Quality Gate failed: Could not find compute engine task URL in scanner report
Asked by Abhishek Raghani:

I have a bitbucket pipeline configured, but it fails sonarcloud quality gate.  
My pipeline is as follow:  
# enable Docker for your repository  
options:  
docker: true

definitions:  
services:  
docker:  
memory: 2048  
caches:  
sonar: \~/.sonar/cache # Caching SonarCloud artifacts will speed up your build  
clone:  
depth: full # SonarCloud scanner needs the full history to assign issues properly  
pipelines:  
#branches:  
pull-requests:  
'\*\*':  
- step:  
name: SonarCloud-Scan and Quality-gate  
script:  
- pipe: sonarsource/sonarcloud-scan:1.4.0  
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6  
variables:  
SONAR_TOKEN: ${SONAR_TOKEN} # Get the value from the repository/workspace variable. You shouldn't set secret in clear text here.  
SONAR_HOST_URL: ${SONAR_HOST_URL} # Get the value from the repository/workspace variable.  
# SONAR_SCANNER_OPTS: -Xmx512m  
DEBUG: "true"

![errorbitsonarcloud.jpg](/t5/image/serverpage/image-id/211236i1488744084F9721B/image-size/large?v=v2&px=999 "errorbitsonarcloud.jpg")


Answers:
author: Theodora Boudale
body: Hi [@Abhishek Raghani](/t5/user/viewprofilepage/user-id/5009230),

I would suggest raising a question about this issue in SonarSource community forum:

* <https://community.sonarsource.com/tags/c/help/sc/bitbucket>

This pipe is not developed by Atlassian, but by SonarSource, so they're better equipped to help you with this issue. If you check the README in the [repo of the pipe](https://bitbucket.org/sonarsource/sonarcloud-quality-gate/src/master/), you can also see that support for this pipe is provided in the forum I linked.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

sonarcloud
i am unable to login prompting to enter two step verification code but i never setup.I
Asked by Grandhi Suri Babu:

i am unable to login prompting to enter two step verification code but i never setup.  
I cannot see repositories created earlier but can pull.  
please help


Answers:
author: Mateus T
body: Hi [@Grandhi Suri Babu](/t5/user/viewprofilepage/user-id/5008841),

Welcome to the Atlassian Community!

Checking your account internally, I can see that you do have your Bitbucket 2SV enabled. In this case, you can request the recovery process for 2SV on the login screen. Once you are prompted for the code, click on \*Forgot code?\* and then click the \*Send recovery email\* button.  
After 24h, you will receive an e-mail with a one-time-only login link to bypass your 2SV, so you are able to get back into your account and reset your 2SV!

Cheers,

Mateus T


Tags: bitbucket-cloud

cloud
submodule update fails with ssh, but clone works
Asked by jessegavin:

I am able to clone a repository with ssh just fine.

```
git clone git@bitbucket.org:team-name/utils.git
```

However, when this same repo is included as a submodule in another project, I get a **Permission Denied (public key)** error.  

Here is the exact output I get  

```
$ git submodule update
Cloning into '/Users/me/code/my-project/utils'...
me@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.
fatal: clone of 'ssh://bitbucket.org/team-name/utils.git' into submodule path '/Users/me/code/my-project/utils' failed
Failed to clone 'utils'.
```

<br />

I want to re-iterate that I definitely have access to the repository and am able to clone the repository via ssh without any problems. This ONLY happens when the repository is included as a submodule in another project.  

This is the content of my .gitmodules file  

```
[submodule "utils"]
  path = utils
  url = ssh://bitbucket.org/team-name/utils.git
```

I've tried everything I can think of.

* Deleted all ssh keys
* Regenerated keys (and added to Bitbucket account)
* I've run **ssh -T git@bitbucket.org** (it works)  

I am on macOS Monterey (12.1).  
git version 2.32.0 (Apple Git-132)  

I followed the [ssh setup instructions](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/) multiple times.  


Answers:
author: jessegavin
body: I found out that I needed to specify the user for the submodule command.

There are two ways to do this (maybe more?)

**The First way:** specify the user in the url

Change the value of the url field in the .gitmodules so it includes the username

```
url = ssh://git@bitbucket.org/team-name/utils.git
```

**The Second Way:** specify the user in \~/.ssh/config

```
Host bitbucket.org
? ? User git
```


Tags: bitbucket-cloud

cloud

ssh

submodule
EXTRA_ARGS: --filter bug
Asked by bobby j:

There seems to be an issue with proper escaping of filters in the rsync EXTRA_ARGS variable.

* Version: atlassian/rsync-deploy:0.7.1
* log:

      INFO: Executing the pipe...

      INFO: Starting RSYNC deployment to server:$THEME_DIR...

      rsync -rp --delete-after --filter='P assets/css' --exclude-from=project/rsync-excludes ./ user@server:$THEME_DIR

      Unknown filter rule: `'P'

      rsync error: syntax or usage error (code 1) at exclude.c(927) [client=3.1.3]

      ? Deployment failed.

* steps to reproduce:
  * Try to run --filter inside the EXTRA_ARGS variable


Answers:
author: Igor Stoyanov
body: [@bobby jenrow](/t5/user/viewprofilepage/user-id/5008665) hi. Thanks for your feedback.  

Your error is due to whitespace in your filter command.  
Try this in your pipe variables:  

```
script:
  - pipe: atlassian/rsync-deploy:0.7.1
    variables:
    ...
    'EXTRA_ARGS_COUNT': 1,
    'EXTRA_ARGS_0': "--filter=P assets/css"
```

or if you have more then one extra arg in example 2 args:

```
script:
  - pipe: atlassian/rsync-deploy:0.7.1
    variables:
    ...
    'EXTRA_ARGS_COUNT': 2,
    'EXTRA_ARGS_0': "--filter=P assets/css",
    'EXTRA_ARGS_1': "--exclude=*2.txt"
```

Double quotes is necessary.  
We will update the README to provide this example as workaround for whitespaces.  

Regards, Igor.


Tags: bitbucket-cloud

cloud

rsync
SourceTree In Spanish?
Asked by AllanBertrand:

I am quite new using this program, I use 50% of the English language, however I get several errors when I try to make online repositories, and when I try to push, I get other errors, I would like to know if there is a Spanish version to be able to understand Better interface and errors when I use it.


Answers:
author: Ana Retamal
body: Hi! It's possible to have SourceTree in Spanish, but note that this is not fully supported. We're carrying this project with the help of the community in Transifex, the translation is not complete, you can collaborate if you'd like at [SourceTree for Windows](https://www.transifex.com/atlassian/sourcetree-for-windows/) or [SourceTree for Mac](https://www.transifex.com/atlassian/sourcetree-for-mac/). Please keep in mind that technical assistance can only be provided in English.

To change the language, go to **Preferences** and on the languages dropdown select 'Spanish' (see screenshot). You'll need to restart SourceTree for the changes to apply.

![languages.png](https://community.atlassian.com/t5/image/serverpage/image-id/4158iFC017E9641BE9D86/image-dimensions/432x222?v=v2 "languages.png")

Hope that helps!

Ana

comments: author: jano23
body: At the moment Spanish is available in the Mac version but not the Windows version


Tags: language-es

translate
Cannot pull or push ("cannot spawn"/"unable to fork")
Asked by -:

This has just started happening, whenever I use the terminal and try to run commands such as *git pull origin master* I will recieve an output similar to

```
error: cannot spawn C:\Users\Test\AppData\Local\SourceTree\app-2.1.2.5\tools\putty: No such file or directory
fatal: unable to fork
```

Thank you.


Answers:
author: Ana Retamal
body: Hi Adam! This error doesn't seem to be related to SourceTree itself.

Are you using SSH? It's possible that your GIT_SSH environmental variable is pointing to and if that path has a space in it. It could also be that you need to update the SSH Client path in **Settings \>Network.**

I've also done some research on the message you're getting and I found someone else who was experiencing it, you can read how they solved it at [Error cannot spawn](http://www.techneiq.com/2012/08/error-cannot-spawn-cprogram.html).

Hope this helps!

Ana


Tags: terminal

windows
SourceTree | Receiving Error When Trying to Clone Git Directory Https
Asked by Aaron B:

Hi all,

Using SourceTree, I'm receiving an error when I am trying to Clone a Git directory using Https. Has anyone run into this before? I'm having trouble finding a fix or workaround. Any help is greatly appreciated. Thanks!

SourceTree Version: 2.6.1

OS: MacOS Sierra

SourceTree Log:
> error: RPC failed; curl 56 SSLRead() return error -36  
> fatal: The remote end hung up unexpectedly  
> fatal: early EOF  
> fatal: index-pack failed


Answers:
author: Ana Retamal
body: Hi Aaron! The article [Git clone fails](https://ja.confluence.atlassian.com/stashkb/git-clone-fails-error-rpc-failed-result-56-http-code-200-693897332.html) offers some tips for the part regarding the error "curl 56". Can you provide us more information so we can help you troubleshoot this issue?:

* Are you also getting this error when pulling / pushing?
* Do you get this error if you try cloning from the terminal?
* Did you update / changes something recently?

Best regards,

Ana