actions / checkout

Action for checking out a repo
https://github.com/features/actions
MIT License
5.84k stars 1.73k forks source link

Repository not found #395

Open ntoskrnl opened 3 years ago

ntoskrnl commented 3 years ago

We've been using actions/checkout@v1 with default configuration (no parameters) an everything was ok.

Now we are getting error on fetching repo:

Error: fatal: repository 'https://github.com/...' not found

It's a private repo in our organization. Here's the full log.

Run actions/checkout@v1
  with:
    clean: true
Syncing repository: ...
git version
git version 2.29.2
git lfs version
git-lfs/2.12.1 (GitHub; linux amd64; go 1.13.4)
git init "/home/runner/work/..."
Initialized empty Git repository in /home/runner/work/.../.git/
git remote add origin https://github.com/TacitInnovations/RestoLinkx-Android
git config gc.auto 0
git config --get-all http.https://github.com/....extraheader
git -c http.extraheader="AUTHORIZATION: basic ***" fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/pull/697/merge:refs/remotes/pull/697/merge
remote: Repository not found.
Error: fatal: repository 'https://github.com/.../' not found
Warning: Git fetch failed with exit code 128, back off 4.377 seconds before retry.
git -c http.extraheader="AUTHORIZATION: basic ***" fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/pull/697/merge:refs/remotes/pull/697/merge
remote: Repository not found.
Error: fatal: repository 'https://github.com/.../' not found
Warning: Git fetch failed with exit code 128, back off 1.093 seconds before retry.
git -c http.extraheader="AUTHORIZATION: basic ***" fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/pull/697/merge:refs/remotes/pull/697/merge
remote: Repository not found.
Error: fatal: repository 'https://github.com/.../' not found
Error: Git fetch failed with exit code: 128
Error: Exit code 1 returned from process: file name '/home/runner/runners/2.274.2/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Repository.v1_0.CheckoutTask, Runner.Plugins"'.

Tried with latest version – same error.

szepeviktor commented 3 years ago

Duplicate of #394

dilip-panwar-by commented 3 years ago

We are also facing the same issue. We are using actions/checkout@v1

theboolean commented 3 years ago

It seems related to a Github Actions major outage: https://www.githubstatus.com/

FiorellaChilcon commented 3 years ago

I'm facing the same issue

p-bojkowski commented 3 years ago

Same here :(

image

jajaislanina commented 3 years ago

We are having the same issue as well when trying to checkout additional (tools) repo. Main checkout works as expected.

yhrabovskyinomi commented 3 years ago

So any ideas how to fix this?

MrBTTF commented 3 years ago

@yhrabovskyinomi I just created Personal access token and it worked

yhrabovskyinomi commented 3 years ago

this is weird. I've re-created same token with same permissions and it started to work too. Magic xD

rickstaa commented 3 years ago

@ntoskrnl For me, this also started working when creating a new github acces token and adding it to my workflow.

ace03uec commented 3 years ago

Is someone seeing this again ? There is this which is ongoing at the moment. https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/

NitikaKuhar commented 3 years ago
Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/main*:refs/remotes/origin/main* +refs/tags/main*:refs/tags/main*
  remote: Repository not found.
  Error: fatal: repository 'https://github.com/<org>/<repo name>/' not found
  The process '/usr/bin/git' failed with exit code 128
  Waiting 16 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/main*:refs/remotes/origin/main* +refs/tags/main*:refs/tags/main*
  remote: Repository not found.
  Error: fatal: repository 'https://github.com/<org>/<repo name>/' not found not found
  The process '/usr/bin/git' failed with exit code 128
  Waiting 18 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/main*:refs/remotes/origin/main* +refs/tags/main*:refs/tags/main*
  remote: Repository not found.
  Error: fatal: repository 'https://github.com/<org>/<repo name>/' not found' not found
  Error: The process '/usr/bin/git' failed with exit code 128

I am also getting the same issue. How to fix it?

ctolkien commented 3 years ago

We're hitting this as well. In our case we have 2 jobs, both start with a checkout, the first works fine, the second fails on the submodules.

Edit, OK we had to set the setting to not clear the credentials.