youngmon/atlassian-qna huggingface dataset:
I am facing some issue at the time of pull & push on the repository
Asked by Sanket:

Below is the issue description

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin  
remote: Invalid username or password  
fatal: Authentication failed for '<https://bitbucket.org/yashusstechteam/wechecked_prod.git/>'

This repository exists in another workspace but I was able to access it from the account some days ago. Suddenly I am facing the above issue.


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

The error indicates that there may be stored credentials in your Git client or credential manager that interfere with authentication to Bitbucket Cloud. It may also mean that the credential manager is not providing the correct credentials for authentication.

Could you please check the following knowledge base article we have on this issue and follow the steps outlined in the **Solution** section?

* <https://confluence.atlassian.com/bbkb/authentication-error-remote-invalid-username-or-password-942864127.html>

If you're using SourceTree, please make sure to also follow the steps in the section **Additional Steps if you are using Sourcetree and experiencing this issue**.

Please feel free to let us know how it goes and if the issue is resolved for you after this.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

sourcetree
Data Residency of Bitbucket
Asked by Patrick Roos:

Hi there  

Where is the data residency of Bitbucket Cloud?  

Is there sth. planned to set the data residency of a specific Bitbucket Cloud workspace to the EU area?  

Thanks for your help.  

Regards, Patrick


Answers:
author: Theodora Boudale
body: Hi Patrick,

Bitbucket cloud infrastructure is hosted with NTT in the US at the Ashburn, VA and Santa Clara, CA locations.

We are considering expanding to other locations, like EU, and giving users the ability to select hosting location, but I'm afraid we don't have an ETA.

There is a ticket for this in our issue tracker:

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

I would suggest that you add your vote in that ticket (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 new 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.

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

Kind regards,  
Theodora

comments: author: Patrick Roos
body: Hi [@badpanda13](/t5/user/viewprofilepage/user-id/3246398)

Thanks for your answer. I'll vote for the issue :-)  

Regards, Patrick


author: Pilar Lopez Gracia
body: Hi,

all the instance of bitbucket are stored in US? We have an instance of bitbucket cloud premium in Europe and we are wondering where the data is allocated.

Thanks


Tags: bitbucket-cloud

cloud
Missed a payment
Asked by DFCC team:

Hi,  

Our company had the Standard plan of the Bitbucket. We missed a one month payment because of the expiration of the credit card. Now our Bitbucket plan downgraded to the Free plan.  

We have a valid credit card and we need to upgrade to the previous plan (Standard Plan) without losing the previous data and settings which were included in the Standard plan. What should I do? Will it available if I update the new credit card details?  

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

Thanks.


Answers:
author: Prince Nyeche
body: Hi [@DFCC team](/t5/user/viewprofilepage/user-id/3734811)

Upgrade immediately, so you can get back access to your Bitbucket standard features, you don't simply loose configurations except your account is completely closed. Reach out to [Atlassian customer advocates](https://www.atlassian.com/company/contact/purchasing-licensing) for help.

comments: author: DFCC team
body: Hi [@Prince Nyeche](/t5/user/viewprofilepage/user-id/1928483)   

Thanks for the response.  

I have entered the new card details. But it still shows the Free Plan. Shouldn't it upgrade automatically or should I upgrade it Free to Standard manually?


author: Prince Nyeche
body: You should perform the upgrade since it was already downgraded.


author: Theodora Boudale
body: Hi [@DFCC team](/t5/user/viewprofilepage/user-id/3734811) ,

Just wanted to confirm here [@Prince Nyeche](/t5/user/viewprofilepage/user-id/1928483)'s reply that the upgrade doesn't happen automatically.

Since you have entered the new credit card details, you can:

1. Log in to <https://bitbucket.org/> website
2. Select your avatar (bottom left corner) \> **All workspaces**
3. Select the workspace you want to upgrade the plan for
4. Then go to its **Settings \> Plan details** and upgrade to the Standard plan

Please feel free to let us know how it goes and if you need further assistance.

Kind regards,  
Theodora


author: DFCC team
body: Issue was sorted. Thanks for the responses.  

[@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) [@Prince Nyeche](/t5/user/viewprofilepage/user-id/1928483)


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


Tags: billing

bitbucket-cloud

cloud

downgrade

free

standard
BitBucket stuck at loading screen
Asked by Tan Si Kai:

For 3 months, I have been using BitBucket solely for version control and code management. Everything is working fine, until an issue happens today. I opened BitBucket website to check my saved codes, but it stuck at the loading screen. It wouldn't finish loading and it just loads forever. I tried refreshing a few times, and also clear my cache and cookies, but to no avail. I logged in BitBucket by my company email and now that it stuck at the loading screen, it has caused great inconvenience to me as I couldn't check my commits and codes. Can someone propose a solution or help on this issue?


Answers:
author: Theodora Boudale
body: Hi [@Tan Si Kai](/t5/user/viewprofilepage/user-id/4344861) ,

Are you using the add-on **Adblock Plus** in your browser?

We've had similar reports from other users which were caused by the **EasyList** filter in the **AdBlock Plus** extension incorrectly blocking a CloudFront URL, which prevents bitbucket.org from loading.

If you're using this add-on, you can do the following to fix the issue: right-click on your **Adblock Plus** extension \> Option \> Advanced list. You should see a filter list name **EasyList** ; please click on the setting icon and click update to update your list. This should update your list to the latest one that includes the [fix](https://github.com/easylist/easylist/commit/b36c87ccf2340864e642e7b7ca5a82782c4a9063).

Please feel free to let us know if this helps or if you're still experiencing issues.

Kind regards,  
Theodora

comments: author: Ashraf Omar
body: Thanks for your reply, Theodora. This helps.


author: patrick.durasiewicz
body: I am surprised, but this works! I had to disable uBlock Origin for Bitbucket. Now I am not stuck in the endless loading loop anymore.


author: Ashraf Omar
body: Hi, I am also experiencing this issue.

I managed to view the repository by opening an incognito browser window and logging in there.

Logging in on another browser also seems to help in my case.

comments: author: Tan Si Kai
body: I see that login from incognito helps, but can I ever login from the browser that I usually use?


Tags: bitbucket-cloud

cloud
Creating new repo from existing local git repo fails
Asked by learningleaflet:

I'm using Git on Windows 10. I followed the step from <https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html> by running

git remote add bitbucket https://learningleaflet@bitbucket.org/learningleaflet/learningleaflet.git

git push --all bitbucket  
To <https://bitbucket.org/learningleaflet/learningleaflet.git>

Afterwards I got the error:

! \[rejected\] master -\> master (non-fast-forward)  
error: failed to push some refs to '<https://bitbucket.org/learningleaflet/learningleaflet.git>'  
hint: Updates were rejected because the tip of your current branch is behind  
hint: its remote counterpart. Integrate the remote changes (e.g.  
hint: 'git pull ...') before pushing again.  
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Given that I already have a history of commits I don't want to checkout the new empty branch and lose my existing commit history by moving over. How do I tell BitBucket to accept the the upload/push of my local git repo?


Answers:
author: learningleaflet
body: It turned out that the documentation was incomplete. It seems creating a repo with the default setting makes this not work. After putting in a branch name and deciding not to add .gitignore it worked. Maybe adding the .gitignore creates a commit that makes the whole process fail.


Tags: bitbucket-cloud

cloud
Pipelines is giving me a no such file or directory error. What path should I use?
Asked by Yash Joshi:

I am new to pipelines and think its a great tool. I ran into an issue when setting up the call to do docker build. Here is the error I get,

    ADD ./impl/build/libs/impl-0.0.1-SNAPSHOT.jar experience-0.0.1-SNAPSHOT.jarService 'springboot' failed to build: ADD failed: stat /var/lib/docker/165536.165536/tmp/docker-builder004596674/impl/build/libs/impl-0.0.1-SNAPSHOT.jar: no such file or directory

<br />

<br />

`Here is my pipeline file:`  

```
branches:
  master:
    - step:
          image: openjdk:14
          name: Build springBoot
          script:
            - ./gradlew clean build --refresh-dependencies
          caches:
            - gradle
    - step:
          name: Build and Test
          script:
            - docker-compose build
          services:
            - docker
          caches:
            - docker

```

<br />

The Pipeline breaks for step 2, while performing the docker-compose task. In my docker compose I call this Docker File which adds the Springboot output from the ./gradleBuild to the current location of the Docker Image.   

Here is my dockerFile,

```
FROM openjdk:14

ADD ./impl/build/libs/impl-0.0.1-SNAPSHOT.jar experience-0.0.1-SNAPSHOT.jar

EXPOSE 5000

ENTRYPOINT ["java", "-jar", "experience-0.0.1-SNAPSHOT.jar"]
```

<br />

When Pipelines performs the docker-compose and reaches the Add ./impl/build it isn't able to find the right path. What path should I be pointing it to?


Answers:
author: Yash Joshi
body: Got the path to work. Because I have 2 steps and the second step is dependent on the first one, I had to export the Jar that was built from the ./gradle build as an artifact that could be consumed by the second step. More information can be found here :  

<https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/>


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker

spring-boot
How to get information about specific branch
Asked by aksimoN:

Hello, I'm using Bitbucket api thru HttpRequest. I want to get information about specific branch.

/rest/api/1.0/projects/project_name/repos/repo_name/branches/ - work fine  

rest/api/1.0/projects/project_name/repos/repo_name/branches/default - works fine

but how ask about specific branch?  

rest/api/1.0/projects/project_name/repos/repo_name/branches/develop   

or

rest/api/1.0/projects/project_name/repos/repo_name/branches/master

or  
rest/api/1.0/projects/project_name/repos/repo_name/branches/refs/heads/develop -don't work   

Is it possible?


Answers:
author: Maciej Adamczak
body: Hi [@aksimoN](/t5/user/viewprofilepage/user-id/4345210) you can check the documentation page for the Bitbucket REST API:

<https://docs.atlassian.com/bitbucket-server/rest/7.12.0/bitbucket-rest.html#idp210>

The rest endpoint you should check is referenced as:

```
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/branches
```

You can use either the **"base"** or "**filterText"**params depending on the use case you have.

Thanks,  
Maciej Adamczak  
Atlassian Developer

comments: author: aksimoN
body: I still don't get it:  
/REST/API/1.0/PROJECTS/{PROJECTKEY}/REPOS/{REPOSITORYSLUG}/BRANCHES?BASE\&DETAILS\&FILTERTEXT\&ORDERBY\&BOOSTMATCHES

trying:

```


GET /rest/api/1.0/projects/Project_name/repos/Repo_name/branches?develop
```

I get:

```
{
"size": 2,
"limit": 25,
"isLastPage": true,
"values": [
{
"id": "refs/heads/develop",
"displayId": "develop",
"type": "BRANCH",
"latestCommit": "8454018d5221826cc4d034197b84b6e83802e4d5",
"latestChangeset": "8454018d5221826cc4d034197b84b6e83802e4d5",
"isDefault": true
},
{
"id": "refs/heads/master",
"displayId": "master",
"type": "BRANCH",
"latestCommit": "d481152fd1c55fb7a049a25044ff5c532bdf231e",
"latestChangeset": "d481152fd1c55fb7a049a25044ff5c532bdf231e",
"isDefault": false
}
],
"start": 0
}
```

still return 2 branches


author: Maciej Adamczak
body: you need to construct the URL to provide pairs of param names and values, e.g.:

```
/rest/api/1.0/projects/PRS/repos/prs-slowniki/branches?base=develop
```

or

```
/rest/api/1.0/projects/PRS/repos/prs-slowniki/branches?filterText=develop
```


author: aksimoN
body: ```
/rest/api/1.0/projects/PRS/repos/prs-slowniki/branches?base=develop 
```

First one still gets me both branches but

```
/rest/api/1.0/projects/PRS/repos/prs-slowniki/branches?filterText=develop
```

Second one working fine. I think I get it now


author: Vraj Panagar
body: how can i get branch list from branch type is a release?


Tags: bitbucket-server

server
Connect to Selenium service from within docker container
Asked by bsuttis:

In Pipelines I can install a Drupal site successfully and from within its container I can access it at http://localhost:80. I am executing Behat tests and non-@javascript scenarios are working (via goutte) but @javascript scenarios are failing (via selenium2). I get the following error when running a @javascript scenario:

**unknown error: net::ERR_CONNECTION_REFUSED**   
**(Session info: chrome=89.0.4389.82)**   
**(Driver info: chromedriver=89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294}),platform=Linux 5.4.92-flatcar x86_64) (WebDriver\\Exception\\UnknownError)**

I'm wondering if it's possible to connect to the Selenium service from within the container?

In a build step, I run:

```
docker exec -i app bash -c "echo \"$BITBUCKET_DOCKER_HOST_INTERNAL host.docker.internal\" >> /etc/hosts"
```

This allows me to access the mysql service at host.docker.internal:3306 from within the container.

I assume the same should work for the Selenium service, making it accessible at host.docker.internal:4444 from within the container but the error above is output.

Here is part of my bitbucket-pipelines.yml file to help provide some more context:

```
pipelines:
  default:
    - step:
        script:
          - docker build -t my-ci .
          - docker run -dit --name app -p 8080:80 my-ci
          - sleep 5
          - docker ps
          - docker exec -i app bash -c "echo \"$BITBUCKET_DOCKER_HOST_INTERNAL host.docker.internal\" >> /etc/hosts && /var/www/vendor/drush/drush/drush si --db-url=mysql://drupal:drupal@host.docker.internal:3306/drupal -vvv"
          - docker exec -i app bash -c "curl http://localhost:80/user/login"
          - docker exec -i app bash -c "cd /var/www/tests/behat && composer install && bin/behat"
        services:
          - docker
          - mysql
          - google-chrome

definitions:
  services:
    mysql:
      image: mysql:5.7
      environment:
        MYSQL_DATABASE: 'drupal'
        MYSQL_USER: 'drupal'
        MYSQL_ROOT_PASSWORD: 'root'
        MYSQL_PASSWORD: 'drupal'
    google-chrome:
      image: selenium/standalone-chrome
```


Answers:
author: bsuttis
body: After a lot of trial and error I realized the mapping of 8080:80 was causing issues. Instead I mapped 80:80 and I can now successfully run my Behat @javascript tests.

comments: author: alfered marshal
body: Hey, thanks for posting here i am sharing the most popular trending online certification course that will advance your career. Learn [oracle Certifiaction Training](https://chennaitraining.in/oracle-dba-training-in-chennai/)


author: alfered marshal
body: Hey, thanks for posting here i am sharing the most popular trending online certification course that will advance your career. Learn [oracle Certifiaction Training](https://chennaitraining.in/oracle-dba-training-in-chennai/) and enroll now to get!!


Tags: bitbucket-pipelines

chrome

cloud

docker

selenium
Reclaim a Bitbucket Username?
Asked by Jon Yurek:

I have a bitbucket account under my personal email address and also another under my company email address. I also have Atlassian accounts under those same email addresses. But when I try to sign into Bitbucket after having signed in to those Atlassian accounts, I'm prompted to choose a Bitbucket username. Those two names are already chosen.

Thus, I'm left with no way to claim my actual username because there's no way to get to any way to link these accounts.

Can someone help here?


Answers:
author: Theodora Boudale
body: Hi [@Jon Yurek](/t5/user/viewprofilepage/user-id/4343417) ,

If you are prompted to choose a Bitbucket username, then no Bitbucket account exists for the Atlassian account that you are currently logged in to.

Are you trying to log in with the same email as the one of your community account?

I checked in our system and this specific email is added as an ++email alias++ to a Bitbucket Cloud account that has a different primary email address (which I assume is your personal one). Email aliases are used for Git aliasing only, log in is only possible with the primary email address (of the linked Atlassian account).

So, for the email of your community account, there is no Bitbucket Cloud account with that one as primary email.  
You'll need to create an account first in order to be able to log in with it. If you do this, then this email will be removed from the aliases of the account I mentioned above.

<br />

You mentioned that you have two Bitbucket accounts, but I am not sure which one the second is. I can see in our system one account that I already mentioned, where your community email is an alias and a different email is the primary one. So, it is possible that the second Bitbucket account is associated with a different email address than these two.

In order for us to offer advice specific to your situation, we would need to know the Bitbucket username of each of these two accounts and the email you are trying to log in with (in case it's different than the email of your community account). If you can provide this info here, I can check in our system.

If you don't want to share this info here publicly for privacy reasons, you can open a ticket with the support team providing this info, so they can check in our system what accounts exist and advise you on next steps. The support ticket will be visible only to you and Atlassian staff. You can open 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.

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

Kind regards,  
Theodora

comments: author: Jon Yurek
body: Thank you for the help. That did at least alleviate one problem and I was able to sign in.


author: Theodora Boudale
body: That's good to hear and you are very welcome.

If you need any further help, please feel free to reach out either here or via a support ticket.


Tags: bitbucket-cloud

cloud
How to change Java Trust Store for Dockerfile
Asked by Jonathan Ward:

According to the warning on [How to change the JVM parameter for a Docker container \| Bitbucket Data Center and Server \| Atlassian Documentation](https://confluence.atlassian.com/bitbucketserverkb/how-to-change-the-jvm-parameter-for-a-docker-container-847353044.html) I can set the cacerts/ Java Trust Store path in my docker file using JVM_SUPPORT_RECOMMENDED_ARGS parameter, as I'm after v4.0 (7.6.0 now)

Can anyone show me how?? I cannot find an example anywhere, not even on the docker readme!

I have my cacerts in my docker home which is mapped as a volume, but obviously need to change startup params to read this location instead of the images own default /opt/.... path to its JVM.

I'm sure this is a one-liner, just don't want to mess up my install!  
My docker file section for BB is like this:  

```

bitbucket:
image: atlassian/bitbucket-server:7.6.0
container_name: bitbucket
environment:
ELASTICSEARCH_ENABLED: 'true'
JDBC_DRIVER: com.microsoft.sqlserver.jdbc.SQLServerDriver
JDBC_USER: sa
JDBC_PASSWORD: ***************************
JDBC_URL: 'jdbc:sqlserver://mssql:1433;databaseName=BitbucketDB'
volumes:
- '/var/bitbucket/home/:/var/atlassian/application-data/bitbucket/'
ports:
- '7999:7999'
expose:
- '7990'
networks:
- backend
```

Expecting to add the JVM_SUPPORT_RECOMMENDED_ARGS bit in there I guess?

Really appreciate the help on this, will solve some internal integrations :)


Answers:
author: Dave Chevell
body: Hi [@Jonathan Ward](/t5/user/viewprofilepage/user-id/3537545) ,

If your **cacerts** file (your trust store) is located inside your **$BITBUCKET_HOME**folder, then you would tell your containers to use it like so:

```
environment:
  JVM_SUPPORT_RECOMMENDED_ARGS="-Djavax.net.ssl.trustStore=/var/atlassian/application-data/bitbucket/cacerts" 
```

If you're using multiple nodes in a Data Center configuration, and you intend to use the same trust store for all nodes, you might instead choose to store your **cacerts** file inside **$BITBUCKET_HOME/shared** so all nodes can retrieve the same copy from your shared storage.

Hope that helps!

Dave

comments: author: Jonathan Ward
body: Thanks, [@Dave Chevell](/t5/user/viewprofilepage/user-id/792201)   
Slight edit on your snippet needs to be

```
 JVM_SUPPORT_RECOMMENDED_ARGS: '-
```

At least on whatever I'm running, it failed to start when I pasted this in as-is!

The good news is this has fixed my issues with integrating our Jenkins server, so thank you so much for this!


Tags: bitbucket-server

certificate

docker

server
How do I run my pipeline in parallel with different machines?
Asked by Alan Andres Haro:

I'm currently trying to run my pipeline and my test into different machines using cypress. However, I don't see the documentation to learn how to send the test into multiple machines. Does anyone know how to do it?   


Answers:
author: Justin Thomas
body: [@Alan Andres Haro](/t5/user/viewprofilepage/user-id/4234590) Can you please explain a bit more about your use case? We are currently working on Bitbucket Pipelines Runners, please join the [EAP](https://community.atlassian.com/t5/Bitbucket-articles/Bitbucket-Pipelines-Runners-Early-Access/ba-p/1612275) if you would like to try it out.

comments: author: Alan Andres Haro
body: My test is running in parallel, but I need some assistance to know how to run the same test into multiple nodes or machines instead of using the same node or machine. I would like to apply parallelism into my project like cypress is mentioned here <https://docs.cypress.io/guides/guides/parallelization#Splitting-up-your-test-suite>  

The idea is to save more time on my test, I'm looking to reduce 11 building minutes into 5 minutes. However, Bitbucket does not have this function itself as other CI pipeline providers.

Do you know if it is any other way to do this inside of Bitbucket [@Justin Thomas](/t5/user/viewprofilepage/user-id/777223)


author: Justin Thomas
body: Have you considered splitting the tests into groups and then execute them in parallel using the [parallel steps](https://support.atlassian.com/bitbucket-cloud/docs/set-up-or-run-parallel-steps/)?


Tags: bitbucket-pipelines

cypress

node

server