I’m trying to run some builds that were previously running, however I’m receiving the following error when the bundler gem is attempting to be installed.
I’ve tried clearing the caches and re-running, and the problem is persisting.
Builds were previously running with the same circle ci configuration, so nothing has changed there.
Any thoughts on what else I can try to get around this problem.
Same here. Builds were working last evening (timestamp: 2017-11-10T23:59:33+0000) and now we’re seeing the Permission denied error when trying to install bundler as a run command:
Unfortunately the issue is still persisting for us.
We have also tried clearing caches in case that would cause the problem to linger.
We can occasionally get it to work, but it involves retrying many times, and as our build is in a workflow, occasionally some tasks will pass and others will fail with the same error.
Although we deployed new images this morning here, it may take some time to get through the system since some dockers are still running with the old sha cached.
You could work around this by specifying the sha, also adding sudo works, but I suggest you don’t “gem install bundler” at all since we pre-install a stable version for you. If they happen to release a broken version and you install the latest, your builds will start failing for no reason. This happens often enough that we started pinning the version of bundler on our 2.0 images, which lead to this issue.
I’ve removed the command to install bundler and that looks to be working well for us.
I think another poster mentioned that they got a similar issue installing brakeman. We also install that, but that hasn’t caused an issue for us at all.
I suggest you don’t “gem install bundler” at all since we pre-install a stable version for you.
We didn’t always do this, but started to during the 1.16. pre releases for… some reason I no longer remember. In truth, I think we be better served by pinning to the same bundler version that Heroku installs on their heroku-16 stack. That or move to use Heroku’s docker images as our starting point. Anyhow, thanks for getting this fixed and keeping us updated!
I get the same issue when running bundle install with the iOS Xcode 9.3.1 image, but not the iOS Xcode 9.0 one. Versions in between have not been tested.
It appears to be the result of bad permission setting given that running export BUNDLE_PATH=~/.gems while ssh’d in fixes the issue, however this is not a good solution as it doesn’t persist between build steps and may cause other issues. Changing either where gems are installed or the permissions of the current path should resolve it.
Please fix this ASAP. I’m surprised that this has gone unnoticed for such a long period of time.