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 · 32 comments
Closed

git clone stop while resolving deltas #943

astronaut1712 opened this issue Oct 13, 2020 · 32 comments

Comments

@astronaut1712
Copy link

@astronaut1712 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

@astronaut1712 astronaut1712 commented Oct 13, 2020

image

@tbodt
Copy link
Member

@tbodt tbodt commented Oct 13, 2020

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

@saagarjha
Copy link
Member

@saagarjha saagarjha commented Oct 13, 2020

Also, what device do you have?

@astronaut1712
Copy link
Author

@astronaut1712 astronaut1712 commented Oct 13, 2020

I run on iPad Pro 2020 11inch.

@saagarjha
Copy link
Member

@saagarjha saagarjha commented Oct 13, 2020

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

@astronaut1712 astronaut1712 commented Oct 13, 2020

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

@saagarjha saagarjha commented Oct 26, 2020

Was there a reason you closed this issue?

@filiphsandstrom
Copy link

@filiphsandstrom filiphsandstrom commented Nov 12, 2020

@saagarjha this occurs for me on both iPhone XS Max and iPad Pro (2018)

@filiphsandstrom
Copy link

@filiphsandstrom filiphsandstrom commented Nov 19, 2020

@saagarjha you asked about an example repo, https://github.com/JSPrismarine/JSPrismarine hangs at resolving deltas

@tommycusick
Copy link

@tommycusick 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 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

@mjgardner mjgardner commented Feb 21, 2021

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

@tommycusick tommycusick commented Feb 21, 2021

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

@atommclain atommclain commented Feb 22, 2021

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

@8thHalfHour 8thHalfHour commented Mar 7, 2021

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.

@rechka
Copy link

@rechka rechka 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

@therocketforever therocketforever commented May 14, 2021

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 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.

@jkelol111
Copy link

@jkelol111 jkelol111 commented Jan 22, 2022

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

@0n1cOn3
Copy link

@0n1cOn3 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

@saagarjha saagarjha commented Jan 28, 2022

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.

@Imjek
Copy link

@Imjek Imjek commented Feb 4, 2022

Resolving deltas forever !

@laddge
Copy link

@laddge 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

@aotsukiqx aotsukiqx commented Mar 6, 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”

This works!

@till213
Copy link

@till213 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

@saagarjha saagarjha commented Mar 13, 2022

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

@saagarjha saagarjha closed this Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet