youngmon/atlassian-qna huggingface dataset:
The Docker feature is not supported on this self-hosted runner's platform
Asked by Ramesh:

Hi   

I am running a self-hosted, linux-shell runner on my instance. when i tried to build docker images+containers for my app from my bitbucket pipeline I am facing the problem that "The Docker feature is not supported on this self-hosted runner's platform.". The error screenshot is attached below.  

![Screenshot from 2023-04-16 21-47-20-1.png](/t5/image/serverpage/image-id/252387i229B1DDF3C080D76/image-size/large?v=v2&px=999 "Screenshot from 2023-04-16 21-47-20-1.png")

Below is my bitbucket-pipelines.yml  

definitions:  
services:  
docker:  
image: docker:dind  
pipelines:  
default:  
- step:  
name: 'Step1'  
runs-on:  
- self.hosted  
- linux.shell  
script:  
- echo "1.This step of pipeline will run on a self hosted runner.";  
- docker version  
- echo "2.This step of dtf-chain-handler pipeline, has successfully executed.";  
services:  
- docker  

I am facing big challenges of running docker commands from my self-hosted, linux-shell runner. I have been looking for solution for this problem for several days, but I could not get any solution online even not in Atlassian docs. Please provide the solution for this as soon as possible.  
And also let me know if anyone has a solution/example to deploy the application on a instance where the runner is running without having separate instance to deploy or a separate deploy steps.  
Thanks,  
Ramesh


Answers:
author: Patrik S
body: Hello [@Ramesh](/t5/user/viewprofilepage/user-id/5197001) ,

Welcome to Atlassian Community!

The Linux Shell runners don't currently support using service containers, such as the docker service (see [Linux Shell Runners - Unsupported Features](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-linux-shell/#Unsupported-features)).

As the Linux shell runners run directly in a terminal session, if you would like to run docker commands as part of your build you will just need to make sure that **docker** is installed in the host machine, and it's not necessary to define the **services**section in the YML file, as the Linux shell runner will use the docker executable from the host itself. Following is an example YML file :

```
pipelines:
  default:
    - step:
        name: 'Step1'
        runs-on:
        - self.hosted
        - linux.shell
        script:
        - echo "1.This step of pipeline will run on a self hosted runner."
        - docker version
        - echo "2.This step of dtf-chain-handler pipeline, has successfully executed."
```

Another option, in case you want support for service containers in your build, is to use [Linux Docker runners](https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-use-runners-for-linux/), where the runner will run in a containerized environment. If you choose to use Linux docker runners and want to run docker commands in your build, then you will need to specify the **services: - docker**in the step, as you were doing in the example you have shared.

Hope that helps to clarify your questions!

Thank you, [@Ramesh](/t5/user/viewprofilepage/user-id/5197001) !

Patrik S


Tags: bitbucket-cloud

cloud
Can you help me in getting a SQL Query to get the all the commit with time by user?
Asked by ??????-?? ??????????:

I look for the table, where i could find all the commits in pull request with the authot of commits and date.


Answers:
author: Charlie Misonne
body: Hello!

Commits are not stored in the database.

Git is a file based system. When you have a repository on your local PC all information about branches and commits are stored in the .git directory.  
The same goes for Bitbucket. Bitbucket stores all you repositories in the server storage.

Luckily Bitbucket has a REST API that can be used for getting PR information. Take a look at this one, it might be what you need. [Get pull request commits](https://developer.atlassian.com/server/bitbucket/rest/v809/api-group-pull-requests/#api-api-latest-projects-projectkey-repos-repositoryslug-pull-requests-pullrequestid-commits-get). It returns a list of commits with the authors.

comments: author: ??????-?? ??????????
body: IF I understood you correctly, then it is impossible to get data about the commit and its author using sql query?


author: Charlie Misonne
body: Indeed. Because commits are not in the SQL database.


author: ??????-?? ??????????
body: Hmm, commits are on the database. Using PR_ID i could find all the commits in the pull request in the table BB_PR_COMMIT...and the challenge of author the commits, in the case the author of pull request and commits differ..:(


Tags: bitbucket-server

server
How to disable audit log database checking or handleing during upgrading bitbucket
Asked by Asia DevOps Team:

Hi everyone,

We need to upgrade bitbucket data center from v7.17.4 to v7.21.9.

Based on former experience, when the new software running first, it would check database and do some updates, our biggest part in database is **audit log table** and we are not sure whether this upgrading would check or update audit log table, if does, we think it would delay the upgrading process.

Since now, we don't find any information about audit log table handling in bitbucket upgrade guide, we don't know whether this upgrading would affect audit log table or not, if does, whether it supports to **disable audit log table handling and let us do it after the upgrade finished**?

Appreciating your suggestions, thanks.


Answers:
author: Christian Glockner
body: Hello,

You cannot suppress upgrade tasks that are required from running after an upgrade.

Cheers,

Christian  
Premier Support Engineer  
Atlassian

comments: author: Asia DevOps Team
body: Thanks a lot


Tags: bitbucket-server

server
why I can't create a new repository?
Asked by Mario Giovanni Peloso:

In my homepage of bitbucket i can't create a repository. in button create there is only the option snippet.


Answers:
author: Patrik S
body: Hello [@Mario Giovanni Peloso](/t5/user/viewprofilepage/user-id/5197972) ,

Welcome to the Atlassian Community!

You can only create new repositories under workspace/projects where you have Admin permissions. Checking internally I see your account has access to multiple workspaces but you do not have Admin access to all of them. Could you please confirm if you are trying to create the repository under the correct workspace?

You can change the workspace by going to your avatar in the top right corner, clicking on all workspaces, and selecting the desired workspace. After the workspace is loaded, you can try to create the repository again, and if you have admin access to that workspace, the option to create a repository should show up when you click on the **Create** button.

Let me know in case you have any questions.

Thank you, [@Mario Giovanni Peloso](/t5/user/viewprofilepage/user-id/5197972) !

Patrik S


Tags: bitbucket-cloud

cloud
I have a problem with pod update from private repository. I can push to that repo.
Asked by slava:

slavabily@slavas-MacBook-Pro master % pod update

Update all pods

Updating local specs repositories

$ /usr/local/bin/git -C /Users/slavabily/.cocoapods/repos/Spec fetch origin --progress

$ /usr/local/bin/git -C /Users/slavabily/.cocoapods/repos/Spec rev-parse --abbrev-ref HEAD

master

$ /usr/local/bin/git -C /Users/slavabily/.cocoapods/repos/Spec reset --hard origin/master

HEAD is now at b8fa96e Adding test change

Analyzing dependencies

Pre-downloading: \`DASEPlatform\` from \`<https://bitbucket.org/DASEapps/daseframework-ios.git>\`, tag \`v0.9.3.1_dase2.1_xcode12.5\`

Username for '<https://bitbucket.org>': slavabily@me.com

Password for '<https://slavabily@me.com@bitbucket.org>':

\[!\] Error installing DASEPlatform

\[!\] Failed to download 'DASEPlatform': \[!\] /usr/local/bin/git clone <https://bitbucket.org/DASEapps/daseframework-ios.git> /var/folders/s1/1zp41d297xb416dc2zh31l140000gn/T/d20230417-25436-x947rs --template= --single-branch --depth 1 --branch v0.9.3.1_dase2.1_xcode12.5

Cloning into '/var/folders/s1/1zp41d297xb416dc2zh31l140000gn/T/d20230417-25436-x947rs'...

remote: Login failed due to incorrect login credentials or method.

remote: If you are unsure of which login details or login method to use, visit:

remote: <https://support.atlassian.com/bitbucket-cloud/docs/log-into-or-connect-to-bitbucket-cloud/>

fatal: Authentication failed for '<https://bitbucket.org/DASEapps/daseframework-ios.git/>'


Answers:
author: Syahrul
body: G'day, [@slava](/t5/user/viewprofilepage/user-id/5197844) and Welcome to the community!

The error indicates that you are using invalid credentials. I can see that you use email address rather than a username. Please note that git CLI only support username and App Password as valid credentials.

You can find your username from the following link: <https://bitbucket.org/account/settings/>

As for Password, you can generate App Password following our guide at:

<https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

I hope this helps.

Cheers,  
Syahrul

comments: author: slava
body: Thanks a lot! All works!

Cheers,

slava


author: pooja_pandey
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) , I tried it locally and it was working. But builds are failing on circle ci in pod instal with same error. How to resolve this for circle ci builds?


author: Syahrul
body: Hey [@pooja_pandey](/t5/user/viewprofilepage/user-id/5519880)

I am unfamiliar with how CircleCI works, so I can't help you much there. However, if you face the same error as this thread, there are likely issues with your credentials.

I suggest verifying if your credentials are correct with the one you use to test locally as a start.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
getting spec file validation failed.
Asked by sumit singh:

INFO: Successfully updated the kube config.  
106
unable to decode "dev/deployment.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Labels: ReadString: expects " or n, but found 4, error found in #10 byte of ...|_commit":4.13e+298,"|..., bigger context ...|d_number":"103","[bitbucket.org/bitbucket_commit":4.13e+298,"bitbucket.org/bitbucket_deployment_envir|](http://bitbucket.org/bitbucket_commit%22:4.13e+298,%22bitbucket.org/bitbucket_deployment_envir%7C)...  
107
unable to decode "dev/deployment.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Labels: ReadString: expects " or n, but found 4, error found in #10 byte of ...|_commit":4.13e+298,"|..., bigger context ...|d_number":"103","[bitbucket.org/bitbucket_commit":4.13e+298,"bitbucket.org/bitbucket_deployment_envir|](http://bitbucket.org/bitbucket_commit%22:4.13e+298,%22bitbucket.org/bitbucket_deployment_envir%7C)...  
108
unable to decode "dev/deployment.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Labels: ReadString: expects " or n, but found 4, error found in #10 byte of ...|_commit":4.13e+298,"|..., bigger context ...|d_number":"103","[bitbucket.org/bitbucket_commit":4.13e+298,"bitbucket.org/bitbucket_deployment_envir|](http://bitbucket.org/bitbucket_commit%22:4.13e+298,%22bitbucket.org/bitbucket_deployment_envir%7C)...  
109
? spec file validation failed.


Answers:
author: Oleksandr Kyrdan
body: Hi [@sumit singh](/t5/user/viewprofilepage/user-id/5197289)

Thank you for your question!

Please provide us with bitbucket-pipelines.yml configuration details to help you.  

Best regards,  
Oleksandr Kyrdan


author: sumit singh
body: Earlier It was working fine but suddenly start getting the error


Tags: bitbucket-cloud

cloud
Unable to clone Git repository from Sourcetree
Asked by Manasa Polsani:

I've tried to clone a new repository on Sourcetree but I'm unable to proceed as it is throwing a fatal error. I checked Options under Tools on Sourcetree and it is using System Git.

![clone error1.PNG](/t5/image/serverpage/image-id/39962iCD41E4A185F96B6F/image-size/large?v=v2&px=999 "clone error1.PNG")

When I click the details button, a wiondow popped-up as below

![clone error2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/39967iF50DDE1CDE4F3049/image-size/large?v=v2&px=999 "clone error2.PNG")

Please look into this issue and kindly help.


Answers:
author: Ana Retamal
body: Hi Manasa, welcome to the Community!

Based on previous experiences, this error might be caused by Git. Can you go to **Tools \> Options \> Git** , and check whether you are using system or embedded Git, and whether you have an option to install an embedded Git.

While doing some research on this, I found [a workaround](https://github.com/lukesampson/scoop/issues/2167#issuecomment-399556334) that consists of creating a directory junction (hard link) for the embedded git Sourcetree tries to use.  
In `%userprofile%\AppData\Local\Atlassian\SourceTree` create a directory junction using elevated command prompt named `git_local` to point to scoop's git location `*path*\Scoop\apps\git\current`

    mklink /J %userprofile%\AppData\Local\Atlassian\SourceTree\git_local *path*\Scoop\apps\git\current

Then in source tree options, specify it to use embedded git.

Lastly, this problem was already reported in our issue tracker and you can follow it [here](https://jira.atlassian.com/browse/SRCTREEWIN-7964) for more updates.

Hope that helps!

Ana


Tags: windows
Bitbucket source tree authentication issue
Asked by Jagadeesh:

Hi Team,

When we are trying to access any branches from bitbucket sourcetree we are not able to access and giving an alert to provide login credentials. Once after providing valid credentials also we are getting the same can you please help on the same.


Answers:
author: minnsey
body: Hi  

Please make sure you are running Sourcetree 3.0.12 and preferably install Git 2.19.2 and configure Sourcetree to use that install in its Tools/Options/Git tab as a System Git.  

There have been a few issues with the Git Credential Manager that ships with Git for Windows recently, v1.18.3 which is included in Git 2.19.2 seems to be much better.  

Additionally if you are using Mercurial, Sourcetree 3.0.12 includes updates to cope with TLS 1.2 and the recent removal of TLS 1/1.1 from Bitbucket.
Atlassian User Account Details Not accepted when trying to pull/push to remote repository.
Asked by PaulFrame85:

My Sourcetree version is 30.0.12.2543 on Windows 10.

I can login to Atlassian in order to manage my repositories using BitBucket on the web, but when I try to pull or push to my branch using Sourcetree the software says that my account details are invalid.


Answers:
author: PaulFrame85
body: This is the error i get when prompted to login when trying to push a commit from local to the remote

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin  
fatal: AggregateException encountered.  
One or more errors occurred.

fatal: AggregateException encountered.  
One or more errors occurred.

remote: Invalid username or password  
fatal: Authentication failed for '\[Branch URL\]'

Completed with errors, see above.
Unknown error when I commit something
Asked by makrem ayeb mrabtini:

I am facing a problem that when I try to commit I get that error:  

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/\*\*\*\*\*/AppData/Local/ATLASS\~1/SOURCE\~1/GIT_EX\~1/GIT-CR\~1.EXE" commit -q -F C:\\Users\\\*\*\*\*\*\\AppData\\Local\\Temp\\gagvnqh4.yk4

any help would be appreciated.


Answers:
author: minnsey
body: Hi  

The one you have posted up is just the git command Sourcetree calls when running a commit, not a push. Does that commit succeed or is there more error messages after that?  

We're you trying to do a commit + push ?

comments: author: makrem ayeb mrabtini
body: Hi Michael Minns  

thanks for your replay  

i wanted to say "commit" not "push" that's my fault  

so sourceTree showed me this line then all my files after that, i didn't find any exception.


author: minnsey
body: OK, so that message isn't an error, it is just the expected message.  

What state is your repository in before or after that? I can't see a problem at the moment.


author: makrem ayeb mrabtini
body: I deleted some folder from my repository , then i succeed to commit

<br />

But i don't understand why sourceTree don't accept him


author: minnsey
body: Can you explain more, what files you had to start with, what you then did to them, e.g. deleted, and then what you expected to happen when you committed and what actually happened?  

Also are you using a staging/un-staging view of the files to be committed?
Sourcetree Windows 3.0.12 no longer force push
Asked by kxk4xyh:

I updated to 3.0.12 this morning, and ever since I can no longer do a force push, which I often use in combination with Amend latest commit. The option is enabled in Options, Git. And I also checked/unchecked 'Use Safe Force Push'.

When the checkbox for Force Push is checked, and I click 'Ok' in the Push window, the window closes but nothing happens.

The workaround I found is to manually enter the git command: when I manually do "git push --force etc" the push is executed. There is no error.


Answers:
author: Andrew Kessel
body: I was seeing the same issue. Here is a workaround inside SourceTree itself instead of via the command line:

Open the SourceTree Options, go to the Git tab and uncheck the "Check submodules before commit \& push" option.

You should probably not use this workaround if your submodules are under active/frequent development, but if they're relatively stable, then it should be safe.

I don't know the underlying reason this is happening, but at least this should allow you to force push again.


author: minnsey
body: Hi  

Is there anything indicating an error in the console? You can make sure the console stays open by checking the '*Always display full console output'* option in the Tools/Options/General tab

comments: author: kxk4xyh
body: No, there is nothing indicating an error in the console. I have checked '*Always display full console output* ' now. After clicking on the button '**Push**' the Submodule check window is shown very briefly. It's almost as if it finds there is nothing to push. My local branch is checked by the way.


author: David Worsley
body: I have been experiencing exactly the same thing since upgrading to 3.0.12. I would appreciate any suggestions.


author: minnsey
body: Does the repository have submodules? If so are your changes in the parent or submodule?


author: David Worsley
body: In our case, yes, the repo has one sub-module. The failed force pushes have been to the parent, however.


author: Sylvain Duchesne
body: Same issue here, and it seems to only be when projects have submodules


author: minnsey
body: Thanks for the information I've raised the following ticket, please add any additional details there.


author: stefan-unimaze
body: Any update on this problem?


author: Preben Fihl
body: Link to the issue (if someone else is looking for this):

<https://jira.atlassian.com/browse/SRCTREEWIN-11297>


author: Shawn Fox
body: It is still a problem using source tree 3.4.17. Using the force push option as a work around does still work for me. The application provides no feedback as to what the problem is. Is simply doesn't respond to the request after pushing the button to push changes.


author: Florin ION
body: Same issue here, regarding force-push, using source tree 3.4.17 :(  
Is there a workaround?
Sourcetree how to remove a tab permanently?
Asked by Thi?u t? Ph?m Xu?n B?ch:

How to remove a tab permanently?

I do create a tab for testing.

Then I close it and create my tabs for work.

When I click the plus sign to add new tab, I only see my working tab in "Local repositories", the testing tab is not there.

But now everytime I open sourcetree, that testing tab always show, and it load too long, make sourcetree hangs.

So how to remove that tab permanently?

My sourcetree version is 3.0.12 windows 10 x64.

I search and see[this topic](https://community.atlassian.com/t5/Sourcetree-questions/How-can-I-permanently-remove-this-mysterious-tab/qaq-p/182100#U958491) saying use the bookmark bar, but can't find the bookmark bar in sourcetree as in atlassian knowledge base:

<https://confluence.atlassian.com/sourcetreekb/bookmarks-column-repository-browser-overview-781398414.html>


Answers:
author: Thi?u t? Ph?m Xu?n B?ch
body: Today I found a workaround for this.

After reading [this topic,](https://stackoverflow.com/questions/4754152/how-do-i-remove-git-tracking-from-a-project) I go to the folder in the "ghost" tab, delete the**.git** folder, (and all mapped subfolder).

Then the "ghost" tab has gone.

Restart sourcetree and that tab never open again.


author: Sih-Ying_Wu
body: I've been having this problem for a while, in the source tree I clicked the explore icon, and this shows me where the the .git folder is. I deleted the .git folder and all mystery tab is gone. It is correct that sourcetree now walks through the root directory and search for all .git folder, adding them to the tab.


author: minnsey
body: Hi  

If you close a tab before closing Sourcetree it should **not** re-open it. However if it appears to be doing it then it can only really be one of two reasons.  

Sourcetree is being open from the test repository folder, e.g. doing

\> sourcetree.exe .

This will request sourcetree to open and open a tab for a repository based on the current folder.  

Alternatively the open tabs are recoded in %localappdata%/Atlassian/Sourcetree/opentabs.xml. Closing sourcetree and deleting that should ensure now old tabs are re-opened when sourcetree re-opens.

comments: author: Thi?u t? Ph?m Xu?n B?ch
body: Hi [@minnsey](/t5/user/viewprofilepage/user-id/502201)

Thks for your answer, but:

+ My sourcetre is being open from C:\\Users\\user_name\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Atlassian

+ I try deleting the opentabs.xml but when open sourcetree, that tab appear again, and then it auto create/adding that tab to opentabs again.

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


author: minnsey
body: Is the repository at the c:\\ drive level?  

When Sourcetree opens it will walk the directory structure up looking for .git folders, so if there was a .git folder in any of these folders it would cause Sourcetree to open that view  

C:\\Users\\user_name\\AppData\\sourcetree\\app-{version}
Feature disappearing
Asked by glerler01:

Discovered something strange. If I create a feature branch and use a forward slash "/". It is named "feature/...../...". When you go to finish it wants me to finish but the branch disappears from the list to finish. I corrected by renaming the feature branch removing the /. No errors go thrown


Answers:
author: minnsey
body: Hi   

Thanks for the feedback, we will investigate. I have created the following issue for you.  

[SRCTREEWIN-11006 - Git-flow feature with / in the name can't be completed](https://jira.atlassian.com/browse/SRCTREEWIN-11006)