youngmon/atlassian-qna huggingface dataset:
How do i fix a pipline compose php version problem?
Asked by krsrk_:

When the pipelines executes it throws a php error version requirements:  
**`Problem 1`**

**- Root [composer.json](https://bitbucket.org/kodei/oblik/src/aa467d4c78f528ac0af9453ec424b94f0cd77aee/composer.json) requires php ^8.1 but your php version (8.0.6) does not satisfy that requirement.**  
**How do i fix that?**  
`I'm using the composer image: `**composer:2.0**  
With a PHP pipeline bitbucket template.


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

Just to give you some context, Pipelines builds run in Docker containers. For every step of your build, a Docker container starts (the build container) using the image you have specified in your bitbucket-pipelines.yml file. We support public and private Docker images including those hosted on Docker Hub, AWS, GCP, Azure and self-hosted registries accessible on the internet.

If you are using **image: composer:2.0**, then the following Dockerhub image will be used with the tag 2.0:

* <https://hub.docker.com/_/composer>

If you select the tab **Tags** on that image's page, you will see that there are newer tags (versions of this image).

I see that composer:2.1 has PHP 8.1.1 installed, composer:2.5 has PHP 8.2.5 installed. You can try using any of these images in your bitbucket-pipelines.yml file.

If you have Docker installed on your computer, you can check the php version in a certain Docker image by running first the following command on a terminal on your computer:

```
docker run -it --entrypoint=/bin/bash composer:2.5
```

where composer:2.5 you can replace with any other Docker image and tag you want to check. This will start a Docker container based on this image and a bash prompt when the container starts. In the bash prompt of the container, you can run **php --version** to see what version of php is installed in that specific container.

Please feel free to let me know if you have any questions!

Kind regards,  
Theodora


author: Mia Paulin
body: [@mention](/t5/user/viewprofilepage/user-id/732788) Learned this from my mentors at Data center, server and Trello, so I'm going to answer this and make them proud! The version of the software you are using needs a more current version of PHP, 8.1 or higher. You have 8.0.6 which is an older version. Upgrade your version of PHP and back/save files you have and it should work.


Tags: bitbucket-cloud

cloud
detected dubious ownership in repository
Asked by ORT JIRA ADMIN:

Hi, ever since I upgraded our Bitbucket I received the "detected dubious ownership in repository error".

I tried following the kb article and the --global and --safe commands, but no luck.

Does anyone know how to exactly fix this issue?

<br />

I am using Bitbucket for JIRA Server, not the cloud option


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@ORT JIRA ADMIN](/t5/user/viewprofilepage/user-id/4241970) ,

based on the following article (<https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html>) that command should be executed at server side level. Did u perform that command there?

Fabio


Tags: bitbucket-server

server
Unable to push via ssh
Asked by Ricardo Cabezas G?mez:

**I get the following from**

```
ssh -T git@bitbucket.org:

authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
```

**I can pull, I can clone but i can't push:**

```
sudo git push -u origin master
git@bitbucket.org: Permission denied (publickey).
fatal: No se pudo leer del repositorio remoto.

Por favor aseg?rese que tiene los permisos de acceso correctos
y que el repositorio existe.
```


Answers:
author: Ricardo Cabezas G?mez
body: Hi, [@Erez Maadani](/t5/user/viewprofilepage/user-id/5018344)

It's the second option.  
How can I give it write access?

Thanks!

comments: author: Erez Maadani
body: Hi [@Ricardo Cabezas G?mez](/t5/user/viewprofilepage/user-id/5201003)

If you added the key to your account, you would need to check the "User and group access" under you repo/project settings.

If you added the key under access keys, it will be read-only by definition.


author: Erez Maadani
body: Hola [@Ricardo Cabezas G?mez](/t5/user/viewprofilepage/user-id/5201003)

Try running: git remote -v

And make sure the push url is the same as the fetch url.

Another option might be that your public key / account has read only access.


Tags: bitbucket-cloud

cloud
Unable to Login to Bitbucket - We couldn?t log you in
Asked by keith bartolotta:

Hi, {#toc-hId--468720240}
-------------------------

I am getting following error when login to bit bucket account.

"You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."

I already tried all methods (clearing cache and cookies, etc.) and all browsers (edge, chrome, Firefox). for me Trello is working properly. I am having issue with Bitbucket alone.

1) Whenever I try to login the below error page is shown but when clicking the Bitbucket link it goes to dashboard page.(2)

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

2) After moving to dashboard page , the page keep on asking username and password ( \*enter credentials also not working). even after canceling the popup box , it will keep on asking username password for 3 or 4 times.

![bitbucket login issue.png](https://community.atlassian.com/t5/image/serverpage/image-id/175350i10F60F90797CB521/image-size/large?v=v2&px=999 "bitbucket login issue.png")

3) After cancel the sign in pop box ,if i click any of the link in the dashboard .again it goes to step (1)

Thank you for your attention to this issue.

Keith


Answers:
author: Ben
body: G'day Keith!

Welcome to the Bitbucket Cloud community! :)

I have checked your account and can see that it is active (usually a de-activated account shows the error message you have reported).

Are you able to try a different browser with add-ons disabled (or alternatively Incognito mode in Google Chrome)? We have seen the error occur mostly with Brave Browser (unsupported) but other browsers can be affected as well.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
API endpoint for rerun stopped steps
Asked by Akshay Shrivastava:

Hello,

To stop a pipeline bitbucket REST API provides an endpoint repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/stopPipeline/, but there is no endpoint to rerun the pipeline from where the pipeline has stopped. So, is there any other way to rerun the stopped steps using another approach?


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

I'm afraid that we don't have an API endpoint for rerunning a stopped step in a Pipelines build.

It is possible though to rerun it from the Pipelines build log on our website. If the pipelines build consists of multiple steps and it is stopped, you can open the build from our website, select the **Rerun** option, and then **Rerun stopped steps**:

![Screenshot 2023-04-21 at 16.23.34.png](https://community.atlassian.com/t5/image/serverpage/image-id/253284iBFC74E1A27D8D1F8/image-size/large?v=v2&px=999 "Screenshot 2023-04-21 at 16.23.34.png")

With the API, it is only possible to trigger a new Pipelines build using this endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-post>

We have a feature request for providing an API endpoint to start a step:

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

I would suggest adding your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora

comments: author: Akshay Shrivastava
body: Thank you for providing me with that information, [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)


author: Theodora Boudale
body: You are very welcome [@Akshay Shrivastava](/t5/user/viewprofilepage/user-id/5200877), please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
client_loop: send disconnect: Broken pipe. Could not push the commits.
Asked by Raj:

I have recently updated the Rails app and have updated the gems as well. We always pushed the cached gems as well. Before also I have done rails upgrade with gems update and it was working. Now, I am not able to push and got the error:

Enumerating objects: 194, done.  
Counting objects: 100% (194/194), done.  
Delta compression using up to 16 threads  
Compressing objects: 100% (131/131), done.  
client_loop: send disconnect: Broken pipe  
send-pack: unexpected disconnect while reading sideband packet  
fatal: the remote end hung up unexpectedly

All code changes, I can push but not the updated gems.

I tried to push one gem at a time also but it is not working.

Did we hit the repository size limit? We are on the free plan. In the repository, the size is displayed as 267.62MB.


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

Thank you for reaching out to Atlassian Community!

From the symptoms you have described, this seems to be a local network issue, as your repository is far from the 4GB size limit. That being said, I would like to clarify a few questions to better understand the issue :

* What is the total size of the files you are trying to push?
* Is it happening in a particular network? Could you try using a different network(cellular network, for example) and verify if the same issue happens?
* Does it happen only for your user, or other users are also affected by this?
* What is the protocol you are using, HTTPS or SSH? Could you try to switch the protocol and check if the issue persists?

If you have any questions, feel free to ask.

Thank you, [@Raj](/t5/user/viewprofilepage/user-id/3772859) !  
Patrik S

comments: author: Raj
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

Thank you for your response.

It worked when I try with a different network.

Kind regards,  
Raj


Tags: bitbucket-cloud

cloud

git

git-push
Perforce report to Bitbucket - possible to split up into multiple repos?
Asked by Allen Huffman:

We had a Perforce repo that contained many directories for different projects. We migrated it to Bitbucket late last year, and I still have one repo with all those project directories.

A coworker was in the midst of moving things in to individual repos before he moved on to greener pastures, and now I am revisiting this project.

I really only care about version history for the individual files. For example, we might have:

* Windows/Host
* Boards/Board1
* Boards/Board2
* Boards/Board3

There are many times when we made a chance to add a message to Board1, Board2 and Board3, and also support to use that message in the Windows host program. As such, the Perforce check in history (and newer Bitbucket commits) will have a check in that goes to different folders that ideally we'd split up.

If my path was Development/Project/Boards/Board1/src, inc, etc.

Ideally I might want to make a new repo called "Board1" that has those files at the root. But I suspect that will break all the file history, since they are linked to a path/place rather than the file.

Suggestions on what to read up on in the Bitbucket/Git documentation would be greatly appreciated.

Thanks!


Answers:
author: Aron Gombas _Midori_
body: It sounds you were using a so-called *monorepo* approach with Performance. If you were happy with that, you can continue the same approach also with Git!

There are many articles with pratical tips on the web, just Google for "monorepo git":

* <https://about.gitlab.com/blog/2022/09/06/speed-up-your-monorepo-workflow-in-git/>
* <https://www.gitkraken.com/blog/git-multi-repo-vs-git-mono-repo>
* <https://github.blog/2021-11-10-make-your-monorepo-feel-small-with-gits-sparse-index/>

First tip: Git supports "sparse checkout" to clone only a subdir of the monorepo.

comments: author: Allen Huffman
body: I guess I know it works under Git since that's how we've been using it since we migrated to Bitbucket, but...

The way Perforce works, where you just "get" the files you want to work on, it wasn't a big deal.

The way Git works, where it pulls down every file and all versions (or so it seems), it's not ideal. I don't like having to pull down hundreds of thousands of files to work on a project that is made up of five source files and a few headers. I'll look in to **sparse checkout**.

I still do not like the "kitchen sink" approach of a monorepo (yay, I learned a new term today) but a sparse checkout might solve my major issue with it.


author: Allen Huffman
body: Side thought: I wondered about cloning the repo multiple times, then just deleting anything I no longer wanted to keep. I suspect there is a way in Git to jettison the deleted folders so they don't live on forever.

But, if I did that, and ended up with just one folder:

Development/Project/Boards/Board1

...I couldn't move that back to the root without breaking all the history links, could I?


Tags: bitbucket-cloud

cloud

perforce
Pull Request Disabled
Asked by Ittay Eyal:

I downloaded sourcetreeenterprise 3.0.8. How can I do Pull Request directly from the app?


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

Many times, the answers you're looking for were already posted from someone in the Community. I'd advise that before you post your question you do a search, as this will save you time and will provide you with a response much sooner. After all, that's what the Community is for! Someone already answered here:

<https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-configure-a-pull-request-in-source-tree/qaq-p/1860>

If you still have questions, let us know! We're glad to help.

Kind regards,

Ana


Tags: pull-request

sourcetree-enterprise

team-foundation-studio
Sourcetree Start Menu Icon missing from Enterprise Installer
Asked by Harry Caskey:

We looking to deploy the latest version of Sourcetree 3.0.8, but it looks like this is still a bug. We are using SCCM to deploy the install, but the MSI does not create the shortcuts after being installed.

We can script the installer to manually create shortcuts, by creating a shortcut and then copying it after the installer has completed. However, I would prefer the MSI to work properly and create these shortcuts. Is this a known bug?

For reference, our install string is:  
msiexec.exe /i SourcetreeEnterpriseSetup_3.0.8.msi ACCEPTEULA=1 /qn


Answers:
author: minnsey
body: The MSI is a minimal setup to create a Enterprise friendly installer, as such we expect to build upon it.  

As such it does not create a shortcut currently.

comments: author: Harry Caskey
body: [@minnsey](/t5/user/viewprofilepage/user-id/502201),

Regardless of the reason, that doesn't make much sense. If you are installing the application, you would intend that your users can use the software. Having access to the shortcuts makes sense.

Could you please add the shortcuts to the next MSI installer? We have some requests to make this available to our users, but this installer doesn't work correctly like all the other MSI's we deploy.

If it helps, the Start Menu shortcuts for all users can be found here: ("C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs")


Tags: sourcetree-enterprise

windows
SourceTree 3.0.12 won't install on Windows 10. Squirrel Updater: --install fails immediately
Asked by Steve Shireman:

I do not have a previous SourceTree installed. and I have tried every hack I could find. I veified that .Net 4.7 is installled.


Answers:
author: minnsey
body: Is anything installed to %localappdata%/Sourcetree ?  

There should be   

%localappdata%/Sourcetree/app-3.0.12 that contains all the program code.
What does this window mean? (Mac)
Asked by Eugene Kubesh:

I don't know what's the problem with my copy of source tree, but I have window with strange authentication for some strange service about 10 times each day and it is like an ass pain!

I have latest version of SourceTree 3.0.1 (205), I have not any accounts what could be connected to source tree, I DO NOT USE VISUALSTUDIO AT ALL!

![Screenshot at Dec 14 14-53-54.png](/t5/image/serverpage/image-id/40337i6F498FFDD70B3AEF/image-size/large?v=v2&px=999 "Screenshot at Dec 14 14-53-54.png")


Answers:
author: bgannin
body: Hi Eugene,

This occurs when Sourcetree is attempting to check a remote repository's status and isn't able to do so. In this case it's inferred a remote URL of VS for the repository and is prompting for authentication to do so (which doesn't work because there's never a successful authentication + save.) It's not related to what accounts are present or not. Please check the remotes in the repository's Settings and see what's there, editing or removing any incorrect entries, and let us know if there's still a problem.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: Eugene Kubesh
body: Yeah... Thank you very much! I found this problem in my \~40 repos and I don't remember where and how I added this repo :D Thank you!
How to use SourceTree to convert a local folder to a git repo
Asked by Francis Barton:

Hi - here is what I want to do. I have a local folder with some files in it (not currently a git repo). I want to use SourceTree to use this folder as the site of a new repo, i.e. do the equivalent of 'git init' and then add the folder as a new remote repo on my BitBucket account. When I tried to do this, by doing "Clone/New... \> Create" ,SourceTree complained that the local folder already had files in it.

???

My expectation was that SourceTree would have this kind of job as one of the basic tasks it would be capable of, to make creating new repos easy, without using the command line or going to the Bitbucket web interface. Maybe I am wrong.

What, if anything, am I doing wrong in this situation? Or does SourceTree not after all have this functionality?

Edit: OK so I found this page that covers what I want to do: <https://confluence.atlassian.com/bitbucket/add-unversioned-code-to-a-repository-877177133.html> - it would seem that you have to do the git init stuff from the command line; SourceTree can't do this for you. I don't mind the command line at all, I just thought that SourceTree would save me the trouble.


Answers:
author: Ana Retamal
body: Hi Francis!

I see you found your answer already. Sourcetree won't be able to initialize git repositories, you'll need to do that on the terminal and then Sourcetree will be able to work with them.

Have a good day!

Ana

comments: author: Francis Barton
body: Thanks Ana.

Is this a feature that SourceTree will be able to have in future, or is there some conceptual reason why it won't ever be able to do the init thing? It would be a helpful feature, I feel.
Sourcetree stopped working (WinGit still works)
Asked by derekmagee:

I have a bitbucket repository and in the last week SourceTree won't pull or push to it. WinGit works fine, but both the GUI SourceTree and command line Git you get by Action-\>Open in terminal give the login prompt but indicate failure when the password is typed in. The command line one says:

"Logon failed, use crl+c to cancel...."

I can log on fine to the website, and WinGit and git in cygwin works fine.

However, on another computer GitEye seems to have stopped working on this repo too, The error here is cannot open "git-receive-pack". Again cygwin command line git works fine with the same PC/repository.

Both use the https URL.

Thanks

D.


Answers:
author: minnsey
body: If you haven't already can you upgrade to Git 2.19.2/Git Credential Manager 1.18.3?  

Thanks

comments: author: derekmagee
body: I've upgraded windows git (<https://gitforwindows.org/>), sourcetree, git credential manager (<https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases> via the exe installer and via copying the .zip contents into the \~\\AppData\\.. folder as the installer didn't seem to upgrade that version) and it still just keeps giving me the Atlassian login, popping up repeatedly when I type the password. The upgraded windows command line git still works fine.

Actions-\>open in terminal is now broken. A window flashs up briefly before disappearing. This happened when I upgraded SourceTree, before i upgraded Git for windows.


Tags: bitbucket
cannot checkout one repository. All other repositories work well, but one does not.
Asked by Val Moroz:

```
git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/vmoroz/AppData/Local/ATLASS~1/SOURCE~1/GIT_EX~1/GIT-CR~2.EXE" clone --branch master --recursive git@bitbucket.org:airinternational/fmc_release.git C:\AITS\GIT\FMC\FMC_Release
Cloning into 'C:\AITS\GIT\FMC\FMC_Release'...
FATAL ERROR: Server unexpectedly closed network connection
fatal: early EOF
fatal: The remote end hung up unexpectedly
fatal: index-pack failed
```

<br />

Completed with errors, see above.


Answers:
author: minnsey
body: Hi  

There are some suggestions here: <https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning>

If you haven't already I would suggest updating to Git 2.19.2
Sourcetree installation using Chocolatey just downloads the msi file and does not install it
Asked by ashnamalhotra:

With the latest version of Sourcetree, when trying to install using Choco, it just downloads the msi file but does not actually install it. I get the msi file of Sourcetree version 3.0.8.

When launching the installer, it gives me the option to **Change** the features installed, though I have uninstalled my earlier version. Is this caused because of some installed versions conflict? How to resolve it?


Answers:
author: minnsey
body: Hi  

Atlassian does not maintain the Chocolatey package, please contact the maintainers listed here <https://chocolatey.org/packages/SourceTree>
Azure DevOps login
Asked by Shinya YOSHIDA:

I would like to add my AzureDevOps account on SourceTree but couldn't get login.

I just tried to add my account but it seems it doesn't accept my password nor personal access token.

Please anyone let me know how to setup Azure DevOps account on SourceTree?

![AccountWindow.png](/t5/image/serverpage/image-id/40169iA1FC44C130981CB3/image-size/large?v=v2&px=999 "AccountWindow.png")![Error.png](/t5/image/serverpage/image-id/40170i53DF3C4819B368FB/image-size/large?v=v2&px=999 "Error.png")


Answers:
author: Ai Hirama
body: ?????????????????????????

??????????????SSH???Sourcetree?????????????????????

?????????????SSH???????????????????????????????

comments: author: Shinya YOSHIDA
body: ???????????????HTTPS???????????????????????SSH???????????????????????


author: Ai Hirama
body: ??????????????????

SSH?????????????????????????????????????MS??????????????????????????????

<https://docs.microsoft.com/ja-jp/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=vsts>


Tags: azure

language-ja