Forgejo and Gitea Actions: actions/checkout "Downloading the archive", then "Not found."
The checkout step found no git in the job's image or host, so it tried to download the files through a REST API, and in the issue the instance answered that request with 404. The actions/checkout README says it falls back to the REST API when Git 2.18 or higher is not in the PATH. Use an image with git, or install git in a step before actions/checkout.
What the sources say
- forgejo/runner #87, "[actions/checkout@v4] 404 Error on downloading tarball" (issue, October 2023). The runner log in the issue:
| Downloading the archive | Not found.
The instance log shows aGETon/api/v3/repos/OWNER/REPO/tarball/SHAanswered with 404 Not Found. The reporter found that their image (node:16-bullseye-slim) had nogit, and fixed it with a step that installs git beforeactions/checkout. A maintainer said the action is an unmodified mirror of GitHub's and did not confirm the cause; the issue was closed and labeled "Reviewed Invalid". - actions/checkout README (github.com/actions/checkout): "When Git 2.18 or higher is not in your PATH, falls back to the REST API to download the files." The README does not name the archive or the 404.
- Gitea documentation, runner (docs.gitea.com): jobs need these tools wherever steps run, in the job image or on the host, including Git 2.34.1 or later for the built-in checkout step.
To see which runner a queued job waits for: Pipeline Inbox for Forgejo and Gitea, a plugin for JetBrains IDEs, marks a job that waits for a runner as queued, keeps its log open so the first lines appear as soon as a runner takes it, and from version 1.0.1 shows the labels it asks for in runs-on.
Check the image
- Add a step before
actions/checkoutthat shows whether git is there:- run: git --version
A step that fails here confirms that the place where steps run has nogit. The step needsbashorsh, which the Gitea documentation also lists as required. - Put git in the image that the label uses. A slim image such as the one in the issue has no git; the label then needs a different image, or the image needs git installed with its package manager before the checkout step.
- If the runner uses a
hostlabel, git must be installed on the machine of the runner (see "Cannot find: node in PATH" for the same split between container and host labels).
Forgejo and Gitea Actions in IntelliJ IDEA
Pipeline Inbox for Forgejo and Gitea, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows the runs of your Forgejo and Gitea repositories with their jobs and logs. A job that waits for a runner is marked queued in the jobs of its run, and its log stays open and follows it, so the first lines appear as soon as a runner takes the job. Since version 1.0.1 it also shows the labels the waiting job asks for (its runs-on). The runs, jobs and logs are free; re-running, cancelling and starting workflows are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
Forgejo, Gitea and Codeberg are names of their respective owners; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by the Forgejo project, Codeberg e.V., the Gitea project or JetBrains.
More: "Cannot find: node in PATH" · No matching online runner with label · Job stuck at "Set up job" · Workflow dispatch refused · Job log expired · Forgejo Actions and Gitea Actions in JetBrains IDEs · 日本語