youngmon/atlassian-qna huggingface dataset:
Is there any issue with installing Bitbucket Data Center in only one node?
Asked by Baztheman:

Hi,

I have a customer who does not want to go to Bitbucket Cloud. He does not want the code to be stored in the cloud and mentioned the option of installing Bitbucket Data Center in a single node.

I read the documentation that Bitbucket Data Center is mainly for 500+ users and across multiple nodes. If I do not need high availability and disaster recovery then i can install it in one node without setting up a cluster.

Is there any issue with doing this? Does it seem to be overkill if Data Center is for 500+ users? There must be reasons why we should not do it right? Can you tell me pros and cons for doing this?

Thank you.

B.


Answers:
author: Pramodh M
body: Hi [@Baztheman](/t5/user/viewprofilepage/user-id/3183695)

Pros:

* You can manage the application in one node if the number of users using the application is less
* Quickly get over the maintenance activities
* Integrations, cluster maintenance activities will be easy

Cons:

* If the one node where you are running Bitbucket goes down, your server will go down
* Restoring the server will take time in time in case of downtime

You can go with one node provided necessary resources are allocated and you are sure about the server will be up all the time

The benefit of at least two nodes is that if you are having maintenance activities, you will have one node running

Let me know if you have any queries

Thanks,  
Pramodh

comments: author: Baztheman
body: Looks like there is no issue with running a one node bitbucket data center. How is the operation with bitbucket data center compare to bitbucket server? Lots of difference?


author: Pramodh M
body: [@Baztheman](/t5/user/viewprofilepage/user-id/3183695)

Elasticsearch, Database, NFS Server should be running on separate nodes and should be connected. (NFS Server is optional)


author: Baztheman
body: Thanks for the quick reply. So, basically, there is nothing wrong to run Bitbucket Data Center on a single node right?


author: Christian Glockner
body: That is correct. If you're running DC on just a single node, there's nothing wrong with installing Elasticsearch on the same machine too.

Cheers,

Christian

Premier Support Engineer

Atlassian


author: Bastian Stehmann
body: Hi [@Baztheman](/t5/user/viewprofilepage/user-id/3183695) ,

Atlassian supports installing the Data Center Version on a single node and it works without problems.

Bitbucket licenses also starts at lower user tiers with 25 users, so that this should be no problem also.

Bitbucket DC has features, like the ability to use multiple nodes, that are useful for high user tiers, but there are no problems oder reasons to use it only with some users.

But it is probably more expensive then using the cloud, as you have the license, hosting and operations.


Tags: bitbucket-server

server
Pipelines: increase 1(2)GB memory limit?
Asked by Viacheslav Snizhko:

I have a pipeline that consists of **1 step** and **doesn't use any services**.

It just builds react app.

There's only **1GB** available for the pipeline (and **2GB** for \`size: 2x\`)

And it's not enough for my build

Is there a way to increase memory limit above these limits?


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

Currently, each step has 4 GB of memory available, and you can also allocate additional memory to a step or to the whole pipeline. By specifying the size of 2x, you'll have double the memory available, for example, 4 GB memory ? 8 GB memory (2x pipelines will use twice the number of build minutes).

If you are not using any services then by default 4 GB will be allocated to the build container, and if you specify the 2x size then 8 GB will be allocated to the build container.

In case you would like to read more about this, you can access the following link:

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

Please feel free to share any additional questions or concerns regarding this case.

Kind regards,   
Caroline


Tags: bitbucket-pipelines

cloud
Search to list repos with a certain string
Asked by David Harvey:

Using the GUI, I can get a list of 354 files in the account with the string "APIM", but what I'm looking for is a list of repos with that string. This would seem like an obvious use case. I would rather not download all repos in the account onto my laptop simply to be able to ask this question.


Answers:
author: Theodora Boudale
body: Hi [@David Harvey](/t5/user/viewprofilepage/user-id/4743822),

Code search indeed returns a list of files with your search term.

You could use our API to get a list of repos e.g. with a call like the following:

```
curl --user <BitbucketUsername>:<app-password> --request GET 'https://api.bitbucket.org/2.0/workspaces/<workspace-id>/search/code?search_query=APIM&fields=values.file.commit.repository.links.html.href'
```

This query though will return the repo URL for each file where the search term exists. If there are two files in the same repo with this search term, you will get the repo URL twice in the output.

If you want, I can create a feature request in our issue tracker for the ability to view the list of repos that contain a search term (along with the list files). Please feel free to let me know if you'd like me to proceed with that.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is there a way to force the entering of Jira Issues on user commits but not on a pipeline commit.
Asked by Cian Dane:

When you enable the Must Have Jira Issue on a repository a pipeline cannot make a commit during is build process. Is there a way to make an exception to the Jira Issue requirement either for the user or for commit text?


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

Currently, it's not possible to exclude pipelines from requiring Jira Issue key on commit messages, but we already have a feature request to implement that:

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

I would suggest that you add 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 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.

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.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
how to use build cache from synology
Asked by Sumanth Anumolu:

I have my build-cache in my Synology NAS, which supports NFS, SMB,I want to use the build cache to build my code in the pipeline. so far I am using a custom-docker image for my pipeline and self. hosted runner on ec2-machine. I am only running one command in my script, which is the build command. My build is taking 3hrs of time to build the code without a cache directory. My build cache directory is 4GB.   

whenever I run bitbucket is create a docker container with my custom images and clone my repo into and run the build command to build. So I want to mount my shared folder to this container to use the build cache. or else let me know the best way to do it.   

The code I am trying to build is the yocto project.  

<br />

image:  
name: ecr.us-west-2.amazonaws.com:yoctodockerimage  
mount:  
type: bind  
source: /home/ubuntu/tgu  
target: /tgu  
aws:  
access-key: $AWS_ECR_ACCESS_KEY  
secret-key: $AWS_ECR_SECRET

pipelines:  
default:  
- step:  
name: "build"  
runs-on: test.yocto2  
script:  
- DISTRO=fsl-imx-xwayland MACHINE=dictgu EULA=yes source imx-setup-release.sh -b build-directory  
- bitbake build-directory


Answers:
author: Theodora Boudale
body: Hi [@Sumanth Anumolu](/t5/user/viewprofilepage/user-id/4740174),

I'm afraid that it is not possible at the moment to mount the host's shared directories in Pipelines runners.

As a workaround, you could use an SFTP client from the runner's build to download the directory from the host to the build container:

* <https://support.atlassian.com/bitbucket-cloud/docs/pipelines-runners-frequently-asked-questions/#How-I-can-access-files-on-the-host-from-the-build-script>

We have a feature request to support mounting host shared directories in a runner's container:

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

If you'd be interested in that, I would suggest adding your vote in the feature request (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.

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.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker

nas

nfs

synology

yocto
User wont get invitation emails to repo
Asked by iRIX Software Engineering AG:

Hi  
One of our new users can't get invitation emails from bitbucket. The adress is not blacklisted, or blocked. Clould you check if the user is blocked on your server somehow. I read posts with similar problems. It is possible that the first invitation was sent, befor the account was active... (please let me know how i can provide you the email address to check)


Answers:
author: Caroline R
body: Hi, [@iRIX Software Engineering AG](/t5/user/viewprofilepage/user-id/4743397), welcome to the community!

This has been a common issue, so we have created an article explaining [How to get support for Bitbucket Cloud invitation and notification issues](https://community.atlassian.com/t5/Bitbucket-articles/How-to-get-support-for-Bitbucket-Cloud-invitation-and/ba-p/1932959).

I checked the pending invitations sent from the workspace you have access to and confirmed that one of the users who hasn't accepted the invitation yet had a block on the server that prevented emails from being sent to them, so I removed this email from the suppression list.

Now, could you please remove the invitation and send them a new one? You can do this by following the next steps:

In case you have invited them to a **specific repository**:

* Access the workspace \> Go to the repo you have invited them to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add the email again to send a new invitation.

In case you have invited them to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group you have invited them to**;**

* Click on the "**invitation pending**";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add the email again to send a new invitation.

Please let me know how it goes and feel free to share any additional questions regarding this case.

Kind regards,  
Caroline


author: iRIX Software Engineering AG
body: Thank you for you help.  
We will resend the invitations

Kind regards

Linus


Tags: bitbucket-cloud

cloud
One of our users is not getting notifications from bitbucket
Asked by SimbexItsupport:

I've got one user that's not receiving notifications from bitbucket.   
This is a user that was inactive for a year but is now back. They are able to access their account but no notifications for pull requests, peer reviews or anything show up in their inbox.   
I've done multiple searches on our mail servers and it shows nothing coming in at all. So nothing on our end appears to be blocking it.


Answers:
author: Caroline R
body: Hi, [@SimbexItsupport](/t5/user/viewprofilepage/user-id/4220288), thank you for reaching out to Atlassian Community.

This has been a common issue, so we have created an article explaining [How to get support for Bitbucket Cloud invitation and notification issues](https://community.atlassian.com/t5/Bitbucket-articles/How-to-get-support-for-Bitbucket-Cloud-invitation-and/ba-p/1932959).

In order to further investigate what is happening with this account, would it be possible for this user to add a comment in this question, so we can see their email address? This way, we can check if this user is on a suppression list.

Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: Corey Paye
body: Hello [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) . My account is the one not receiving notifications.


author: Caroline R
body: Hi, [@Corey Paye](/t5/user/viewprofilepage/user-id/95631), thanks for the information.

We reviewed your email and confirmed that it had a block on the server that prevented emails from being sent to you. This can occur when the system tries to send an email to the user and the account does not exist, is not activated yet, or rejects the email for some internal reason.

In this case, I have removed the block from your email. Could you please ask your team to **remove** the invitation and send you a new one? They can do this by following the next steps:

In case they have invited you to a **specific repository**:

* Access the workspace \> Go to the repo they have invited you to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "invitation pending";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case they have invited you to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group they have invited you to**;**

* Click on the "invitation pending";

* Select the "Cancel invitation" option to remove the invitation;

* Add your email again to send a new invitation.

Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.

Kind regards,


Tags: bitbucket-cloud

cloud
Pipeline missed by some direct commits
Asked by r.abbasi:

Recently I noticed some strange behavior from the bitbucket pipeline, where the pipeline was missed by some direct commits and after a PR merge it again started working fine like earlier. The important thing to notice is the pipeline didn't fail nor gave any other error but it's completely missed for the same brnach i.e., master. I am sharing the screenshots for more details

![missing pipelines.png](/t5/image/serverpage/image-id/181627i783BE7E22C455428/image-size/large?v=v2&px=999 "missing pipelines.png")


Answers:
author: Mathew Munava
body: Good Day,  

Could have this been a pull from origin master to local branch before push commit form local flow process followed.  
I will assume if more than one is working on repo ,a branch off will be a more fervoured route.  

Trust solution in route.

comments: author: r.abbasi
body: [@Mathew Munava](/t5/user/viewprofilepage/user-id/4730682) Thanks for the response, I am trying to find out that. Will confirm the you here.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Not receiving email to complete 2FA for BitBucket
Asked by imran malik:

I am not receiving the confirmation email for my bitbucket account, i have tried both Authy and Google Authenticator.  

![Screen Shot 2022-02-04 at 3.34.25 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/181614iECF43031D9B5DBA9/image-size/large?v=v2&px=999 "Screen Shot 2022-02-04 at 3.34.25 PM.png")


Answers:
author: Caroline R
body: Hi, [@imran malik](/t5/user/viewprofilepage/user-id/4742897), 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 test this and check if you receive the email now?

Kind regards,  
Caroline

comments: author: imran malik
body: Hi, [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) thanks. Just got the email and it's enabled now.

Can i ask how my email got in the block list in the first place ?

Best Regards.

Imran.


author: Caroline R
body: Hi, Imran! I'm glad to know you received the email.

This has been a common issue and there are several reasons why an email address might end up on the suppression list, for example, if the email was rejected for transport issues (mail server, misconfigured DNS, blocked relay, the list goes on). In your specific case, this was the response we were able to see in your email when it was added to the suppression list:

```
554 5.7.1 [internal] recipient address was suppressed due to customer policy
```

We have recently created the following article to explain this issue and share with our community how to get support for Bitbucket Cloud invitation and notification issues, in case you would like to read more about this:

* <https://community.atlassian.com/t5/Bitbucket-articles/How-to-get-support-for-Bitbucket-Cloud-invitation-and/ba-p/1932959>

Kind regards,   
Caroline


author: Pramodh M
body: Hi [@imran malik](/t5/user/viewprofilepage/user-id/4742897)

Welcome to the Community!!

For Notification Issues here's the reference

<https://community.atlassian.com/t5/Bitbucket-articles/How-to-get-support-for-Bitbucket-Cloud-invitation-and/ba-p/1932959>

Thanks


Tags: 2-factor-authentication

bitbucket-cloud

cloud
after pulling (with update option) there are unwanted comments in my files
Asked by Mahmoud Ahmed:

SourceTree Version 1.6.13.0

after pull as (update)

if any files have changes the SourceTree will comment with each change with something like comments

Please any help ?

Example:

=======================

int var =15;

\>\>\>\>\>Working Copy

=======================

int var = 20;

\>\>\>\>\>\> comment

===================


Answers:
author: Bal?zs Szakm?ry
body: This looks like you have a merge conflict that you need to resolve. (Or somebody committed a file marked with the merge conflict markers.) If you do not have a merge conflict, check the file's history to see who committed the strange lines and talk to them.
Bitbucket Pipeline pytest report missing
Asked by Artem Inzhyyants:

I'm running bitbuket pipelines with the python 3.7.3 and next commands:

* **pytest** to run tests **inside docker container**
* pytest --junitxml=/coverage/test-reports/report.xml
* docker cp \<container\>:/coverage/test-reports test-reports

Everything goes well, I can see the report output, and the following teardown output, but **no reports are shown in report section.**

Found matching test report file /opt/atlassian/pipelines/agent/build/env/test/test-reports/report.xmlLocated test suite containing 4 tests, with 0 failures and 0 errors.Finished scanning for test reports. Found 1 test report files.Merged test suites, total number tests is 4, with 0 failures and 0 errors.Uploading test resultsFinished uploading test results.

<https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-Pipelines-with-pytest-XML-report/qaq-p/874636>  

I've made everything like it was mentioned in question above but still no result.

My question is what am I missing, and who are there no reports?


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

By the output you shared with us, there were no failures or errors:

```
with 0 failures and 0 errors
```

So, it is expected that no reports will show in the report section. This is because the Tests tab will only show if you have failed tests to review. In case you would like to read more about this subject, you can access the following doc:

* <https://support.atlassian.com/bitbucket-cloud/docs/test-reporting-in-pipelines/>

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

Kind regards,   
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pytest

report
Retrieve working copy
Asked by RaynoldTanYX:

Hi I'm new to SourceTree and i clicked on a branch by accident and it checked out that branch, overwriting my working copy. Is there any way to retrieve my work back?


Answers:
author: Bal?zs Szakm?ry
body: If you double-click on the original branch to check out that one, you should get (almost) all of your changes back. (There would have been a warning before anything is properly destroyed,)

comments: author: Seth
body: Most changes that weren't committed will be gone. However, as Balazs mentioned, SourceTree would have warned you about that before allowing you to checkout another branch.
How do branches work?
Asked by OC2PS:

There is a public repo A on github. I have cloned it as B on github.

Using SourceTree, I have cloned it locally.

What I want to do is make some changes D, E, F and send pull requests to original repo A.

However, if I make commit D and push to B, then create a pull request to A, then make commit E and push to B and then create a pull request to A, then the second pull request includes both D and E, which is problematic.

I imagine that this could be resolved by using branches, but not sure how.

Also, in SourceTree if I create a branch, then it doesn't seem like additional files are created in local clone - so how do I know which branch I am working in?


Answers:
author: Bal?zs Szakm?ry
body: * A pull request is always between branches. If you want D and E to be in separate pull requests, create a branch for each of them (from the commit before D).
* On the left side (in the gray part) in the Branches section, one of the branch names is bold. That is the branch you are working on. (Double-clicking any other will put you on that branch.)
* In Git a branch means "a commit and all of its ancestors", so two branches can have exactly the same content if they point to the same commit. When you create a new branch, it points to the same commit as the parent branch. (Unless you create it from an older commit not at the tip of one of the branches.)
* You might want to read [this](http://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging).

comments: author: OC2PS
body: Okay, so lets say I create 3 new branches, and work on 3 ideas.Then, to create a pull request for A, do I need to merge these requests into master branch of B (which would probably create the same problem as not having branches) or can I send pull requests to upstream directly from branches C, D, and E?


author: Bal?zs Szakm?ry
body: You can have a PR from C, D, E in your fork to the master branch in the original repo.
How do I keep my fork updated?
Asked by OC2PS:

So, there's this public repo on GitHub. I have forked it on Github and cloned my fork locally using SourceTree.

I have added the original repo as a remote called upstream.

How can I ensure that my fork stays updated/synched with the original repo?


Answers:
author: Bal?zs Szakm?ry
body: You need to pull the changes from it periodically. Tools\\Options\\"Check default remotes for updates every N minutes" makes SourceTree do automatic fetches in the background, which puts red numbers on your pull button when there are new changes.

comments: author: OC2PS
body: Thanks Balazs. Do I need to set upstream as the Default remote then? Or should origin continue to be the Default remote?


author: Bal?zs Szakm?ry
body: Not sure how this works if you have multiple remotes. Try. :)