mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-09 04:25:18 -05:00
Unable to run Actions on push with basic workflow file. #12518
Closed
opened 2025-11-02 10:12:31 -06:00 by GiteaMirror
·
17 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
v1.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.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
No Label
type/bug
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#12518
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 @CakePost on GitHub (Feb 23, 2024).
Description
I have the following configuration for my gitea server.
My runner is successfully identified and connected.

The logs for the docker deployment of my runner are as follows, indicating success.
My workflow config file looks as follows:
The log output of my gitea server shows this information when I push to the repo with the workflow:
Gitea appears to be picking up the file just fine as the workflow shows up in the UI for the repo.

Unfortunately, this workflow is not being triggered when I push to the repo.
I am able to get the workflow to run on

try.gitea.ioas demonstrated here: https://try.gitea.io/ActionsDebugTest/ActionsDebugTest . This is using the same workflow file as I'm using on my server. Some notable differences are that the repo on my server is nested under an Organization but I don't think I 'm able to make an organization ontry.gitea.io. Another notable difference is that the repo on my server has limited visibility. Making the repo completely private still allows the workflow to run.This issue looks a lot like this resolved issue, but the resolution listed doesn't make sense even for that issue https://github.com/go-gitea/gitea/issues/28277 .
@lunny "This is because your labels are not matched." despite it showing that there was clearly a matching labeled runner for their workflow. Am I missing something?
Gitea Version
1.21.6
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.30.2
Operating System
Debian 10.2.1-6
How are you running Gitea?
I've deployed the action runner using the docker-compose example as described in this documentation. I'm including the compose content for the rest of the gitea instance as well.
Database
PostgreSQL
@CakePost commented on GitHub (Feb 23, 2024):
I investigated if I could get something working with act_runner directly instead of using Docker. Still unable to get a job to actually run on push... I think one culprit might be my nginx configuration so I'll look into that just to reduce some variables.
@CakePost commented on GitHub (Feb 24, 2024):
I've looked through my nginx access and error logs and have not been able to find any smoking guns or indications that it shouldn't be working. These connections show the routing for the two runners I have set up; one I'm running locally on my desktop using the act_runner library and the other is deployed using the docker image as described above.
@CakePost commented on GitHub (Feb 26, 2024):
I would like to continue investigating but I've run out of ideas for places to look:
Maybe I'm missing a setting to expose some more verbose logs that might be showing the issue? I've looked at the firewall for the server to verify that it wasn't blocking anything- it's pretty permissive with the respective ports entirely open:
@yp05327 commented on GitHub (Feb 27, 2024):
IIRC, we have a similar issue before: if the server has no public internet access, workflow will not run.
Edited:
I see you mentioned it, #28277.
That issue, finally, he worked when move Gitea(or runner? not remember clearly) to another server which has public internet access.
But it is hard to say that it is the real reason.
see: https://github.com/go-gitea/gitea/issues/28277#issuecomment-1836113521
@CakePost commented on GitHub (Feb 27, 2024):
@yp05327 What exactly qualifies my server as offline, though? Is it that it's deployed in a docker container? The reverse proxy? If connectivity is this issue that suggests that perhaps there's some undocumented ports that need opening?
When I have some time I'll try finding a MWE of this failure perhaps locally.
@yp05327 commented on GitHub (Feb 27, 2024):
What I wanted to say is that the root reason of #28277 is not
This is because your labels are not matched.And it seems that the offline server caused it, but this reason is so strange, as workflows should be detected whatever server is online or offline, so I don't think that is the root reason, and #28277 should keep opening.
If your server is online, then maybe it is caused by other reasons or the same unknown reason in #28277.
I will try to contact @zhangbaojia, and try to look into this issue.
@zhangbaojia commented on GitHub (Feb 27, 2024):
I haven't followed up on this issue since, but I've continued to use gitea. The previous version of gitea was 1.19.3, and now I am installing 1.20.6. I'll try again this week.
@zhangbaojia commented on GitHub (Feb 27, 2024):
I still have reservations about servers without WAN
@wolfogre commented on GitHub (Feb 28, 2024):
I'm sure it's no business about the runner since there are no runs listed on the page.
Unfortunately, I cannot reproduce it in my env.
I would appreciate it if someone could provide trace logs. Please:
app.inito enable trace log:@CakePost commented on GitHub (Feb 28, 2024):
Thanks for looking into this @wolfogre - I've sent an email with un-redacted trace logs as requested.
@soul-walker commented on GitHub (Feb 29, 2024):
I've encountered the same issue. After multiple attempts, I believe the problem here is that the SHA isn't updating during the push, and there are no corresponding push records. It's as if the push didn't trigger the push event. However, I don't understand why it didn't trigger. Interestingly, I couldn't replicate the issue when testing the service locally in the same way as it's done online.
@wolfogre commented on GitHub (Feb 29, 2024):
According to the trace log provided by @CakePost, I believe the problem is that the hooks of Git are broken. That's why actions, code indexer, and activities cannot work.
It could be fixed by regenerating the hooks, but before that, I would appreciate it if you could zip the hook directory of the repository and paste it to this issue. Don't worry, all files in it are just some hook scripts generated by Gitea. This will help to figure out what happened.
The location is
[GIT_DATE_REPO_DIR]/[owner]/[repo].git/hooks, for example:[GIT_DATE_REPO_DIR]/actionsdebugtest/actionsdebugtest.git/hooks[GIT_DATE_REPO_DIR]/ceshi1/bj-rtsts-server-go.git/hooksThen you can fix the hooks by running
gitea admin regenerate hooks. If all is well, it should go back to normal. Once the hooks have been fixed, it will be difficult to check what happened. So, please consider giving us a dump following the above steps.@wxiaoguang commented on GitHub (Feb 29, 2024):
The FAQ could be updated
https://docs.gitea.com/help/faq#push-hook--webhook-arent-running
Add "Actions don't run"
@yp05327 commented on GitHub (Feb 29, 2024):
@zhangbaojia
Can you check whether you have the same problem mentioned above?
If not, you can also send trace logs to @wolfogre.
@soul-walker commented on GitHub (Feb 29, 2024):
Thank you. Here are the hooks files you mentioned. I'll try the steps you suggested.
bj-rtsts-server-go_hooks.tar.gz
@CakePost commented on GitHub (Feb 29, 2024):
This might be the reason as this particular item is relevant to my setup. Man, trying to host any amount of working data on a CIFS mount may have been a huge mistake. I would have never expected the lack of
chmodand permission bit support to be so problematic.I changed my

/etc/fstabfor that mount to have file permissions of 700 instead of 600 as a test and low-and-behold the actions have begun running.Incidentally, @wolfogre I did not need to
gitea admin regenerate hooksfor it to start working.As recommendations, I agree with @wxiaoguang that adding Actions to that FAQ page they linked could catch some debugging efforts for folks that might share some setup details like mine.
I also wish that the logs could include some messaging when the lack of
chmodsupport starts breaking features.At any rate, I've found the solution for why my Actions weren't running- It seems still possible that @soul-walker might have a different reason for their Actions not running so do follow up with them. I'll of course remain available if there's any other information you'd like to get from me. Thank you all for all your help with this issue, really appreciate all that you do for Gitea ^.^
@soul-walker commented on GitHub (Feb 29, 2024):
Based on this FAQ , I found out that my issue was caused by the version of the Docker service. After upgrading the version, everything works fine now. Thank you very much!