Skip to content
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

Restoring cache on Windows fails with "...is not a valid parent..." message #101

Open
rcowsill opened this issue Jan 3, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@rcowsill
Copy link
Contributor

rcowsill commented Jan 3, 2021

Note:
For tracking purposes only; this is caused by an issue affecting Docker itself. See: moby/moby#41829


Describe the bug
On Windows, restoring the cache fails with an error message such as: image sha256:6795354d435f[...] is not a valid parent for sha256:bfeb117a8139[...]

To Reproduce
Use this action in a workflow that builds an image FROM mcr.microsoft.com/windows/nanoserver:1809 (other windows images are affected too, eg windows/servercore:ltsc2019)

Note: the image needs to be built in the workflow, pulled images cache/restore without issues.

Expected behavior
Cache to load successfully

Debug logs

"C:\Program Files\Git\bin\sh.exe" -c "tar cf - . | docker load"
Loaded image: test_project_scratch:latest
image sha256:6795354d435f89ae3a76f71e9c4e8e8b29b70a69fefaba2b4d13581e20c19d71 is not a valid parent for sha256:bfeb117a81391290c69b33f5b1598f21a5497288247ea0b300900a5a93d7d5d9
Error: The process 'C:\Program Files\Git\bin\sh.exe' failed with exit code 1
Error: Error: The process 'C:\Program Files\Git\bin\sh.exe' failed with exit code 1
    at ExecState._setResult (D:\a\action-docker-layer-caching\action-docker-layer-caching\action-dlc\dist\ttsc-dist\main.js\index.js:1035:25)

(Taken from https://github.com/rcowsill/action-docker-layer-caching/runs/1640192546?check_suite_focus=true)

Runner Environment (please complete the following information):

  • OS: Microsoft Windows Server 2019 10.0.17763 Datacenter
  • Action version: v0.0.11
@rcowsill rcowsill added the bug Something isn't working label Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant