action-docker-layer-caching: "Root cache could not be found. aborting." and "Error: The process '/usr/bin/docker' failed with exit code 1"

Describe the bug creating the cache and filling it throwing errors

To Reproduce Use example from README Run action Observe errors

Expected behavior Working cache

Debug logs https://github.com/valentijnscholten/django-DefectDojo/runs/1167379775?check_suite_focus=true

Run satackey/action-docker-layer-caching@v0.0.8
  with:
    key: docker-layer-caching-Docker Compose Actions Workflow-{hash}
    restore-keys: docker-layer-caching-Docker Compose Actions Workflow-
    concurrency: 4
    skip-save: false
Root cache could not be found. aborting.

and

1s
Post job cleanup.
Error: The process '/usr/bin/docker' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/satackey/action-docker-layer-caching/v0.0.8/dist/ttsc-dist/post.js/index.js:1300:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/satackey/action-docker-layer-caching/v0.0.8/dist/ttsc-dist/post.js/index.js:1283:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/satackey/action-docker-layer-caching/v0.0.8/dist/ttsc-dist/post.js/index.js:1183:27)
    at ChildProcess.emit (events.js:210:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:210:5)
    at Pipe.<anonymous> (net.js:659:12)
Error: Error: The process '/usr/bin/docker' failed with exit code 1

If applicable, add debug logs to help explain your problem. Learn more about enabling the debug log at https://docs.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run#enabling-debug-logging

Runner Environment (please complete the following information):

  • OS: ubuntu-latest
  • Action version: 0.0.8

Additional context workflow file: https://github.com/valentijnscholten/django-DefectDojo/actions/runs/272961568/workflow

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 17
  • Comments: 18 (4 by maintainers)

Most upvoted comments

Has there been any progress on this issue in the last 5 months since it was opened?

Using v.0.0.8 only encountering this the first run when nothing has been cached yet, second run it’s working fine.

Just tried again with v0.0.11 same result.

https://github.com/DefectDojo/django-DefectDojo/runs/1584256485?check_suite_focus=true

Running this workflow with ACTIONS_STEP_DEBUG set to true shows the following:

##[debug]{"log":"getExistingImages", [...],"repotags":[[...],"mysql:<none>", [...],"rabbitmq:<none>", [...],"python:<none>", [...]]}

This specific case is hitting the issue described in #17: currently this action doesn’t support images specified by sha256 hash. It looks like @sherifnada’s workflow is hitting that too.