mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-12 02:24:21 -05:00
Workflow YAML files are not executed on one Gitea instance #11256
Closed
opened 2025-11-02 09:32:27 -06:00 by GiteaMirror
·
27 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v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.4.0-rc1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#11256
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @greensquirrel on GitHub (Jul 18, 2023).
Description
Dear Gitea developers,
One (podman) Gitea instance runs on hostA and is configured with one action runner. The Gitea webpage shows that the runner is idle.
Unfortunately, it does not execute any workflow YAML file when I push something into the repo. Actions are enabled for the repository and I see the registered and idle runner in the runner section of my project.
Here you see an example workflow YAML file:
Here you see the runner config for hostA
If I start the Gitea instance on a host B (and adjusting the host part of gitea/conf/app.ini), the workflow YAML file is executed.
Here you see
Here is the gitea log output when pushing a change to gitea/workflows/demo.yaml:
Here is the server section of hostA in conf/app.ini
Does anyone know what to do if a workflow YAML is ignored after a push action?
Gitea Version
1.20 and 1.19.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
git version 2.40.1
Operating System
podman with docker container image docker.io/gitea/gitea 1.20
How are you running Gitea?
podman with docker container image docker.io/gitea/gitea 1.20:
Database
SQLite
@lunny commented on GitHub (Jul 19, 2023):
podmanis not well tested.@wolfogre commented on GitHub (Jul 20, 2023):
Have you updated
.runnermanually? Could you show us the runner list page? It should behttps://hosta.domain.tld:9500/admin/actions/runners@greensquirrel commented on GitHub (Jul 20, 2023):
No, I have not updated the .runner manually. In the .runner above, I have marked the confidential values with hidden.
Here I register a runner on hostA again:
./act_runner register --instance https://hostA.domain.tld:9500 --labels "mylinux" --name MyRunnerOne --no-interactive --token <hidden> -c hostA.yamlThe content of .runner :
See screenshot of the registered runner:

Sadly, if I push a change to my_repo/sandbox_public.git, there is still nothing on the actions page.
Do you know what else I can do?
Can you point me to the source code file where gitea dispatches the actions to the runner? Maybe I can debug statements there.
@greensquirrel commented on GitHub (Jul 20, 2023):
Both the working gitea instance and the failing gitea instance run on podman. I don't think that it is a podman issue.
@sillyguodong commented on GitHub (Jul 20, 2023):
FetchTask
BTW, it's strange that the runner has two identical labels, could you share your
config.yaml(runner.labelsis enough)?@greensquirrel commented on GitHub (Jul 20, 2023):
Thank you for the link!
The runner.labels is
runner.labels: ["mylinux", "mylinux:host"]The hostA.yaml in its full glory is shown below:
Do you find anything suspicious setting in there?
@greensquirrel commented on GitHub (Jul 25, 2023):
The runner has registered as you can see in the screenshot below:

Sadly, the demo.yaml gitea workflow file is never executed on any git push event as seen below. What can be the reason that a gitea workflow yaml file is not executed if an runner is available? Syntax errors in that file are reported by gitea in the web page as far as I understand it.

Maybe the logs help. They look harmless.
Here is the content of ./.gitea/workflows/demo.yaml:
@lunny commented on GitHub (Jul 26, 2023):
So whether the push will trigger dashboard feed?
@wolfogre commented on GitHub (Jul 26, 2023):
Even if there is no runner available, you should see the list of runs which are waiting:
If you see nothing, it should mean that the workflow hasn't been triggered. So please check what Lunny said: whether the push will trigger the dashboard feed? Like
@greensquirrel commented on GitHub (Jul 26, 2023):
Hi @wolfogre
thank you for the screenshots because they show me the normal behaviour!
@sillyguodong commented on GitHub (Jul 26, 2023):
It will display in the first page which you will redirect to after login.
@greensquirrel commented on GitHub (Jul 26, 2023):
Hi @sillyguodong ,
Thank you for your answer!
Sadly, I don't find any trigger on my dashboard. See screenshot below:

What could be the reason for missing push triggers? Do I have to configure anything for it?
@wolfogre commented on GitHub (Jul 27, 2023):
I believe something is going wrong with your instance, please try (not a step-by-step guide, just some rescues I can think of):
gitea doctor checkto check if any problems.@greensquirrel commented on GitHub (Jul 27, 2023):
Hi @wolfogre
Thanks for your ideas! Sadly, none of your advices were fruitful. Here is the output of gitea doctor check:
Since my gitea instance runs inside of a container with podman on hostA, I moved the container to two different systems hostB and hostC (OpenSuse and Rocky Linux 9). And on both systems, the actions were running :-) See screenshot below:


The system where my production gitea instance fails runs a CentOS 8. That means that it is highly probably not an Gitea configuration issue since the other systems use the same configuration (except adjustment in the domain names).
Unfortunately, I have to run my production gitea instance on hostA with CentOS 8.
Does anyone know what else to debug? Where is the source code location in Gitea that triggers that an event is appended to the dashboard? Maybe, I can add a logging statement there.
@JohnnyZhang0628 commented on GitHub (Aug 10, 2023):
@greensquirrel I have a same question.How do you solve it?
@greensquirrel commented on GitHub (Aug 10, 2023):
I have not solved it.
Probably, I will solve it by moving away from CentOS 8 to a more recent Linux distribution since that problem only happens on CentOS 8. On which Linux distribution do you have that problem?
@JohnnyZhang0628 commented on GitHub (Aug 10, 2023):
@greensquirrel My OS is CentOS7.I Have update gitea 1.19.1 to 1.20.2.I'm not sure if it was an upgrade
@anothaiyoyo commented on GitHub (Aug 11, 2023):
@greensquirrel I just found this problem on Ubuntu 22.04.3 LTS too :(
@tf838499 commented on GitHub (Aug 14, 2023):
Hi i faced the same problem but i tried to update my docker version and now it works,
maybe try this solution
@anothaiyoyo commented on GitHub (Aug 17, 2023):
@tf838499 Hey I just update my docker version and it's worked ! Thank you !
@m90 commented on GitHub (Sep 1, 2023):
I'm encountering the same problem without a good idea how to fix it. My setup:
gitea doctor checkshows all "OK"sThe config file looks like this
Yet, no actions are triggered for any commits.
What's strange, and what might be a hint for debugging this is that the runner logs the following when starting up:
Gitea is at 1.20.3 which should be latest if I am not mistaken? The instance went through a few upgrades though, so maybe I missed something in that procedure?
@m90 commented on GitHub (Sep 2, 2023):
By now I belive this is due to my Gitea instance not executing any actions on push, i.e. if I configure a webhook to be run on push, this won't happen either. When I manually test the webhook, delivery suceeds, so it's not about bad webhook configuration.
@techknowlogick commented on GitHub (Sep 2, 2023):
@m90 It could be that the githooks aren't being executed on push event. Could you do three things?
@wellCh4n commented on GitHub (Sep 3, 2023):
I noticed that it seems gitea doesn't support push trigger.
https://docs.gitea.com/usage/actions/faq#what-workflow-trigger-events-does-gitea-support
I tried release as the trigger and the action was triggered.
But the official documentation for quickstart uses push, and I'm not sure if that's the root cause.
@m90 commented on GitHub (Sep 3, 2023):
As for my case, it turns out I wasn't running Gitea using the Docker version I thought I'd be. After upgrading from 19 to 24, repo hooks started executing as intended and I can also trigger actions on push.
Reference for others https://docs.gitea.com/next/help/faq#push-hook--webhook-arent-running
@dscham commented on GitHub (Apr 20, 2024):
@wellCh4n that table isn't very comprehensible. Reading the text above, those event types ARE supported. I have no idea what those activity types are.
@wolfogre commented on GitHub (Apr 22, 2024):
Related to:
I believe the root reason is also Git hooks don't work.
After #29494, users will see warnings when it happens. So I'm going to close this issue.