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

random error while fetching repo submodules recursively #748

Open
extremoburo opened this issue Apr 4, 2022 · 8 comments
Open

random error while fetching repo submodules recursively #748

extremoburo opened this issue Apr 4, 2022 · 8 comments

Comments

@extremoburo
Copy link

Hello,

Since few days I intermittently (at the beginning, then became more and more persistent) get this error while checking out a repo with submodules rescursively. The strange fact is that it was running ok, nothing changed. I can checkout the repo from anywhere else outside GH action, only happens on Windows runners (2019 and also latest)

this is the configuration:

jobs:
  build-windows:
      runs-on: windows-2019  # or -latest

      steps:
      - uses: actions/checkout@v2   #  v3 makes no difference
        with:
          # Fetches only one commit
          fetch-depth: 1
          # builder private sshkey
          ssh-key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
          submodules: recursive

and here is the error I'm getting, please notice that it is not the same submodule failing but one between many, and it happend randomly but I'm having increasing failures.:

fetch-pack: unexpected disconnect while reading sideband packet
 Error: fatal: early EOF
  Error: fatal: unpack-objects failed
  Error: fatal: Fetched in submodule path 'deps/submodulename', but it did not contain <commitsha>. Direct fetching of that commit failed.

this commit sha exists for sure. appearently no outages happened. I've opened a ticked into GitHub but they redirected me here.
if could be of help this repo has submodules which has submodules, but the one failing most is a submodule without nested submodules

  • Reproduction Steps
    go to Actions -> run workflow

Any tip would be appreciated, I'm stucked.

@extremoburo
Copy link
Author

extremoburo commented Apr 4, 2022

update:

also tried fetch-depth: 0 but didn't solve, a slightly difference here was that on submodule failure it retries once. A first attempt went on successfully with 1 retry, another job had multiple failure on the same submodule that set the whole run to a failed state.

@paresy
Copy link

paresy commented Apr 12, 2022

Just wanted to chime in, that we also have a repo that has this issue. It affects only the Windows Runner. Linux/MacOS is working without any problems.

fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Unable to fetch in submodule path 'xxxx'; trying to directly fetch ######:

Code in the workflow:

      - name: Checkout Submodule (Ref)
        run: |
          git submodule init
          git submodule update

@extremoburo
Copy link
Author

extremoburo commented Apr 13, 2022

to inform that I've also opened a support ticked at github. It's now working on windows-2019 and I haven't made any change to the above configuration except that builds are nightly. My guess is that GH could suffer a network traffic issue and the support confirmed that it could be happening at that time. They weren't able to go deeper since I couldn't give them control to the affected repo. @paresy if you can let them in your repo try to open a ticket, this could at least help us to understand better why it happens on windows machines only.

@goaaats
Copy link

goaaats commented Jun 25, 2022

I still get this daily, multiple times, with my windows-2022 runners. Fixes itself after restarting the run but that really shouldn't be required.

https://github.com/goatcorp/Dalamud/runs/7053836938?check_suite_focus=true

This seems to be related to OpenSSH on windows: PowerShell/Win32-OpenSSH#1322

@heathhenley
Copy link

This might be related to this issue: #1379

I mentioned there but I'm seeing the same on windows 2022 runner with repo using submodules and lfs, it has cloned successfully but it mostly doesn't and fails with:

  fetch-pack: unexpected disconnect while reading sideband packet
  Error: fatal: early EOF
  Error: fatal: fetch-pack: invalid index-pack output

@heathhenley
Copy link

Update http.postBuffer seems like it might have made it more consistent for me:

...

      - name: Set up custom git config
        run: git config --global http.postBuffer 1048576000
      - name: Checkout repos
        uses: actions/checkout@v4
        with:
          submodules: 'recursive'
...

@dubajj
Copy link

dubajj commented Mar 8, 2024

this is happening for us on a self hosted M1 machine as well, same repro same symptoms

@XoL1507
Copy link

XoL1507 commented Mar 8, 2024

please don't checkout

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

6 participants