Forgejo Actions: job stuck at "Set up job"
The job is shown as running, "Set up job" never gets a log, and after some time the job fails or is cancelled. The Forgejo runner issues describe a task that the server assigned to a runner but the runner never received or never started, so no log was reported. Fixes went into runner v12.5.3 and v12.7.1 and into Forgejo; the job then ends by a timeout of the instance. Update the runner, and start the job again.
What the issues report
- forgejo/runner #1302, "bug: jobs are assigned to a Forgejo Runner, and fail without any logs being reported" (issue): jobs showed as running, stayed at "Set up job" with no logs, and failed after just over an hour, matching Codeberg's
ZOMBIE_TASK_TIMEOUT. Some were marked cancelled instead of failed. The runner loggedfailed to fetch taskand, in another line,FetchTask received tasks in AdditionalTasks field but not Task field; this is unexpected but runner will run them. The conclusion in the issue: when the first pick returned noTask, Forgejo still returnedAdditionalTasks, and the runner ignored them, so they became zombie tasks. Runner v12.5.3 (pull request #1303) runs such tasks, and Forgejo pull request #10899 stops sending them (backported to v14.0 as #10909). The issue was opened after Forgejo v14 was deployed on Codeberg on January 15, 2026. - forgejo/runner #1391, "bug: jobs stuck at "Set up job"" (issue): the same symptom again. Runner logs in the issue include
unavailable: read tcp ... connection reset by peerandunavailable: unexpected EOF. A maintainer named a lost FetchTask response as plausible: the server assigned a task, but the runner never received the answer. The fix makes FetchTask calls idempotent through anx-runner-request-keyheader: runner pull request #1393 (the client side is in runner v12.7.1) and Forgejo pull request #11401. The issue was closed on March 13, 2026 after a reporter saw no recurrence with the update. - Display: when a zombie task timeout ends a job, the first real step is marked failed, while Forgejo's own "Set up job" step is shown as a success (#1391). So a green "Set up job" does not mean the job was set up.
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.
The timeouts that end such a job
Forgejo's configuration reference, section [actions] (config cheat sheet), lists these. The values are the defaults of the documentation; an instance can set others.
ZOMBIE_TASK_TIMEOUT, default 10m: "Timeout to stop tasks which have a running status but haven't been updated for a long time."ENDLESS_TASK_TIMEOUT, default 3h: "Timeout to stop tasks which have a running status and continuous updates but don't end for a long time." In #980 a maintainer states that a task on the server side checks this every 30 minutes.ABANDONED_JOB_TIMEOUT, default 24h: "Timeout to cancel jobs which have a waiting status but haven't been picked up by a runner for a long time." This is the case of a job that waits, not one stuck at "Set up job".- In a workflow,
jobs.JOB_ID.timeout-minutesandjobs.JOB_ID.steps[*].timeout-minutesare documented as "the number of minutes this job can be performed before it is canceled" (and the same for a step); no default is stated (Forgejo workflow reference). In runner issue #980 (September 2025), a job ended by the instance's timeout was recorded as a failure, not a timeout, and the job kept running on the runner; the fix is pull request #986 ("fix: if the Forgejo instance failed a job, cancel it").
What to do
- Look at the log of the runner for
failed to fetch taskor theunavailable:errors above. They show a fetch that failed on the runner's side of the connection. - Update the runner to v12.7.1 or later (it contains the client side of the #1391 fix, and the v12.5.3 fix of #1302). The server side needs a Forgejo version that has pull request #11401, or on Codeberg its own deployment.
- Start the job again. In #1391 a reporter restarted failed jobs by hand after a Codeberg DoS; no other workaround is confirmed there.
- A job that waits and has not started at all is a different case: see No matching online runner with label.
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: No matching online runner with label · "Cannot find: node in PATH" · actions/checkout "Not found." · Workflow dispatch refused · Job log expired · Forgejo Actions and Gitea Actions in JetBrains IDEs · 日本語