[GH-ISSUE #2371] upload-artifacts/download-artifacts@v4 not working with large files #1090

Closed
opened 2026-03-01 21:48:49 +03:00 by kerem · 2 comments
Owner

Originally created by @ArendJan on GitHub (Jun 20, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2371

Bug report info

act version:            0.2.63
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 8
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
Config files:           
        /home/arendjan/.actrc:
                -P ubuntu-latest=catthehacker/ubuntu:act-latest
                -P ubuntu-22.04=catthehacker/ubuntu:act-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:act-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
        Go version:            go1.21.10
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:         
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.63 -X main.commit=c959fdd58835195916386b44a87632151a1b491a -X main.date=2024-06-01T02:17:39Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         c959fdd58835195916386b44a87632151a1b491a
                vcs.time:             2024-06-01T02:17:21Z
                vcs.modified:         false
Docker Engine:
        Engine version:        26.1.4
        Engine runtime:        runc
        Cgroup version:        1
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Ubuntu 20.04.6 LTS
        OS type:               linux
        OS version:            20.04
        OS arch:               x86_64
        OS kernel:             5.15.153.1-microsoft-standard-WSL2
        OS CPU:                8
        OS memory:             7810 MB
        Security options:
                name=seccomp,profile=builtin

Command used with act

act -v -j download_huge_file --artifact-server-path test/

Describe issue

When uploading/downloading 'large' files, the v4 artifact system does not work and results in ::debug::Failed to download artifact after 1 retries due to Not a valid zip file. Retrying in 5 seconds... and ::debug::response.message: Artifact download failed: Blob storage chunk did not respond in 30000ms messages.

It worked with the v3 actions.

No response

Workflow content

name: test

on:
    [push]

jobs:
    upload_huge_file:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v4
            # create huge file, works with /dev/null, as the zip is compressed
            - run: dd if=/dev/random of=huge_file bs=1M count=1024
            - name: Upload huge file
              uses: actions/upload-artifact@v4
              with:
                  name: huge_file
                  path: huge_file
    download_huge_file:
        runs-on: ubuntu-latest
        needs: upload_huge_file
        steps:
            - uses: actions/checkout@v4
            - name: Download huge file
              uses: actions/download-artifact@v4
              with:
                  name: huge_file
            - run: ls -al

Relevant log output

too long, uploaded to here: https://pastebin.com/Pv6eS2Eq

Additional information

No response

Originally created by @ArendJan on GitHub (Jun 20, 2024). Original GitHub issue: https://github.com/nektos/act/issues/2371 ### Bug report info ```plain text act version: 0.2.63 GOOS: linux GOARCH: amd64 NumCPU: 8 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock Config files: /home/arendjan/.actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 Build info: Go version: go1.21.10 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -s -w -X main.version=0.2.63 -X main.commit=c959fdd58835195916386b44a87632151a1b491a -X main.date=2024-06-01T02:17:39Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: c959fdd58835195916386b44a87632151a1b491a vcs.time: 2024-06-01T02:17:21Z vcs.modified: false Docker Engine: Engine version: 26.1.4 Engine runtime: runc Cgroup version: 1 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu 20.04.6 LTS OS type: linux OS version: 20.04 OS arch: x86_64 OS kernel: 5.15.153.1-microsoft-standard-WSL2 OS CPU: 8 OS memory: 7810 MB Security options: name=seccomp,profile=builtin ``` ### Command used with act ```sh act -v -j download_huge_file --artifact-server-path test/ ``` ### Describe issue When uploading/downloading 'large' files, the v4 artifact system does not work and results in `::debug::Failed to download artifact after 1 retries due to Not a valid zip file. Retrying in 5 seconds...` and `::debug::response.message: Artifact download failed: Blob storage chunk did not respond in 30000ms` messages. It worked with the v3 actions. ### Link to GitHub repository _No response_ ### Workflow content ```yml name: test on: [push] jobs: upload_huge_file: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 # create huge file, works with /dev/null, as the zip is compressed - run: dd if=/dev/random of=huge_file bs=1M count=1024 - name: Upload huge file uses: actions/upload-artifact@v4 with: name: huge_file path: huge_file download_huge_file: runs-on: ubuntu-latest needs: upload_huge_file steps: - uses: actions/checkout@v4 - name: Download huge file uses: actions/download-artifact@v4 with: name: huge_file - run: ls -al ``` ### Relevant log output ```sh too long, uploaded to here: https://pastebin.com/Pv6eS2Eq ``` ### Additional information _No response_
kerem 2026-03-01 21:48:49 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@ArendJan commented on GitHub (Jul 5, 2024):

Probably the same issue as #2351

<!-- gh-comment-id:2211054127 --> @ArendJan commented on GitHub (Jul 5, 2024): Probably the same issue as #2351
Author
Owner

@VAllens commented on GitHub (Aug 9, 2024):

Any progress?

<!-- gh-comment-id:2277234743 --> @VAllens commented on GitHub (Aug 9, 2024): Any progress?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1090
No description provided.