## Summary
Using the gitlab-task-runner image, we are running a cronjob to backup our gitlab instance. The exact command being run inside the `registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-task-runner:13.8.0` to perform the backups is
```
- /bin/bash
- -c
- cp /etc/gitlab/.s3cfg $HOME/.s3cfg && backup-utility
```
This was working with the upstream registry.gitlab.com/gitlab-org/build/cng/gitlab-task-runner-ee:v13.8.1 image previously, but now using the image in registry one, we receive the following error at the end of the job:
```
2021-02-17 22:21:32 +0000 -- done
/usr/lib64/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- object_storage_backup (LoadError)
from /usr/lib64/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /usr/local/bin/object-storage-backup:3:in `<main>'
```
## Steps to reproduce
In the `registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-task-runner:13.8.0` container, run `bash backup-utility`
## What is the current bug behavior?
The backup job fails with the error.
```
2021-02-17 22:21:32 +0000 -- done
/usr/lib64/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- object_storage_backup (LoadError)
from /usr/lib64/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
from /usr/local/bin/object-storage-backup:3:in `<main>'
```
## What is the expected correct behavior?
The job completes successfully and the backup tarball is uploaded to the configured s3 bucket.
## Possible fixes
The line of code where the import of the object-storage-backup rubygem is failing is in `usr/lib64/ruby/2.7.0/rubygems/core_ext/kernel_require.rb` at line 92:
```
# If there are no unresolved deps, then we can use just try
# normal require handle loading a gem from the rescue below.
if Gem::Specification.unresolved_deps.empty?
RUBYGEMS_ACTIVATION_MONITOR.exit
return gem_original_require(path) # line 92
end
```
where `path` is ostensibly the path `/usr/local/bin/object-storage-backup`, which does exist in the container.
## Defintion of Done
- [ ] Bug has been identified and corrected within the container
/cc @ironbank-notifications/bug