youngmon/atlassian-qna huggingface dataset:
Move file into a new repository but preserve file history
Asked by Ramon Dinca:

Hi team,

We are trying to copy one password file from the main repository to a new repository, but we need to have the file history as well. I've tried multiple ways already, but for some reason the history is not accurate.

Could you please confirm if there is a process to follow in order to accomplish this?

Your help is appreciated.

Kind regards,  
Ramon Dinca


Answers:
author: Tyler T
body: One option would be to fork the main repository which will preserve the history. The fork will create a copy. Each repository will have its own history unless you are using submodules.

Another note - be careful when storing password in git repositories. It is generally not recommended. This thread has some additional information: <https://security.stackexchange.com/questions/191590/why-is-storing-passwords-in-version-control-a-bad-idea>

comments: author: Ramon Dinca
body: Hi Tyler, thank you for the provided details. We will try it and let you know the outcome. Have a nice day!


Tags: bitbucket-server

server
I can't see the transfer repository option anymore
Asked by REQBank:

Yesterday I started to transfer a repository then cancelled the request. Today I can't see the transfer option. Any ideas?

Thanks


Answers:
author: Tyler T
body: Go to repository settings: [https://bitbucket.org/\<workspace_id\>/\<repo_slug\>/admin](https://bitbucket.org/<workspace_id>/<repo_slug>/admin)

In the upper-right corner there is a **Manage repository** dropdown menu which has the transfer option.


Tags: bitbucket-cloud

cloud
Can I get personal Slack notifications from Bitbucket for only my PRs and builds?
Asked by trygve-pg:

We're trying to clean up our Slack channels and have realized that, at least for some of our internal projects, no one does anything with anyone else's build or pull request notifications. (We can add reviewers or at-mention in comments to get someone else's attention on a PR.) Is there a way to set up the Slack integration so that we get direct messages only about PRs we create and builds run by those PRs or triggered by us manually?


Answers:
author: David Michelson
body: "Is there a way to set up the Slack integration so that we get direct messages only about PRs we create and builds run by those PRs or triggered by us manually?"

Right now the app is more centered around getting notifications for a certain repository, instead of personal-oriented notifications like you mention (which is an awesome idea!).

I think the closest thing may be to set up a subscription in a DM with the bot, and use the provided filters (e.g., selecting which types of events for the repo / specific branch you want to hear about) to get as close to the desired outcome as you can.

Our docs have a helpful guide on getting that done: <https://support.atlassian.com/bitbucket-cloud/docs/integrate-bitbucket-cloud-with-slack/>

comments: author: trygve-pg
body: Thanks! I did read through that document, and the filters are pretty cool, but in this case the only thing to filter on would be user, and it looks like that's not possible. Thanks for the confirmation though.


author: trygve-pg
body: Also that link doesn't work but I assume you mean this: <https://support.atlassian.com/bitbucket-cloud/docs/integrate-bitbucket-cloud-with-slack/>?


author: David Michelson
body: Ah yes - thanks [@trygve-pg](/t5/user/viewprofilepage/user-id/2818559) !


author: Stephen Crandell
body: Hello,

I think it is possible but have not tried it myself. Please check this documentation page from Atlassian for the Bitbucket to Slack Integration. Look specifically at the "Pull Request" and "Tag" sections. You may need to tag personal PRs and get notifications that way. Hope this helps!

comments: author: trygve-pg
body: Thanks! Yeah, I found the bit about filtering by tags, but I thought that was talking about git tags? So we'd have to also tag the commit when creating a personal PR? It sounds like we'd end up with a lot of tags cluttering the repo. But maybe I'm misunderstanding some part of what you're intending?


Tags: bitbucket-cloud

cloud

slack
Is it possible to run parallel block into parallel
Asked by Khushbu Agrawal:

Is it possible to run parallel block into parallel?

I have multiple testcases which I want to run in different suites and also run them parallel

Example:

'section: variants':  
- parallel: \&variants_tests  
- step: \*aws_variant_calling  
- step: \*aws_annotation  
- step: \*aws_vafqc  
- step: \*aws_ubiquity

'section: peptides':  
- parallel: \&peptides_tests  
- step: \*aws_AMP  
- step: \*aws_ace  
- step: \*aws_peptide_generation  
- step: \*aws_peptide_annotation

'all_tests': \&all_tests  
- parallel:  
- parallel: \*variants_tests  
- parallel: \*peptides_tests


Answers:
author: Soumyadeep Mandal - SaM
body: Hi [@Khushbu Agrawal](/t5/user/viewprofilepage/user-id/2883921) ,

Please check if this solution works for you <https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/Running-parallel-steps-on-pull-requests/qaq-p/1495272>

Regards,

***Soumyadeep***


Tags: bitbucket-cloud

cloud
I stopped receiving Bitbucket email notifications
Asked by Iuliia Siriakivska:

Hello,

I stopped receiving Bitbucket notifications. I didn't change anything in BB setup and double checked whether emails are not blocked by anti spam filters. This might be connected to following topics:

- <https://community.atlassian.com/t5/Bitbucket-questions/I-stopped-receiving-bitbucket-email-notifications/qaq-p/1088558>

- <https://community.atlassian.com/t5/Bitbucket-questions/Not-receiving-emails-of-pull-requests/qaq-p/1350499>

Could anybody please investigate following email, please:

[**Iuliia.Siriakivska@instantconnectnow.com**](mailto:Iuliia.Siriakivska@instantconnectnow.com)

?


Answers:
author: Iuliia Siriakivska
body: thank you, all good and working now


Tags: bitbucket-cloud

cloud
How do i create copy repository from another repository using rest api
Asked by Naresh Thodengala:

I want to create a repository from another repository. i am able to create another repo using Bitbucket UI but i need rest api request to create repo from another repository.


Answers:
author: kylawatson_kw
body: You just want the copy the file right? You should check server side rendering which requires your code to be present for final compilation


Tags: bitbucket-server

repository

rest-api

server
paramiko.ssh_exception.AuthenticationException: Authentication failed
Asked by Husain Mithaiwala:

Hello,

I am trying to deploy the docker container according to different environment.

I have saved the environment variables in deployment variables.

Everything runs fine but when I execute **docker-compose -H $DOCKER_HOST --verbose -p sg_dev up -d** the pipeline fails with the **error paramiko.ssh_exception.AuthenticationException: Authentication failed**

What am I missing here

Thanks,


Answers:
author: Husain Mithaiwala
body: Hello [@Halyna Berezovska](/t5/user/viewprofilepage/user-id/3865505)

I changed from DOCKER_HOST="ssh://$QA_USER@$QA_HOST" docker-compose --verbose -p sg_qa up -d (where QA_USER and QA_HOST are configured in the repository variable.

The deployment variable I am pointing to in dev which is configured in deployments tab   
Total 4 deployments

- Dev  
- QA  
- Stage  
- Prod

comments: author: Halyna Berezovska
body: Hello [@Husain Mithaiwala](/t5/user/viewprofilepage/user-id/4220993) !

Basically, this could be docker-compose problem similar to this one <https://github.com/docker/compose/issues/6655> .

Check that you have right docker-compose config described in this issue.

It also depends on what ssh auth you have in docker containers you are working on and what ssh config you have in pipeline and its location.

You can also debug this issue with \`\`\`--log-level DEBUG\`\`\` and see the output, perhaps it can help to investigate the root cause.


author: Halyna Berezovska
body: Hello, [@Husain Mithaiwala](/t5/user/viewprofilepage/user-id/4220993) ! I have couple of questions that can lead to a root cause.

- is DOCKER_HOST is configured in your deployment or you want to use bitbucket default variable?

- are you pointing which deployment name you want to use? Example of deployment:

```
your-pipeline: &your-pipeline
  step:
    name: Your pipeline
    deployment: <DeploymentName> (eg Production)
    caches:
      - docker
    script:
.....
```

Regards, Galyna


Tags: bitbucket-pipelines

docker
I stopped receiving emails after migration to office365
Asked by mbohal:

Hi,

last week I have moved my inbox for email mb@mbohal.cz to exchange online (outlook.office.com).

Since then I have stopped receiving notifications such as:

* mentions
* new issues assigned to me
* etc.

I however did receive an invitation to collaborate on a new repository.

Has anyone experienced something similar? How did you fix it? Before In had my email on webfaction.com and everything worked fine.

Thanks

Martin

EDIT: I did receive notification after created this post


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

I checked in our system and I found a hard bounce event for your email created on 6th January 2021 with the message

```
550 5.1.10 RESOLVER.ADR.RecipientNotFound;
```

I believe that your email account may not have been operational for some time during the change to your systems, Bitbucket tried to send an email notification during that time, and received a hard bounce response from your mail server.

The hard bounce informs us that the email does not exist and in this case it is placed in a suppression list, as we no longer try to resend to non-existing emails.

I went ahead and removed your email from the suppression list. Could you monitor this and let me know if you are able to receive Bitbucket notifications now?

Invitations and emails from community are sent from another system, which is why you haven't had any issues receiving those.

Please feel free to let us know if things are ok now and if you need anything further.

Kind regards,  
Theodora

comments: author: mbohal
body: Hurray! It works, I got my notification.

Thanks for your help!


Tags: bitbucket-cloud

cloud

email
After migration to RHEL8 , I am unable to see git repos in bitbucket server.
Asked by Rashmi:

I have edit the path of repositories object in integration-system-workid/.git/objects/info/alternates as suggested in error shown on display. But still cannot see the repo on server . Still I am seeing the same error 505.

'/usr/local/bin/git cat-file -t refs/heads/master:' exited with code 0 saying: error: object directory /opt/stash/shared/data/repositories/471/objects does not exist; check .git/objects/info/alternates.

It is still trying to fetch the repo from old path -opt/stash/shared/data/repositories/

whereas new path I set in alternates is- cd /opt/bitbucket/bitbucket_home/shared/data/repositories/ ...

I had a repoID mentioned there which i have not changed, just modified the stash to bitbucket/bitbucket_home. Please suggest a way forward for its resolution


Answers:
author: Mirek
body: Hi [@Rashmi](/t5/user/viewprofilepage/user-id/4217906)

First of all I suggest to check carefully ownership of all folders and files. That is common case that there is something that was broken after migration. Make sure that user that started application is able to see full path.

comments: author: Rashmi
body: Hi Mirek!

Thanks for your suggestion, I have check each file and folder has bitbucket owner in repo. Just wondering how can I check user that started bitbucket application is able to see full path of bitbucket_home?


author: Mirek
body: Maybe you can use find command to start a search and if there is any folder (or path) that the user would not have access you should see that information on your screen


author: Rashmi
body: From user you mean bitbucket user or the end user who is trying to access the repo?


author: Rashmi
body: I have checked my bitbucket user has access to the path of repo. So both conditions are okay but still its not working. I have now changed the path is application.xml file inside bitbucket_home/logs/support and restarted the server but no help.


author: Mirek
body: You might want to check this KB article - <https://confluence.atlassian.com/bitbucketserverkb/object-directory-does-not-exist-git-operations-fail-after-upgrade-or-bitbucket_home-update-779171447.html>

Maybe it would help


author: Rashmi
body: I have followed these steps as well, but no help as I described in description. One question the alternates file would be in each repo_id/objects/info/id or in tmp/.git/objects/info which I need to update. Though I have changed on both.


Tags: bitbucket-server

server
Bitbucket Server to Data Center
Asked by Mosh:

Hello

We plan to move from Bitbucket Server to Datacenter.  
The reason is to use a tool that's still in active development.

We have no plans to setup high availability and to replicate the server. We plan to keep using it on-prem

My question:

Do we have to install the Bitbucket server again? Or it's just about purchasing a license and then replace the license code? We want to avoid a re-installation if necessary

Thank you


Answers:
author: Christian Glockner
body: Hi Mosh,

No, you just enter the new license and that's it.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Mosh
body: Thanks Christian! Sounds great

Does it work for any Bitbucket Server version ?


author: Christian Glockner
body: Hi Mosh,

The process is the same regardless of the version.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-administration

bitbucket-server

data-center

server
Where i can get my SEN?
Asked by pridembm:

I can\`t find my SEN. I need to pay for my plan (Premium) right now.


Answers:
author: Mirek
body: Hi [@pridembm](/t5/user/viewprofilepage/user-id/4219298) ,

Not sure if you are using Server or Cloud, but I think this documentation is what you are looking for:

<https://confluence.atlassian.com/support/how-to-find-your-support-entitlement-number-sen-229840018.html>

You can also read everything about managing your plan here:

<https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/>


author: Theodora Boudale
body: Hi [@pridembm](/t5/user/viewprofilepage/user-id/4219298) and welcome to the community.

You should be able to upgrade the plan for Bitbucket Cloud and/or change billing details without a SEN.

You can do this if you:

1. Log in to <https://bitbucket.org/>
2. Go to your avatar (bottom left corner) \> **All workspaces**.
3. You will see all workspaces you have access to. Select the one you want to change the billing plan for.
4. Afterwards, select **Settings** from the left hand column to view workspace settings.
5. Then select **Plan details**.
6. In there, you will see the option **Upgrade plan**. Select that and you should be able to upgrade to the Premium plan.

The SEN is visible to users who are listed as technical or billing contacts for a workspace in our licensing system, <https://my.atlassian.com/>.

I can see that you have opened a support ticket for this issue as well, you can request for the SEN in the support ticket and also to be added as billing and/or technical contact.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Standard plan - error on exceeded users
Asked by rajuai:

We migrated to the standard plan yesterday and our developers are still getting the error while pushing their code.

Doesn't the unlimited users get updated immediately when a plan is changed?

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


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

I believe that there may have been a delay with the plan change syncing between Bitbucket and our billing system, our apologies for this.

I see that you opened a support ticket for this issues as well and an engineer triggered a sync manually.

Could you please let us know if things are ok now?

Please feel free to let us know if you still have issues or if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Deployment variables and react-scripts build conundrum
Asked by Karel Frajtak:

I am trying to setup a pipeline to build a React application (created using `react-scripts`) and deploy it to a remote server with its specific environment variables. Those variables are defined in deployment setting.

The problem is that I need the variable **before** the deployment so I can create a `.env.local` file (that overrides the default `.env` file) used in the `npm run build` stage.

When I mention the `deployment: Staging` in both build steps I get an error saying
> Environment name and order needs to defined in your deployment setting.

And if I remove it from the deployment stage and add it to the build stage, than the build stage gets and "Redeploy" button ...

How can I access the deployment environment variables in the build stage so the React app can be built with the environment variables specific to deployment machine?


Answers:
author: Theodora Boudale
body: Hi Karel,

Deployment variables can only be accessed by the step that does the deployment and I'm afraid that it is not possible to use the same deployment environment for multiple steps.

Are you deploying to different servers and do you use multiple deployment environments in your yaml file for this repo? Or only one?

I am trying to understand your use case to see if there is a different way to achieve what you want.

Kind regards,  
Theodora


Tags: bitbucket-pipelines

bitbucket-cloud

cloud

deployment

react.js
Are step metrics still available in Bitbucket Pipelines?
Asked by Charlie:

Bitbucket Pipelines introduced step metrics in late October 2020, which show information about memory and CPU usage of each step. But now (January 2021) it seems to have disappeared: the Metrics tab has disappeared and I can't find it listed on the Labs page or any other configuration so I haven't accidentally disabled it.

Is this feature still available?

I note that there is documentation for it at <https://support.atlassian.com/bitbucket-cloud/docs/step-metrics/> which says it is enabled by default for all Pipelines users, so I presume it should be there and just work?


Answers:
author: Justin Thomas
body: Hi [@Charlie](/t5/user/viewprofilepage/user-id/938028)

During our rollout of Step metrics, we discovered a few major issues with usability and the accuracy of the metrics. The team is currently working on fixing those issues. While we don't have a concrete timeline on the delivery, we hope to roll it out soon.

Thanks,

Justin Thomas

Product Manager, Bitbucket

comments: author: Charlie
body: Thanks for the explanation. I was wondering if I'd accidentally disabled it somehow!


author: dmoller
body: Any update on this? It's been a year and today

* I am being prompted by Bitbucket Cloud to try out metrics
* a Metrics tab shows up in my pipelines but it is empty except for the documentation link
* the documentation link redirects to no useful information


Tags: bitbucket-pipelines

cloud
Remote Login Fails
Asked by codysteele:

We are running Bitbucket 5.9 on a Mac Mini running Catalina. This server has been working well and hosting repositories for everyone on our local network and remote developers as well. The server is using the default port 7990. Our Mac installed system or security updates last night and since then and following several reboots, no remote users can access the repos through Sourcetree or the webserver. Local computers can ping the server at it's static IP address and the server itself shows that Bitbucket has launched and is serving the repos to localhost or to its static IP address for a browser on the server itself. Any suggestions for troubleshooting this?


Answers:
author: Soumyadeep Mandal - SaM
body: Hi [@codysteele](/t5/user/viewprofilepage/user-id/750290) ,

Please read and follow these documentations

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

<https://stackoverflow.com/questions/33413890/bitbucket-fails-to-authenticate-on-git-pull/33414167>

Regards,

***Soumyadeep***

comments: author: codysteele
body: Thank you Soumyadeep, but you misunderstood my description of the problem. The Bitbucket web server is entirely unreachable. We do not have a problem authenticating when accessing the Bitbucket webserver from http://localhost:7990.

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


author: Christian Glockner
body: Hi Cody,

My hunch would be that the firewall on the Mac is preventing access from outside, so check if it's active and turn it off if needed.

Cheers,

Christian  
Premier Support Engineer

Atlassian

comments: author: codysteele
body: Thank you Christian, but unfortunately, the firewall is off.


Tags: bitbucket-server

server
"read ECONNRESET" error when attempting to make an issue from the API
Asked by Cecil Carter:

Attempting to use the jira-cloud api to make an issue in Jira. This works on my local.

When running via my API (hosted in AWS). I get ECONNRESET, which from my research means the server closed the socket.

How do I get around this?

```
const { data } = await axios.post( `${process.env.BASE_URL}/rest/api/3/issue`, 
body, 
{ Authorization: `Basic ${process.env.SECRET_JIRA_TOKEN}`, 
"Content-Type": "application/json", 
Accept: "*/*", } );?
```

\*Code if needed


Answers:
author: David Bakkers
body: Is this the same question that you asked 4 days ago in this [Bit Bucket thread](https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/Jira-refusing-connection-when-making-an-issue-works-locally/qaq-p/1573395)?

I'm not sure what you mean by the Jira API being 'hosted' in AWS. Do you mean you are executing your code from within a VM in AWS as per your other question?

Can you do a GET access to the same REST API endpoint via a web browser in that VM using the same credentials? That will at least test the port is open.

What other tests have you done to try and isolate the problem?

comments: author: Cecil Carter
body: Not the same. New Error.

Haven't tried anything other than running my code. My API calls to Jira Cloud to make the request. Didn't think there was a good way to test the request from my API.


author: David Bakkers
body: OK, I understand. Well, good luck with trying to find the cause of the problem with your API.


Tags: api

bitbucket-pipelines

cloud

integration

jira

jira-cloud

rest-api
Sync a branch from Api
Asked by Marlon Cardoso:

Hi,

I would like to know if it is possible to do the "sync", present in the bitbucket branch screen, through the bitbucket api? and if so, what is the request

Thanks


Answers:
author: Theodora Boudale
body: Hi Marlon,

I'm afraid that this is not possible at the moment via API.

We have a feature request about this in our issue tracker that you can vote for:

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

You can also add yourself as a watcher if you'd like to get notified via email on updates.

You can perform this operation also with a git merge command. What sync essentially does is merge the main branch to your branch. You can perform this operation locally and then push it to Bitbucket.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud