youngmon/atlassian-qna huggingface dataset:
Error running plan using network Git Repository
Asked by Craig Taylor:

I've configured a plan to use a network based Git Repository.

When I run the plan I get the following error.

Error encountered while triggering manual build: com.atlassian.bamboo.repository.RepositoryException: 'X: Web Group Technical DevGroup SOURCE CONTROL Git EchoWebServiceProcessor.git': java.net.UnknownHostException: 'G

Plan 'ESWP-ESWPDEV' did not start

I've also tried the full UNC servername Web Group Technical DevGroup SOURCE CONTROL Git EchoWebServiceProcessor.git


Answers:
author: James Dumay
body: Where is the Git repository hosted? On a Windows file share? If you could post what the URL to the repository is here it will help me figure out whats wrong.

comments: author: Craig Taylor
body: X:\\Web Group\\Technical\\DevGroup\\SOURCE CONTROL\\Git\\EchoWebServiceProcessor.git which maps to a file share \\\\serrvername\\Web Group\\Technical\\DevGroup\\SOURCE CONTROL\\Git\\EchoWebServiceProcessor.git
Running NUnit Tests
Asked by Sam Stange:

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Can you run NUnit tests directly from Bamboo? I'm on 3.2.2 and finding it very difficult to run nunit tests. Is there a work-around, perhaps via NANT script? There's very little documentation to be found in this area. Any example would be great! |


Answers:
author: Joe Clark
body: From Bamboo 3.3 onwards, support for running NUnit tests is built-in (<https://jira.atlassian.com/browse/BAM-8702>).

For earlier versions of Bamboo, you will need to configure your build to shell out to the command line to execute the NUnit tests (you can still use the NUnit test result parser to get the results of the tests to show up in your build).

A way I have done it in the past is configuring the Bamboo plan to execute an MSBuild project, and then use the MSBuild Community Tasks additions (<http://msbuildtasks.tigris.org/>) to launch the NUnit runner.
README.md not rendering
Asked by Stijn Haezebrouck:

README.md is not rendering in to my account, while for other users in my organization, the file is formatted and rendered.

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

Expected README and "Description" to be formatted as headers, but they are displayed as one text block.

Which settings do I need to do in my account to get it correctly rendered?


Answers:
author: Caroline R
body: Hi, [@Stijn Haezebrouck](/t5/user/viewprofilepage/user-id/4508860)! Welcome to the community!

I tested this on my side and this is working as expected for me. In this case, in order to further investigate what is happening in your repo, would it be possible for you to confirm to us:

1. What browser you are using and which version
2. Does the same issue occur in an incognito/private window with all extensions disabled?
3. What's the URL where you are seeing that (please omit the workspace-id and repo-name), e.g. is it <https://bitbucket.org/>\<workspace\>/\<repo\>/src/\<branch\>/?

Please, feel free to share any additional information regarding this case. Thank you!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
I can't login because I am stuck in a link your account loop
Asked by shimberger:

I already tried to write to atlassian support but they said I should post a message in the community forums. It doesn't really make sense to me (shrug) but here we go:  

When I log into BitBucket I get a screen saying:  

Bitbucket Cloud account exists {#toc-hId--1236104725}
-----------------------------------------------------

Your Bitbucket account with username **\*\*\*** is not linked to your Atlassian account **\*\*\*@\*\*\*.\*\*\***  
Link your accounts  

When I click the Button "Link your accounts". I get back to the same screen. Loggin in and logging out doesn't help.   

Does anyone have any idea? How can I get help. I posted this to the support staff almost 5 days ago and can't do work on a project because I need some code stored in BitBucket. It's quite frustrating.  

Thanks


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

I can see the support ticket you opened regarding this issue. The email that you are trying to log in with is linked to a workspace and not to a Bitbucket account, which is why login fails.

Your Bitbucket account with the same email as your community account has access to this workspace, so you can do the following:

**1.** Log in to <https://bitbucket.org/> using the email of your community account  
**2.** Then, go to this page <https://bitbucket.org/account/workspaces/>  
You will see a list of all workspaces your account has access to. You can locate there the one you are looking for, and if you select it you'll be able to access its repos.

Just to give some context on why this is occurring:

* Before we introduced workspaces, we used to have individual Bitbucket accounts and team accounts. It used to be possible to have an email associated with an a individual account, but also with a team account.
* Team email logins were disabled years ago, and the way to access a team was with an individual account that had access to the team.
* Last year we introduced workspaces as containers for repositories, so a workspace was created for every existing individual and team account.
* Bitbucket individual accounts still exist for users to log in and gain access to their workspaces.
* The email you were trying to log in with is associated with what used to be a team account, so there is no user for this email.

Please feel free to let me know if you can see your repos after following the steps I suggested and if you need any further help.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
pip install a private repo in Bitbucket Pipeline within Dockerfile
Asked by Chance Gehrke:

I have a private repo that is a dependency as a pip install. I have the proper ssh keys added to the repo I am running the pipeline on, but they are not working within the docker image. How do I get they keys in the docker container so the pip install won't fail?

I have added the following based off of other articles I have read, but once I get to ssh-add \~/.ssh/id_rsa, I get Error loading key "/root/.ssh/id_rsa": invalid format.

bitbucket-pipelines.yml

```
- step:
    name: Build and Test
    script:
      - export SSH_PRIVATE_KEY=`cat /opt/atlassian/pipelines/agent/data/id_rsa`
      - IMAGE_NAME=$BITBUCKET_REPO_SLUG
      - docker build . --file Dockerfile --tag ${IMAGE_NAME}
      - docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar"
    services:
      - docker
    caches:
      - docker
    artifacts:
      - "*.tar"
```

Dockerfile

```
ARG SSH_PRIVATE_KEY

RUN mkdir ~/.ssh/
RUN echo "${SSH_PRIVATE_KEY}" > ~.ssh/id_rsa
RUN chmod 600  ~/.ssh/id_rsa
RUN touch ~/.ssh/known_hosts
RUN ssh-keyscan bitbucket.org >> ~/.ssh/known_hosts
RUN eval $(ssh-agent -s)
RUN ssh-add ~/.ssh/id_rsa
```


Answers:
author: Caroline R
body: Hi, [@Chance Gehrke](/t5/user/viewprofilepage/user-id/4549572)! Welcome to the community!

Could you please try to use the following command to build the image?

    - docker build --build-arg SSH_PRIVATE_KEY . --file Dockerfile --tag ${IMAGE_NAME}

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Is there a price/limitation of hosting my own bitbucket using the docker image?
Asked by Rafael F_:

I just noticed there's a bitbucket server on the docker hub:  

<https://hub.docker.com/r/atlassian/bitbucket>  

Is it free? Can I simply host it on my own infrastructure?  

Are there any limitations?


Answers:
author: Christian Glockner
body: Hi Rafael,

What's on Docker Hub is just the software, so you'll still need to buy a license. You can find pricing details at <https://www.atlassian.com/software/bitbucket/pricing?tab=data-center>

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
Bitbucket Audit Report
Asked by Doug.Muldowney:

Is there a way for me to pull a report or extract that shows all of the commits with the date and associated message (tagged JIRA ticket)? I need to show this for some configuration management proof, and I'm trying to avoid manual screen shots.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: If you have [git installed](https://www.atlassian.com/git/tutorials/install-git) you can [clone the repository(s)](https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-clone) and run a command like

```
$ git log --oneline --pretty=format:"%h,%an,%ai,%s"
```

which gives you a CSV style output which you can process further.

comments: author: Doug.Muldowney
body: Thanks for the suggestion. I don't specifically have the skills to do this, but I can see if the release manager can give it a try.


Tags: bitbucket-cloud

cloud

report
Access denied error with node-gyp?
Asked by Alessandro Tesoro:

Hi there,

<br />

I'm building a deployment pipeline which uses a custom built script to ship files to servers via node \& ssh but I'm apparently there's an issue with permissions somewhere. I'm at a loss.

This is the error:  

```
+ sudo npx ssh://git@bitbucket.org:repo/repo.git --version

gyp ERR! configure error 

gyp ERR! stack Error: EACCES: permission denied, stat '/root/.npm/_npx/55/lib/node_modules/repo/node_modules/cpu-features/.node-gyp/8.16.1'

gyp ERR! System Linux 5.4.92-flatcar

gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /root/.npm/_npx/55/lib/node_modules/repo/node_modules/cpu-features

gyp ERR! node -v v8.16.1

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok 

module.js:550

 throw err;

 ^

Error: Cannot find module '/root/.npm/_npx/55/lib/node_modules/repo/node_modules/ssh2/install.js'

 at Function.Module._resolveFilename (module.js:548:15)

 at Function.Module._load (module.js:475:25)

 at Function.Module.runMain (module.js:694:10)

 at startup (bootstrap_node.js:204:16)

 at bootstrap_node.js:625:3

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! ssh2@1.4.0 install: `node install.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the ssh2@1.4.0 install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! /root/.npm/_logs/2021-09-08T15_24_22_532Z-debug.log

Install for git+ssh://git@bitbucket.org/repo/repo.git failed with code 1
```

Any idea how to solve the issue?


Answers:
author: leantorres
body: How did you solve that error? Thanks


Tags: bitbucket-pipelines

cloud
Warning message (Exceeding limit of bitbucket cloud repository)
Asked by ???:

Dear Atlassian technical support team,

Please help us to support the issue below.

**\[Issue\]**   
- Cause : Push high capacity resource files to remote repository.  
- Symptom : Warning message is keep prompted in bitbucket website.

**\[Try\]**   
We are trying to resolve the issue above with the procedure below.  
(1) By using filter-branch git command, delete the commit history in our bitbucket remote repository.  
(2) In addition, tidy up the commit history related to high capacity resource file with BFG cleaner.

As a result, remote repository is cleaned perfectly and when cloning the repository from local environment, capacity is normal status.  
However, when checking the bitbucket website, capacity warning message is keep prompted.

If it is possible, Could you help us to clean gc in our remote repository ?

**repository :** \<repo_name_removed\>

If you have any questions, Please send me an email below.

Furthermore, Please give us an instruction after cleaning gc in remote repository.

email : \<email_removed\>

Thank you.

Best regards,

Trineedle co.


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

I can see that a support ticket was created as well for this issue, and the engineer working on your ticket ran a git gc and the repo's size has been reduced.

If a repo's size goes over the size limit, the only thing that can be pushed is a git reset that undoes the last (bad) commit in Bitbucket. The user that will push this, should enable the Labs feature "Delete dangling commits when over size limit" on this page <https://bitbucket.org/account/settings/features/> prior to pushing. You can read more details [here](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Undoing-the-last-push).

This is useful when the repo's size goes over the limit because of a large commit that was accidentally pushed and you want to undo it.

If large files exist in several other commits and you want to rewrite history to reduce the repo's size, you will need to contact us so we can run a git gc on the Bitbucket repo after you push your changes.

Just a heads up, I removed your email and the repo name from your post to protect your privacy.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to setup build pipeline for .Net 5.0
Asked by yassinlokhat:

Hi everyone,

I got a bitbucket repository for a .Net 5.0 project.

The solution contains some .Net 5.0 class library projects and some .Net 5.0 winform projects.

I just want to ask how to setup a build pipeline to esure that all comited code always build?

Best regards,


Answers:
author: Rafael F_
body: There's an example for .Net Core here:  

<https://support.atlassian.com/bitbucket-cloud/docs/use-pipelines-in-different-software-languages/>

comments: author: yassinlokhat
body: Thank you for your answer.

I tried the followin scriot but the job failed :

*** ** * ** ***

*** ** * ** ***

# This is a sample build configuration for .NET Core.  
# Only use spaces to indent your .yml configuration.  
# -----  
# You can use any Docker image from Docker Hub, or your own container registry, as your build environment.  
image: microsoft/dotnet:sdk:5.0  
pipelines:  
default:  
- step:  
script: # Modify the commands below to build your repository.  
- export PROJECT_NAME=UpsilonEcosystem.sln  
- export TEST_NAME=UpsilonEcosystem.sln  
- dotnet restore  
- dotnet build $PROJECT_NAME  
- dotnet test $TEST_NAME


author: Rafael F_
body: What was the error message?


author: yassinlokhat
body: ```
/opt/atlassian/pipelines/agent/build/Upsilon/Common/Forms/Upsilon.Common.Forms.csproj : error NU1201: Project Upsilon.Common.Library is not compatible with net50-windows (.NETFramework,Version=v5.0,Profile=windows). Project Upsilon.Common.Library supports: net50 (.NETFramework,Version=v5.0) [/opt/atlassian/pipelines/agent/build/UpsilonEcosystem.sln]
```


author: Adrian-Nikola De Ro
body: Did you find an answer to this error?


author: Rafael F_
body: This is usually exactly what the error message says, you have to make sure your projects target the same version, in this case either net50-windows or net50, this can probably be changed manually on the csproj files.


author: yassinlokhat
body: I wouldn't change any thing in my project's files because they build successfully on my local machine.


author: yassinlokhat
body: I think the issue is that my solution contains both net50-windows and net50 projects.

I will abandon this, I prefer make my project build in my working machine before commiting.

Thank you for your help.


Tags: .net

atl-gruland

bitbucket-pipelines

cloud
I'm not receiving verification emails from Atlassian(bitbucket, jira)
Asked by Chayanuch Ronnachaithana:

hi I'm not receiving invitation mail from Atlassian but I can receive emails from others, please help.

Email: \<email_removed\>


Answers:
author: Theodora Boudale
body: Hi [@Chayanuch Ronnachaithana](/t5/user/viewprofilepage/user-id/4548253),

I checked in our system and there was a hard bounce event for this email, created a few weeks ago.

There might have been an attempt to create an account or send an invitation before the email was operational. 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 the email from the suppression list. Could you please try resending the verification email now? A new one needs to be sent, as the previous ones were dropped.

If any invitations were sent to this email, please ask one of your admins to resend them now.

Just a heads up, I removed the email address from your post to protect your privacy.

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

Kind regards,  
Theodora

comments: author: Chayanuch Ronnachaithana
body: Now everything is OK. I can access to Jira by my Email. Thank you for your help.


author: Theodora Boudale
body: Thank you for the update and you are very welcome.

Please feel free to reach out if you ever need anything else!

Have a good day,  
Theodora


Tags: bitbucket-cloud

jira
I can't do anything caused by "error: fsmonitor--daemon failed to start"
Asked by junkilee:

I was able to use "pull" and "push".  
But I can't do anything even "commit".  

error: fsmonitor--daemon failed to start  
On branch master  
Your branch is up to date with 'origin/master'.

This is an error message.

Please help me  
My URL   
\<repo_url_removed\>

Thanks

JK


Answers:
author: Theodora Boudale
body: Hi JK,

I found the following bug report by another user facing the same error with Git for Windows

* <https://github.com/git-for-windows/git/issues/3262>

I can see in the discussion there that the bug occurred when using Git in paths (either the worktree or the git directory) with non-ASCII characters.

Are you using Git for Windows as well, and are there any non-ASCII characters in the path where you're trying to use Git?

If so, a new installer for Git where the bug is fixed has been posted here:

* <https://github.com/git-for-windows/git/issues/3262#issuecomment-874085012>

You can try uninstalling Git and installing it again using the installer in the link above.

Just a heads up, I removed the URL of your repo from your post for privacy reasons.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Branch History during migration from Server to Cloud
Asked by Kristin Lyons:

Does the BitBucket branch history stay intact when migrating from Server to Cloud?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Kristin,

not sure about 'branch history' - what's your definition of it?

If you mean the git commit-history, that's kept in intact when you push your repository to the new remote (bitbucket cloud).

Hope I was able to help.


Tags: bitbucket-server

branch

history

migration

migration-customer-care

server
how to add status to commit
Asked by Jin Wu:

hi there,

I want to use rest api 2.0 to add status to a commit by below api, but may i know how to specify {key} ?

/2.0/repositories/{workspace}/{repo_slug}/commit/{commit}/statuses/build/{key}


Answers:
author: Theodora Boudale
body: Hi [@Jin Wu](/t5/user/viewprofilepage/user-id/1942186),

The API endpoint you mention in your question can be used to get or update an existing build status.

If you'd like to add a new status, you'll need to use

/2.0/repositories/{workspace}/{repo_slug}/commit/{commit}/statuses/build

* <https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bcommit%7D/statuses/build>

There is an example also in the above doc:

```
curl https://api.bitbucket.org/2.0/repositories/my-workspace/my-repo/commit/e10dae226959c2194f2b07b077c07762d93821cf/statuses/build/ -X POST -u jdoe -H 'Content-Type: application/json' -d '{
"key": "MY-BUILD",
"state": "SUCCESSFUL",
"description": "42 tests passed",
"url": "https://www.example.org/my-build-result"
}'
```

The key can be any value you like, but I suggest that it is unique among that commit's statuses. If the specified key already exists, the existing status object will be overwritten.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to see al the commits? Can't do a pull request...
Asked by Frederic Leclercq:

Hi all,

I've moved some repositories to a new workspace, but now I can't see the previous commits, not even the commit I did after the relocation (which worked fine). Related most probably, I can't trigger a pull request, nor can I see the commit in our JIRA workspace. Anybody tips? It looks like a bug to me, but I can't get in touch with official support as I need to have a paid subscription for that....

Thanks in advanca!  
Fred.


Answers:
author: Theodora Boudale
body: Hi Fred,

I would like to ask for some additional info, so I can better help you with this issue:

**1.** Is it recent commits that are missing from the repo, e.g. commits from the last few weeks? Or is it older commits?

**2.** If you make a new clone of this repo now on your machine, can you see the missing commits in your clone with the command **git log** ? Please note that if the commits belong to a branch other than the main branch of the repo, you'll need to do a **git fetch** and checkout this branch first. I am asking this in order to understand if this is a UI issue, or if the commits are not part of the history.

There are two possible reasons I can think of for this behavior:

**i.** The issue may have to do with this bug: <https://jira.atlassian.com/browse/BCLOUD-19548>

If you make a new clone of the repo and you can see the commits locally, it's most likely because of this bug. The commits exist in the repo's history, but they don't show in the UI.  
Users have reported that pushing a new commit to the repo solves the issue. If you have no new commits to push, you can create a test branch, push to the test branch, and then delete this branch.

**ii.** It is possible that a push was done to the repo with the flag --force or -f, which can result in loss of commits from history.

If you make a new clone of the repo and you cannot see the commits locally, it's likely that this is the reason.  
If you have another clone of the repo that has these missing commits, you can use that clone to restore them.

Please feel free to let me know how it goes and if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
No default branch is defined
Asked by Karthika Thangavel:

Hi Team ,

We did upgrade bitbucket version from 6.6.3 to 7.6.9 ..after completing the upgrade process we tried testing in bitbucket repository but we are getting error like below ..

No default branch is defined {#toc-hId--1236165323}
---------------------------------------------------

Use the links at the top to get back.

can you please guide me in this

Hi Team , can you please check and respond ...

we need help on this


Answers:
author: Karthika Thangavel
body: Can you please check and respond , we need help on this ..


author: Mariusz Dullak
body: This page list possible causes and solutions.

<https://confluence.atlassian.com/bitbucketserverkb/bitbucket-server-or-data-center-displays-a-404-error-when-opening-a-repository-1044803240.html>

I have successfully deleted by broken repos and recreated them from the backup I had.


author: Mariusz Dullak
body: I have the exactly same message.

I have a backup so I can recreate the repo - no problem.

The issue is that I can not remove "broken" repo, so I can not restore it.

I do not want to delete the project with 10+ repos just to have this one repo fixed.


Tags: bitbucket-server

server