From ff6c5aa2fe2c994bf20b4f799657bcd950c00d41 Mon Sep 17 00:00:00 2001 From: ArsHaider <104385372+ArsHaider@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:49:26 -0500 Subject: [PATCH] Adding KB article on PHP buildpack filed to clone git repository issue. (#2574) * Adding KB article on PHP buildpack filed to clone git repository issue. * Update 2024-12-02-php-buildpack-failed-to-clone-git-repository-issue.md Signed-off-by: ArsHaider <104385372+ArsHaider@users.noreply.github.com> * Update _kbarticles/2024-12-02-php-buildpack-failed-to-clone-git-repository-issue.md Co-authored-by: Mark Boyd Signed-off-by: ArsHaider <104385372+ArsHaider@users.noreply.github.com> * Update _kbarticles/2024-12-02-php-buildpack-failed-to-clone-git-repository-issue.md Co-authored-by: Mark Boyd Signed-off-by: ArsHaider <104385372+ArsHaider@users.noreply.github.com> * Update _kbarticles/2024-12-02-php-buildpack-failed-to-clone-git-repository-issue.md Co-authored-by: Mark Boyd Signed-off-by: ArsHaider <104385372+ArsHaider@users.noreply.github.com> * Update _kbarticles/2024-12-02-php-buildpack-failed-to-clone-git-repository-issue.md Co-authored-by: Mark Boyd Signed-off-by: ArsHaider <104385372+ArsHaider@users.noreply.github.com> --------- Signed-off-by: ArsHaider <104385372+ArsHaider@users.noreply.github.com> Co-authored-by: Mark Boyd --- ...dapts-to-dynamic-cybersecurity-threats.md} | 0 ...ck-failed-to-clone-git-repository-issue.md | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+) rename _kbarticles/{2024-24-01-how-cloud.gov-continually-adapts-to-dynamic-cybersecurity-threats.md => 2024-01-24-how-cloud.gov-continually-adapts-to-dynamic-cybersecurity-threats.md} (100%) create mode 100644 _kbarticles/2024-12-02-php-buildpack-failed-to-clone-git-repository-issue.md diff --git a/_kbarticles/2024-24-01-how-cloud.gov-continually-adapts-to-dynamic-cybersecurity-threats.md b/_kbarticles/2024-01-24-how-cloud.gov-continually-adapts-to-dynamic-cybersecurity-threats.md similarity index 100% rename from _kbarticles/2024-24-01-how-cloud.gov-continually-adapts-to-dynamic-cybersecurity-threats.md rename to _kbarticles/2024-01-24-how-cloud.gov-continually-adapts-to-dynamic-cybersecurity-threats.md diff --git a/_kbarticles/2024-12-02-php-buildpack-failed-to-clone-git-repository-issue.md b/_kbarticles/2024-12-02-php-buildpack-failed-to-clone-git-repository-issue.md new file mode 100644 index 000000000..aa2a43eee --- /dev/null +++ b/_kbarticles/2024-12-02-php-buildpack-failed-to-clone-git-repository-issue.md @@ -0,0 +1,22 @@ +--- +layout: post +title: "PHP buildpack failed to clone git repository issue" +date: December 02, 2024 +excerpt: How to resolve the PHP buildpack failed to clone git repository issue +--- + +On December 2nd, 2024 it was brought to our attention that Cloud.gov customers attempting to push or restage applications using PHP buildpack versions 4.6.24 and above were experiencing a “Failed to clone git repository at https://github.com/cloudfoundry/php-buildpack” error. + +The reason why this issue is occurring is because the recently updated buildpack versions are trying to clone some git submodules over SSH instead of HTTPS. Cloud.gov supports HTTPS egress for buildpacks during staging, not SSH, as such the buildpack is unable to be fetched and the staging process fails. An [issue](https://github.com/cloudfoundry/php-buildpack/issues/1110) with the PHP buildpack has already been posted to the CloudFoundry GitHub. + +The solution to this issue is pin the version of the buildpack that you are using with your application to version 4.6.23 or a prior version. + +To pin the buildpack version, specify the buildpack version URL in your application manifest under the `buildpacks:` attribute as shown below. + +```yaml +buildpacks: +- https://github.com/cloudfoundry/php-buildpack#v4.6.23 +``` + +If you encounter any difficulties deploying this solution or have any questions, please contact +[{{site.support_email_address}}]({{site.support_email}}) and we would be happy to assist you.