-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: sam init
error: "could not clone repo" (non-zero exit status 128)
#7408
Comments
sam init
error: "could not clone repo" (non-zero exit status 128)
Just to shed a bit more light on this, I compared the installations between Windows and WSL, and they differ substantially: Windows
WSL
The What confuses me is that it still seems to be executing (otherwise I don't see how the error itself would even occur) - but I can't identify where from. |
Hi @mcalligator , thank you for reporting the issue. For
Also it would be useful to confirm where git was installed by running |
Hi @dkphm, thanks for your reply. Here are the outputs as requested.
And
No more symlinks, so
That all looks OK to me; I can't see any WSL-specific gotchas there. But happy to keep digging as advised! |
Hi @mcalligator thanks for the info. I was able to reproduce the issue. Looks like there is something wrong with calling git under ArchLinux WSL. We will investigate more and let you know once this is fixed. |
Not just WSL. I'm encountering the same issue on my ArchLinux hosts with |
I see, thanks for the info @IrishPrime |
Thanks @dkphm - looking forward to hearing what you discover about SAM CLI deployment to Arch Linux, and how to fix this. |
Are there any updates you can share @dkphm? |
Hi @mcalligator, thanks for reporting the bug and providing the details. The following issue has been marked as a bug and added to our backlog. The team will be tackling the bug based on the priority we follow. |
Hi @mcalligator, sorry for the late reply. From my testing (on WSL), looks like even though the CLI throws an ERROR, but everything seems working fine for me (I still have the template on my machine and was able to |
Also seeing this on Fedora 40 and sam v1.125.0 Downgrading to sam v1.121.0 stops this issue, so it must be something introduced after this release? |
Thanks for the info @adds68 , looks like this is the known issue with OpenSSL 3 and Python In the meantime, you can run this command prior to
|
Patch is released in v1.127.0. Closing |
Description:
When I run
sam init
, it fails to clone theaws/aws-sam-cli-app-templates
repo, and thus does not properly initialise the project directory. This happens regardless of which Quick Start Application Template I select.Steps to reproduce:
sam init
:I did a thorough search of existing issues (closed and open), and found none closely matching this one. I might be doing something wrong, but for now, I've designated it as a bug.
Observed result:
Other issues do report
Clone error, attempting to use an old clone from a previous run
, but these all seem to be from 2022, and relate to long Windows filepaths, which doesn't apply here.I am able to clone the
/aws/aws-sam-cli-app-templates
repo manually in the project directory successfully, so I don't think there's a problem with my GitHub credentials.Expected result:
The project initialises as expected, creating a project sub-directory appropriately populated with the correct files.
Additional environment details
10.0.22631 N/A Build 22631
)sam --version
:SAM CLI, version 1.122.0
us-east-1
(not that this is relevant to the issue, since I can't even get it to initialise locally).sam --info
:Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: