Cannot get actions to work #12719

Closed
opened 2025-11-02 10:19:02 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @flixman on GitHub (Mar 24, 2024).

Description

I have created a gitea action to get to know it. Unfortunately, I cannot get to clone the repository... and the error message is not very helpful. This is the workflow file:

---
name: CI test
on:
  pull_request:
    types: [opened, edited, synchronize, reopened]
    branches:
      - main
  # issue_comment is used here to trigger workflows manually
  # until the corresponding functionality is available on gitea
  issue_comment:

jobs:
  build:
    runs-on: debian-node16
    if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run build' || github.event.comment.body == '!actions run all' }}
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Run
        run: |
          echo "Build Run"

  test:
    name: Test
    runs-on: debian-node16
    if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run test' || github.event.comment.body == '!actions run all' }}
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Run
        run: |
          echo "Test Run"

And this is the error I get, when doing the checkout

::add-matcher::/run/act/actions/actions-checkout@v4/dist/problem-matcher.json
Syncing repository: user/myrepo
::group::Getting Git version info
Working directory is '/workspace/user/myrepo'
::endgroup::
Deleting the contents of '/workspace/user/myrepo'
The repository will be downloaded using the GitHub REST API
To create a local Git repository instead, add Git 2.18 or higher to the PATH
Downloading the archive
Not found.
Waiting 18 seconds before trying again
Downloading the archive
Not found.
Waiting 14 seconds before trying again
Downloading the archive
::remove-matcher owner=checkout-git::
::error::Not found.%0A

what is the archive it cannot download? could it be due to the fact that I have gitea behind an apache server that terminates the SSL connection (uses a Let's encript certificate)?

Gitea Version

1.21.9

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

debian stable

How are you running Gitea?

I am downloading the gitea binaries from github releases. Gitea itself is running natively, but the runners are running through docker.

Database

PostgreSQL

Originally created by @flixman on GitHub (Mar 24, 2024). ### Description I have created a gitea action to get to know it. Unfortunately, I cannot get to clone the repository... and the error message is not very helpful. This is the workflow file: ```yaml --- name: CI test on: pull_request: types: [opened, edited, synchronize, reopened] branches: - main # issue_comment is used here to trigger workflows manually # until the corresponding functionality is available on gitea issue_comment: jobs: build: runs-on: debian-node16 if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run build' || github.event.comment.body == '!actions run all' }} steps: - name: Checkout uses: actions/checkout@v4 - name: Run run: | echo "Build Run" test: name: Test runs-on: debian-node16 if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run test' || github.event.comment.body == '!actions run all' }} steps: - name: Checkout uses: actions/checkout@v4 - name: Run run: | echo "Test Run" ``` And this is the error I get, when doing the checkout ```bash ::add-matcher::/run/act/actions/actions-checkout@v4/dist/problem-matcher.json Syncing repository: user/myrepo ::group::Getting Git version info Working directory is '/workspace/user/myrepo' ::endgroup:: Deleting the contents of '/workspace/user/myrepo' The repository will be downloaded using the GitHub REST API To create a local Git repository instead, add Git 2.18 or higher to the PATH Downloading the archive Not found. Waiting 18 seconds before trying again Downloading the archive Not found. Waiting 14 seconds before trying again Downloading the archive ::remove-matcher owner=checkout-git:: ::error::Not found.%0A ``` what is the archive it cannot download? could it be due to the fact that I have gitea behind an apache server that terminates the SSL connection (uses a Let's encript certificate)? ### Gitea Version 1.21.9 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System debian stable ### How are you running Gitea? I am downloading the gitea binaries from github releases. Gitea itself is running natively, but the runners are running through docker. ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 10:19:02 -06:00
Author
Owner

@luxl commented on GitHub (Mar 24, 2024):

Does your action runners have git installed? I ran into this problem days ago and found that I didn't install git and when I installed it, everything goes fine

@luxl commented on GitHub (Mar 24, 2024): Does your action runners have git installed? I ran into this problem days ago and found that I didn't install git and when I installed it, everything goes fine
Author
Owner

@flixman commented on GitHub (Mar 24, 2024):

@luxl Thank you for pointing that out! Indeed, git is missing. But now I am a bit lost: when using the runners in docker, are we then expected to create our own image based on node-XX, including git?.

EDIT: Indeed, seems to work. I have installed git on node and created a new image based on this, and now I do not have this error anymore. Thank you!

@flixman commented on GitHub (Mar 24, 2024): @luxl Thank you for pointing that out! Indeed, git is missing. But now I am a bit lost: when using the runners in docker, are we then expected to create our own image based on node-XX, including git?. EDIT: Indeed, seems to work. I have installed git on node and created a new image based on this, and now I do not have this error anymore. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12719