Skip to content
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

act_runner is not execute! #29556

Closed
zhangbaojia opened this issue Mar 3, 2024 · 20 comments
Closed

act_runner is not execute! #29556

zhangbaojia opened this issue Mar 3, 2024 · 20 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail topic/gitea-actions related to the actions of Gitea

Comments

@zhangbaojia
Copy link

Description

@yp05327 Let me explain my operation in detail. Best if I can help. Shut it down if can't help!

Screenshots

1、the server does not have an external network
微信截图_20240303164954
微信截图_20240303164854

2、download gite and act_runner from another server with a network, docker load them ;
微信截图_20240303154617

3、run
微信截图_20240303154659

4、docker network agents
微信截图_20240303155153
微信截图_20240303162426

5、installation and configuration is complete
微信截图_20240303163720

6、create “demo.yaml”
微信截图_20240303163609

7、 did not run after push
image

Gitea Version

1.21.7

Can you reproduce the bug on the Gitea demo site?

No

Operating System

Screenshots

Browser Version

Microsoft Edge 122.0.2365.66

@zhangbaojia zhangbaojia added topic/ui Change the appearance of the Gitea UI type/bug labels Mar 3, 2024
@techknowlogick
Copy link
Member

What do the logs of the act_runner say?

@zhangbaojia
Copy link
Author

zhangbaojia commented Mar 4, 2024

gitea logs
image

runner logs
image

@sillyguodong sillyguodong added topic/gitea-actions related to the actions of Gitea and removed topic/ui Change the appearance of the Gitea UI labels Mar 4, 2024
@lunny
Copy link
Member

lunny commented Mar 4, 2024

What's your ROOT_URL on app.ini ?

@lunny lunny added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/bug labels Mar 4, 2024
@zhangbaojia
Copy link
Author

gite app.ini
微信截图_20240304134716
微信截图_20240304134751

runner config.yaml
微信截图_20240304134816
微信截图_20240304134827

@lunny
Copy link
Member

lunny commented Mar 4, 2024

So you can try ping 192.168.71.202 from act_runner docker to test whether the network works between act_runner and gitea. If not, change your ROOT_URL to the correct one.

@zhangbaojia
Copy link
Author

see Setp 4 【figure 2】 ping gitea:3000

@zhangbaojia
Copy link
Author

ping 192.168.71.202
image

@lunny
Copy link
Member

lunny commented Mar 4, 2024

image I'm confused that why the act_runner is connected to 172.20.0.3's 3000 but not 192.168.71.202's 9197

@wolfogre
Copy link
Member

wolfogre commented Mar 4, 2024

Please hold on, I think it has nothing to do with the runner.

The problem is that the push operations do not trigger any runs, instead of runs that are not executed by the runner. So I believe it's also caused by broken git hooks.

Since the problem seems related to the network, I guess maybe the Git hooks cannot connect to the gitea internal API. Please check what happened if you attach to the gitea container and run curl 192.168.71.202:9197, wait, let me check ... it should be curl http://localhost:3000 according to your config.

Or it's not caused by the network, but I do think it's related to git hooks instead of runners.

@zhangbaojia
Copy link
Author

this?
image
image
image

@zhangbaojia
Copy link
Author

docker network:
image

gitea curl:
image

runner curl:
image

@zhangbaojia
Copy link
Author

zhangbaojia commented Mar 4, 2024

runner config.yaml
image

runner restart and no log
image

@wolfogre
Copy link
Member

wolfogre commented Mar 4, 2024

I still believe the problem is not about the runner, but with the git hook. Maybe you can wait for #29494.

@yp05327
Copy link
Contributor

yp05327 commented Mar 4, 2024

I also think the problem is not about the runner, it is from Gitea side, as there are no waiting runs listed here.
If it is the problem of the runner, there should be some waiting runs listed, then Gitea will send these tasks to the runner.

@wolfogre
If it is because of the git hook, so webhook should also not work?
Then we can create a webhook, and push commits, then see whether the webhook is triggered by checking the webhook history?

@charles7668
Copy link
Contributor

charles7668 commented Mar 4, 2024

My test results indicate that if the port specified in your ROOT_URL is different from the HTTP_PORT, then the Action runner will receive a "connection refused" message. However, if I change it to the same port, then it works fine.

image

image

@charles7668
Copy link
Contributor

Hmm... if I use a reverse proxy, then ROOT_URL = 9197 and HTTP_PORT = 3000 work fine.

@zhangbaojia
Copy link
Author

zhangbaojia commented Mar 5, 2024

I still believe the problem is not about the runner, but with the git hook. Maybe you can wait for

i agree!!!

My reasoning is that this server push code that can be submitted even with read-only permission.

@zhangbaojia
Copy link
Author

ROOT_URL = 9197

ROOT_URL configured

image

@GiteaBot
Copy link
Contributor

GiteaBot commented Apr 5, 2024

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot GiteaBot closed this as completed Apr 5, 2024
@yp05327
Copy link
Contributor

yp05327 commented Apr 8, 2024

@zhangbaojia
Does git hook fix solved your problem?

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail topic/gitea-actions related to the actions of Gitea
Projects
None yet
Development

No branches or pull requests

8 participants