youngmon/atlassian-qna huggingface dataset:
Failed to add ssh key
Asked by ywl1107:

It always tells me that 'Someone has already added that key as an access key to a repository.'


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@ywl1107](/t5/user/viewprofilepage/user-id/5044284) ,

welcome to the Atlassian community!

Atlassian team can perform this check for you (as specified [here](https://community.atlassian.com/t5/Bitbucket-questions/Problem-quot-Someone-has-already-added-that-key-as-an-access-key/qaq-p/1851681))

Please raise a question through the following link <https://community.atlassian.com/t5/forums/postpage/board-id/bitbucket-questions>

Hope this helps,

Fabio

comments: author: ywl1107
body: Thanks.


author: Theodora Boudale
body: Hi [@ywl1107](/t5/user/viewprofilepage/user-id/5044284),

I am going to create a support ticket for you using the email of your community account. You will receive an email with a link to the support ticket and you can then share in the support ticket the public key you are trying to add.

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

Kind regards,  
Theodora


author: ywl1107
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

Could you please create a support ticket to check which repo is using my public key for me? Thanks.

comments: author: Fabio Racobaldo _Herzum_
body: you have to raise a ticket because you should provide to Atlassian team all the information they need to perform an investigation


author: ywl1107
body: I tried and the the support website told me that the free version of bitbucket only comes with community support. Never mind. I'll switch to Github.


Tags: bitbucket-cloud

cloud
How to configure Publish to Chromatic
Asked by Shawn Williams:

Hi, I am trying to publish to chromatic and have added the configs to my bitbucket pipeline but I am getting the following error...

    yarn run v1.22.5

    error Couldn't find a package.json file in "/opt/atlassian/pipelines/agent/build"

    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

<br />

My pipeline is below, I have removed the token for the purpose of posting this question. Any advise is welcome.

```
  # ? Adds Chromatic as a step
- step:
    name: 'Publish to Chromatic'
    caches:
      - node
    script:
      - yarn install
      # ? Runs Chromatic
      - yarn chromatic --project-token=XXX
```


Answers:
author: willrun4cake
body: I encountered this error as well trying to Publish to Chromatic from BitBucket. Reviewing the tutorial I was following it looks like I needed to perform the below steps:

1. Verify chromatic is installed for the project.

   ```
   npm install --save-dev chromatic
   ```

2. Create a Chromatic account (chromatic.com). You can use your BitBucket account.
3. In Chromatic, connect your BitBucket application/repo to your Chromatic project, e.g., select the BitBucket repo you are working on.
4. Copy the \`project-token\` that Chromatic generated and execute it in the terminal.

   ```
   yarn chromatic --project-token=<project-token>
   ```

5. Navigate to the resulting URL once the build passes:  
   ![PassedURL.png](https://community.atlassian.com/t5/image/serverpage/image-id/253407iA71B243F792C9577/image-size/large?v=v2&px=999 "PassedURL.png")
6. You should see a message stating "Nice. You published a Storybook."  
   ![Build1.png](https://community.atlassian.com/t5/image/serverpage/image-id/253408i789DC1F23A716128/image-dimensions/252x195?v=v2 "Build1.png")


author: Theodora Boudale
body: Hi [@Shawn Williams](/t5/user/viewprofilepage/user-id/5044209) and welcome to the community!

I am not familiar with Chromatic, but based on the output you posted here the command is failing because there is no package.json file in the clone directory where the build is running.

Just to give you some context: for every step in your bitbucket-pipelines.yml file, a Docker container starts, your repo is cloned in the directory /opt/atlassian/pipelines/agent/build, then the commands of that step's script are executed, and afterwards the container gets destroyed.

If Chromatic needs a package.json file, you can create this in your repository so that it will be available during the Pipelines builds. I would suggest checking the documentation of the package to see what needs to be configured in the package.json file:

<https://classic.yarnpkg.com/en/docs/cli/run>  
<https://yarnpkg.com/package/chromatic>  
<https://www.chromatic.com/docs/cli>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Why can I not have 2 repositories with the same name even if they are in different projects?
Asked by Giancarlo Franchi:

Say I have the following project / repo hierarchy:

java

\|----- my-first-repo

python

\|----- my-first-repo

When I try to create the my-first-repo in the python project I get an error saying I already have a repo with the name my-first-repo.

Seems like I should be able to create repos with the same name if they are in different projects.


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

It's because the repo name is part of the path. Think of what goes on the disk - how would ./mygitwork/bob get distinguished from ./mygitwork/bob ?

comments: author: Giancarlo Franchi
body: Makes sense, but then why not have the project name also be part of the path.


author: Caroline R
body: Hi, [@Giancarlo Franchi](/t5/user/viewprofilepage/user-id/5044371),

We already have the following feature requests to include the **project ID to the repository URL** , which would allow you to create two repositories with the same name in different projects:

* [Option to include project ID in repo URLs](https://jira.atlassian.com/browse/BCLOUD-13243)

* [Use project name in repo path instead team name](https://jira.atlassian.com/browse/BCLOUD-14549)

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


author: Giancarlo Franchi
body: Thank you Caroline!


author: Erez Maadani
body: Do the projects have different keys?

BTW, I just tried to create a repo with same name on different project and it worked great - on bitbucket cloud

comments: author: Giancarlo Franchi
body: Odd.

I have a the following projects:

Java --\> Key = JAVA

Python --\> Key = PYT

In java I have a repo called minesweeper.

I'm re-writing it in Python. So i go to create new repo. I select my workspace. Then project Python and try to create repo minesweeper.

It gives me the error that a repo with that name exists (I don't have a minesweeper repo in the python project).


Tags: bitbucket-cloud

cloud
Your current database version won't be supported from 7.10.1
Asked by Mohamed Damak:

Bitbucket 7.10.1

postgres 11.14.0

Self hosted instance, debian 10.13

Upgrade menu tells me "Your current database version won't be supported"

While it is seen as supported in the troubleshooting menu and in bitbucket documentation.

I've seen similar problems reported with more recent versions (7.17...) , but I don't see any workaround available.

Should I try to force the upgrade via CLI?

Thank you for your help!


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Mohamed Damak](/t5/user/viewprofilepage/user-id/5044107) ,

welcome to the Atlassian community!

Postgres 11.14.o should be supported by Bitbucket. There is an open issue <https://jira.atlassian.com/browse/BSERV-13089> that probably affects also 7.10.

Currenlty there is no workaround for that, simply ignore that alert.

Hope this helps,

Fabio

comments: author: Mohamed Damak
body: Yes thank you!


author: Fabio Racobaldo _Herzum_
body: you are welcome [@Mohamed Damak](/t5/user/viewprofilepage/user-id/5044107)


author: Nic Brough -Adaptavist-
body: No, you should upgrade the database to a supported version while upgrading Bitbucket.

You haven't said whether 7.10 is the current version or the target version of Bitbucket, so we cant check what the documentation says.

comments: author: Mohamed Damak
body: Thank you for your feedback

Version was 7.10.1 // Postgres 11.14

I upgraded successfully to 7.21.5 while ignoring the message.

Everything is working as expected.

Current version after successful upgrade 7.21.5 // postgres 11.14


Tags: bitbucket-server

server
Email alias removed
Asked by ericbaldoni:

I accidentally created a new account using one of my google email addresses. I had this email address set as an alias in my main account, but it was removed. I deleted the new account, but I still can't add the email alias back. I keep getting '\*\*\*\* is already in use by another user.' Will it clear up over time?


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

When you choose to delete your Atlassian account, the account gets deactivated for 14 days and it gets deleted afterwards.

We give a 14-day grace period, during which the account will appear as temporarily deactivated. During this grace period, the user can log back in to the account and cancel the deletion:

* <https://support.atlassian.com/atlassian-account/docs/delete-your-atlassian-account/>

I believe this is the reason why you cannot add the email as an alias yet. The account should get deleted 14 days after you initiated the deletion and you will then be able to add the email as an alias again.

Kind regards,  
Theodora


author: kehart@uams.edu
body: It will not clear up over time. And I'm afraid I am having the same problem. Wish I could offer a solution.


Tags: bitbucket-cloud

cloud
Bitbucket UI Displaying Certain Branches as Tags
Asked by Gash Teshome:

Bitbucket is displaying certain branches as tags. All our repos show `master` as being a branch as well as a tag (and *usually* one other branch as well.) We have confirmed the tags do not actually exist in the repo via the git CLI. Is this expected behavior?

![image (12).png](https://community.atlassian.com/t5/image/serverpage/image-id/218696i0D987D6667348066/image-size/large?v=v2&px=999 "image (12).png")![Screen Shot 2022-09-29 at 3.50.57 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/218695i86DC6E9D6AE22B9F/image-size/large?v=v2&px=999 "Screen Shot 2022-09-29 at 3.50.57 PM.png")


Answers:
author: Theodora Boudale
body: Hi [@Gash Teshome](/t5/user/viewprofilepage/user-id/5043811) and welcome to the community!

This is actually a bug. We are displaying in the tags list priority refs based on the repo's main branch and the branches configured in the repo's Branching Model (from Repository settings), that we shouldn't.

We have a bug report about this in our issue tracker, you can add yourself as a watcher if you'd like to get notified via email on updates:

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

Kind regards,  
Theodora

comments: author: Gash Teshome
body: Thank you [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) . I have added myself as a watcher on the issue.

Thanks,

Gash


author: Theodora Boudale
body: You are welcome Gash, please feel free to reach out if you ever need anything else.


Tags: bitbucket-cloud

cloud
Not Receiving Email Notifications from BitBucket Server 5.9
Asked by Scott McQuarrie:

My workplace uses Atlassian Bitbucket v5.9.0 using the Server/Data Center hosting type, but I do not receive email notifications when a pull request I need to review is created or changed. Other people in my workplace do not seem to have this issue. Any information or advice would be appreciated.


Answers:
author: Craig Castle-Mead
body: Ask your BB admin to use the mail send/debug tool to check you get the test email. Id also check you've got no spam filter/junk/rules etc that might be intercepting the emails.

CCM

comments: author: Scott McQuarrie
body: Thanks Craig, yes I think the issue was with the email server set up with the BB data server. The issue has been resolved internally. Cheers.


Tags: bitbucket-server

server
Bitbuct size
Asked by Travis Waggoner:

I am getting a issue where there is nothing in the repository but there is still 5.36GB worth of data. Where is all this information so I can clean it up?

\<URL removed due to privacy reasons\>


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

We checked the repository you mentioned and confirmed it is now showing 3.1 GB. We ran a GC on this repo and the size remained the same.

As [@Hana Ku?erov?](/t5/user/viewprofilepage/user-id/1226304) mentioned, you might have other branches inside this repository, were you able to check this information? You can verify this by accessing your repository in Bitbucket Cloud \> Open the **Source** tab \> select the branch you would like to check:

![Screen Shot 2022-10-10 at 11.36.32 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/219879iC60F04AFB1E3357F/image-dimensions/561x219?v=v2 "Screen Shot 2022-10-10 at 11.36.32 AM.png")

Also, are you seeing this in your remote or your local repository? In case this is just on your remote repo, could you please run the following command to see the size of your local repository?

```
git count-objects -vH
```

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

Kind regards,  
Caroline


author: Hana Ku?erov?
body: Hi [@Travis Waggoner](/t5/user/viewprofilepage/user-id/5043757) ,

welcome to the Atlassian Community!

Have you tried to look, whether there are other branches than master? Are there any commits in the history?


Tags: bitbucket-cloud

cloud
Unable to push after update
Asked by Edmundo R_ S?nchez Guajardo:

Hi,

After updating our Bitbucket Server from:

Old: 7.16.1

New: 7.21.5

We cannot push code and we see this message:

![Message.png](/t5/image/serverpage/image-id/218600i051DCF9C8DA99462/image-size/large?v=v2&px=999 "Message.png")

I've double-checked our license, and it is valid until next year.

As we updated the server due to reports that there was a security warning that had to be addressed, I would be thankful for any advice that is different to reversing to the previous version.

Thank you in advance.

Best,

Edmundo R. S?nchez Guajardo


Answers:
author: Nic Brough -Adaptavist-
body: This usually means that you have not installed the current license on the server. Go to admin -\> licensing and pit the new key in.


Tags: bitbucket-server

server
Sourcetree on windows 10
Asked by Ronald Ruijs:

Hello,

I downloaded sourcetree 2.3.1, does not start on my W10 PC. REfer to sourctree.log content below. Any ideas?

//

ERROR \[2017-10-21 22:19:05,527\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  
ERROR \[2017-10-21 22:19:05,707\] \[1\] \[SourceTree.App\] \[OnStartup\] - Failed to start  
System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.  
bij SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)  
bij SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](NotificationDialogWindow notificationWindow, Tuple\`2 customAction, VistaTaskDialogIcon icon)  
bij SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](String title, String message, Tuple\`2 customAction, String cancelLabel, String suppressionSetting, Action\`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)  
bij SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)  
bij SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()  
bij SourceTree.AppRoot.RunPreFlightChecks()  
bij SourceTree.AppRoot.OnStartup(StartupEventArgs e)  
bij SourceTree.App.OnStartup(StartupEventArgs e)  
ERROR \[2017-10-21 22:19:14,499\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied  
ERROR \[2017-10-21 22:19:14,700\] \[1\] \[SourceTree.App\] \[OnStartup\] - Failed to start  
System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.  
bij SourceTree.Notifications.NotificationsManager.SetOwner(NotificationDialogWindow notificationWindow)  
bij SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](NotificationDialogWindow notificationWindow, Tuple\`2 customAction, VistaTaskDialogIcon icon)  
bij SourceTree.Notifications.NotificationsManager.ShowNotificationDialog\[T\](String title, String message, Tuple\`2 customAction, String cancelLabel, String suppressionSetting, Action\`1 suppressionChangedAction, Object contentControl, String contentCommandLabel, Action contentAction)  
bij SourceTree.Notifications.NotificationsManager.ShowNotificationDialogWithYesConfirmation(String title, String message, String details)  
bij SourceTree.Configuration.WpfSpellCheckerPreFlightCheck.Run()  
bij SourceTree.AppRoot.RunPreFlightChecks()  
bij SourceTree.AppRoot.OnStartup(StartupEventArgs e)  
bij SourceTree.App.OnStartup(StartupEventArgs e)

//


Answers:
author: Tayyab Bashir
body: Hi, This is a known problem which is fixed in version 2.3.2.0.

You can fix this by navigating to  
(C:\\Users\\{USERNAME}\\AppData\\Local\\Atlassian\\SourceTree.exe_{RANDOM_GUID}\\2.3.1.0\\user.config) and find the following line:

```
<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String"> 
     <value>True</value> 
</setting>
```

If the value is set to False, make sure you **set the value to True**

comments: author: Ronald Ruijs
body: Thanks, that did the trick!
Pulling a branch created on a different workstation has caused some issues, a little help?
Asked by Thuggers:

(I am new to source control so please forgive me for any terminology or procedural blunders)

Last night I created a New branch when working in my home office. I made some edits and committed the Branch and pushed it to the remote. When I arrived at my other office this morning I 'pulled' the new remote branch but under options I did not uncheck the commit merged changes immediately. This seems to have 'merged' the changes from the remote branch back into the master branch which I did NOT want to do, I wanted to continue working on the New branch keeping it separate from the master. On my Work computer it now shows a \[2\] on the Push Icon when I am on the master branch and there was No New branch. I Then Selected the Remote Repo and checked out the new branch and it is now appearing in my local repo, I think that is now solved.

How do I get my Master branch on this system back to 'normal'? There should be NO changes waiting to be pushed on this system for the master branch...


Answers:
author: Ana Retamal
body: Hi Michael, are you using Git? In that case, *git revert* or *git reset* could be good options for you, you can read more about them at [Undoing changes](https://www.atlassian.com/git/tutorials/undoing-changes#git-revert) I encourage you to always have a copy of your repos before performing any of these operations, just in case ;)

In any case, note that this is actually a Git question and not a Sourcetree question, as this is related directly to the way Git works and Sourcetree is just a graphical tool for Git :)

Hope that helps!

Ana


Tags: branch

git
SourceTree still can't accept my email
Asked by stinkykong:

I posted on this earlier, got a reply that developers were aware of this problem. It has been days now and I need to get something working. Is there any ETA on getting SourceTree connected?


Answers:
author: Ana Retamal
body: Hi Steve, I'm afraid we don't have an ETA yet. My recommendation would be to watch the bug ticket at [SRCTREE-5034](https://jira.atlassian.com/browse/SRCTREE-5034) to keep receiving further updates. In the meantime, as a workaround, you can use the version 2.1 that can be downloaded from the [archive](https://www.sourcetreeapp.com/download-archives).

Hope that helps!

Cheers,

Ana
Installation problem
Asked by gibbo77:

I've installed Sourcetree on many different pc but with one I have a big problem....

When I start to install, when I have to login with my Atlassian acocunt, the pop up is completle white.... windows firewall is off, antivirus is off, I am able to go on internet...

So, what I can do ?


Answers:
author: Ana Retamal
body: Hi Andrea, this issue was reported in our bug tracker at [SRCTREEWIN-7244](https://jira.atlassian.com/browse/SRCTREEWIN-7244). Our developers are rolling a fix, but if you haven't been prompted for the upgrade yet you can use the following workaround:
> From a working install collect the accounts.json and passwd files.
>
> Delete the Atlassian folder from the AppData/Local directory for your user. Run the installer for 2.3.1, close it when you get the blank login window. Place the account.json and passwd files into the Atlassian/SourceTree folder. Rerun the installer. It should detect the account and password from those files and bypass the request for a login.

Note that in order to be in compliance with the Atlassian EULA you must ensure the email address used in the file is valid, yours and associated with a valid Atlassian account.

For the future keep in mind that if you do a search within the Atlassian Community first you might be able to find the solution to your problem much faster, as it might have already been asked. This question for example has been asked in the Community repeatedly :)

Let us know if you need any further assistance!

Cheers,

Ana
Add account button is not displayed
Asked by Plas Tic:

Sorry, I am not that good at English.

I'm a Japanese user.

Account authentication failed when pushing once,

Account can not be added because there is no account adding button in the account authentication of the source tree.

How can I add an account?

![?????.png](/t5/image/serverpage/image-id/8079i44F6053CF28F4BEB/image-size/large?v=v2&px=999 "?????.png")

If you know anything about that please let me know.


Answers:
author: Ana Retamal
body: Hi! Sourcetree stores its credentials in Windows Credential Manager, or Vault. You can clear them out so next time you push it'll ask you for credentials again. They are prefixed by '*git:* ' for git repos and '*hg:*' for mercurial repos.

If that doesn't work, you can try [wiping Sourcetree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html)?

Also, let us know which Sourcetree and Windows version are you using.

Best regards :)

Ana

comments: author: Plas Tic
body: Windows Credential Manager

I tried it, but it was useless.

I tried wiping Sourcetree preferences.

Problem solved.

Tank you?

Version.2.3.1.0 Windows 8.1


Tags: language-ja