checkout: Git error after some executions

The checkout action works fine (do the private repo checkout) until be executed I’m sure but something like 4 or 5 times. I mean, after some executions I’m getting the following output error of retries:

Run actions/checkout@v2
  with:
    repository: MyPrivate/Repo
    token: ***      # IT IS A GITHUB Personal Access Token
    ref: SRQ-644/SRQ-1099_php7_upgrade'
    path: test/test-path
    fetch-depth: 1
    persist-credentials: true
    clean: true
    lfs: false
Added matchers: 'checkout-git'. Problem matchers scan action output for known warning or error strings and report these inline.
Syncing repository: MyPrivate/Repo
Working directory is '/home/runner/work/TestActionRepo/TestActionRepo/test/test-path'
/usr/bin/git version
git version 2.24.1
/usr/bin/git init /home/runner/work/TestActionRepo/TestActionRepo/test/test-path
Initialized empty Git repository in /home/runner/work/TestActionRepo/TestActionRepo/test/test-path/.git/
/usr/bin/git remote add origin https://github.com/MyPrivate/Repo # IT IS HYPOTHETICAL PRIVATE REPO URL
/usr/bin/git config --local gc.auto 0
/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/SRQ-644/SRQ-1099_php7_upgrade'*:refs/remotes/origin/SRQ-644/SRQ-1099_php7_upgrade'* +refs/tags/SRQ-644/SRQ-1099_php7_upgrade'*:refs/tags/SRQ-644/SRQ-1099_php7_upgrade'*
The process '/usr/bin/git' failed with exit code 1
Waiting 17 seconds before trying again
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/SRQ-644/SRQ-1099_php7_upgrade'*:refs/remotes/origin/SRQ-644/SRQ-1099_php7_upgrade'* +refs/tags/SRQ-644/SRQ-1099_php7_upgrade'*:refs/tags/SRQ-644/SRQ-1099_php7_upgrade'*
The process '/usr/bin/git' failed with exit code 1
Waiting 17 seconds before trying again
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/SRQ-644/SRQ-1099_php7_upgrade'*:refs/remotes/origin/SRQ-644/SRQ-1099_php7_upgrade'* +refs/tags/SRQ-644/SRQ-1099_php7_upgrade'*:refs/tags/SRQ-644/SRQ-1099_php7_upgrade'*
Removed matchers: 'checkout-git'
##[error]The process '/usr/bin/git' failed with exit code 1
##[error]Node run failed with exit code 1

As I said, this retries and then the output error happens randomly after some Action executions and then after I retry 2 or 3 times by clicking to re-run the action steps it eventually gets working again.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 5
  • Comments: 19 (6 by maintainers)

Most upvoted comments

Seeing the same issue, Using github runners, ubuntu-latest

This might not be the same issue, but the same thing happened to me and the cause was having the branch name incorrect.

This happens to me when I merge into master

on: pull_request: paths: - ‘.md’ - '.txt’

@ericsciple thanks for your help. I ran the action two times again to test it right now, and on the first time the checkout worked without problems, but in a second test, I got the same error that I described days ago. Tested only with ubuntu-latest runner.