actions / actions/toolkit

[CACHE] 503 on chunk upload

Open
#765 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug cache
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Thank you 🙇‍♀ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.

If your issue is relevant to this repository, please include the information below:

Describe the bug
On cache post, I got a 503 error or unavailable keys for restoring.
I'm using it to save .npm caches and cypress install but it doesn't works.

To Reproduce
Steps to reproduce the behavior:
A. Run a job into a container, in my case: container: cypress/browsers:node12.18.3-chrome89-ff86

  1. uses cypress-io/github-action@v2 with a github/cache@v2 before.
  2. Wait until the end
  3. Check output: Warning: uploadChunk (start: 67108864, end: 100663295) failed: Cache service responded with 503

Expected behavior
A clear and concise description of what you expected to happen.

  • The upload who would pass.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Self-hosted runner: Current runner version: '2.277.1' on Ubuntu
  • Version: @v2

Additional context
Add any other context about the problem here.

2021-04-08T16:44:04.8306990Z ##[group]Run actions/cache@v2
2021-04-08T16:44:04.8307543Z with:
2021-04-08T16:44:04.8308036Z   path: ~/.cache/Cypress
build
node_modules

2021-04-08T16:44:04.8309737Z   key: Linux-node_modules-build-fc9e2ae169dbc48149296a3ad67254c72829aeb2c10852070989fa5e64e6b57b
2021-04-08T16:44:04.8311518Z   restore-keys: Linux-node_modules-build-

2021-04-08T16:44:04.8312106Z ##[endgroup]
2021-04-08T16:44:04.8318995Z ##[command]/usr/bin/docker exec  126bceacdfce55bb92d76e05069ef34770cfb40d8d40104790e52f0b8dba6cd3 sh -c "cat /etc/*release | grep ^ID"
2021-04-08T16:44:05.8125878Z Cache not found for input keys: Linux-node_modules-build-fc9e2ae169dbc48149296a3ad67254c72829aeb2c10852070989fa5e64e6b57b, Linux-node_modules-build-
2021-04-08T16:50:24.0259093Z [warning]uploadChunk (start: 67108864, end: 100663295) failed: Cache service responded with 503

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the actions/cache@v2 workflow and the logged uploadChunk operation, using the provided Cypress container and self-hosted Ubuntu runner details to reproduce the failure. Compare the cache-post and restore-key behavior around the reported 503 response; done means the chunk upload completes and the saved cache can be restored without unavailable keys.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.