Skip to content
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

git clone stop while resolving deltas #943

Closed
astronaut1712 opened this issue Oct 13, 2020 · 48 comments
Closed

git clone stop while resolving deltas #943

astronaut1712 opened this issue Oct 13, 2020 · 48 comments

Comments

@astronaut1712
Copy link

astronaut1712 commented Oct 13, 2020

git version: both 2.24.3-r0 and 2.28.0-r1
alpine: 3.11 (default included in iSH)

@astronaut1712
Copy link
Author

image

@tbodt
Copy link
Member

tbodt commented Oct 13, 2020

Could you try installing iSH build 75 to see if it used to work there?

@saagarjha
Copy link
Member

Also, what device do you have?

@astronaut1712
Copy link
Author

I run on iPad Pro 2020 11inch.

@saagarjha
Copy link
Member

We suspect this is an internal concurrency issue that we have only observed on devices with the A12Z chipset; running git single-threaded will likely work around your issue for now. We’re looking into getting a better understanding of this bug, so if someone sees it on other hardware please do let us know!

@astronaut1712
Copy link
Author

Could you try installing iSH build 75 to see if it used to work there?

I tried installing build 75, but it got the same error.

@saagarjha
Copy link
Member

Was there a reason you closed this issue?

@tbodt tbodt reopened this Nov 19, 2020
@tommycusick
Copy link

tommycusick commented Feb 11, 2021

Just came across this issue and filed feedback within the app, but for posterity, git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew also causes the git command to hang indefinitely at “Resolving deltas.”

resolving deltas

This is on an iPad Pro (12.9-inch, 2018/3rd Generation), so it appears to not be limited to A12Z chips.

@mjgardner
Copy link

mjgardner commented Feb 20, 2021

Also having this problem. iPad Pro (11-inch) (2nd generation), iOS 14.4, git 2.26.2, iSH 1.1.1 (Build 91), trying to clone git://github.com/mjgardner/LWPx-UserAgent-Cached.git

@mjgardner
Copy link

We suspect this is an internal concurrency issue that we have only observed on devices with the A12Z chipset; running git single-threaded will likely work around your issue for now. We’re looking into getting a better understanding of this bug, so if someone sees it on other hardware please do let us know!

How do you run git single-threaded?

@tommycusick
Copy link

We suspect this is an internal concurrency issue that we have only observed on devices with the A12Z chipset; running git single-threaded will likely work around your issue for now. We’re looking into getting a better understanding of this bug, so if someone sees it on other hardware please do let us know!

@saagarjha FYI, see comments from @mjgardner and myself from the past few days which show cases where it’s happening on chips older than A12Z. At least in my case, I’m able to reproduce it reliably, so please let me know what other information would be useful for debugging.

@atommclain
Copy link

We suspect this is an internal concurrency issue that we have only observed on devices with the A12Z chipset; running git single-threaded will likely work around your issue for now. We’re looking into getting a better understanding of this bug, so if someone sees it on other hardware please do let us know!

How do you run git single-threaded?

I was able to get around the issue with this command: git config --global pack.threads "1"

@8thHalfHour
Copy link

Same problem here. It was intermittent, and now it’s on every one of my devices: iPhone 7 Plus, iPad Air 2, and iPad Pro 12.9” (2018). Until yesterday, I could usually ^C out of the situation and reboot or halt, and it would then work (as long as I had removed any trace that some files had been actually transferred (i.e., del a directory, remove files, whatever). But now it’s constant. For me, it’s the oh-my-zsh repo, something I’ve installed on all of my devices in iSH a thousand times with no issues. Now, I get some variation of the following:

C3ED4104-0E9C-4979-AD79-3DACEDF7DCE8

I’m also getting an IO ERROR when OpenSSL is upgraded. I know we are tracking this elsewhere, and I will add to that issue, but since I am unsure if they are related, I thought I’d note that little nugget here, too.

@5739n4
Copy link

5739n4 commented Apr 26, 2021

adding --depth <some small integer> helps
i noticed this problem only on repos with loooooong history of commits, who needs them all?

@therocketforever
Copy link

Hello, just adding to the pile.

same issue, doesn't matter what repo, or how large / long history is. Fails to fetch ruby, fails to fetch git, fails on some private repos I tried.

I concur with the suspicion it's related to threading. Ruby 3.0.1 required a patch for threading to build ( downloaded a tar to get around git hanging )

Declaring git config --global pack.threads "1" & re running clone/fetch/pull seems to be working on all repositories I try now

iOS 14.4.2
iPhone X
iSH 1.2 ( build 149 )

@sofianhw

This comment has been minimized.

@kmgolden

This comment has been minimized.

@shaysugg
Copy link

shaysugg commented Jan 3, 2022

Same here on my iPad Air 2020
Also add the single thread config hasn't fixed the problem

@Michale-wang

This comment has been minimized.

@sflomenb

This comment has been minimized.

@sunsetsonwheels
Copy link

Unfortunately the single threaded mode fix didn’t work for me on the M1 iPad Pro.

@0n1cOn3
Copy link

0n1cOn3 commented Jan 26, 2022

Issue persists on iPhone 12, current BetaFlight Version. It's broken since Oktober 2021. 1 Thread fix doesnt work eighter.

@HackUnit

This comment has been minimized.

@saagarjha
Copy link
Member

Hi! We understand that this is an important issue and it’s something we’re looking into. While we appreciate discussion about workarounds while we work to fix this, we really don’t need any more confirmation that running git single-threaded does not exhibit the issue. If you have any new information to share we’d be happy to hear it but for now we’d ask for people to please refrain from posting "this workaround fixed the issue for me" comments because they only clutter up the conversation without adding any new information. I've collapsed the existing ones for now.

@carl0zen

This comment has been minimized.

@KindofSHT
Copy link

Resolving deltas forever !

@laddge
Copy link

laddge commented Mar 5, 2022

Using an older version of git and single thread solved it for me.

Model: iPad Air 4th gen
OS: iPad OS 15.3.1
iSH: v1.2.3

Try following command.

apk del git
wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk
apk add ./git-2.24.4-r0.apk
git config —global pack.threads “1”

@aotsukiqx
Copy link

Using an older version of git and single thread solved it for me.

Model: iPad Air 4th gen OS: iPad OS 15.3.1 iSH: v1.2.3

Try following command.

apk del git
wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk
apk add ./git-2.24.4-r0.apk
git config —global pack.threads “1”

This works!

@till213
Copy link

till213 commented Mar 13, 2022

Hello,

I just stumbled over the exact same issue here, git clone seems to be stuck at „Resolving deltas“ (CTRL + C an restarting git clone came as far as „5%“ - but then stuck again).

As a matter of fact I have just deleted and re-installed the iSH app (for other reasons), so it is considered a „fresh install“ (plus, all the required development packages, git, openssh etc. all added with „apk add“).

  • iPad Air, 3rd generation, 64 GB
  • iOS 15.3.1 (latest at the time of this writing)
  • Latest iSH at the time of this writing (re-installed from App Store just today)
  • Repository: https://github.com/till213/SkyDolly.git

git --version
git version 2.32.0
uname -a
Linux Olis-Airbag 4.20.69-ish iSH 1.2.3 (298) Dec 17 2021 06:08:24 i686 Linux

Setting git config —global pack.threads “1” as described above worked (as a workaround).

@saagarjha
Copy link
Member

I'm going to close this as it should be resolved by 947e640 and the fix will ship in the next version of iSH.

@sam-rad
Copy link

sam-rad commented Apr 4, 2022

I had the same issue and I did:

apk upgrade git

git --version  
# git version 2.32.0

and it was sorted out on my iPhone.

@TurtleMeds
Copy link

I had the same issue and I did:

apk upgrade git

can confirm this worked for me as well

@peterbehr
Copy link

peterbehr commented May 17, 2022

apk del git
wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk
apk add ./git-2.24.4-r0.apk
git config —global pack.threads “1”

Workaround works! But the original comment and ones quoting it should also be minimized, since the double dash and straight double quotes have been converted to en-dash and curly double quotes. Maybe by iOS? Should be:

apk del git
wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk
apk add ./git-2.24.4-r0.apk
git config --global pack.threads "1" 

@Edgeburn
Copy link

Using an older version of git and single thread solved it for me.

Model: iPad Air 4th gen

OS: iPad OS 15.3.1

iSH: v1.2.3

Try following command.


apk del git

wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk

apk add ./git-2.24.4-r0.apk

git config —global pack.threads “1”

Doesn't work on iPad Pro M1. It got further resolving deltas (30% -> 75%) but still hangs.

@LW-Andres
Copy link

Using an older version of git and single thread solved it for me.
Model: iPad Air 4th gen
OS: iPad OS 15.3.1
iSH: v1.2.3
Try following command.


apk del git

wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk

apk add ./git-2.24.4-r0.apk

git config —global pack.threads “1”

Doesn't work on iPad Pro M1. It got further resolving deltas (30% -> 75%) but still hangs.

It worked on iPhone 12 pro

@cloudhzc
Copy link

cloudhzc commented Jun 17, 2022

When I run 'wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk',it stop at 5%
When I run that again,it use one hour to connect to the server and it stop at 4%!

@andreyFreeman
Copy link

Same issue for me

@king-piyush
Copy link

I solved this problem by this command
git config --global pack.threads "1"

@andreyFreeman
Copy link

I solved this problem by this command
git config --global pack.threads "1"

I tried as well, still hangs but on one of steps before resolving deltas

@Mnpn Mnpn mentioned this issue Aug 3, 2022
@dotHTM
Copy link

dotHTM commented Oct 27, 2022

Still an issue running iPad Pro M2 (2022), iOS 16.1, iSH version 1.2.3 build 298.

Config command mentioned above still a good workaround.

@professor123456788
Copy link

Could you try installing iSH build 75 to see if it used to work there?

I have iPhone 7plus and iam using ish shell uname linux and i also face this problem resolving deltas stop in 0

@professor123456788
Copy link

I have iPhone 7plus and iam using ish shell uname linux and i also face this problem resolving deltas stop in 0 In setoolkit

@srgustafson8
Copy link

srgustafson8 commented Oct 30, 2022

I just had this issue with a fresh ish install on an M2 iPad Pro. iSh version 1.2.3 (298), Git version is 2.32.4, and the single thread workaround did fix it, but this issue should be reopened as it's not resolved.

@xero
Copy link

xero commented Nov 7, 2022

i also just had this issue on a fresh install on a 3rd gen ipad m1 pro 11”

@squishypixel
Copy link

squishypixel commented Dec 23, 2022

Issue persists on iPad Pro 12.9. Single thread workaround results in sticking during remote: counting objects.

iSH 1.2.3 (b298)
iPadOS 16.1.1

@boydkelly
Copy link

Installed a fedora 38 container/minimal image and getting this. Tried the global.pack.threads =1 options but no success.

@KDelu
Copy link

KDelu commented Oct 11, 2023

adding --depth helps i noticed this problem only on repos with loooooong history of commits, who needs them all?

Changing the --depth worked for me
Tried the global.pack.threads =1 options but no success.
On version 2.39.3 of git
Macbook Pro 16" 2019

@saagarjha
Copy link
Member

Sorry, are you running iSH on your Mac?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests