Skip to content

Cache can not be restored #130

@Gerschtli

Description

@Gerschtli

Hey,

I see the following errors in my actions build log:

2019-12-14T23:08:07.7210360Z ##[group]Run actions/cache@v1
2019-12-14T23:08:07.7210509Z with:
2019-12-14T23:08:07.7210616Z   path: ~/.cargo/registry
2019-12-14T23:08:07.7210745Z   key: stable-cargo-registry-ad4a122259232ef810a90b022ad264d3f3c74b1efc554843505cccf89fc07c24-{{ github.sha }}
2019-12-14T23:08:07.7210897Z   restore-keys: stable-cargo-registry-ad4a122259232ef810a90b022ad264d3f3c74b1efc554843505cccf89fc07c24-
stable-cargo-registry-

2019-12-14T23:08:07.7211022Z ##[endgroup]
2019-12-14T23:08:10.0254237Z Cache Size: ~47 MB (49420254 B)
2019-12-14T23:08:10.0300191Z [command]/bin/tar -xz -f /home/runner/work/_temp/a6b84f38-63ad-474c-8be4-a741834e48ec/cache.tgz -C /home/runner/.cargo/registry
2019-12-14T23:08:10.0694227Z /bin/tar: ./index/github.com-1ecc6299db9ec823/.cache/un/ic: Cannot utime: Operation not permitted
2019-12-14T23:08:10.0697319Z /bin/tar: ./index/github.com-1ecc6299db9ec823/.cache/un/ic: Cannot change mode to rwxr-xr-x: Operation not permitted
2019-12-14T23:08:10.0698391Z /bin/tar: ./index/github.com-1ecc6299db9ec823/.cache/un: Cannot utime: Operation not permitted
2019-12-14T23:08:10.0699080Z /bin/tar: ./index/github.com-1ecc6299db9ec823/.cache/un: Cannot change mode to rwxr-xr-x: Operation not permitted

[...]

2019-12-14T23:08:11.3932659Z /bin/tar: ./cache: Cannot utime: Operation not permitted
2019-12-14T23:08:11.3933049Z /bin/tar: ./cache: Cannot change mode to rwxr-xr-x: Operation not permitted
2019-12-14T23:08:11.3933201Z /bin/tar: .: Cannot utime: Operation not permitted
2019-12-14T23:08:11.3933529Z /bin/tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted
2019-12-14T23:08:11.3933659Z /bin/tar: Exiting with failure status due to previous errors
2019-12-14T23:08:11.3946997Z [warning]The process '/bin/tar' failed with exit code 2

I defined the cache actions according to the examples for rust/cargo. The relevent sections of my workflow definition:

- name: Cache cargo registry
  uses: actions/cache@v1
  with:
    path: ~/.cargo/registry
    key: ${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}-{{ github.sha }}
    restore-keys: |
      ${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}-
      ${{ matrix.rust }}-cargo-registry-

Did I do something wrong or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions