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

Github Action checkout v4 fails on fetching - git error - The process '/usr/bin/git' failed with exit code 128 #9882

Closed
4 of 14 tasks
leoherbie opened this issue May 17, 2024 · 4 comments

Comments

@leoherbie
Copy link

leoherbie commented May 17, 2024

Description

Checkout is suddenly failing where previously is worked.

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

Here are the logs

2024-05-17T13:28:21.2685483Z Current runner version: '2.316.1'
2024-05-17T13:28:21.2713144Z ##[group]Operating System
2024-05-17T13:28:21.2714202Z Ubuntu
2024-05-17T13:28:21.2714839Z 22.04.4
2024-05-17T13:28:21.2715355Z LTS
2024-05-17T13:28:21.2716053Z ##[endgroup]
2024-05-17T13:28:21.2716694Z ##[group]Runner Image
2024-05-17T13:28:21.2717400Z Image: ubuntu-22.04
2024-05-17T13:28:21.2718217Z Version: 20240516.1.0
2024-05-17T13:28:21.2719927Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240516.1/images/ubuntu/Ubuntu2204-Readme.md
2024-05-17T13:28:21.2722267Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240516.1
2024-05-17T13:28:21.2723882Z ##[endgroup]
2024-05-17T13:28:21.2724604Z ##[group]Runner Image Provisioner
2024-05-17T13:28:21.2725324Z 2.0.369.1
2024-05-17T13:28:21.2726037Z ##[endgroup]
2024-05-17T13:28:21.2727440Z ##[group]GITHUB_TOKEN Permissions
2024-05-17T13:28:21.2729641Z Checks: write
2024-05-17T13:28:21.2730366Z Metadata: read
2024-05-17T13:28:21.2731160Z ##[endgroup]
2024-05-17T13:28:21.2735556Z Secret source: Actions
2024-05-17T13:28:21.2736414Z Prepare workflow directory
2024-05-17T13:28:21.3348962Z Prepare all required actions
2024-05-17T13:28:21.3505779Z Getting action download info
2024-05-17T13:28:21.5290043Z Download action repository 'actions/checkout@v4' (SHA:0ad4b8fadaa221de15dcec353f45205ec38ea70b)
2024-05-17T13:28:21.6407523Z Download action repository 'actions/setup-java@v4' (SHA:99b8673ff64fbf99d8d325f52d9a5bdedb8483e9)
2024-05-17T13:28:22.1855762Z Download action repository 'mikepenz/action-junit-report@v4' (SHA:9379f0ccddcab154835d4e2487555ee79614fe95)
2024-05-17T13:28:22.7577248Z Complete job name: build
2024-05-17T13:28:22.8554631Z ##[group]Run actions/checkout@v4
2024-05-17T13:28:22.8555009Z with:
2024-05-17T13:28:22.8555253Z   repository: KualiCo/research-pdf
2024-05-17T13:28:22.8555733Z   token: ***
2024-05-17T13:28:22.8555973Z   ssh-strict: true
2024-05-17T13:28:22.8556209Z   ssh-user: git
2024-05-17T13:28:22.8556447Z   persist-credentials: true
2024-05-17T13:28:22.8556744Z   clean: true
2024-05-17T13:28:22.8556992Z   sparse-checkout-cone-mode: true
2024-05-17T13:28:22.8557284Z   fetch-depth: 1
2024-05-17T13:28:22.8557513Z   fetch-tags: false
2024-05-17T13:28:22.8557755Z   show-progress: true
2024-05-17T13:28:22.8558006Z   lfs: false
2024-05-17T13:28:22.8558220Z   submodules: false
2024-05-17T13:28:22.8558459Z   set-safe-directory: true
2024-05-17T13:28:22.8558723Z ##[endgroup]
2024-05-17T13:28:23.0480105Z Syncing repository: KualiCo/research-pdf
2024-05-17T13:28:23.0482181Z ##[group]Getting Git version info
2024-05-17T13:28:23.0482819Z Working directory is '/home/runner/work/research-pdf/research-pdf'
2024-05-17T13:28:23.0483840Z [command]/usr/bin/git version
2024-05-17T13:28:23.0534920Z git version 2.45.1
2024-05-17T13:28:23.0536880Z ##[endgroup]
2024-05-17T13:28:23.0708928Z Temporarily overriding HOME='/home/runner/work/_temp/8389cb9b-d92a-4bbe-a2a5-b8cd8fb26553' before making global git config changes
2024-05-17T13:28:23.0710754Z Adding repository directory to the temporary git global config as a safe directory
2024-05-17T13:28:23.0713930Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/research-pdf/research-pdf
2024-05-17T13:28:23.0717683Z Deleting the contents of '/home/runner/work/research-pdf/research-pdf'
2024-05-17T13:28:23.0719050Z ##[group]Initializing the repository
2024-05-17T13:28:23.0720012Z [command]/usr/bin/git init /home/runner/work/research-pdf/research-pdf
2024-05-17T13:28:23.0801663Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-05-17T13:28:23.0803054Z hint: is subject to change. To configure the initial branch name to use in all
2024-05-17T13:28:23.0804186Z hint: of your new repositories, which will suppress this warning, call:
2024-05-17T13:28:23.0805017Z hint:
2024-05-17T13:28:23.0805659Z hint: 	git config --global init.defaultBranch <name>
2024-05-17T13:28:23.0806342Z hint:
2024-05-17T13:28:23.0807177Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-05-17T13:28:23.0808823Z hint: 'development'. The just-created branch can be renamed via this command:
2024-05-17T13:28:23.0809621Z hint:
2024-05-17T13:28:23.0810027Z hint: 	git branch -m <name>
2024-05-17T13:28:23.0810970Z Initialized empty Git repository in /home/runner/work/research-pdf/research-pdf/.git/
2024-05-17T13:28:23.0828558Z [command]/usr/bin/git remote add origin https://github.com/KualiCo/research-pdf
2024-05-17T13:28:23.0867579Z ##[endgroup]
2024-05-17T13:28:23.0868341Z ##[group]Disabling automatic garbage collection
2024-05-17T13:28:23.0869161Z [command]/usr/bin/git config --local gc.auto 0
2024-05-17T13:28:23.0898846Z ##[endgroup]
2024-05-17T13:28:23.0900008Z ##[group]Setting up auth
2024-05-17T13:28:23.0907347Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-05-17T13:28:23.0941601Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-05-17T13:28:23.1278897Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-05-17T13:28:23.1309399Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-05-17T13:28:23.1559398Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-05-17T13:28:23.1632721Z ##[endgroup]
2024-05-17T13:28:23.1633743Z ##[group]Fetching the repository
2024-05-17T13:28:23.1645377Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +aa0cb53aeff917109cb3c09602e83a23458bcf3c:refs/remotes/pull/2527/merge
2024-05-17T13:28:23.3328170Z remote: Repository not found.
2024-05-17T13:28:23.3354711Z ##[error]fatal: repository 'https://github.com/KualiCo/research-pdf/' not found
2024-05-17T13:28:23.3365133Z The process '/usr/bin/git' failed with exit code 128
2024-05-17T13:28:23.3365598Z Waiting 13 seconds before trying again
2024-05-17T13:28:36.3404572Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +aa0cb53aeff917109cb3c09602e83a23458bcf3c:refs/remotes/pull/2527/merge
2024-05-17T13:28:36.4739772Z remote: Repository not found.
2024-05-17T13:28:36.4742262Z ##[error]fatal: repository 'https://github.com/KualiCo/research-pdf/' not found
2024-05-17T13:28:36.4761827Z The process '/usr/bin/git' failed with exit code 128
2024-05-17T13:28:36.4762640Z Waiting 14 seconds before trying again
2024-05-17T13:28:50.4811801Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +aa0cb53aeff917109cb3c09602e83a23458bcf3c:refs/remotes/pull/2527/merge
2024-05-17T13:28:50.6123709Z remote: Repository not found.
2024-05-17T13:28:50.6125935Z ##[error]fatal: repository 'https://github.com/KualiCo/research-pdf/' not found
2024-05-17T13:28:50.6204422Z ##[error]The process '/usr/bin/git' failed with exit code 128

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

ubuntu-22.04 https://github.com/KualiCo/research-pdf/actions/runs/9129035800

Is it regression?

yes

Expected behavior

git should not fail on checkout

Actual behavior

git fails on checkout

Repro steps

simply use checkout v4 with ubuntu 22.04 runner (or any of the available ubuntu runners) and it will fail

@erik-bershel
Copy link
Contributor

Hey @leoherbie!

It shouldn't be image related since it seems as an old checkout issue: actions/checkout#417. Please use one of the workarounds from the original issue. In case it won't work please ping us.

@erik-bershel
Copy link
Contributor

@leoherbie
As a possible solution you may try to use next environment variable: GIT_CLONE_PROTECTION_ACTIVE=false. I'm not sure that this is your case since your task is lfs: false, but latest Git release contain a security fix which blocks LFS users.

@leoherbie
Copy link
Author

Thank you so much for the quick reply. Sorry about filing it under the "runner-image" repo. I found a similar issue that gained traction and was resolved under that repo so filed this one there too. I will try the workaround.

@leoherbie
Copy link
Author

FYI. I found a workaround. If I used an access token it started working again:

    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          token: ${{ secrets.GH_TOKEN }}

Previously, I did not have to do this.

anthonyshew added a commit to vercel/turborepo that referenced this issue Feb 10, 2025
### Description

We're seeing sporadic failures on the `dorny/paths-filter` part, and[
the recommended
recourse](dorny/paths-filter#24 (comment))
from the workflow author is to add a checkout.

Failures:
-
https://github.com/vercel/turborepo/actions/runs/13208878667/job/36878355246
-
https://github.com/vercel/turborepo/actions/runs/13205111177/job/36866322671

However, it's notable that it looks like GHA just...does this sometimes?
- actions/checkout#417
- actions/runner-images#9632
- actions/runner-images#9882

### Testing Instructions

CI
joshnuss pushed a commit to joshnuss/turborepo that referenced this issue Feb 15, 2025
### Description

We're seeing sporadic failures on the `dorny/paths-filter` part, and[
the recommended
recourse](dorny/paths-filter#24 (comment))
from the workflow author is to add a checkout.

Failures:
-
https://github.com/vercel/turborepo/actions/runs/13208878667/job/36878355246
-
https://github.com/vercel/turborepo/actions/runs/13205111177/job/36866322671

However, it's notable that it looks like GHA just...does this sometimes?
- actions/checkout#417
- actions/runner-images#9632
- actions/runner-images#9882

### Testing Instructions

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

No branches or pull requests

2 participants