You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This legacy service is shutting down, effective April 15, 2025. Migrate to the new service ASAP
ERROR: This legacy service is shutting down, effective April 15, 2025. Migrate to the new service ASAP. For more information: https://gh.io/gha-cache-sunset
ERROR: failed to solve: This legacy service is shutting down, effective April 15, 2025. Migrate to the new service ASAP. For more information: https://gh.io/gha-cache-sunset
Reference
Check build summary support
Reacted by Pat Bernard, Shubham Pandey, Griffith T. Pickett, Ben Kuhl, Adrian Krupa, Pete Nykänen, Axel Haustant, Yves Jans, Bradley Yoo, Louis Cabrol and 26 more
Buildkit v0.20+ fixes this: moby/buildkit#5683
You can upgrade by updating the docker/setup-buildx-action that's commonly run before this build-push-action:
Are you sure it worked because the brownout just ended?
I'm not sure now. 😢 I'll have to test again on April 8th if there's no other traction between now any then.
I did test just the bump from 0.56 -> 0.57 and that still had the issue. So the only other test I did that was after the brown-out ended was using main instead of 0.57 of the actions-toolkit.
ERROR: This legacy service is shutting down, effective April 15, 2025. Migrate to the new service ASAP. For more information: https://gh.io/gha-cache-sunset
If you have this issue you're likely using BuildKit < 0.20.0 or Buildx < v0.21.0 that don't support cache service v2. This can happen on self-hosted runners so to make sure you're using the latest version of Buildx, either update your self-hosted runner or set version: latest in setup-buildx-action:
-
name: Set up Docker Buildxuses: docker/setup-buildx-action@v3with:
version: latest
Also it would be good if someone can give a link to the workflow run so we can take a look or full logs of the workflow.
Activity
andrewhharmon commentedon Apr 1, 2025
Editing this out, as I linked to the action instead of the node library
newman-dani commentedon Apr 1, 2025
I was able to bypass the error by setting
no-cache: truebut it does increase an action execution time.UPD.
Started to fail again
patbernard commentedon Apr 1, 2025
If you look at the latest release for v6, it's pointing to 4.0.2 -
which should be fine: https://github.com/docker/build-push-action/blob/v6.15.0/yarn.lockEdit: @bradley-yoo-anrok good catch. The latest version of build-push-action is pinned to a deprecated version. I was under the impression that v4.* was okay from this notice: https://github.blog/changelog/2025-01-15-github-actions-ubuntu-20-runner-image-brownout-dates-and-other-breaking-changes/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
But that scope is obviously larger than the original notice now.
newman-dani commentedon Apr 1, 2025
@patbernard I do use
471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0and still getting it.bradley-yoo-anrok commentedon Apr 1, 2025
I don't think 4.0.2 is fine. if you look at the original deprecation notice, 4.1.2 is deprecated.
I can't believe the github's own decomission notice contains examples of upgrades that doesn't work.
andrewhharmon commentedon Apr 1, 2025
yes we tried v6 and still got it as well
mmckane commentedon Apr 1, 2025
I also tried V6 and am seeing this happen
andrewhharmon commentedon Apr 1, 2025
I think this is the package being used here. it says v4.0.0 should be good.
mmckane commentedon Apr 1, 2025
if it helps I am using docker/setup-buildx-action@v3 as well
trautonen commentedon Apr 1, 2025
I'm using the latest docker/setup-buildx-action@v3 which
yarn.lockcurrently points toand the builds are failing
jpugliesi commentedon Apr 1, 2025
Buildkit v0.20+ recently upgraded GHA Cache support to v2: moby/buildkit#5683
But Github's deprecation notice shows version <4.0 will are being deprecated
aarashy commentedon Apr 1, 2025
Anybody know if its possible to use runs-on instead? We like this cache way better
johnfountainsomos commentedon Apr 1, 2025
this did not work for us. still the same failure
jpugliesi commentedon Apr 1, 2025
Indeed - v0.20 upgrades to cache API v2, while cache <v4.0 is being deprecated - updated my comment
patbernard commentedon Apr 1, 2025
It looks like what we need is docker/actions-toolkit to cut a new release (the latest release is using 4.0.2). See: docker/actions-toolkit#643
Then
docker/build-push-actioncan be updated to use the latest version ofdocker/actions-toolkitand we'll be on a supported version ofactions/cache.andrewhharmon commentedon Apr 1, 2025
perhaps not as
4.0.0and higher of the node library should support this .patbernard commentedon Apr 1, 2025
I think that did the trick. I ran the changes on a fork, and it worked for me: https://github.com/patbernard/build-push-action/tree/patbernard/update-cache-action-version
E.g.
bradley-yoo-anrok commentedon Apr 1, 2025
Are you sure it worked because the brownout just ended?
patbernard commentedon Apr 1, 2025
I'm not sure now. 😢 I'll have to test again on April 8th if there's no other traction between now any then.
I did test just the bump from 0.56 -> 0.57 and that still had the issue. So the only other test I did that was after the brown-out ended was using
maininstead of 0.57 of the actions-toolkit.Edit: Looking at this https://npmdiff.dev/%40actions%2Fcache/4.0.2/4.0.3/, I really doubt the 4.0.3 version fixes this. Feeling more confident it only worked because the brownout concluded.
crazy-max commentedon Apr 1, 2025
actions/cacheaction should not be confused with the@actions/cachemodule. We are not using this library fortype=ghacache backend but https://github.com/tonistiigi/go-actions-cache which supports the new cache service v2.If you have this issue you're likely using BuildKit < 0.20.0 or Buildx < v0.21.0 that don't support cache service v2. This can happen on self-hosted runners so to make sure you're using the latest version of Buildx, either update your self-hosted runner or set
version: latestinsetup-buildx-action:- name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: version: latestAlso it would be good if someone can give a link to the workflow run so we can take a look or full logs of the workflow.
aleksey-perplexity commentedon Apr 8, 2025
I am using v0.20.2 of the buildkit, cached in our ECR:
This last step in my workflow is failing:
Am I using the wrong version of something?
crazy-max commentedon Apr 8, 2025
Check Buildx >= 0.21.0 as well: #1345 (comment)
mbazalik commentedon Apr 8, 2025
I can confirm, having same issue using buildx v0.22.0, buildkit v0.20.2, build-push-action v6 :(
mbazalik commentedon Apr 8, 2025
I stand corrected, was using buildx v0.20.0, trying now with v0.22.0
mbazalik commentedon Apr 8, 2025
with buildx v0.22.0 it works
vovimayhem commentedon Apr 8, 2025
Worked for me as well. @crazy-max Maybe setting the
docker/setup-buildx-actionto use this BuildX version by default should work?build: note about sunset of gha cache v1 (#22395)
crazy-max commentedon Apr 14, 2025
Note about sunset of GHA cache service v1 added to our docs: https://docs.docker.com/build/ci/github-actions/cache/#github-cache