youngmon/atlassian-qna huggingface dataset:
How to migrate Bitbucket repository from bitbucket to Gitlab
Asked by Dnyaneshwar Borase:

Hi Team,

We are planning to do migration Bitbucket repository (DataCenter) from bitbucket to Gitlab.

Could you please guide us on below queries?

1. What are the pre-requisite for this migration from both side (Bitbucket and Gitlab)

2. How to perform this migration from the scratch? Please share the migration steps

3. Let us know know the migration limitation as well?

Regards,

Dnyaneshwar Borase


Answers:
author: Daria Kulikova
body: Hi [@Dnyaneshwar Borase](/t5/user/viewprofilepage/user-id/5116242) ,

It's possible to migrate Bitbucket to Gitlab using backup tools.

I work at GitProtect.io, a backup and DR software for GitLab, Bitbucket, GitHub and Jira. Using our cross-over recovery feature, it's possible to restore data from Bitbucket to GitLab (and converserly). You can read in more details how it works in the following article: <https://gitprotect.io/blog/bitbucket-to-gitlab-migration-in-a-few-simple-steps/>

Or you can contact our team to ask questions that interest you: <https://calendly.com/bjurga/30min?month=2023-09>

Here is GitProtect.io on Atlassian Marketplace: [https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud&tab=overview)

comments: author: Dnyaneshwar Borase
body: Hi Daria Kulikova,

Thanks for reply and suggesting this plugin but we need standard migration without using any plugin which Atlassian recommends.

Is there way to do Bitbucket repository to Gitlab migration without any plugin?

Regards,

Dnyaneshwar Borase


author: Michiel S.
body: Hi, have you looked at the out-of-the-box options that GitLab offers:

* <https://docs.gitlab.com/ee/user/project/import/bitbucket_server.html>
* <https://docs.gitlab.com/ee/user/project/repository/mirror/index.html>

Those instructions provide pretty substantial features to migrate the most important details as far as I can tell.

We are also looking into doing this, from Bitbucket Server to GitLab self-managed.


Tags: bitbucket-administration

bitbucket-cloud

bitbucket-server

server
Rest API call to get the list of users from specific group
Asked by Sandesh TM:

I am getting the below error in rest API call for getting the list of users from the specific group.

{  
"errorMessages": \[  
"The group name can not be empty"  
\],  
"errors": {}  
}

Here is the API call I am using

<http://localhost:8080/rest/api/2/group/member/?jql=groupname=>"group name"

Please share the API for getting the list of users from the specific group.


Answers:
author: M?rton Kelemen
body: Hi Sandesh,

Have you tried the following?

'<http://localhost:8080/rest/api/2/group/member?groupname={groupname>}'

Both the 'jql=' part, as well as the '/' after the member are problematic. In addition, the {groupname} should be HTML-escaped beforehand, depending on the tool you use to call the API.

Best,

M?rton

comments: author: Hari Gowdru
body: Hi Sandesh,   

Do we have similar API for Bitbucket Data Center version?

<br />

GET: <https://Bb-instance/rest/api/1.0/admin/groups>   

is fetching all the group from the instance.

Is there a way to get the list of users in specific group.


Tags: bitbucket-server

server
unable to create file packages
Asked by Varun Kumar:

2
Cloning into 'C:\Users\Administrator\atlassian-bitbucket-pipelines-runner\bin\..\temp\72a91159-1101-5a49-8d06-9d84a88c1fef\1695799312869\build'...  
3
error: unable to create file packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0/build/net45/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Extensions.props: Filename too long  
4
error: unable to create file packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.0/build/net46/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Extensions.props: Filename too long  
5
Updating files: 72% (393/  
Updating files: 100% (542/542), done.  
35
fatal: unable to checkout working tree  
36
warning: Clone succeeded, but checkout failed.  
37
You can inspect what was checked out with 'git status'  
38
and retry with 'git restore --source=HEAD :/'


Answers:
author: Patrik S
body: Hello [@Varun Kumar](/t5/user/viewprofilepage/user-id/5327280) and welcome to the Community!

From the logs you have shared it seems you are using Bitbucket Windows self-hosted runners. The error message being returned "Filename too long" indicates this behavior is caused by a limitation in Windows OS, that by default only allows filenames/paths up to 260 characters. Since some files in your repository are exceeding that limit, when git is trying to save those files in the local folder, Windows is throwing the error.

I would suggest following the steps outlined in the below article to increase the filename limit on your Windows machine :

* [Git checkouts fail on Windows with "Filename too long error: unable to create file" errors](https://confluence.atlassian.com/bamkb/git-checkouts-fail-on-windows-with-filename-too-long-error-unable-to-create-file-errors-867363792.html)

Although the article was originally written for Bamboo, since these are OS-level and git configurations, it should apply to Bitbucket Windows Runners as well.

Let me know in case you have any questions.

Thank you, [@Varun Kumar](/t5/user/viewprofilepage/user-id/5327280) !

Patrik S


Tags: bitbucket-cloud

cloud
Repository Transfer emails not received
Asked by Roland Roland:

The transfer repository emails are not being received by any of the admins of the target workspace.

Already checked the spam folder.

Can someone help out?


Answers:
author: Patrik S
body: Hello [@Roland Roland](/t5/user/viewprofilepage/user-id/3430076) and thank you for reaching out to the Community!

Checking internally I see the account you used to post this question currently has access to no Bitbucket Cloud workspace, so I was not able to find any pending transfer.

In this case, could you please login to the Community website using an email that has access to the source workspace of the transfer, and post a comment here using that account?

With this I will be able to check our internal tools for any pending transfers, and also the email logs to see if the transfer email ended up being bounced by the receiving end.

Thank you, [@Roland Roland](/t5/user/viewprofilepage/user-id/3430076) !

Patrik S


Tags: bitbucket-cloud

cloud
i am trying to build pipeline for a python fastapi project i dont how how to build pipeline for that
Asked by Siddhant Pandey:

i tried to build pipeline for python fastapi but it is just a basic one i am running it with a script.sh file i want to build a professional looking pipeline for my project can some one help me on this.

i am also attaching my pipeline here which i have made using my knowledge.  
image: python:3.10

pipelines:  
branches:  
master:  
- step:  
name: Building  
script:  
- python3 -m venv venv  
- source venv/bin/activate # Activate the virtual environment  
- pip install -r requirements.txt  
- step:  
name: Deploying the app  
deployment: Production  
script:  
- pipe: atlassian/rsync-deploy:0.9.0  
variables:  
USER: $DEPLOY_USER  
SERVER: $DEPLOY_SERVER  
REMOTE_PATH: $REMOTE_PATH  
LOCAL_PATH: '.'  
after-script:  
- ssh $DEPLOY_USER@$DEPLOY_SERVER "cd $REMOTE_PATH \&\& chmod +x script.sh \&\& ./script.sh"  
any help would be appreciated.


Answers:
author: Theodora Boudale
body: Hi Siddhant,

It's not clear what you mean by "professional looking pipeline".

The pipeline you posted here has two steps, one for building the app, and another one for deploying. The deployment step also has an after-script section where you connect to your server and execute the script script.sh (please keep in mind that with this definition, the command in the after-script will run even when the deployment fails).

What exactly do you want to do differently?

Kind regards,  
Theodora

comments: author: Siddhant Pandey
body: i am exploring other ways to deploy my python fastapi project


author: Oleksandr Kyrdan
body: Hi [@Siddhant Pandey](/t5/user/viewprofilepage/user-id/5236498)

Also, you could follow the [official guideline for Deployment Concepts](https://fastapi.tiangolo.com/deployment/concepts/)  
and choose your case, as the best practice, take a look into [FastAPI in Containers - Docker](https://fastapi.tiangolo.com/deployment/docker/)

Best regard,  
Oleksandr Kyrdan


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
How do I develop Bitbucket Condition?
Asked by leegyu86:

I would like to develop Condition in MergeChecks in Bitbucket's Settings - ScriptRunner section in the direction I want.

When I looked at the 'Named user approves' Snippets, it was mergeRequest.pullRequest.reviewers.find....

Where can I see what features 'mergeRequest' provides?

Is debugging possible for the script? If possible, please advise what to do.

thank you


Answers:
author: Aron Gombas _Midori_
body: Here is the official documentation: <https://docs.adaptavist.com/sr4bib/latest/features/script-merge-checks>


Tags: bitbucket-server

scriptrunner

server
Bitbucket Mesh
Asked by Richard Troiano:

Hi,

I was looking into Bit Bucket Mesh and had some questions. So we have offices in the US, UK and Japan. Our Bit Bucket server is located in the US, however many users in Japan and the UK access Bitbucket on a daily basis. Would it be possible to set up bitbucket mesh nodes in the UK and Japan and have that reduce the amount of time it takes for users in those regions to pull from repos? Some of our current repositories are quite large and can take some time to pull a fresh copy from the US, so I was wondering if mesh would be a good idea to help with that.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: As a first step I recommend setting up [Bitbucket mirrors](https://confluence.atlassian.com/bitbucketserver/mirrors-776640046.html) additional to the main server location to reduce general delays for clone and fetch/pull. To scale with the _size_ of your repositories you may then enable [Bitbucket mesh](https://confluence.atlassian.com/bitbucketserver/bitbucket-mesh-1128304351.html#BitbucketMesh-After) in each location.


Tags: bitbucket-server

server
Merging a PR, why can only one of my developers can see "transition issue" checkbox?
Asked by Jonathan Bezeau:

My Bitbucket / Jira link has had its share of slip-ups around changing the ticket status to "Done" when we merge a PR but this is the weirdest: the developer responsible for merging the PR couldn't see the checkbox to transition the issue (normally they see the checkbox), but one of my lead developers checking into the anomaly could.

Why is this happening? How can we fix it?

Thanks


Answers:
author: Theodora Boudale
body: Hi Jonathan and welcome to the community!

I would first suggest ruling out any browser issues. Is the developer responsible for merging using one of our supported browsers?

* <https://confluence.atlassian.com/bbkb/which-web-browsers-does-bitbucket-support-1168845119.html>

If yes, and if the issue is still occurring with this specific or a different PR:

* can they reproduce the issue on an Incognito/Private window of the browser with all browser addons disabled?
* can they reproduce the issue on a different supported browser?

If so, I would suggest creating a support ticket as we would probably need to get a HAR file from the developer to investigate further. 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. You can add the developer as a participant in the ticket so that they share any info we may need to investigate this.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I have a user whom I believe has been added to the email suppression list
Asked by River Ricci:

I have a user \[REDACTED\] that has not received email notifications from Atlassian products for some time.   
After going through documentation as well as community posts it is my guess that his email has been added to the suppression list.   

If someone could please confirm this and remove him if so as soon as possible it would be greatly appreciated!


Answers:
author: Ben
body: G'day River!

We have checked our email logs and have found that we are successfully sending emails to their mail server however the following error was received from their mail server for that email address:

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

```

This error is encountered on a mail server when any of the following conditions are met:

* The address was invalid (address does not exist)
* The user clicked the list-unsubscribe header
* The user clicked one of our emails and flagged it as SPAM.

I have removed the email address from the suppression list, so they should start receiving emails from us now.

I would also suggest they reach out to their email administrator to whitelist our email accounts as follows, to prevent the issue from occurring in future:

```
noreply@am.atlassian.com
no-reply@atlassian.com
noreply@mailer.atlassian.com
notifications-noreply@bitbucket.org

```

For your reference, we also have a knowledge article online that details the email troubleshooting process in further detail:

* [Email Notifications Not Working](https://confluence.atlassian.com/bbkb/email-notifications-not-working-1224343600.html)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Emails on suppression list
Asked by tpiech:

There are several email addresses from the domain of our email address in your suppression list. Can you please clear all of them. Thank you.


Answers:
author: Andy Heinzer
body: Hi [@tpiech](/t5/user/viewprofilepage/user-id/5213304)

I found there was a suppression on your account. There was a bounced message with a reply from your mail server:
> 2023-09-25T10:02:51.000Z 550 No Such User Here

I have removed this suppression, you should now be able to receive notifications.

Regards,

Andy

comments: author: tpiech
body: [@Andy Heinzer](/t5/user/viewprofilepage/user-id/541137) thank you for your help. Some of my team members are still not receiving email notifications from our our customers' Confluence products. Is it possible that our accounts are still on the suppression lists of other companies that we're linked to?


author: Andy Heinzer
body: [@tpiech](/t5/user/viewprofilepage/user-id/5213304) Thanks for letting me know. I researched this further and found other users that were being suppressed by our system. It looks like maybe your mail server was temporarily down when we tried to send email to it:
> 2023-09-22 08:54:39.934 550-5.1.1 The email account that you tried to reach does not exist. Please try  
> 550-5.1.1 double-checking the recipient's email address for typos or  
> 550-5.1.1 unnecessary spaces. Learn more at  
> 550 5.1.1 <https://support.google.com/mail/?p=NoSuchUser> i67-20020a636d46000000b0056fa1bc208esi3812924pgc.722 - gsmtp   
> 2023-09-22 08:54:09.964 550-5.1.1 The email account that you tried to reach does not exist. Please try  
> 550-5.1.1 double-checking the recipient's email address for typos or  
> 550-5.1.1 unnecessary spaces. Learn more at  
> 550 5.1.1 <https://support.google.com/mail/?p=NoSuchUser> k7-20020a634b47000000b00578ca217740si3874144pgl.711 - gsmtp   
> 2023-09-22 08:54:23.440 550-5.1.1 The email account that you tried to reach does not exist. Please try  
> 550-5.1.1 double-checking the recipient's email address for typos or  
> 550-5.1.1 unnecessary spaces. Learn more at  
> 550 5.1.1 <https://support.google.com/mail/?p=NoSuchUser> o7-20020a170902d4c700b001c57c952622si3743414plg.446 - gsmtp

These three responses were for each a different email address that shared your domain. All of these came back in a 1 minute period. I can see how our system then suppressed further attempts to these accounts because our system believed the accounts to be invalid now.

I have cleared the suppressions for all accounts on your domain from our side. These users should now be able to get new notifications from us again. Please let me know if there are other users affected here.

Andy


author: tpiech
body: Thanks [@Andy Heinzer](/t5/user/viewprofilepage/user-id/541137)! I'm hoping this is all we need.


Tags: bitbucket-cloud

cloud
Pipeline for R code leads to endless download loop and crash
Asked by FD:

Hi,

I would like to set up a basic pipeline to check my R package after I made a push or pull request.

The reprex I generated leads to a download loop of the pacman and remotes packages, until the process crashes due to memory limitation and the packages not being available.

The interesting thing is, that the packages always get downloaded with any R command I try.  
I already tried rocker/tidyverse and rocker/verse with different versions. Nothing helped.  

This is my reprex:  

image: rocker/r-base:latest

pipelines:  
default:  
- step:  
name: 'Test'  
script:  
- Rscript -e 'print("Hello")'  

As long as I don't use any R commands my pipelines are working.  

My final goal is to have a working pipeline that checks the package  

image: rocker/verse:4.3.1

definitions:  
caches:  
site-library: /usr/local/lib/R/site-library

pipelines:  
default:  
- step:  
name: 'Document and check'  
caches:  
- site-library  
script:  
- Rscript -e 'options(repos = c(CRAN = "<https://cran.rstudio.com/>"))'  
- Rscript -e 'install.packages(c("remotes"))'  
- Rscript -e 'devtools::install(upgrade = "Never")'  
- Rscript -e 'devtools::document()'  
- Rscript -e 'devtools::check()'  

Thank you.


Answers:
author: Theodora Boudale
body: Hi FD and welcome to the community!

I am not familiar with R, I just wanted to suggest that you can debug this locally with Docker as per the guide we have here:

* <https://confluence.atlassian.com/bbkb/debug-pipelines-locally-with-docker-1167698072.html>

This way you can see if the errors seem to be specific to the build running in Pipelines or not.

In case the build needs more memory, you can configure a step to use more memory:

* <https://support.atlassian.com/bitbucket-cloud/docs/global-options/#Size>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Install scripts to Snowflake
Asked by Hennie de Nooijer:

Hi,

I have scripts for Snowflake in Bitbucket, I want to deploy these scripts to Snowflake.

How do I do that with Jira?

Hennie


Answers:
author: Syahrul
body: G'day [@Hennie de Nooijer](/t5/user/viewprofilepage/user-id/5326566)

Welcome to the community.

The integration you're seeking for Jira can be found here: [Snowflake for Jira](https://marketplace.atlassian.com/apps/1227353/snowflake-for-jira?tab=overview&hosting=cloud).

Regarding the deployment to Snowflake, it's advisable to consult Snowflake directly to understand their deployment requirements. Additionally, you can review our deployment documentation to get started:

1. [Set up and monitor Bitbucket deployments](https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-monitor-bitbucket-deployments/).
2. [Bitbucket deployment guidelines](https://support.atlassian.com/bitbucket-cloud/docs/bitbucket-deployment-guidelines/).

Regards,  
Syahul


Tags: bitbucket-cloud

cloud
I don't see any repo anymore when I am in one of my workspace yet I can still push etc.
Asked by MisesEnForce:

Hello,

This one must be a really weird bug : I have open sessions (sessions where I'm logged in) open on a laptop at home, on a desktop at home and on my mobile where I'm logged in with the \[REDACTED\] mail + corrected password and where I can see all repositories for any workspace.

On my work computer I was able to see the same, but not since this morning : in any workspace, I simply see no repositories at all.

Can you pls help ?

Thank you!


Answers:
author: Ben
body: Hi MisesEnForce,

The email you provided I can see is connected to a workspace with a large number of workspaces - these are definitely still here. You also have access to some other workspaces - [we recently changed the way we display workspaces](https://bitbucket.org/blog/improving-navigation-for-bitbucket-users) (rather than an overview of all of them, it is now a single view) - I'd first suggest clicking your avatar and selecting **"All Workspaces"** and browsing each of these.

If the workspace selected is not the problem, I would suggest clearing your cache as well as your history/cookies and attempting to log back in on that machine. I would also suggest trying a different browser (or using Incognito mode in Chrome) to see if it is a browser issue.

I hope this helps, let me know how it goes.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Bitbucket repository src/commits/pull requests not loading
Asked by Jeff:

Another outage.


Answers:
author: Syahrul
body: G'day [@Jeff](/t5/user/viewprofilepage/user-id/5225667)

I believe we haven't experienced any recent outages. The most recent one occurred on September 25th, so I doubt this is related to the same issue.

Could you please share the URL that was not loading? You can omit the workspace name, repo name, and commit hash so I can attempt to reproduce the issue, as I don't think we have any UI path for the src/commits/pullrequests path.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
How can I delete a Fisheye project?
Asked by Thomas Nagy:

How can I delete a Fisheye project?


Answers:
author: rverschoor
body: The CR project is the default Crucible project.  
You can't delete it.

comments: author: J. Wilkes
body: To be certain I understand the concept correctly - did I get this right? This CR project is the never-to-be-deleted default project, it is not automatically re-generated after deleting the last (other) project, so whatever project is left last will never be deleted. Right?

So one would not touch the CR project at all, as if it didn't exist, and could work with the other projects normally?


author: rverschoor
body: If you have only FishEye installed without Crucible, you can run into issue [FE-3570](https://jira.atlassian.com/browse/FE-3570).  
To delete the project you'll have to enable Crucible temporarily.  

You can obtain a Crucible evaluation license from <https://my.atlassian.com> to activate Crucible, delete the project, and remove the Crucible license again.

comments: author: Thomas Nagy
body: I remember having deleted an empty project after the first install some time ago, but I think it has reappeared (or maybe this is something else). It could happen that this is actually a virtual project to specify default properties of newly created projects. This is what I see in the first row:  

Projects
[![help](http://jira.realeyesit.com/fisheye/static/m19n6q/images/icn_12_help.gif)](http://docs.atlassian.com/crucible/docs-027/Creating+a+Project "Help on configuring Crucible projects")Status  

|---------------------------------------------------------------------------------------------|
| A project is a set of Crucible content combined with a set of customisable FishEye content. |

\<th\>Key\</th\>\<th\>Name\</th\>\<th\>Default Repository\</th\>\<th\>Default Moderator\</th\>\<th\>

Default Reviewer Users
\</th\>\<th\>Default Reviewer Groups\</th\>\<th\>Default Review Time\</th\>\<th\>Crucible Settings\</th\>\<th\>FishEye Content\</th\>\<th\>Operations\</th\>

|----|-----------------|---|---|---|---|------------|----------------------------------------------------------------------|-----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| CR | Default Project |   |   |   |   | 5 weekdays | [Edit](http://jira.realeyesit.com/fisheye/admin/editProject.do?id=1) | [Edit](http://jira.realeyesit.com/fisheye/admin/viewFisheyeProject.do?id=1) | [Application Links](http://jira.realeyesit.com/fisheye/plugins/servlet/applinks/listEntityLinks/com.atlassian.applinks.api.application.fecru.FishEyeCrucibleProjectEntityType/CR) |
|    |


Tags: delete

project