-
Notifications
You must be signed in to change notification settings - Fork 79
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 : Failling to unarchive cache #66
Comments
@Naturalclar I see you recently touched this in #59. On what type of runner were you experiencing the problems (mac/linux)?. Any idea what can be wrong? I'm also seeing this, on a mac runner. Thanks. |
Started getting this error as well. |
Confirm it's happening on 4.4.2 only on Mac environment for me |
Some more info, in my case it says
But I'm now at build 592, is there a way to say if restoring the cache goes wrong then ignore it and install everything from scratch? |
After reading this |
@mtt87 when you first set it, you have changed the comparitor and so it won't be able to find a valid cache to use...thus it creates a new one and everything works. I found that on the next attempt to build it will use your value |
Damn, that's a good point I'll try again soon to verify if it still happening. Have you tried to downgrade to 3.2.2 to see if it works? |
Yes - we downgraded and await a fix to this |
Facing the same issue on |
This comment has been minimized.
This comment has been minimized.
Latest working version for me it's |
The same for Android works fine, but iOS does not work. |
Add an env variable to your project if you don't already have it |
We're finding that we need to change the |
With version 4.4.2 I have the same experience with the Here is how we are using the - rn/ios_build:
build_configuration: Debug
detox_configuration: ios.sim.staging
device: iPhone 11 Pro
name: build_ios_debug
node_version: '12.18'
project_path: ios/ProjectName.xcworkspace
project_type: workspace
scheme: ProjectName-staging
start_metro: true
requires:
- analyze_js
# ↑ We changed that to the American spelling :) 🇺🇸
Found a cache from build 2500 at yarn-cache-arch1-darwin-amd64-6_58-CtErNzrQbrt0boxXcoHOSPYkhQO77C0mVdN+cOWwdlQ=-pkNLpKB43oV0NLrI2IjZ4BpTEqiMriIdA7xqTvUeC04=-v3
Size: 378 MiB
Cached paths:
* /tmp/yarn
Downloading cache archive...
Validating cache...
Unarchiving cache...
Failed to unarchive cache
Error untarring cache: Error extracting tarball /var/folders/1b/gl7yt7dS26vcyr1pkgld6l050000gn/T/cache789244379 : tmp/yarn/: Cannot extract through symlink tmp/yarn tmp/yarn/v4/: Cannot extract through symlink tmp/yarn/v4 tmp/yarn/v4/.tmp/: Cannot extract through symlink tmp/yarn/v4/.tmp tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/: Cannot extract through symlink tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403 tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/.buckconfig: Cannot extract through symlink tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/.buckconfig tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/.editorconfig: Cannot extract through symlink tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/.editorconfig tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/.eslintignore: Cannot extract through symlink tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/.eslintignore tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/.eslintrc.js: Cannot extract through symlink tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/.eslintrc.js tmp/yarn/v4/.tmp/ae76De6c779b0c17fc78aa8d370ed403/.flowconfig: Cannot extract thro: exit status 1
The cache is successfully restored on the next run, but will fail on subsequent runs. It seems like the restore from cache has somehow changed on a Next steps for meMy next steps are to use the individual commands from the |
Hi guys! Did any found a solution or workaround to this issue? |
I'm also still running into the same issue |
Looking into this. We had to make the swissknife and react-native orbs local to our setup (we have unoffical orbs disabled). But this means I can make changes! So, investigating leads me to these links:
The other thing I noticed was that for monorepos, caching will need to be more nuanced: |
@m2mathew Appreciate the detailed explanation. I am very new to Circle CI and I couldn't for the life of me figure out how to set environment variables, for those having the same issue as me, i.e. where the hell do you set https://app.circleci.com/settings/project/github/your-org-name/your-repo-name/environment-variables |
@airtonix Would you mind sharing your "swissknife and react-native orbs local to our setup" approach ? |
Hi, I'm dealing with this issue, and I have to change the CACHE_VERSION almost every new PR, do we have a better workaround to fix this bug in the meantime? |
Have you checked this post? @Jose4gg |
This is still happening, v5.0.0 on the My config at this step:
Here's the entire error:
I've opened a potential PR for this. |
Hello, I talked with Matt and he does not have time for OSS so he likely won't be responsive in this repo going forward. regarding this issue, I believe it was caused by #59 The solution is that someone who is bothered by this issue should investigate the proper fix and contribute a PR. Thank you for your understanding! 🙂 |
Thanks for the message @vonovak! It's true that I'll likely be stepping back for this a bit more and I'm happy for any help that anyone can provide on this. Seeing as this is a common issue, and I had a spare half hour, I've implemented a workaround to allow you to disable caching using parameters on the commands and jobs. Details are in this commit and it's released in v5.1.0. This is only a workaround to allow you to move forward with no cache, but I agree that someone who's experiencing this issue should look into a proper fix which allows the cache to be kept there as it can vastly speed up build times. |
Thanks @matt-oakes and @vonovak for the quick response. Being able to disable the cache will definitely help for now. I've submitted a fix (#88), however I'm not entirely sure this a full fix, but it does allow the caches to be used. |
I submitted PR #103 which made it into orb version 5.4.0. This allows you to undo the pathing change that seemed to have introduced this issue. You can achieve that by using I've run my build several times with this config change and haven't run into the permissions issue that drove that breaking change initially. |
As a note for anyone planning on utilising this new Thanks @ronwsmith - this was a real pain point when i got the orb setup a few months ago lol |
Any update on this? getting the same error now. |
@kieran-osgood is there a way to get Circle to stop matching the old checksum without upgrading/removing a package? |
Not a clue im afraid! |
Hitting problems when trying to rerun a build. the pre Yarn install step of Restoring the Cache is failing, is there a way around skipping this step,
Orb version
4.4.2
What happened
Fails to unarchive cache
Expected behavior
Use previous cache and carry on with the Yarn install
The text was updated successfully, but these errors were encountered: