youngmon/atlassian-qna huggingface dataset:
Deleting Repository does not Delete from Disk
Asked by Patrick Chen:

Hello,

We're trying to manage disk space on our Bitbucket Server instance.

However, even after deleting a repository, the repository folder is not deleted from the host server.

Example: Repository 'ABC' is stored in 'E:\\Bitbucket_Data\\shared\\data\\repositories\\1278' and takes up 3GB of space.  
After using the Bitbucket Server UI to Delete the repository 'ABC', the folder 'E:\\Bitbucket_Data\\shared\\data\\repositories\\1278' is still on the disk and the files are still there.

Is this expected/intended behavior?

If so, can I safely delete folder 'E:\\Bitbucket_Data\\shared\\data\\repositories\\1278' manually from the disk?

Edit for clarification:  
I am not trying to delete a Project Repo. I'm trying to delete a Personal Repo that was forked from a Project Repo.

In the example, 'ABC' is forked from '123'  
'ABC' is stored at 'E:\\Bitbucket_Data\\shared\\data\\repositories\\1278'  
'123' is stored at 'E:\\Bitbucket_Data\\shared\\data\\repositories\\1248'

I only want to delete and reclaim disk space from 'ABC'


Answers:
author: Ludovic Garcia
body: *Hello,* I am facing the same issue as [@Patrick Chen](/t5/user/viewprofilepage/user-id/4122662) on version 7.6.1 of Bitbucket Server.

Can someone please answer his question ?

Kind regards,


author: Patrick Chen
body: Related to this: We have hundreds of thousands of folders in the tmp\\git folder

Can these folders be deleted manually?


Tags: bitbucket-server

server
How to pass multiple pattern to custom bitbucket pipeline API inside Target block ?
Asked by Ranopriyo Neogy:

I want to invoke a custom bitbucket pipeline via custom BitBucket API. Is there a way I can pass multiple patterns in the below command calling the API ?

At present, I am able to run only one pipeline create-aws-account via the command line (Bit bucket API).

Note: I want to run the yaml file mentioned in below sequence via the custom bitbucket API command :

* create-aws-account
* set-sso-permissions
* run-cloudhealth-pipeline
* run-tekton-pipeline

Command:

```
curl -X POST -is -u uname:password \

        -H 'Content-Type: application/json' \

        https://api.bitbucket.org/2.0/repositories/xxxx/xxxx/pipelines/ \

        -d '

        {

            "target": { 

            "type": "pipeline_ref_target",

            "ref_type": "branch",

            "ref_name": "master",

            "selector": {

            "type": "custom",

            "pattern": "create-aws-account"

              }

            },

        "variables": [

            {

            "key": "account_id",

            "value": "02020202",

            "secured": true

            },
```

> Below is my Pipeline code bitbucket-pipelines.yml and I want to run them sequentially one after the other.

```



pipelines:

  custom:

    create-aws-account:

      - variables:

          - name: account_id # single string (required)

      - step: *tfapply

    set-sso-permissions:

      - variables:

          - name: aws_account_id # single string (required)

          - name: aws_region # us-east-1 or ca-central-1

      - step: *aws_sso_access

    run-cloudhealth-pipeline:

      - variables:

          - name: aws_account_name

          - name: aws_account_id

      - step: *cloudhealth_pipeline

    run-tekton-pipeline:

      - variables:

          - name: account_id # single string (required)

          - name: app_id # single string (optional)

      - step: *tekton_pipeline
```


Answers:
author: Mark C
body: Hi [@Ranopriyo Neogy](/t5/user/viewprofilepage/user-id/4269226)

Thank you for reaching out to the community.  

I'm afraid it's not possible for you to run multiple patterns for your custom steps in your Pipelines YAML configuration as the API only works for a single trigger.  

If you want to trigger the other custom steps, you will have to run multiple Curl commands with different patterns.  

Let me know if you have any further questions.  

Regards,  
Mark C


Tags: api

bitbucket-cloud

cloud
Bitbutcket sls deploy Error: ENOTDIR: not a directory, scandir
Asked by Jaime Norambuena Gonzalez:

Hi, I need help with this error in bitbucket pipeline:

docker image with python 3.8

Serverless: Excluding development dependencies...` `

Error ---------------------------------------------------` `

Error: ENOTDIR: not a directory, scandir **'/opt/atlassian/pipelines/agent/build/distutils-precedence.pth'**` `

Your Environment Information ---------------------------` `

Operating System: linux Node Version: 10.24.1` `

Framework Version: 2.51.2` `

Plugin Version: 5.4.3` `

SDK Version: 4.2.3` `

Components Version: 3.13.3

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


Answers:
author: Mark C
body: Hi [@Jaime Norambuena Gonzalez](/t5/user/viewprofilepage/user-id/4474080)  

Welcome to the community.  

Based on the error message, it seems that the command couldn't locate the directory.  

To debug the issue further, I'd recommend [testing your Pipelines build locally in a Docker container](https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/).  

Ideally, if it works locally, it should also work on Pipelines.

Regards,  
Mark C


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud

python
error pulling repository.
Asked by federicordv:

i got this error on pulling

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin  
fatal: remote error: upload-pack: not our ref b846df0615bacd4842501fa71d5866075332977b  
fatal: the remote end hung up unexpectedly

and I cannot clone the repo


Answers:
author: Mark C
body: Hi [@federicordv](/t5/user/viewprofilepage/user-id/3112306)

Thanks for reaching out to the community.

Based on the error message you're getting, it seems that there's something is wrong with your remote repository.  
For me to further check and possibly run Git GC (Garbage Collection) against your remote repository to make sure it is in a good shape, may I kindly ask if you could provide me your masked repository URL if you're comfortable sharing it here?  

You can mask your repository URL by only providing the first and last characters of your workspace and repository name.

```
https://bitbucket.org/w*******e/r********y/
```

Otherwise, I can create a support ticket on your behalf.  
Thanks and looking forward to your response.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Do i need convert generated key (ssh-keygen RSA PRIVATE KEY ) to another format in Bitbucket ?
Asked by ????? ????????:

In pipeline i got this error -

(umask 077 ; echo $PREPROD_SSH_KEY | base64 --decode > ~/.ssh/id_rsa)base64: **invalid input**

variable $PREPROD_SSH_KEY contains RSA PRIVATE KEY in format

-----BEGIN RSA PRIVATE KEY-----

key body

-----END RSA PRIVATE KEY-----


Answers:
author: ????? ????????
body: In that way i dont have access to private key , but i need it either.

problem solved, i created new key with these options :

ssh-keygen -t rsa -b 4096 -N -f bitbucket_key2021

call from bitbucket-pipelines.yml

- (umask 077 ; echo $STAGE_SSH_KEY \| base64 --decode \> \~/.ssh/id_rsa)

- chmod 400 \~/.ssh/id_rsa

- export SSHPASS=$(\~/.ssh/id_rsa)

- sshpass -e ssh -o stricthostkeychecking=no $USER@$REMOTE_IP "echo Ok"  


author: John Paz
body: What are you trying to do? Create a key to be used with Pipelines?

Did you do this in the UI?

![2021-08-06_17-11-05.png](https://community.atlassian.com/t5/image/serverpage/image-id/155023i3C57C6E9C974C8EA/image-size/large?v=v2&px=999 "2021-08-06_17-11-05.png")

(I'm not great with Pipelines but been using it all day, figured I'd ask...)


author: ????? ????????
body: I have created keys in different ways -

ssh-keygen -t rsa -b 4096 -m pem -C your_email@example.com

or convert my previous key

openssl pkcs8 -topk8 -v2 des3 -in ./my_key -out ./encrypted_my_key


Tags: bitbucket-pipelines

cloud

ssh
Unable to recieved pull request reviewer notification
Asked by Jackson Foo:

I already try it via manage notifications settings, make sure I been watching all repository.

Unfortunately, when ever someone comment in my pull request I am not receiving any email notification


Answers:
author: Theodora Boudale
body: Hi Jackson and welcome to the community.

I assume that this concerns the Bitbucket Cloud account with the same email as your community account?

I checked our email logs for this email address and I see that Bitbucket sent some emails to this email address yesterday, 12th July, but received a hard bounce response form your mail server with the message:

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

Common reasons for this error are:

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

I searched our suppression lists, but your email address is not listed in any of them at the moment.

I can also see in our email logs that Bitbucket has sent several emails to your email address today, and today's emails show to have been delivered to your mail server.

Could you please let me know if the issue is resolved for you now? I would suggest checking your Spam folder as well, in case the emails ended up there.

Please feel free to let me know if you're still having issues.

Kind regards,  
Theodora

comments: author: Jackson Foo
body: Hi Theodora,

I assume that this concerns the Bitbucket Cloud account with the same email as your community account?

Yup, thanks for support and answering it.

Currently the issued I am still monitoring, so far is working for now.

Thanks


Tags: bitbucket-cloud

cloud
Not receiving emails of repository access or invites
Asked by Hussain Electricwala:

Hi,   

I am not receiving emails especially for getting repository invite access on my email id **\<email_removed\> .**Can someone help ?

Might be similar issue like this : [https://community.atlassian.com/t5/Bitbucket-questions/Not-receiving-emails-of-pull-requests/qaq-p/1350499](https://community.atlassian.com/t5/Bitbucket-questions/Not-receiving-emails-of-pull-requests/qaq-p/1350499?), if so can you help ?   
Thanks,

Hussain.


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

I looked in our system and your email is not in any suppression list.

I see that one of your admins has also opened a support ticket about this issue, so I checked the invitations for the workspace they mentioned.

Your email address in the invitation has a typo, specifically an 'a' is missing from the username of the email address.

Could you please ask one of the admins to remove the existing invitation and send a new one, making sure they enter your email address correctly?

Please feel free to let me know how it goes.

Just a heads up, I removed your email from your question to protect your privacy.

Kind regards,  
Theodora

comments: author: Hussain Electricwala
body: I have notified the respective admin .  

Thanks Theodora.  


Tags: bitbucket-cloud

cloud
(Feature Request) command line tool
Asked by Jocelyn Mallon:

Hi,

Before switching to Sourcetree I was a gitx user, and also evaluated git-tower, and both of those apps feature a command line tool, to launch their app from a repository.

I found an earlier request for this at the old sourcetree site here:

<http://support.sourcetreeapp.com/discussions/suggestions/126-invoking-sourcetree-from-the-command-line>

However with the current version of sourcetree (1.2.81/1.2.8.1) invoking it from the command line with that command:

open $1 -a sourcetree

results in somewhat unexpected and annoying behavior. Sourcetree does not recognize repositories opened this way that already have bookmarks, so it 1) always prompts (sometimes two or three times) to create a new bookmark, and 2) it does not remember any window settings for the repository, even if you create a new bookmark from the popup.


Answers:
author: stevestreeting
body: Thanks for pointing out the issue with the bookmarks; this is down to the initialisation order when ST is launched this way. As I've mentioned, being on the App Store limits what SourceTree is allowed to do here (and it's getting stricter if anything), but I'll try to at least make ST behave better when you set this up yourself in future.

Beign tracked here: <https://jira.atlassian.com/browse/SRCTREE-385>


author: Glyn Normington
body: SourceTree is terrific, but with a large number of git repositories, the ability to launch it from the command line and have it navigate to the window corresponding to the git repository of the directory I'm currently in would be very useful - like gitx used to do.
How can I make pull do a "git pull --rebase -p" by default... i.e. specify the -p flag after selecting the rebase by default option.
Asked by Tim Kersten:

I've changed my settings to do a rebase instead of a merge when pulling, however it seems a lot safer to me to also use the "-p" flag. Can this be added so that it's the default for a merge? If not, how might I add this myself? Thanks!


Answers:
author: stevestreeting
body: According to the git manual, the -p option (--preserve-merges) to rebase is only usable in interactive mode: <http://linux.die.net/man/1/git-rebase.> Therefore it's not really usable from SourceTree. It might be safer for you to not use the rebase option by default if you have merges you want to preserve.

comments: author: Tim Kersten
body: Thanks! Makes sense.
Problems cloning GIT repository to SourceTree
Asked by marie kropf:

Hi, I am cloning from a remote location to try to test your utility to see if it is something the dev team will find useful for workflow implementation.

i keep getting this error when i try to clone a repository:

abort: error: Operation timed out  
error: Failed connect to dev-referencestor.com:443; Operation timed out while accessing [https://username:password@dev-referencestor.com/data/www/dev-referencestor.com/Rs_2011Q1_Ui/.git/info/refs\<br\< a=""\> /\>
fatal: HTTP request failed](https://username:password%40dev-referencestor.com/data/www/dev-referencestor.com/Rs_2011Q1_Ui/.git/info/refs%3Cbr)
[\*note in my copy i DO have my username/password in the command, and its the same one that successfully allows me ssh terminal access to the repository.
So I am stuck!!! And the software does not come with clear instructions or a readme pdf.
Can anyone help me connect to the online repo?
Thanks
mk](https://username:password%40dev-referencestor.com/data/www/dev-referencestor.com/Rs_2011Q1_Ui/.git/info/refs%3Cbr)


Answers:
author: stevestreeting
body: That doesn't look like a valid URL to me, the path goes right up to directories inside the .git repo which is not normal. Really you shouldn't include your password in the URL either, that's a security risk.

Extrapolating from your URL above it looks like it should be something like [https://username@dev-referencestor.com/data/www/dev-referencestor.com/Rs_2011Q1_Ui](https://usernamepassword%40dev-referencestor.com) - but please check that with your provider.

SourceTree will prompt you for your password and allow you to save it in your keychain for future use, this is far more secure than including it in the URL (and just as convenient).
datamine feature request
Asked by andrewbutterfield:

TortoiseHg has a very powerful datamine feature that searches the repo, and can be easily configured to look at a single revision,or the current working directory, etc. If you search for "loadFile" (say), it will list every line in which it occurs - giving filename and line number - I write Haskell code as LaTeX literate scripts and so there are no useful IDEs out there to do this for me, so having it in TortoiseHg is really useful..

The search feature in SourceTree seems to only search commit texts, and something (?) called "user".

Or is there a way to do power searching like this I am missing ?


Answers:
author: stevestreeting
body: Actually for Mercurial the search options are 'Commit Details', which includes both the commit text and the files that are changed. But yes, it doesn't support 'hg grep' yet. I'll make sure that's on the list.

comments: author: andrewbutterfield
body: That'd be great- thanks !
Feature request problems
Asked by andrewbutterfield:

I'd like to make a feature request, and the page at <http://www.sourcetreeapp.com/support/> directs

me to [http://jira.atlassian.com](http://jira.atlassian.com/) . Here I have login (again), but it doesn't recognise my email address - the one I use for this account? Do I have to re-register there as well ?

Also, clicking on the Projects tab on that page shows a list of project, but SourceTree does not appear there !

Another Atlassian support page I stumbled upon had a drop down menu with the same list - still no SourceTree

What is currently the best way to send in a feature request (to wean me off Windows 7 TortoiseHg running on VMWare Fusion ;-)


Answers:
author: stevestreeting
body: Yes, sorry that <http://jira.atlassian.com> doesn't list SourceTree yet, we're working on that. In the mean time you can request features here - they'll all end up with me anyway for the time being :)
Using SourceTree with Heroku
Asked by Jonathan Richman:

Sorry...bit of a newbie here. I've just started using Heroku to host some Facebook applications. I'm updating them all using Terminal, which is fine, but it seems like SourceTree might be a better option. However, I have no idea how to begin to set this up in SoureTree. I figure I need to "Add Repository", but not sure what to put in for the Source Path / URL. Tried using the URL of the application supplied by Heroku, but that didn't work. Is there a Heroku "Toolbelt" like they supply to integrate with Terminal?

Looking for any advice to get started. Perhaps it's not even possible to use SourceTree for this. No idea.

Thanks,

JMR


Answers:
author: stevestreeting
body: Yeah, you should be able to set this up pretty easily. All you need to do is drag/drop the parent folder into SourceTree - either into the bookmarks window in the place you want it, or on to the dock icon. That will add your local working copy to SourceTree.

If you already have your Heroku remote(s) configured, that's basically it. If you need to add or change remote details later, you should click on the 'Settings' button on the right of the toolbar to get to the remotes.

Hope that helps!  
Steve

comments: author: Jonathan Richman
body: Figured that was too easy...but it worked perfectly. Thank you. I didn't have the remote configured correctly the first time either.


author: stevestreeting
body: FWIW dragging/dropping a local folder is the same as Add Repository \> Add Working Copy from the Bookmarks window, it's just a bit faster. You can also drag/drop URLs from your web browser as a shortcut to Add Repository \> Clone Repository.
ST Subrepos
Asked by and:

Hey,

It would be great to have support for subrepos (.hgsub) and be able to add/remove them, pull changes (update), some basic support in the left pane of repository window.

Thanks, bye.


Answers:
author: stevestreeting
body: Full support for subrepos (and submodules in Git) is in the pipeline for 1.3, it's already well on the way :)
Git stash support could be better
Asked by Nathan Gray:

Currently you can't really see the names of your stashes. They only appear in the sidebar and often get cut off. It would be better if when you clicked on a stash there was a pane above the diff view that showed you the name of the stash, the branch/commit it was created from, and the date on which it was created.


Answers:
author: stevestreeting
body: Thanks for the feedback. However please note that if you hover your pointer over the stash name for a couple of seconds, the full name will be displayed as a pop-up. This is true for all fields in the sidebar and other views when they get cut off.

comments: author: David Rees
body: Perhaps SourceTree could instead show the stash name and then the branch?


author: stevestreeting
body: Logged as a feature request: <https://jira.atlassian.com/browse/SRCTREE-1250>


author: David Rees
body: Perhaps changing SourceTree to show the stash name and then the branch?


author: windwagon
body: Also, you can drag the sidebar border to make the pane as wide as you'd like.
Secure Permissions For Space
Asked by Wes Farnsworth:

I'm looking to set up a space with different permissions from the rest of our confluence cloud setup that we can send customers to for knowledge base articles. This would ideally only be accessible through a specified link we provide to them through their customer portal on our website, but not accessible through any other methods.

What would be the best and easiest way to set something like this up?

One of the methods I've considered is setting up a single user ID and password. But I'm not sure how I could make Confluence recognize it each time the link is clicked thus bypassing any login requirements.

Can anyone help?


Answers:
author: Brant Schroeder
body: [@Wes Farnsworth](/t5/user/viewprofilepage/user-id/5074251)

There are a couple of ways you could share the information in Confluence publicly / with customers. You can make a space public which would allow anyone on the internet to find the content of that space. This could be linked through the customer portal.

If the information should be limited to customers you could look at using Jira Service Management (JSM). You could add all your customers to JSM as customers and then they could access the Confluence KB through JSM after logging in. This would prevent any individual from accessing the information.

comments: author: Wes Farnsworth
body: [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) thanks for the response!

We don't want to make the space public, because we don't want Google to be able to crawl the content. We are also trying to prevent us from having to update a list of customers every time someone is added or removed from the list of qualified customers.

This is why I'm trying to make it so that if the customer meets the criteria and the link is provided to them in the dashboard then they will be able to access the space. Otherwise, they will either get a login prompt (which they wouldn't have the info to) or an error of some kind letting them know they don't have access to the content and to reach out for help.


author: Brant Schroeder
body: [@Wes Farnsworth](/t5/user/viewprofilepage/user-id/5074251) Those are really the only ways to secure it. You could IPSEC it as a public space so only certain IPs could access it. But that would still require managing your client's IPs and the customer would have to be on their company's network or VPN for it to work.


Tags: cloud

confluence-cloud

knowledge-base

login