Skip to content

Gem install command is failing and blocking pipelines

Job #1410934945 failed for 412c6209

Relevant Trace

Executing "step_script" stage of the job script
00:02
Using docker image sha256:edd3dc5af69249ded125e23a9f16efe5f53214ee5b718ba6f91cb1315fe4970c for gitlab.com:443/gitlab-org/dependency_proxy/containers/ruby:2.7-alpine with digest gitlab.com:443/gitlab-org/dependency_proxy/containers/ruby@sha256:c63f9d04216ddd5d2747a47fe60123794fbb8fcc5f878123d69de9ac2a60104e ...
$ source scripts/utils.sh
$ install_tff_gem
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/local/bundle directory.
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 1

This would happen for other scripts in utils.sh like install_gitlab_gem

Edited by Kyle Wiebers