youngmon/atlassian-qna huggingface dataset:
How to get support when I cannot register an account?
Asked by Robin Murison:

Hi,  

Normally I would not discuss account issues on a community forum.  
Unfortunately, when I tried to register a new account I never received the verification email.  
So I cannot contact support directly about this issue.  

The only issue I can think of is that when I first registered the account the email address I provided was incorrect and did not exist. So the first email may have failed to be delivered.  

I would suggest as an improvement to the registration process that while registering an account that you give the opportunity to change the email address. I did not see a back button or an edit button.  

If I start the process again with a valid email it would not let me register the same cloud name and so the first registration is partially complete.  

So I decided to create the email account that I had registered with and I have since tested that it is receiving and sending emails correctly. I have tested using the email displayed on the registration page and ensured that the email account is the same as the registration email account.  

Now, whenever I log in it fails to send me a verification email for some reason. There is nothing in my spam folder and the only emails in the inbox of the new email account are the internal emails used during the creation and the testing of the email account.  

I do not know of any reason why Atlassian would fail to send me emails.  

I would like to raise a ticket for that account but because the account is not fully registered I cannot.  

So I am using a personal account to raise the issue on the community forum.  

Can someone direct me to a customer support email address or phone number where  

I can go into the details of the case in a less public place.  

With Thanks  

Robin Murison


Answers:
author: Theodora Boudale
body: Hi Robin,

If the email that you tried to create an account with did not exist, then we most likely received a hard bounce response from the mail server and then the email was placed in a suppression list, as we no longer try to resend to non-existing emails.

I created a support ticket for you using the email of your community account. You should have received an email with a link to the support ticket. In case you haven't received it, please let me know and I can post the link here (the ticket won't be visible to anyone other than you and Atlassian staff, even if they have the link).

You can leave a reply to this ticket and let us know the email you've been having issues with; we can check if it is in a suppression list and remove it if that's the case. After we remove it, you'll need to select resending the verification email, and there should be no issues.

Kind regards,  
Theodora


Tags: bitbucket-cloud

registration
Pre receive hooks to reject push on file that has blacklisted keywords
Asked by Linson Joseph:

Hi,

We are trying to implement a pre receive hook at repository level. We want to reject push that contains sql files having blacklisted keywords. Currently don't see an option to enable/add custom pre-receive hook via Bitbucket UI.

Following the shell script we used as pre-commit hook in local repo.

########################

#!/bin/bash

LIST="DROP\|COMMIT\|TRUNCATE\|ROLLBACK"

if git rev-parse --verify HEAD \>/dev/null 2\>\&1; then  
against=HEAD  
else  
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904  
fi

for FILE in \`git diff-index -~~name-status --cached $against -- \| cut -c3~~ \| grep -E 'dbsql'\` ; do

#Check if the file contains one of the words in LIST  
if grep -iwE $LIST $FILE; then  
echo $FILE." has one of the following blacklisted keywords you don't want to commit. Please remove it"  
echo "Blacklisted keywords : DROP\|COMMIT\|TRUNCATE\|ROLLBACK"  
exit 1  
fi  
done  
exit

##########################################

We have few questions:

a) Is it possible to add custom pre-receive hooks via bitbucket UI and provide the content as shell script?

b) Is it mandatory that content of pre-receive hook should be written in groovy scripting language?

Current setup:

Current pre hook settings in UI are below

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

When we click add hook, it is re-directing to market place.

Our use case : We want developers to block pushing the sql files having blacklisted keywords like DROP,COMMIT etc at bitbucket server side.


Answers:
author: Evan Slaughter
body: Hi Linson,

There are a few different ways of going about creating your own custom logic for use with pre-receive hooks within Bitbucket - and ultimately all of our recommended options for doing so are going to be found in the following document:

* [How to create a simple hook in Bitbucket Server](https://confluence.atlassian.com/bitbucketserverkb/how-to-create-a-simple-hook-in-bitbucket-server-779171711.html)

I'd recommend going through the various solutions outlined in that article, and seeing which of the options there would likely work best for your team. And although we can't help with creating the hook itself, if you have any questions regarding this document as a whole you're always welcome to shoot us a ticket over at [Atlassian Support](https://support.atlassian.com/contact)!

Thanks again, and I hope you and your team have a great weekend! ?


Tags: bitbucket-server

pre-receive-hook

server
Is there a way to restrict an ssh key being configured
Asked by Murali Krishna:

I would like to restrict a specific ssh key being configured in bitbucket. This should be across all the users. Is there such blacklisting capability?


Answers:
author: Mark C
body: Hi [@Murali Krishna](/t5/user/viewprofilepage/user-id/2326428)

Thank you for reaching out to the community.

Just wanted to make sure I get this right, you mentioned that you wanted to restrict specific SSH key on Bitbucket Cloud.  
If that's correct, I'm afraid it's not possible on Bitbucket Cloud at the moment.  
You can only restrict someone based on permissions (e.g [Admin, Write, or Read](https://support.atlassian.com/bitbucket-cloud/docs/grant-repository-access-to-users-and-groups/))

May I know why you need to restrict specific SSH keys in Bitbucket Cloud?

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
XSRF Security Token Missing when saving user notification settings
Asked by henrik_gerdtsson:

We are running Bitbucket Server 7.6.2 behind nginx. Nginx is handling all the SSL stuff. We have been running this configuration for several years with different versions of Bitbucket Server and has never had any issues.

Just the other day a user found that when he saved the changes made on https://\<bitbucket URL\>/plugins/servlet/notification/settings he got XSRF Security Token Missing. I have tried as an administrator and as a normal user and get this every time I save the settings.

I found a KB on XSRF Security Token Missing, <https://confluence.atlassian.com/bitbucketserverkb/xsrf-security-token-missing-779171343.html>. I have looked through all 6 options. Option 2 could have been a problem as we had the secure=true in our configuration. But removing it changed nothing. We only see the problem with the above mentioned settings save.

Any ideas on what might be the problem and how to fix it?

Br  
Henrik


Answers:
author: Christian Glockner
body: Hi Henrik,

Do you have the server.proxy-name, server.scheme and server.proxy-port properties set in your bitbucket.properties file?

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: henrik_gerdtsson
body: Hello Christian,

Yes I have. They are configured to the nginx-proxy.  
server.secure=true  
server.scheme=https  
server.proxy-port=443  
server.proxy-name=\<bitbucket-url\>  

I have another Bitbucket server running apache where it works and the configuration in bitbucket.properties are the same.

Should I change anything?

Br  
Henrik


Tags: bitbucket-server

server
How do I unmerge bitbucket accounts?
Asked by Ivor Paul:

I did contract work for a company many years ago. I had my own bitbucket account with various repositories, and I was also a member of various other workspaces.   

Then I joined this company and changed my email address to my company email address. I imagined that there would be good separation of "stuff from work" and "personal stuff" and I was only changing which email address I am using to log in.  

What I did not realise is that the company admin seems to be the account admin for my personal stuff as well now?  
If I go to my "account settings" I now get "Email address is set by your admin" which seems like I cannot undo what I did when I changed my email address.   

Is there a way I can split those off from the company ones onto an account where I have full control.   

Thanks!  

<br />


Answers:
author: Mark C
body: Hi [@Ivor Paul](/t5/user/viewprofilepage/user-id/2208637)

Thank you for reaching out to the community.

I'm afraid it's not possible to unmerge Bitbucket Cloud accounts as Bitbucket Cloud is not actually merging accounts.  
What happened is that, you only switched or changed your primary email address for your Bitbucket account to your work email.  
However, I'm afraid if your email address associated with your Atlassian account is managed by your organization, you won't be able to change it on your end.  
You will need to [reach out to your organization admins to change your email address.](https://confluence.atlassian.com/cloudkb/change-atlassian-account-email-addresses-969508513.html)  
Also, please note that your organization admins can only manage your Atlassian account responsible for authentication to Bitbucket Cloud.  
They won't be able to manage your personal workspace or repositories.

<br />

To separate your work-related repositories from your personal repositories, the best I can suggest is for you to create a new personal Bitbucket Cloud account.  
After that, if you have repositories in your Bitbucket Cloud work account's individual workspace, you can [transfer them to your other personal Bitbucket Cloud account](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/).  
This way, you have full control over your personal Bitbucket Cloud account separately from your work account.

Let me know if you have any further questions.

Regards,  
Mark C

comments: author: Ivor Paul
body: Thanks Mark. I didn't quite realise the implications of changing my email address. I'll create a new account for my personal stuff and transfer the repositories to that account. Appreciate the feedback.


author: Mark C
body: Sure, Ivor.  
Let me know if you have any questions that I can help with.  

Regards,  
Mark


Tags: account

administration

atlassian-support

bitbucket-cloud

cloud
Enabling SSO how does affect bitbucket
Asked by Ivan Palikuca:

We currently have a bitbucket with number of repos and we want to introduce SSO for Confluence. Does this affect bitbucket? Is SSO for all atlassian products or it can be turned on individually? Once turned on for bitbucket, how does it affect existing repos and user logins to git repo?


Answers:
author: Mikael Sandberg
body: Hi [@Ivan Palikuca](/t5/user/viewprofilepage/user-id/4538781),

Welcome to Atlassian Community!

SSO is managed on the organization level, so if your Bitbucket instance and Confluence instance belongs to the same organization, you will turn it on for both. You cannot pick and choose which product it should be turned on for.

As an example I have two Organizations, one that holds my production environment and sandbox, and a second one that hold a test instance that we created before it was possible to create a sandbox.

comments: author: Ivan Palikuca
body: Thanks, this is helpful [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579). I believe they were created separately, is there a way to say they are part of the same organization? Additionally how does enabling SSO affect bitbucket? We have tools that may not be able to use browser based authentication and needs to use plain username/password.


author: Mikael Sandberg
body: They should be separate, I just checked my setup and Bitbucket is handled separately. But if you want to enable SSO for both Confluence and Bitbucket you need [Atlassian Access](https://confluence.atlassian.com/kb/single-sign-on-integration-with-atlassian-products-794495126.html). Your Bitbucket account will be migrated to be an Atlassian account (if not already) and once you set up SSO it will be managed under Atlassian Access. You should still be able to use the tools that only support basic authentication as long as you generate an API token that your replace the password with. Example: my_username:\<api token\>


Tags: bitbucket-cloud

cloud

confluence
Cannot reduce repository size after exceeding 2GB limit
Asked by Jeff Mangum:

Hello,

I have exceeded the 2GB limit on my bitbucket repo and have followed the directions provided to try to reduce it. All has been unsuccessful as the repo is not reduced in size. Note that:

(1) I have the Labs garbage collection feature turned-on.

(2) I tried the following to clear-out the repo history:

1. rm -rf .git
2. git init
3. git add .
4. git commit -m "Removed history"
5. git remote add origin \<repo_url_removed\>
6. git push -u --force origin master

(3) When I check the size of the repo remotely, I see that it is not over 2GB:

git count-objects -Hv  
count: 8  
size: 164.00 KiB  
in-pack: 482  
packs: 1  
size-pack: 16.41 MiB  
prune-packable: 0  
garbage: 0  
size-garbage: 0 bytes

I have had this problem before, and the solution was for a sysadmin to run a garbage collection on the repo. Perhaps this is what needs to be done this time. Thank you for your assistance.

-- Jeff


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

I ran a git gc on the repo and its size is 22.8 MB now.

Regarding the Labs feature and why it didn't work:

(1) At the moment we don't enforce the 2 GB limit on repos owned by workspaces on the Free plan (see [here](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/)).  
This means that all repos have a 4 GB limit at this time, so the Labs feature will work if a repo goes over 4 GB.

(2) If a repo is over the limit and the Labs feature is enabled, you'll need to undo the last commit with a git reset and push that, you can see more details [here](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Undoing-the-last-push).

Just a heads up, I removed the repo URL 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: Jeff Mangum
body: Thank you Theodora. I still don't understand why my attempts to garbage collect failed, though. I did the following several times:

git gc --aggressive --prune=all

...with no success.

-- Jeff


author: Theodora Boudale
body: Hi Jeff,

You are very welcome.

If you run a git gc locally in a clone of your repo, the cleanup runs in that clone on your machine. It doesn't run in the Bitbucket repo which is hosted on our servers.

I hope this helps to clarify things, please feel free to let me know if you have any other questions.

Kind regards,  
Theodora


author: Jeff Mangum
body: ok. I ran the git gc locally on the master. Would be nice if there was a way to clean-up one's repo without having to ask for sysadmin-level help.

-- Jeff


Tags: bitbucket-cloud

cloud
Duplicated events on webhook
Asked by Alan Patric:

Hello, i'm using bitbucket webhooks to send requests, but when a pullrequest was merged, bitbucket are triggering two requests.  

The requests are almost exactly the same, the only difference is the property "updated_on" which is one or two seconds apart from the first request.  

This issue start recently.  

The headers values of X-Request-UUID, X-B3-TraceId and X-B3-SpanId are also different from the original request.  

I don't understand why i'm getting 2 requests from one merge.  

Anyone are experiencing this issue as well?


Answers:
author: Suhas Sundararaju
body: Hi Everyone,

The issue identified with **pullrequest:fulfilled** repository webhook trigger events has been fixed and have verified that the webhook service is operating normally.

Thanks,

Atlassian Customer Support


author: Vanzara Yash
body: Facing the same issue since 31st Aug noon IST. There are multiple **pullrequest:fulfilled** event webhooks being fired causing multiple triggers of code build jobs


author: Hammad Raza
body: Same thing happening here. Causing multiple CodeBuild builds trigger.


author: nashbert
body: +1 I am having the same issue as well and it is affecting my CodeBuild Builds.


author: Vadzim Pisarau
body: The same situation as you have and start recently as well. I think this is common issue and cause double build.


Tags: bitbucket-cloud

cloud

webhook
Repository size warning still displayed after cleanup & push with BFG
Asked by Matt Reedy:

Hi, I cleaned up my repository \<workspace-id/repo-name removed\> and pushed it to the cloud, but I'm still getting the large repository warning.

Please run a git gc on the remote to clean up the server. Thank you!


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

I ran a git gc on the repo and its size is 499.4 KB now. Does this agree with the size of your local repo?

Just a heads up, I removed the workspace-id and repo name 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: Matt Reedy
body: Thank you! Yes, that size agrees with my local repo.

I appreciate your help!


author: Theodora Boudale
body: You are very welcome, I'm glad to have helped!


Tags: bitbucket-cloud

cloud
Bitbucket does not show commits in specific branch
Asked by viktorasmorkunas:

I have a specific branch with couple of new commits in it. but when I try to open new pull request it shows it doesn't have any commits. Those commits are not show in commit tree either.

![Screenshot 2021-08-31 at 14.23.31.png](https://community.atlassian.com/t5/image/serverpage/image-id/158265i6A409C8AF2C48565/image-size/large?v=v2&px=999 "Screenshot 2021-08-31 at 14.23.31.png")![Screenshot 2021-08-31 at 14.23.41.png](https://community.atlassian.com/t5/image/serverpage/image-id/158266i6F79BDB6D128085A/image-size/large?v=v2&px=999 "Screenshot 2021-08-31 at 14.23.41.png")


Answers:
author: Jacob Heuman
body: Deleting the branch remotely, and then repushing from my local machine fixed this issue for me


author: mbm
body: Bitbucket definitely has some nasty bugs in this area. Loads of people "fixing" it by re-pushing their commits and branches. Would be nice if Atlassian would find this needle in the haystack and remove it...

4k views and counting...  

<https://stackoverflow.com/questions/61002882/bitbucket-not-showing-recent-commits-but-commits-are-still-present>


Tags: bitbucket-cloud

cloud
SourceTree Windows Errors Communicating with remote
Asked by Greg Beaty:

Every time I try to do anything with a remote repository via pull, push, etc; I get the following error:

```
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch originUnable to open connection:Host does not existfatal: The remote end hung up unexpectedlyCompleted with errors, see above.
```

All these functions work fine in git bash so I am a little confused as to what is happening. I do have my repository set as alias in my git config.  
Example:  
**Client uses:**  
-repos:/PROJ/repo.git (This is from Stash)  
**Git config:**  

```
host reposidentityfile ~/.ssh/id_rsaport 8199user githostname repo.domain.com
```

Does it not support the alias? I did load in my ssh key using a ppk that was converted using the import tool. Thanks for any help that is given.


Answers:
author: Tor Arvid Lund
body: I was able to make this work by doing the following in Putty:

1. I created a saved session in putty called 'repos' (same as in the 'host' entry in your .ssh/config)
2. Set the hostname/port to [repo.domain.com](http://repo.domain.com) and 8199
3. Set the "Auto-login username" under Connection --\> Data to 'git'
4. Save the session

Then, in PuttyGen:

1. Conversions --\> Import key
2. Then select your \~/.ssh/id_rsa
3. Save that as a .ppk key

Then, in Pageant

1. Add key, and select your newly created .ppk key

Finally, I restarted SourceTree (not sure if that is necessary), and it worked for me.

comments: author: Greg Beaty
body: Thanks this was actually the workaround that was given to me by Atlassian Support. My only problem with this is that I am using Git Bash as my default terminal so I, in my view, expect it to use it also for authentication instead of using PuTTy like other clients.


author: Greg Beaty
body: The issue stems from aliases not being supported and the requirement that Pageant must be running in order to use SSH keys when passphrases. I will enter a support ticket as this does not seem to be desired functionality.
Don't see submodules
Asked by Jeremy Balzer:

I have two projects that use the same submodule. I cannot see these submodules anywhere in the SourceTree ui, other than the "subrepository changed" icon in the parent project. I want to be able to view status, changes and make commits, pushes, etc for the submodule.

Any idea of how to do this? Could it be my git configs are setup wrong?


Answers:
author: stevestreeting
body: If this is Windows, submodules won't display yet - full submodule support is on the TODO list. Here's where you can upvote it if you want: <https://jira.atlassian.com/browse/SRCTREEWIN-118>

comments: author: Jeremy Balzer
body: Ah, well that explains it. Thanks.


author: KieranA
body: Hi Jeremy, is this for Mac or Windows?


Tags: submodule
sourceTree Shared folder
Asked by kyoukhana:

I have accessed a shared folder on my OSX Mountian lion machine. But when adding a working copy in SourceTree it will load the git repo but I can't see any of my changes that I have made. Also it Keeps asking me for a password to access the git repo. Not sure why. I love SourceTree and I don't want to use any other GUI. It should be easy accessing a shared folder and make commits to it. Any advice would be great


Answers:
author: KieranA
body: Hi Kevin,

There's a few posts around about this already, but basically mounted volumes / file shares cause corruptions. Here's a related answer that you should read through first: [https://answers.atlassian.com/questions/139650/adding-a-git-working-copy-located-on-sshfs-volume](/questions/139650/adding-a-git-working-copy-located-on-sshfs-volume)

Let me know if that helps.

Cheers

comments: author: kyoukhana
body: Thanks for the response back. But the link seems to broken. Was this the link you were refering too??

[https://answers.atlassian.com/questions/139650/adding-a-git-working-copy-located-on-sshfs-volume](/questions/139650/adding-a-git-working-copy-located-on-sshfs-volume)


author: KieranA
body: Strange, it's not broken for me and the links appear to be exactly the same! But yes, that's the one
Is it possible to use git-svn SourceTree for Windows?
Asked by Jan Philipp:

I'm testing the new 0.9.0.1 and I'm still missing git-svn capatibilities. Does this feature actually exist but is not available on my installation or is still (hopefully) planned? Is it possible to use a workaround?

I've tried both embededded git (incl. upgrade) and a brand new git-scm.org' one.. both won't help.

If this is still on the roadmap.. are you able to provide a possible milestone or date?


Answers:
author: stevestreeting
body: It's definitely still on the roadmap; in fact as I've ported it there are some parts designed with this feature in mind (since the Mac version supported it already). I can't give a date but we'll be adding as many missing features from the Mac version as fast as we can in the coming months. If you want to track this particular one or upvote it, it's here: <https://jira.atlassian.com/browse/SRCTREEWIN-119>

comments: author: Jan Philipp
body: Ah, thank you for the fast response.

Indeed, I'm actually using SourceTree for months on OS X. I'm checking our what the app can for my team mates..


Tags: windows