Artifacts upload results in http error 500 #12294

Closed
opened 2025-11-02 10:04:42 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @StefanSa on GitHub (Jan 5, 2024).

Originally assigned to: @fuxiaohei on GitHub.

Description

When running the following pipeline on act_runner, the artifacts are not uploaded due to http error 500.

haproxy-deps.yml:

name: HAProxy dependencies

on:
  workflow_call:
    inputs:
      DEBIAN_CODENAME:
        required: true
        type: string
      CLANG_VERSION:
        required: true
        type: number

jobs:
  dependency:
    runs-on: ubuntu-latest
    # container: "docker.io/library/debian:${{ inputs.DEBIAN_CODENAME }}"
    image: catthehacker/ubuntu:act-latest
    permissions:
      contents: read
      packages: write
    strategy:
      matrix:
        dependency_name:
          - lua
          - pcre2
          - quictls
          - vtest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Setup OS
        uses: "./.github/actions/setup-os"
      - name: Build ${{ matrix.dependency_name }}
        run: make -C deps/${{ matrix.dependency_name }}
      - name: Archive ${{ matrix.dependency_name }} distribution
        uses: actions/upload-artifact@v3
        with:
          name: ${{ matrix.dependency_name }}-dist.tar.gz
          path: deps/${{ matrix.dependency_name }}/${{ matrix.dependency_name }}-dist.tar.gz

runner logfile

gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-4] 🏁  Job failed
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   | ##### Begin Diagnostic HTTP information #####
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   | Status Code: 500
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   | Status Message: Internal Server Error
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   | Header Information: {
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   |   "content-type": "text/plain; charset=utf-8",
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   |   "x-content-type-options": "nosniff",
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   |   "date": "Fri, 05 Jan 2024 12:23:15 GMT",
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   |   "content-length": "19",
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   |   "connection": "close"
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   | }
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   | ###### End Diagnostic HTTP information ######
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   ❗  ::error::Finalize artifact upload failed: Artifact service responded with 500
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   | ::error::Finalize artifact upload failed: Artifact service responded with 500
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2]   ❌  Failure - Main Archive pcre2 distribution
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2] exitcode '1': failure
gitea-runner-runner-1  | [haproxy-dependencies/HAProxy dependencies/dependency-2] [DEBUG] expression 'Archive ${{ matrix.dependency_name }} distribution' rewritten to 'format('Archive {0} distribution', matrix.dependency_name)'

Gitea Version

1.22.0+dev-514-gdd5693387

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

openleap 15.5

How are you running Gitea?

Self hosted on SuSe openleap 15.5

Database

PostgreSQL

Originally created by @StefanSa on GitHub (Jan 5, 2024). Originally assigned to: @fuxiaohei on GitHub. ### Description When running the following pipeline on act_runner, the artifacts are not uploaded due to http error 500. haproxy-deps.yml: ``` name: HAProxy dependencies on: workflow_call: inputs: DEBIAN_CODENAME: required: true type: string CLANG_VERSION: required: true type: number jobs: dependency: runs-on: ubuntu-latest # container: "docker.io/library/debian:${{ inputs.DEBIAN_CODENAME }}" image: catthehacker/ubuntu:act-latest permissions: contents: read packages: write strategy: matrix: dependency_name: - lua - pcre2 - quictls - vtest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Setup OS uses: "./.github/actions/setup-os" - name: Build ${{ matrix.dependency_name }} run: make -C deps/${{ matrix.dependency_name }} - name: Archive ${{ matrix.dependency_name }} distribution uses: actions/upload-artifact@v3 with: name: ${{ matrix.dependency_name }}-dist.tar.gz path: deps/${{ matrix.dependency_name }}/${{ matrix.dependency_name }}-dist.tar.gz ``` runner logfile ``` gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-4] 🏁 Job failed gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | ##### Begin Diagnostic HTTP information ##### gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | Status Code: 500 gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | Status Message: Internal Server Error gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | Header Information: { gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | "content-type": "text/plain; charset=utf-8", gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | "x-content-type-options": "nosniff", gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | "date": "Fri, 05 Jan 2024 12:23:15 GMT", gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | "content-length": "19", gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | "connection": "close" gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | } gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | ###### End Diagnostic HTTP information ###### gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] ❗ ::error::Finalize artifact upload failed: Artifact service responded with 500 gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] | ::error::Finalize artifact upload failed: Artifact service responded with 500 gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] ❌ Failure - Main Archive pcre2 distribution gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] exitcode '1': failure gitea-runner-runner-1 | [haproxy-dependencies/HAProxy dependencies/dependency-2] [DEBUG] expression 'Archive ${{ matrix.dependency_name }} distribution' rewritten to 'format('Archive {0} distribution', matrix.dependency_name)' ``` ### Gitea Version 1.22.0+dev-514-gdd5693387 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System openleap 15.5 ### How are you running Gitea? Self hosted on SuSe openleap 15.5 ### Database PostgreSQL
GiteaMirror added the topic/gitea-actionsissue/needs-feedbacktype/bug labels 2025-11-02 10:04:42 -06:00
Author
Owner

@robinknaapen commented on GitHub (Feb 20, 2024):

Any updates on this?

@robinknaapen commented on GitHub (Feb 20, 2024): Any updates on this?
Author
Owner

@simaek commented on GitHub (Nov 29, 2024):

I'm also seeing this same error. I spent a whole night trying to find the cause of the error. In the end, I only found that when the file was very small, it could be uploaded normally.

It may be related to the file being uploaded in chunks. When there are more than 2 chunks, an upload error will occur.

@simaek commented on GitHub (Nov 29, 2024): I'm also seeing this same error. I spent a whole night trying to find the cause of the error. In the end, I only found that when the file was very small, it could be uploaded normally. It may be related to the file being uploaded in chunks. When there are more than 2 chunks, an upload error will occur.
Author
Owner

@wxiaoguang commented on GitHub (Nov 29, 2024):

If you see 500 error, please provide the Gitea's logs.

@wxiaoguang commented on GitHub (Nov 29, 2024): If you see 500 error, please provide the Gitea's logs.
Author
Owner

@GiteaBot commented on GitHub (Dec 29, 2024):

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

@GiteaBot commented on GitHub (Dec 29, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12294