cmc-csci046 icon indicating copy to clipboard operation
cmc-csci046 copied to clipboard

git clone fails on lambda

Open finnless opened this issue 2 years ago • 1 comments

When I run this command

$ git clone https://github.com/finnless/cmc-csci046.git

it throws the following error on lambda server:

fatal: unable to create thread: Resource temporarily unavailable
fatal: fetch-pack: invalid index-pack output

I reproduced the same error on @abizermamnoon account.

I was able to resolve the issue by making the following git config change:

$ git config --global pack.threads "1"

Credit to this Stack Overflow post for the fix.

Hopefully this helps others if they run into the same issue.

finnless avatar Jan 20 '23 18:01 finnless

Great detective work!

In general, your accounts have limited resources allocated to them (to ensure that you don't accidentally mess up other accounts), and that is the cause of this. Another fix (which will work with some other commands as well) is to add the -j1 flag to the end of your git clone command.

Again, we'll discuss more of this on Monday.

mikeizbicki avatar Jan 20 '23 21:01 mikeizbicki