actions / upload-artifact

MIT License
3.19k stars 715 forks source link

Actions artifact upload stalls when using self hosted runners #623

Open shaik2419 opened 3 weeks ago

shaik2419 commented 3 weeks ago

What happened?

When uploading artifacts using self hosted runners, artifacts gets stalled with below error

With the provided path, there will be 550127 files uploaded
Artifact name is valid!
Root directory input is valid!
Beginning upload of artifact content to blob storage
/home/runner/_work/_actions/actions/upload-artifact/v4/dist/upload/index.js:3312
                    throw new Error('Upload progress stalled.');
                    ^

Error: Upload progress stalled.
    at Timeout._onTimeout (/home/runner/_work/_actions/actions/upload-artifact/v4/dist/upload/index.js:3312:27)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)

Node.js v[20](https://github.com/CBRE-GCSO/gcso-iam-eadc/actions/runs/11113819006/job/30878983707#step:10:21).13.1

What did you expect to happen?

Artifacts are uploaded in less than a minute

How can we reproduce it?

I am running self hosted action runner using the image below. Upload an artifact with 500000 files which in total size is less than 100MB. It times out with the above error.

image: actions-runner:2.319.1

Run the same in ubuntu managed runner, it works

Anything else we need to know?

No response

What version of the action are you using?

2.319.1

What are your runner environments?

self-hosted, linux

Are you on GitHub Enterprise Server? If so, what version?

No response

shaik2419 commented 1 week ago

Hi is there any resolution to this. Ironically version 3 even though was slow, works. Please provide some steps to debug this in case v4 has to be used