youngmon/atlassian-qna huggingface dataset:
Pipelines access docker host
Asked by crash21:

Hello,

I have set the runners, self hosted to my server. Everything works fine, runner is working and spins a new container which can also have docker using docker service.

```
pipelines:
    branches:
        master:
         - step:
            services:
              - docker
            runs-on:
              - self.hosted
              - linux
            script:
              - docker ps -a
              - docker images
              - echo "OK"
```

Now my problem is that docker ps -a and docker images are empty.  

I think docker in docker works but is completely isolated from the host docker. However, this does not fulfill my need.  

In the host (the same host the runner is running), I have the container that needs to be updated from the pipeline. I want to build a new image and run then: docker compose -f xxx.yml up -d  

How can I do this using docker runner? Is the only solution using Linux shell instead which i will install directly on the host?


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

This is not possible with Linux Docker Runners, as they limit access to the host.

One thing you could do is commit the Dockerfile and any other files you need to build the Docker image in your repo. These files will then be available during the build in the clone directory, so you can build the Docker image, start a container, push the image to a registry etc.

Otherwise, you can use a [Linux Shell Runner](https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-use-runners-for-linux/), which provides access to the host. Please keep in mind that if you do things such as installing any applications, starting a database service, or editing a file outside of the build directory, during a build, these would potentially affect the next step to be run. So, you'll need to make sure that the scripts you run in each step won't have a major impact on other steps or builds.

If you use a Linux Shell Runner, you will need to add the following command at the beginning of your script or before you run any Docker commands, in order to be able to use Docker:

```
- export DOCKER_HOST=""
```

This is because we are setting the variable DOCKER_HOST to tcp://localhost:2375, which can lead to issues.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
I want to close all my sessions in BitBucket and Jira
Asked by Alexey Dolya:

I want to close all my sessions in BitBucket and Jira


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

If you are referring to Bitbucket Cloud and Jira Cloud, you can reset your password via <https://id.atlassian.com/login/resetpassword>

You will then be logged out of all active sessions in both products.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
To get the HTTP access token we use the curl. What is the baseurl hat we have to use in the curl?
Asked by Mohammed Muthahhar:

To get the http access token for projects in Bitbucket server, we use the curl  

curl --request GET \\ --url 'http://{baseurl}/rest/access-tokens/latest/projects/{projectKey}' \\ --header 'Accept: application/json'

What is the {baseurl} we have to use to get it??


Answers:
author: Christian Glockner
body: Hi Mohammed,

The base URL is whatever is set in Bitbucket Server as the base URL. It is the URL that you use to access the Bitbucket Server UI.

Cheers,

Christian

Premier Support Engineer

Atlassan


Tags: bitbucket-server
Unrelated branch commits history pushed
Asked by Vitalisoft:

I'm working with JetBrains PhpStorm and integrated one Bitbucket and one Github remote repositories at once. Bitbucket repository was created much later, and had only one commit, with the working tree of the github master branch.

After making some changes in the github branch, I made "git checkout bitbucket" (local branch tracking Bitbucket master), "git commit", "git push".

After that, I have that one more commit in the Bitbucket master branch, but also, on the Bitbucket Commits tab, I have like a separate branch with all the commits from Github, it is before master and of different color.

However, I don't need those commits and didn't intend to push them, I also don't see them in the PhpStorm Git tab. I can't see that branch on the Bitbucket Branches tab, and when I click any of its commits, its branch is shown as "master", and points to a branch that doesn't have that commit!

How is this possible and how do I delete these unrelated commits from my Bitbucket repository?

On the screenshots you can see that "da40a66" is actually the same as "844cf5c", but created earlier

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/224296iE871C2CEACFED14C/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/224297i06C02D8F91F8D37D/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/224298iF7751BD318E56C6E/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Vitalisoft
body: Turns out that branch appeared when I accidentally pushed the tags from all branches (including Github master), and they pulled their history with it.

When I run "git push --delete bitbucket 4.3.0 4.0.1" (the last and first tags of the Github master), it disappeared.

Still, it was misleading to me that the branch name was "master" although it wasn't related to Bitbucket master. And it linked to the branch page that didn't have those tags, so I could only see them on the Commits tab.


Tags: bitbucket-cloud
Why is there no "git rebase --continue" equivalent in Sourcetree?
Asked by Martin Taylor:

If I do a right-click and "rebase current changes onto master" in Sourcetree, and then have conflicts, there seems to be no way to finish the process in Sourcetree. The only way I can figure it out (if and when I remember) is to resolve the conflicts using my external tool (BeyondCompare) then go to the command line and do "git rebase --continue", then go back into Sourcetree and do a force push of the branch I rebased.

Why doesn't Sourcetree have a visual equivalent of "git rebase --continue"?


Answers:
author: Mikael Sandberg
body: Sourcetree has a git rebase --continue, but is sort of hidden under the Actions menu. I agree that it should a more intuitive way of doing it. There are a couple of issues logged for it, here a some that I found when searching: [SRCTREE-1643](https://jira.atlassian.com/browse/SRCTREE-1643) [SRCTREE-2999](https://jira.atlassian.com/browse/SRCTREE-2999)


Tags: rebase
remote: Invalid username or password while cloning
Asked by Dreamfox Media:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote https://dreamfox@bitbucket.org/dfm_mailmaster/mailmaster.git  
Output:  
Error: remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.  
fatal: Authentication failed for 'https://dreamfox@bitbucket.org/dfm_mailmaster/mailmaster.git/'  


Answers:
author: somethingblue
body: Hi,

I've seen this behavior before and it was resolved by updating the Embedded Git via **Tools \> Options \> Git \> Update Embedded Git.**

Take a look at the closed Bug [SRCTREEWIN-7727: Lost ablity to authenticate](https://jira.atlassian.com/browse/SRCTREEWIN-7727) for more information. Please also review the comments if updating Embedded Git doesn't work as described for more options to resolve this and let me know the outcome.

Cheers,

Branden
Error generating password due to missing uuid and other error messages
Asked by Mujtaba Alam:

Hi,

I have recently been getting these errors, whenever I try and push my code through SourceTree to bitbucket.

**"Error generating password due to missing uuid. Please report this to Atlassian.**

**Something went wrong. one or more parameters required to renew token is nil.**

**Password encryption failed - key to** **encrypt password is unavailable (nil)**

**remote: Invalid username or password. If you log in via a third-party service you must ensure you have an account password set in your account profile.**

**fatal: Authentication failed for .."**

I also continue to get a prompt for me to enter Password Required

I have tried all your solutions online but nothing works. I am using MacOS sierra 10.12.16. I am using SourceTree 2.7.

Can you kindly help me?


Answers:
author: Ana Retamal
body: For the record, this is the bug Brian was referring to: [SRCTREE-5324](https://jira.atlassian.com/browse/SRCTREE-5324). You can watch it to get notified of further updates.

Cheers!

Ana


author: Scott Yelich
body: unacceptable, Atlassian.


author: Manju
body: In the meanwhile, can you please remove the account and re-add it in the preference window to see if that helps?

comments: author: Miril Chheda
body: I am getting the same error. I have tried deleting the file com.torusknot.SourceTreeNotMAS.plist and also removing my account. Nothing worked. Its very frustrating.

Any other suggestions ? Please fix via update ASAP.


author: bgannin
body: We're tracking this bug (the log was introduced to help track it down and prevent crashes) and hope to address it soon in a future update.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: Chris Lozac'h
body: It's been nearly a month. Has this issue been resolved? Any new workarounds, and/or an estimated release date for a fix?


author: Manju
body: Yes, we have an update.. Please use [this new build](https://drive.google.com/file/d/14087mHUzk90EyHbfDRlA6L1Uv8k7lvPH/view?usp=sharing) which we believe fixes the issue of UUID not found. Please do share your feedback after using the build whether or not it solves the issue.


Tags: mac
Push falied even my credentials are correct. Endless requirement to reconnect my account.
Asked by Egemen Hamut?u:

When I push a commit, it gives this error:

> Pushing to <https://bitbucket.org/blabla/blabla.git>
>
> remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
>
> fatal: Authentication failed for '<https://bitbucket.org/>blabla/blabla.git/'

<br />

My account is already defined in settings, but I have to go Preferences \> Accounts and reconnect my account entering the credentials. It gives me only one chance to push the last commit. Then when I want to push more commits, it gives the same error and I find myself in an infinite loop.

I tried to push in console, it also asks me my credentials before push. Where is the mistake that I miss?


Answers:
author: Manju
body: Can you please confirm what authentication method and protocol you are using when you add the account in Sourcetree?

comments: author: Egemen Hamut?u
body: Auth type: OAuth

Protocol: HTTPS

OS: MacOS

Update: I can now push commits via console without entering credentials, but GUI still fails.
How do I delete Pushes from Source Tree?
Asked by Adaryl Wakefield:

I got myself in some trouble here. I accidentally tried to push a big file and got an error. When I tried to reverse the commit, it just created another push. When i try to push, I blows up again. It's like there is a push log jam. How do I get rid of these unwanted pushes?

![push backup.JPG](/t5/image/serverpage/image-id/13085i760BC7FC2E31ECFB/image-size/large?v=v2&px=999 "push backup.JPG")


Answers:
author: minnsey
body: Hi   
The Push Indicator just reflects that your local copy of the repo is # of commits ahead of the remote.  

Assuming the just want to get rid of the last 2 commits, then you can right click on 3rd from last commit and choose "Reset current branch to this commit" and then decide if you want to keep any of the changed files or not, if not select the 'Hard' reset and your local repo will return to that state, before you committed the large file.  

For what its worth have you looked at Git-LFS for storing large files in Git?

comments: author: Adaryl Wakefield
body: I was finally able to test this and it worked. Thank you. I did look at Git-LFS and that didn't solve my immediate problem. Quite frankly, I don't think data files belong on GitHub at all which is what i was trying to push in the first place. There are better solutions to that.
Authentication failed
Asked by exawon:

Environment:

* macOS 10.13.2 (17C205)
* Sourcetree 2.7 (152)
* Embedded Git 2.10.1

Repository:

* origin: my own gitlab-ce repository
* upstream: <https://github.com/EpicGames/UnrealEngine.git>

Authentication when fetching:

![e63d6747-9e4b-481f-a2df-488e132a3b44.png](/t5/image/serverpage/image-id/13084i900E1CE8553616CD/image-dimensions/351x194?v=v2 "e63d6747-9e4b-481f-a2df-488e132a3b44.png")

Errors after input my password four times:

```
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch --prune origin
2018-01-23 10:41:45.269 git-credential-sourcetree[4565:607642] Something went wrong. one or more parameters required to renew token is nil.
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://xx.xx.xx.xx:xxx/xxxx/UnrealEngine.git/'
2018-01-23 10:41:47.231 git-credential-sourcetree[4578:607769] Something went wrong. one or more parameters required to renew token is nil.
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://xx.xx.xx.xx:xxx/xxxx/UnrealEngine.git/'
2018-01-23 10:41:47.948 git-credential-sourcetree[4585:607798] Something went wrong. one or more parameters required to renew token is nil.
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://xx.xx.xx.xx:xxx/xxxx/UnrealEngine.git/'
2018-01-23 10:41:48.660 git-credential-sourcetree[4592:607835] Something went wrong. one or more parameters required to renew token is nil.
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://xx.xx.xx.xx:xxx/xxxx/UnrealEngine.git/'
Completed with errors, see above
```

Please help me to fix this.

Thank in advance.


Answers:
author: Manju
body: If you've added your GitHub account in Sourcetree, can you remove it and add it back to see if it helps?

If not, please consider adding your GitHub account in Sourcetree and that should ideally resolve the issue. Before doing this, remove any keychain items for the account/repo in context.


Tags: github

mac
I had installed sourcetree and I get the follow error 3eeb1d03-1419-46f6-b623-a82105a7828d.
Asked by gget79:

I had installed SourceTree and I get teh follow error - 3eeb1d03-1419-46f6-b623-a82105a7828d


Answers:
author: bgannin
body: What version of Sourcetree?

What OS?
Pushing to Beanstalk fails with sourcetree but not with mac terminal
Asked by Peter Mingione:

I can't seen to push any of my beanstalk repos using sourcetree. The same push works fine with terminal (git push Beanstalk master). Here is the error that sourcetree returns:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags Beanstalk refs/heads/master:refs/heads/master  
Pushing to git@mdeany.git.beanstalkapp.com:/mdeany/tdc-welcome-email.git  
Permission denied (publickey).  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.  
Completed with errors, see above

Notice how is says, "Completed with errors". This is untrue. The push is not successful. My public key seems to be still there.

Help ????

-Pete


Answers:
author: Peter Mingione
body: Hi Manjunath,

I spoke too soon. Pushing to Beanstalk with SourceTree has stopped working again. I enter this command in terminal:

ssh-add -l

I get this response:

The agent has no identities.

I tried adding the public key again like this:

ssh-add \~/.ssh/id_rsa.pub

then I am asked for my passphrase:

Enter passphrase for /Users/pm-imac-home/.ssh/id_rsa.pub

But when I enter my computer user password I get:

Bad passphrase, try again for /Users/pm-imac-home/.ssh/id_rsa.pub:

comments: author: Peter Mingione
body: Also push is still working from terminal:

git push origin master

I am asked for my passphrase. and here it accepted.


author: Peter Mingione
body: Ah ok. I think I am supposed to add the private key. This works:

ssh-add \~/.ssh/id_rsa

I get the return:

Identity added: /Users/pm-imac-home/.ssh/id_rsa (/Users/pm-imac-home/.ssh/id_rsa)

But the question now is: Why do I continue to have to add the key to ssh-agent every time I restart my computer?


author: Manju
body: That's something that changed in the OS since Sierra. You can read more on how to get it work in Apple's Technical Note - <https://developer.apple.com/library/content/technotes/tn2449/_index.html>


author: Manju
body: Can you please confirm if the key is added to the ssh-agent?

You can list all your keys by running this in terminal

```
ssh-add -l
```

If none found, please add the key using this command

```
ssh-add <path_to_key>
```

Thanks!

comments: author: Peter Mingione
body: Thank you ... That fixed the issue.


Tags: beanstalk
Is it possible to hide branches under a 'folder'?
Asked by Mark Clark:

When you specify a branch name as 'root/branch-name' it nests all of those branches under that 'root' name. In my case that root name is 'Archive'.  

I don't want any branches nested under 'Archive' to display on the graph unless they are selected. All I can think of is pushing them to remote, then unchecking 'Show Remote Branches' but these aren't branches I want on my remote.  

It's possible I'm just approaching this the wrong way. Let me know if this is a thing or is even a reasonable suggestion as a feature. Thanks!


Answers:
author: bgannin
body: It's always worth noting your requests/workflows on either <https://jira.atlassian.com/browse/SRCTREE> (Mac) or <https://jira.atlassian.com/browse/SRCTREEWIN> (Windows) for the team to review and for other users to vote on and discuss ?
Where did "show all" option in bottom left browser panel go?
Asked by Paul Badger:

Is there a way to show all the files in a repo, instead of just changed files?  
There used to be a "show all" option in the sort filter list I think.  

Anyone know how to do that now?

Sourcetree 2.3.2 (75)

Mac OSX 10.12


Answers:
author: Paul Badger
body: Found it. Sorry for the post.

Like a lot of other users, I'm not loving the new interface.
I can push with SourceTree GUI, but not with Gitbash
Asked by Francis Vila:

Hi,

I created a project on GitLab and imported it into SourceTree. I can see the do **Staging** , **Commit** , **Push** in the GUI. I can do **add** , **commit** in Gitbash, but git **push** sollicits the response "**Permission denied**". I've tried peppering the .ppk files all over...


Answers:
author: Timothy
body: > I can do **add** , **commit** in Gitbash,

These are local client commands which you should have not issues with.
> but git **push** sollicits the response "**Permission denied**"

ppk files are putty specific files. You need to use Puttygen to extract the public and private keys from the ppk file and add them into the ssh agent:

* <https://stackoverflow.com/questions/3669001/getting-ssh-agent-to-work-with-git-run-from-windows-command-shell>
Failed to create remote repository: Repository with this Slug and Owner already exists.
Asked by gjaros:

Hello all,

I've been trying to create a repository but I run into this error. I have no idea how to fix it, I searched a bit here and there in this community but haven't been able to find an answer. Thanks in advance for your help!![Error.png](/t5/image/serverpage/image-id/13021i5FC56E719735A3CE/image-size/large?v=v2&px=999 "Error.png")


Answers:
author: Timothy
body: The error means of course means that wherever the remote repository is (e.g. Bitbucket Cloud, Github), a repository already exists. Go double check that.

comments: author: Chaitali Jadhav
body: We are getting similar error. We have deleted the workspace and project names. But we are still getting the error when we try recreate with the same names? Is this a permanently reserved name space now, or does the cache clear out on the the cloud host, after say 24 hours, and free that name for reuse?


Tags: error
OAuth error "Unable to get secret. Application not found"
Asked by Ken:

After i update BitBucker to the latestversion, i got OAuth error "Unable to get secret. Application not found". I reinstalled SourceTree and login with my google account, same error. Please fix

![](https://i.imgur.com/p13ndAa.png)


Answers:
author: Ana Retamal
body: Hi! Can you also answer the following so we can help you with this issue:

- What operation are you performing when you get that message?

- What Bitbucket Server version do you have?

- What Sourcetree and OS version are you using?

- Can you try a clean install of Sourcetree:

++Windows++

1. [Wipe Sourcetree preference](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html)s.
2. Uninstall Sourcetree (if it shows on the App\&Features list)
3. Backup then delete the directory below before proceeding with next step:
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local and delete Sourcetree \& Sourcetree-Settings folder
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian and delete all Sourcetree Files/ folder.
4. [Download SourceTree](https://www.sourcetreeapp.com/) and install it.

++Mac++

1. [Wipe Sourcetree preference](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html)s.
2. Uninstall SourceTree (if it shows on the App\&Features list)
3. Delete the directory \~/Library/Application Support/SourceTree
4. [Download SourceTree](https://www.sourcetreeapp.com/) and install it.

- Follow the steps at [Connect your Bitbucket account.](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html)

Let us know if it works after following the steps!

Best regards,

Ana

comments: author: Ken
body: **- What operation are you performing when you get that message?:** Trying to login with Google login or bitbucket login

**- What Bitbucket Server version do you have?:** 2.4.7.0

**- What Sourcetree and OS version are you using?** Win7 x64

Following these steps did not work. Still getting login failed error

![image.png](/skins/images/A34BD3BD7B61FC4C811EC7B7DD1555C3/responsive_peak/images/image_not_found.png)


Tags: error

login

oauth
Logging in to bitbucket
Asked by Nicole:

I've downloaded sourcetree and I want to log in but when I add my username it doesn't go any further then that and I don't get any errors.

When I'm installing sourcetree and I get to the section Log in to your Atlassian account and I click on use an existing account. I get the issue I mentioned abouve


Answers:
author: Ana Retamal
body: Hi Nicole! Do you get a blank screen? Can you send us a screenshot of what happens?

We've had similar cases in the past and the cause was that the user had an old version of Internet Explorer (Sourcetree relies on it for authentication). Can you confirm you're in the newest version?

If this doesn't solve your issue, can you let us know which Sourcetree version and OS are you using?

Cheers,

Ana
Source tree doesn't work on windows 10 (or just on mine).
Asked by juyoun:

I can't go further from the step as below.

Is it a known bug or something?

![error.JPG](/t5/image/serverpage/image-id/12986i9DD11533645BAA28/image-size/large?v=v2&px=999 "error.JPG")


Answers:
author: Ana Retamal
body: Hi Juyoun! Can you make sure you have the latest version of Internet Explorer installed? Sourcetree relies on IE for authentication and we've seen this issue in the past caused by an older version.

Let us know if this helps you!

Best regards,

Ana