mikeizbicki / cmc-csci046

CMC's Data Structures and Algorithms Course Materials
53 stars 154 forks source link

git clone fails on lambda #330

Open finnless opened 1 year ago

finnless commented 1 year ago

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.

mikeizbicki commented 1 year ago

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.