Unable to restore cache
See original GitHub issueI’m trying to cache/restore vcpkg artifacts with vcpkg installed to a path under the C:\
drive.
The reason I’m not using the default workspace directory (under D:\
) is because there is not enough free space available
for the installation of all packages, even if installing one package at a time and clearing buildtrees between installations,
instead of installing everything at once by using the response file directly.
While there is enough free space on the C:\
drive to install all packages successfully and complete the jobs,
I can’t get the cache to restore correctly in subsequent jobs that attempt to use it. The problem is reproducible.
The cache restoration fails with the following errors:
C:/qbt_tools/vcpkg/: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg'
C:/qbt_tools/vcpkg/.artifactignore: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.artifactignore'
C:/qbt_tools/vcpkg/.git/: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.git'
C:/qbt_tools/vcpkg/.gitattributes: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.gitattributes'
C:/qbt_tools/vcpkg/.github/: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.github'
C:/qbt_tools/vcpkg/.gitignore: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.gitignore'
C:/qbt_tools/vcpkg/.vcpkg-root: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.vcpkg-root'
C:/qbt_tools/vcpkg/bootstrap-vcpkg.bat: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\bootstrap-vcpkg.bat'
C:/qbt_tools/vcpkg/bootstrap-vcpkg.sh: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\bootstrap-vcpkg.sh'
...
... (same for all other vcpkg files)
...
tar.exe: Error exit delayed from previous errors.
restoreCache() failed: 'Error: Tar failed with error: The process 'C:\windows\System32\tar.exe' failed with exit code 1'.
Cache miss.
Example of run that cached the artifacts successfully: https://github.com/FranciscoPombal/qBittorrent/actions/runs/146840965 Example of run that failed to restore them: https://github.com/FranciscoPombal/qBittorrent/runs/806709981
Is this happening because it’s not possible to restore cache to the C:\
drive? Is this a limitation of the underlying cache
action?
Any help appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top GitHub Comments
@FranciscoPombal cool, thanks for reporting. Looks sensible to me that
run-vcpkg
action ensures the cached paths are existing at least, this issue could be just tracking this work to be done onrun-vcpkg
.@lukka
This should probably be another issue (possibly even for the upstream
cache
action), but it seems I’m sporadically getting this error when attempting to restore the cache:Most recently happened in this run (third matrix leg/variant): https://github.com/FranciscoPombal/qBittorrent/runs/809641734