# \#ruby

**URL:** https://forum.gitlab.com/tag/ruby/39.md

[Latest](https://forum.gitlab.com/latest.md) · [Categories](https://forum.gitlab.com/categories.md) · [Tags](https://forum.gitlab.com/tags.md)

---

## [Ruby using a lot of swap](https://forum.gitlab.com/t/ruby-using-a-lot-of-swap/123731)

<div class="topic-metadata">

**Author:** [@dpearceFL](https://forum.gitlab.com/u/dpearceFL)\
**Replies:** 1\
**Last updated:** [April 1, 2025, 2:38pm UTC](https://forum.gitlab.com/t/ruby-using-a-lot-of-swap/123731 "2025-04-01T14:38:21Z")

</div>

After boot, Ruby starts taking more and more swap. VM on Proxmox. VM has 12 vCPUs and 16 GB of memory. Excessive I know, but with less vCPUs GitLab takes15 mins to start. Any less memory and the swap goes to 100%. This …

---

## [Resolution for CVE-2024-27281 Vulnerability in GitLab](https://forum.gitlab.com/t/resolution-for-cve-2024-27281-vulnerability-in-gitlab/111199)

<div class="topic-metadata">

**Author:** [@vishalsalve](https://forum.gitlab.com/u/vishalsalve)\
**Replies:** 1\
**Last updated:** [September 9, 2024, 10:03am UTC](https://forum.gitlab.com/t/resolution-for-cve-2024-27281-vulnerability-in-gitlab/111199 "2024-09-09T10:03:00Z")

</div>

I am seeking guidance on addressing the CVE-2024-27281 vulnerability related to the RDoc gem in our GitLab instance. Specifically, I need assistance with updating RDoc to a version that mitigates this security risk. Coul…

---

## [CI Pipeline init job failing with no error](https://forum.gitlab.com/t/ci-pipeline-init-job-failing-with-no-error/97201)

<div class="topic-metadata">

**Author:** [@kbartlett](https://forum.gitlab.com/u/kbartlett)\
**Replies:** 1\
**Last updated:** [December 20, 2023, 7:30pm UTC](https://forum.gitlab.com/t/ci-pipeline-init-job-failing-with-no-error/97201 "2023-12-20T19:30:50Z")

</div>

Hi, I have a job that seems to be failing in the pipeline for no reason. It started failing a few days ago, and I haven’t made any changes to it since then. Here’s the job: init-job: stage: scans script: …

---

## [Issues after updating](https://forum.gitlab.com/t/issues-after-updating/92925)

<div class="topic-metadata">

**Author:** [@AdamPoniatowski](https://forum.gitlab.com/u/AdamPoniatowski)\
**Replies:** 2\
**Last updated:** [September 28, 2023, 12:20pm UTC](https://forum.gitlab.com/t/issues-after-updating/92925 "2023-09-28T12:20:31Z")

</div>

Hi everyone, I ran into an issue with upgrading, in which one of the solutions involved running bundle install/update, which resulted in it not resolving the issue: uninitialized constant Gitlab::CurrentSettings anoth…

---

## [Specifying timestamps when creating tokens in rails console](https://forum.gitlab.com/t/specifying-timestamps-when-creating-tokens-in-rails-console/90386)

<div class="topic-metadata">

**Author:** [@grove](https://forum.gitlab.com/u/grove)\
**Replies:** 4\
**Last updated:** [August 1, 2023, 8:58am UTC](https://forum.gitlab.com/t/specifying-timestamps-when-creating-tokens-in-rails-console/90386 "2023-08-01T08:58:05Z")

</div>

I would like to specify an expiration time when creating a token through rails gitlab-rails runner 'User.admins.first.personal\_access\_tokens.create(name: "testtoken1", token\_digest: Gitlab::CryptoHelper.sha256("foo"), s…

---

## [How to use Danger with GitLab.com's CI/CD?](https://forum.gitlab.com/t/how-to-use-danger-with-gitlab-coms-ci-cd/87756)

<div class="topic-metadata">

**Author:** [@edward.stembler1](https://forum.gitlab.com/u/edward.stembler1)\
**Replies:** 1\
**Last updated:** [June 6, 2023, 4:26pm UTC](https://forum.gitlab.com/t/how-to-use-danger-with-gitlab-coms-ci-cd/87756 "2023-06-06T16:26:09Z")

</div>

GitLab CI/CD is already set up to run Danger, you have to add this to your .gitlab-ci.yml file: include: - project: 'gitlab-org/quality/pipeline-common' file: '/ci/danger-review.yml' Reference: /ci/danger-review.…

---

## [Gitlab Omnibus update](https://forum.gitlab.com/t/gitlab-omnibus-update/75147)

<div class="topic-metadata">

**Author:** [@alexnoel2](https://forum.gitlab.com/u/alexnoel2)\
**Replies:** 1\
**Last updated:** [September 16, 2022, 8:26pm UTC](https://forum.gitlab.com/t/gitlab-omnibus-update/75147 "2022-09-16T20:26:39Z")

</div>

We are running an omnibus version of Gitlab, and need to update from 14.X to 15.X. However, the instructions state that ElasticSearch must be updated prior, and that ES is installed separately from GL. From what I am see…

---

## [Pipeline is using wrong Ruby version](https://forum.gitlab.com/t/pipeline-is-using-wrong-ruby-version/68229)

<div class="topic-metadata">

**Author:** [@goandgit](https://forum.gitlab.com/u/goandgit)\
**Replies:** 2\
**Last updated:** [April 13, 2022, 4:49pm UTC](https://forum.gitlab.com/t/pipeline-is-using-wrong-ruby-version/68229 "2022-04-13T16:49:24Z")

</div>

Hello, We are using the hosted version of Gitlab and are suddenly getting the error: Your Ruby version is 3.1.2, but your Gemfile specified 3.1.1 Our local Ruby version is 3.1.1p18 Gemfile: source 'https://rubygem…

---

## [Not able to upgrade ruby to 2.7,4 on Gitlab](https://forum.gitlab.com/t/not-able-to-upgrade-ruby-to-2-7-4-on-gitlab/62801)

<div class="topic-metadata">

**Author:** [@SanketSalanki](https://forum.gitlab.com/u/SanketSalanki)\
**Replies:** 3\
**Last updated:** [December 13, 2021, 3:11pm UTC](https://forum.gitlab.com/t/not-able-to-upgrade-ruby-to-2-7-4-on-gitlab/62801 "2021-12-13T15:11:48Z")

</div>

I have upgraded ruby to 2.7.4 on my Gitlab server according to the steps shown in version-specific upgrade steps for ruby but it’s not been shown in the Admin Area it’s still showing the older version only.

---

## [Builds are failing due to timeouts to RubyGems](https://forum.gitlab.com/t/builds-are-failing-due-to-timeouts-to-rubygems/59134)

<div class="topic-metadata">

**Author:** [@tjhanley](https://forum.gitlab.com/u/tjhanley)\
**Replies:** 2\
**Last updated:** [September 28, 2021, 7:41am UTC](https://forum.gitlab.com/t/builds-are-failing-due-to-timeouts-to-rubygems/59134 "2021-09-28T07:41:25Z")

</div>

I have started to see build failures due to timeouts fetching gems from Ruby Gems. The builds are full of errors like this. Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher…

---

## [Weird unhelpful email](https://forum.gitlab.com/t/weird-unhelpful-email/52074)

<div class="topic-metadata">

**Author:** [@RobIII](https://forum.gitlab.com/u/RobIII)\
**Replies:** 0\
**Last updated:** [April 24, 2021, 12:59am UTC](https://forum.gitlab.com/t/weird-unhelpful-email/52074 "2021-04-24T00:59:47Z")

</div>

I just received an e-mail from my gitlab (13.11.1-ee) instance: bundler: failed to load command: rake (/opt/gitlab/embedded/bin/rake) Bundler::GemNotFound: Could not find gem 'brakeman (~\> 4.2)' in any of the gem source…

---

## [Build fails when using cached gems with a git bundler dependency](https://forum.gitlab.com/t/build-fails-when-using-cached-gems-with-a-git-bundler-dependency/25921)

<div class="topic-metadata">

**Author:** [@ajsharp](https://forum.gitlab.com/u/ajsharp)\
**Replies:** 0\
**Last updated:** [April 27, 2019, 1:39am UTC](https://forum.gitlab.com/t/build-fails-when-using-cached-gems-with-a-git-bundler-dependency/25921 "2019-04-27T01:39:03Z")

</div>

I have a gem in my Gemfile defined like this: gem 'omniauth-google-oauth2', git: 'https://github.com/ajsharp/omniauth-google-oauth2', ref: 'json-fix' This seems to cause a problem with my gitlab CI configuration, as I …

---

## [Currently having trouble getting node to install with gitlab-ci.yml](https://forum.gitlab.com/t/currently-having-trouble-getting-node-to-install-with-gitlab-ci-yml/24239)

<div class="topic-metadata">

**Author:** [@lassitergregg](https://forum.gitlab.com/u/lassitergregg)\
**Replies:** 0\
**Last updated:** [March 4, 2019, 7:14am UTC](https://forum.gitlab.com/t/currently-having-trouble-getting-node-to-install-with-gitlab-ci-yml/24239 "2019-03-04T07:14:51Z")

</div>

Hi all, I’m running Ruby on Rails 6.0.0 with Webpacker 4.0.0 and Ruby 2.6.0 which are all great but I’m having some problems with the gitlab-ci.yml file. image: ruby:2.6 services: - postgres:11 before\_script: -…

---

## [Did you have a look a Crystal lang?](https://forum.gitlab.com/t/did-you-have-a-look-a-crystal-lang/23797)

<div class="topic-metadata">

**Author:** [@opensas](https://forum.gitlab.com/u/opensas)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 1:38pm UTC](https://forum.gitlab.com/t/did-you-have-a-look-a-crystal-lang/23797 "2019-02-18T13:38:24Z")

</div>

I know gitlab developers are pretty fond of ruby and rails, and they also developed the runner in go. So I was wondering if anybody from the development team had a look at the Crystal programming Language It’s am objec…

---

## [Jekyll: sass-listen-4.0.0 revealed dependencies not in the API or the lockfile](https://forum.gitlab.com/t/jekyll-sass-listen-4-0-0-revealed-dependencies-not-in-the-api-or-the-lockfile/22766)

<div class="topic-metadata">

**Author:** [@papanito](https://forum.gitlab.com/u/papanito)\
**Replies:** 0\
**Last updated:** [January 13, 2019, 4:54pm UTC](https://forum.gitlab.com/t/jekyll-sass-listen-4-0-0-revealed-dependencies-not-in-the-api-or-the-lockfile/22766 "2019-01-13T16:54:09Z")

</div>

I can successfully build and run jekyll but on gitlab the build job fails with Downloading sass-listen-4.0.0 revealed dependencies not in the API or the lockfile (rb-fsevent (~\> 0.9, \>= 0.9.4), rb-inotify (~\> 0.9, \>= 0.…

---

## [Slow tests](https://forum.gitlab.com/t/slow-tests/20700)

<div class="topic-metadata">

**Author:** [@TiagoMoraes](https://forum.gitlab.com/u/TiagoMoraes)\
**Replies:** 0\
**Last updated:** [November 7, 2018, 7:13pm UTC](https://forum.gitlab.com/t/slow-tests/20700 "2018-11-07T19:13:48Z")

</div>

I have a rails project, and recently migrated to GitlabCI from CircleCI, but I have an issue about the time of running rspec. Locally I get an average time of 12 to 15 minutes, when I was using CircleCI, almost every tim…
