-
Notifications
You must be signed in to change notification settings - Fork 38
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
Gem::FilePermissionError
when installing Ruby dependencies
#43
Comments
@AlexKrupa your solution works, you could even write it shorter steps:
- run:
name: Fix Ruby permissions
command: sudo chmod -R a+w /var/lib/gems/ /usr/local/bin |
AFAIK The variant are built starting from Dockerfile.template In my case I am using The latter is based upon circleci@9b41a1eb3b0a:~/project$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal Indeed it looks like the issue has been fixed in following versions of Ubuntu starting from 20.10.4 on, see https://stackoverflow.com/a/68258603/2199731 |
This looks to be a problem with the Ruby orb. Closing for now. |
@FelicianoTech does this mean that more recent versions of the ORBs won't be affected by this issue? |
I encountered this problem when upgrading from a legacy Android image to the latest next-gen one.
Problem
Running
ruby/install-deps
step from Ruby orb fails like this:After solving this for
/var/libs/gems
it fails again for/usr/local/bin
directory.Solution
Use
chmod
to grant directory permissions as described in this StackOverflow answer.I'm not sure if that's the best approach, but it solved the issue for me. Is it something that could be included in the image?
The text was updated successfully, but these errors were encountered: