# Unable to run Actions on push with basic workflow file

**URL:** <https://forum.gitea.com/t/unable-to-run-actions-on-push-with-basic-workflow-file/8656>\
**Category:** Actions\
**Created:** [February 24, 2024, 7:49pm UTC](https://forum.gitea.com/t/unable-to-run-actions-on-push-with-basic-workflow-file/8656 "2024-02-24T19:49:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Defog0825](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@Defog0825](https://forum.gitea.com/u/Defog0825)\
**Post date:** [February 24, 2024, 7:49pm UTC](https://forum.gitea.com/t/unable-to-run-actions-on-push-with-basic-workflow-file/8656/1 "2024-02-24T19:49:21Z")

</div>

I posted this issue on the gitea github project, but it seems I might get some more eyes on it here. You can see any discussion about the issue here: [Unable to run Actions on push with basic workflow file. · Issue #29338 · go-gitea/gitea · GitHub](https://github.com/go-gitea/gitea/issues/29338)

### Description

My runner is successfully identified and connected.  
[See image on github issue]  
The logs for the docker deployment of my runner are as follows, indicating success.

```auto
level=info msg="Registering runner, arch=amd64, os=linux, version=v0.2.6."
level=error msg="Cannot ping the Gitea instance server" error="unavailable: 502 Bad Gateway"
level=error msg="Cannot ping the Gitea instance server" error="unavailable: 502 Bad Gateway"
level=error msg="Cannot ping the Gitea instance server" error="unavailable: 502 Bad Gateway"
level=debug msg="Successfully pinged the Gitea instance server"
level=info msg="Runner registered successfully."
SUCCESS
time="2024-02-23T00:11:17Z" level=info msg="Starting runner daemon"
time="2024-02-23T00:11:17Z" level=info msg="runner: 099[REDACTED], with version: v0.2.6, with labels: [ubuntu-latest ubuntu-22.04 ubuntu-20.04 ubuntu-18.04], declare successfully"

```

My workflow config file looks as follows:

```auto
name: Gitea Actions Demo
run-name: This is testing out Gitea Actions
on: push

jobs:
  Explore-Gitea-Actions:
    runs-on: ubuntu-22.04
    steps:
      - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."

```

The log output of my gitea server shows this information when I push to the repo with the workflow:

```auto
2024/02/23 00:26:23 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 33.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:25 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 32.9ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:27 ...eb/routing/logger.go:102:func1() [I] router: completed GET /[REDACTED]website.git/info/refs?service=git-upload-pack for [REDACTED IP], 401 Unauthorized in 15.9ms @ repo/githttp.go:532(repo.GetInfoRefs)
2024/02/23 00:26:27 ...eb/routing/logger.go:102:func1() [I] router: completed GET /[REDACTED]website.git/info/refs?service=git-upload-pack for [REDACTED IP], 200 OK in 141.5ms @ repo/githttp.go:532(repo.GetInfoRefs)
2024/02/23 00:26:27 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 18.5ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:28 ...eb/routing/logger.go:102:func1() [I] router: completed POST /[REDACTED]website.git/git-upload-pack for [REDACTED IP], 200 OK in 154.5ms @ repo/githttp.go:492(repo.ServiceUploadPack)
2024/02/23 00:26:29 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 24.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:31 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 33.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:33 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 32.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:34 ...eb/routing/logger.go:102:func1() [I] router: completed GET /user/events for [REDACTED IP], 200 OK in 433101.7ms @ events/events.go:18(events.Events)
2024/02/23 00:26:34 ...eb/routing/logger.go:102:func1() [I] router: completed GET /admin for [REDACTED IP], 200 OK in 43.4ms @ admin/admin.go:127(admin.Dashboard)
2024/02/23 00:26:34 ...eb/routing/logger.go:102:func1() [I] router: completed GET /avatar/c43863c87e1d91294c0af8ce37b3d4fa?size=48 for [REDACTED IP], 303 See Other in 124.7ms @ user/avatar.go:48(user.AvatarByEmailHash)
2024/02/23 00:26:35 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 31.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:37 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 28.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:38 ...eb/routing/logger.go:68:func1() [I] router: polling GET /user/events for [REDACTED IP], elapsed 3763.7ms @ events/events.go:18(events.Events)
2024/02/23 00:26:39 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 30.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:41 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 32.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/02/23 00:26:43 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [REDACTED IP], 200 OK in 29.2ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)

```

Gitea appears to be picking up the file just fine as the workflow shows up in the UI for the repo.  
[See image on github issue]

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` . I used 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 on `try.gitea.io`. Another notable difference is that the repo on my server has “limited visibility”. Making the repo completely private on the `test.gitea.io` still allows the workflow to run.  
[See image on github issue

![image](https://github.com/go-gitea/gitea/assets/94595995/d838d826-1808-4f64-bcfd-55074b99f629)  
I had some suspicion that it may be my Nginx configuration, but 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.

This issue looks a lot like this resolved issue, but the resolution listed doesn’t make sense even for that issue #28277 on github.

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

### 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 provided by gitea. I’m including the compose content for the rest of the gitea instance as well.

```auto
version: "3.9"
services:
  gitea:
    image: gitea/gitea:latest
    restart: always
    hostname: [REDACTED IP]
    environment:
      - USER=git
      - USER_UID=1000
      - USER_GID=998
      - GITEA __database__ DB_TYPE=postgres
      - GITEA __database__ HOST=giteadb:5432
      - GITEA __database__ NAME=[REDACTED]
      - GITEA __database__ USER=[REDACTED]
      - GITEA __database__ PASSWD=[REDACTED]
    networks:
      - gitea
    ports:
      - 3000:3000
      - 22:22
    volumes:
      - /[REDACTED]/gitea/data:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    shm_size: 256m
    depends_on:
      - giteadb

  giteadb:
    image: postgres:14
    restart: always
    environment:
      - POSTGRES_USER=[REDACTED]
      - POSTGRES_PASSWORD=[REDACTED]
      - POSTGRES_DB=[REDACTED]
    networks:
      - gitea
    volumes:
      - /[REDACTED]/gitea/db:/var/lib/postgresql/data

  runner:
    image: gitea/act_runner:latest
    restart: always
    depends_on:
      - gitea
    volumes:
      - /[REDACTED]/data/act_runner:/data
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - GITEA_INSTANCE_URL=https://[REDACTED].com
      - GITEA_RUNNER_REGISTRATION_TOKEN=[REDACTED]
networks:
  gitea:
    external: false

```

### Database

PostgreSQL

---

<div class="post-metadata">

**Author:** ![Defog0825](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@Defog0825](https://forum.gitea.com/u/Defog0825)\
**Post date:** [February 25, 2024, 9:30pm UTC](https://forum.gitea.com/t/unable-to-run-actions-on-push-with-basic-workflow-file/8656/2 "2024-02-25T21:30:22Z")

</div>

Does anyone have advice on where I can look for more clues as to why jobs might not be getting kicked off? I’ve run out of ideas.

---

<div class="post-metadata">

**Author:** ![Defog0825](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@Defog0825](https://forum.gitea.com/u/Defog0825)\
**Post date:** [February 28, 2024, 10:33am UTC](https://forum.gitea.com/t/unable-to-run-actions-on-push-with-basic-workflow-file/8656/3 "2024-02-28T10:33:38Z")

</div>

The original github issue is getting traction now. If you are also experiencing this issue, it would be helpful to have your participation in the discussion and maybe help providing logs and other artifacts.

> <https://github.com/go-gitea/gitea/issues/29338>
>
> \### Description
> 
> I have the following configuration for my gitea server. 
> 
> 
> …
> My runner is successfully identified and connected.
> !\[image\](https://github.com/go-gitea/gitea/assets/94595995/a169b145-a61b-46c5-b3ee-939d6c5ceeee)
> The logs for the docker deployment of my runner are as follows, indicating success.
> 
> \`\`\`
> level=info msg="Registering runner, arch=amd64, os=linux, version=v0.2.6."
> level=error msg="Cannot ping the Gitea instance server" error="unavailable: 502 Bad Gateway"
> level=error msg="Cannot ping the Gitea instance server" error="unavailable: 502 Bad Gateway"
> level=error msg="Cannot ping the Gitea instance server" error="unavailable: 502 Bad Gateway"
> level=debug msg="Successfully pinged the Gitea instance server"
> level=info msg="Runner registered successfully."
> SUCCESS
> time="2024-02-23T00:11:17Z" level=info msg="Starting runner daemon"
> time="2024-02-23T00:11:17Z" level=info msg="runner: 099\[REDACTED\], with version: v0.2.6, with labels: \[ubuntu-latest ubuntu-22.04 ubuntu-20.04 ubuntu-18.04\], declare successfully"
> \`\`\`
> 
> My workflow config file looks as follows:
> 
> \`\`\`
> name: Gitea Actions Demo
> run-name: This is testing out Gitea Actions
> on: push
> 
> jobs:
> Explore-Gitea-Actions:
> runs-on: ubuntu-22.04
> steps:
> - run: echo "The job was automatically triggered by a ${{ gitea.event\_name }} event."
> \`\`\`
> 
> The log output of my gitea server shows this information when I push to the repo with the workflow:
> 
> \`\`\`
> 2024/02/23 00:26:23 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 33.1ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:25 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 32.9ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:27 ...eb/routing/logger.go:102:func1() \[I\] router: completed GET /\[REDACTED\]website.git/info/refs?service=git-upload-pack for \[REDACTED IP\], 401 Unauthorized in 15.9ms @ repo/githttp.go:532(repo.GetInfoRefs)
> 2024/02/23 00:26:27 ...eb/routing/logger.go:102:func1() \[I\] router: completed GET /\[REDACTED\]website.git/info/refs?service=git-upload-pack for \[REDACTED IP\], 200 OK in 141.5ms @ repo/githttp.go:532(repo.GetInfoRefs)
> 2024/02/23 00:26:27 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 18.5ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:28 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /\[REDACTED\]website.git/git-upload-pack for \[REDACTED IP\], 200 OK in 154.5ms @ repo/githttp.go:492(repo.ServiceUploadPack)
> 2024/02/23 00:26:29 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 24.6ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:31 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 33.8ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:33 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 32.6ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:34 ...eb/routing/logger.go:102:func1() \[I\] router: completed GET /user/events for \[REDACTED IP\], 200 OK in 433101.7ms @ events/events.go:18(events.Events)
> 2024/02/23 00:26:34 ...eb/routing/logger.go:102:func1() \[I\] router: completed GET /admin for \[REDACTED IP\], 200 OK in 43.4ms @ admin/admin.go:127(admin.Dashboard)
> 2024/02/23 00:26:34 ...eb/routing/logger.go:102:func1() \[I\] router: completed GET /avatar/c43863c87e1d91294c0af8ce37b3d4fa?size=48 for \[REDACTED IP\], 303 See Other in 124.7ms @ user/avatar.go:48(user.AvatarByEmailHash)
> 2024/02/23 00:26:35 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 31.8ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:37 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 28.1ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:38 ...eb/routing/logger.go:68:func1() \[I\] router: polling GET /user/events for \[REDACTED IP\], elapsed 3763.7ms @ events/events.go:18(events.Events)
> 2024/02/23 00:26:39 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 30.6ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:41 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 32.7ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> 2024/02/23 00:26:43 ...eb/routing/logger.go:102:func1() \[I\] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for \[REDACTED IP\], 200 OK in 29.2ms @ \<autogenerated\>:1(http.Handler.ServeHTTP-fm)
> \`\`\`
> 
> Gitea appears to be picking up the file just fine as the workflow shows up in the UI for the repo.
> !\[image\](https://github.com/go-gitea/gitea/assets/94595995/142e47fe-cbe2-4569-ac51-532810f68cf2)
> 
> 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 on \`try.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. 
> !\[image\](https://github.com/go-gitea/gitea/assets/94595995/a7af9eb4-0ed6-41f6-9302-1e26d32279d9)
> 
> 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\](https://docs.gitea.com/usage/actions/act-runner). I'm including the compose content for the rest of the gitea instance as well.
> 
> \`\`\`
> version: "3.9"
> services:
> gitea:
> image: gitea/gitea:latest
> restart: always
> hostname: \[REDACTED IP\]
> environment:
> - USER=git
> - USER\_UID=1000
> - USER\_GID=998
> - GITEA\_\_database\_\_DB\_TYPE=postgres
> - GITEA\_\_database\_\_HOST=giteadb:5432
> - GITEA\_\_database\_\_NAME=\[REDACTED\]
> - GITEA\_\_database\_\_USER=\[REDACTED\]
> - GITEA\_\_database\_\_PASSWD=\[REDACTED\]
> networks:
> - gitea
> ports:
> - 3000:3000
> - 22:22
> volumes:
> - /\[REDACTED\]/gitea/data:/data
> - /etc/timezone:/etc/timezone:ro
> - /etc/localtime:/etc/localtime:ro
> shm\_size: 256m
> depends\_on:
> - giteadb
> 
> giteadb:
> image: postgres:14
> restart: always
> environment:
> - POSTGRES\_USER=\[REDACTED\]
> - POSTGRES\_PASSWORD=\[REDACTED\]
> - POSTGRES\_DB=\[REDACTED\]
> networks:
> - gitea
> volumes:
> - /\[REDACTED\]/gitea/db:/var/lib/postgresql/data
> 
> runner:
> image: gitea/act\_runner:latest
> restart: always
> depends\_on:
> - gitea
> volumes:
> - /\[REDACTED\]/data/act\_runner:/data
> - /var/run/docker.sock:/var/run/docker.sock
> environment:
> - GITEA\_INSTANCE\_URL=https://\[REDACTED\].com
> - GITEA\_RUNNER\_REGISTRATION\_TOKEN=\[REDACTED\]
> networks:
> gitea:
> external: false
> 
> \`\`\`
> 
> \### Database
> 
> PostgreSQL

---

<div class="post-metadata">

**Author:** ![Defog0825](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@Defog0825](https://forum.gitea.com/u/Defog0825)\
**Post date:** [February 29, 2024, 7:01pm UTC](https://forum.gitea.com/t/unable-to-run-actions-on-push-with-basic-workflow-file/8656/4 "2024-02-29T19:01:58Z")

</div>

This issue has been resolved. For the two people that it was affecting, I was running on a SMB/CIFS drive mount and the other person was running an older version of Docker.

Both of those environments cause problems when running hooks which are needed for Actions to run.

> **[FAQ | Gitea Documentation](https://docs.gitea.com/help/faq#push-hook--webhook-arent-running)**
>
> This page contains some common questions and answers.
