-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run Actions on push with basic workflow file. #29338
Comments
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. |
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. |
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:
|
IIRC, we have a similar issue before: if the server has no public internet access, workflow will not run. Edited: |
@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. |
What I wanted to say is that the root reason of #28277 is not |
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. |
I still have reservations about servers without WAN |
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:
|
Thanks for looking into this @wolfogre - I've sent an email with un-redacted trace logs as requested. |
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. |
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
Then you can fix the hooks by running |
The FAQ could be updated https://docs.gitea.com/help/faq#push-hook--webhook-arent-running Add "Actions don't run" |
@zhangbaojia |
Thank you. Here are the hooks files you mentioned. I'll try the steps you suggested. |
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 I changed my Incidentally, @wolfogre I did not need to 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 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 ^.^ |
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! |
Backport #29495 by @wolfogre Close #29338 (comment) Co-authored-by: Jason Song <i@wolfogre.com>
Detect broken git hooks by checking if the commit id of branches in DB is the same with the git repo. It can help #29338 #28277 and maybe more issues. Users could complain about actions, webhooks, and activities not working, but they were not aware that it is caused by broken git hooks unless they could see a warning. <img width="1348" alt="image" src="https://github.com/go-gitea/gitea/assets/9418365/2b92a46d-7f1d-4115-bef4-9f970bd695da"> It should be merged after #29493. Otherwise, users could see a ephemeral warning after committing and opening the repo home page immediately. And it also waits for #29495, since the doc link (the anchor part) will be updated. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
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.io
as 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 #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
The text was updated successfully, but these errors were encountered: