-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Failed to CreateArtifact: Failed to make request after 5 attempts: Request timeout #569
Comments
Random failures in GitHub Actions when trying to upload artifacts can be frustrating, particularly when they result in timeouts after multiple attempts. Here are a few suggestions and steps you can take to mitigate this problem:
Here is an example of how you can configure the name: Upload Artifacts with Retry Logic
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project
run: |
# Your build commands here
echo "Building project..."
- name: Upload artifacts with retry
run: |
for i in {1..5}; do
if [ $i -gt 1 ]; then
echo "Retry attempt $i"
sleep $((i * 3))
fi
if gh api -X POST -F artifact='@artifact.zip' /repos/:owner/:repo/actions/artifacts | jq -e '.id'; then
echo "Artifact uploaded successfully"
break
elif [ $i -eq 5 ]; then
echo "Failed to upload artifact after $i attempts"
exit 1
fi
done
- name: Upload artifacts using action
uses: actions/upload-artifact@v3
with:
name: my-artifact
path: path/to/artifacts/ In the custom retry logic step, replace the Additional Tips:
|
Also seeing this, for example: Also seeing this on download-artifact: actions/download-artifact#338 We're using the latest version of https://www.githubstatus.com/history shows no incidents when we encountered this issue |
I'm seeing this issue right now over at: https://github.com/forcedotcom/sfdx-scanner/actions/runs/10216682015/job/28268718086#step:11:19 --- Rerunning my workflow worked. So this seemed to just be a blip of sorts. https://github.com/forcedotcom/sfdx-scanner/actions/runs/10216830278 |
…acts issue GitHub artifacts v4 has intermittent issues: actions/upload-artifact#560 (comment) actions/upload-artifact#569 (comment) actions/download-artifact#338 Capture tcpdump as requested by GitHub Support
…acts issue GitHub artifacts v4 has intermittent issues: actions/upload-artifact#560 (comment) actions/upload-artifact#569 (comment) actions/download-artifact#338 Capture tcpdump as requested by GitHub Support
…acts issue GitHub artifacts v4 has intermittent issues: actions/upload-artifact#560 (comment) actions/upload-artifact#569 (comment) actions/download-artifact#338 Capture tcpdump as requested by GitHub Support
…acts issue (#229) GitHub artifacts v4 has intermittent issues: actions/upload-artifact#560 (comment) actions/upload-artifact#569 (comment) actions/download-artifact#338 Capture tcpdump as requested by GitHub Support
I'm also seeing this frequently on v4, e.g. this run. It usually succeeds on retry. Is there any plan to have more robust retries in this action? |
For my reference, I hit this today: https://github.com/orgs/community/discussions/143089 |
What happened?
I'm seeing random failures in Github Actions when trying to upload artifacts:
Happened multiple times in the last week. I'm using
ubuntu-latest
runner. Example: https://github.com/smartcontractkit/chainlink/actions/runs/9167647126/job/25205269179What did you expect to happen?
Artifacts should be successfully uploaded.
How can we reproduce it?
This is an issue that happens randomly
Anything else we need to know?
No response
What version of the action are you using?
v4.3.3
What are your runner environments?
linux
Are you on GitHub Enterprise Server? If so, what version?
No response
The text was updated successfully, but these errors were encountered: