Upgrading Ruby for a Redmine installation

Choose the Ruby version your Redmine line supports, avoid the known Ruby 4.0.0 to 4.0.3 wiki slowdown and Ruby 3.3.0 start failure, and plan gem reinstalls and plugin tests on the new interpreter.

On this page

Which Redmine Ruby version does your upgrade need?

Redmine 7.0 supports Ruby 3.2, 3.3, 3.4 and 4.0, and the Redmine installation guide recommends Ruby 4.0.4 or later for 7.0 because Ruby 4.0.0 to 4.0.3 has a wiki rendering slowdown. If you run Redmine 6.0 or 6.1, the Ruby version you have today may already fall outside the 7.0 list, so the interpreter is a decision you make before you touch the Redmine code. Redmine 6.1 supports Ruby 3.2 to 3.4 and Redmine 6.0 supports 3.1 to 3.3, so a server that works on 6.0 may need a newer interpreter even before the core upgrade begins.

Ruby is a separate step because Redmine, the Rails framework underneath it, the database driver, and every installed plugin all load the interpreter at boot. Redmine 7.0 runs on Rails 8.1, so the target Ruby must satisfy the framework and the gems it pulls in, not just the Redmine release notes. The order matters: install and verify the new Ruby on a staging copy, rebuild the gem bundle with bundle install, confirm the database adapter compiles, and only then run the Redmine upgrade and redmine:plugins:migrate. If you change Ruby and Redmine in the same window, a failure has two possible causes and a rollback takes longer.

Settle the Ruby version before core upgrade and plugin work start, and record it in the change plan. Ask your plugin vendors or check each plugin's declared compatibility for the Ruby versions it supports, because a plugin that is pinned to an older Ruby will block the move regardless of Redmine's own support. Confirm the exact patch level you will install, since the wiki slowdown applies to a range of 4.0 patch releases, and check the Redmine 7.0 changelog for start-up issues on specific Ruby builds before you choose a patch release.

Redmine Ruby version support by release

This table compares the Ruby versions each supported Redmine line accepts, what that means for your interpreter choice, and the action to take. Read it by finding your target Redmine line, then choosing a Ruby version from its supported range and checking the patch level against the known problems below. The main takeaway is that Redmine 7.0 is the only line that accepts Ruby 4.0, and on that interpreter you should stay at 4.0.4 or later.

Redmine lineSupported Ruby versionsWhat changes for the Ruby choiceAction for the team
Redmine 7.03.2, 3.3, 3.4 and 4.0Runs on Rails 8.1 and does not support JRuby. Ruby 4.0.0 to 4.0.3 has a wiki rendering slowdown, and the 7.0.2 changelog notes Redmine does not start on Ruby 3.3.0.Choose Ruby 4.0.4 or later, or a 3.4 release if you need a conservative interpreter. Avoid 3.3.0 and confirm your plugins load on the chosen version.
Redmine 6.13.2 to 3.4Ruby 4.0 is not in the supported range, so the interpreter must be a 3.x release. Check that 3.2 and 3.3 builds are current before you pin one.Keep Ruby on a supported 3.x release during the 6.1 period. Plan the Ruby move together with the Redmine 7.0 upgrade if you intend to go there.
Redmine 6.03.1 to 3.3Only important security updates are provided for this line. Ruby 3.4 is outside the supported range, so a Ruby 3.4 upgrade needs Redmine 6.1 or 7.0 first.Confirm that your Ruby 3.1 to 3.3 build is still receiving security patches. Move to Redmine 6.1 or 7.0 before changing the interpreter beyond 3.3.
Redmine 5.1 and olderNot applicable in the supplied factsUnsupported lines. Confirm the Ruby range with the installation guide for the exact release you run before choosing an interpreter.Treat the Ruby upgrade as part of a staged path to a supported line. Verify the Ruby versions your current release accepts before any change.

Choosing the Ruby version by your starting point

Redmine 6.0 supports Ruby 3.1, 3.2 and 3.3, and it receives only important security updates. If you stay on this line, your Ruby version is a security decision as well as a compatibility one. A Ruby version from 3.1 to 3.3 keeps you inside the supported range, but a newer interpreter inside that range does not add features to the Redmine line.

  • Current interpreter: Run ruby -v on the application host and on any server that runs Puma or background jobs, since the two can differ.
  • Ruby 3.1 at the bottom of the range: Confirm that your operating system or Ruby build still delivers security fixes for 3.1 before you rely on it.
  • Ruby 3.3.0: The 7.0.2 changelog reports that Redmine does not start on Ruby 3.3.0. If you run 3.3, use a later 3.3 patch release and confirm it starts in your environment.
  • Plugins and gems: Check each plugin's declared Ruby support and run bundle install on a staging copy to confirm the gems still resolve.

Before you settle on 6.0, confirm your exact Ruby patch level, check that every plugin still installs on it, and set a date for the next review of the Redmine line.

How the Ruby decision path runs before the Redmine upgrade

The path starts at your current Redmine line and then branches on the target, 6.1 or 7.0. Each branch checks the planned Ruby patch against the range that line supports. For a 7.0 target, a planned patch between 4.0.0 and 4.0.3 is rejected because of the wiki slowdown, and the installation guide recommends Ruby 4.0.4 or later. Any planned patch of 3.3.0 is rejected for every target, because the 7.0.2 changelog notes that Redmine does not start on it. Only a patch that passes every check becomes a validated interpreter.

Decision path from current Redmine line to a validated Ruby interpreter.

What to back up and inventory before switching Ruby

Changing Ruby touches the code, the data, the gems and the server underneath Redmine at once, so a failed switch is hard to reverse without preparation. The six items below give you a known starting point and a restore path you have already proven.

Gemfile and lock file

The Gemfile and Gemfile.lock record which gems and versions your installation resolves today, including any gems your plugins add. Copy both into version control before you change anything, and note any ruby line in the Gemfile that pins an interpreter. Gem resolution on the new Ruby is the first thing to check, because a lock file that worked on the old interpreter may not install cleanly on the new one. Owner: the Redmine administrator or the developer who last changed the deployment.

Redmine installation guide

Database and uploaded files backup

A database dump and a copy of the files directory are the only way back if a bad interpreter change corrupts data during a migration step. Take both from the same point in time, and confirm the production database and file backups restore to a separate host before any interpreter change. A backup you have never restored is not a backup yet. Owner: the database administrator, with the Redmine administrator checking that attachments open after the restore.

Installed plugins and declared Ruby support

List every installed plugin and theme, its version, and the Ruby versions its own metadata declares. Plugins that declare nothing, or that were last updated for an older Ruby, are the most likely to break on a new interpreter. Record which plugins are abandoned so you can plan a replacement rather than discover the gap during the switch. Owner: the Redmine administrator, with the business owner of any plugin that teams depend on.

Server packages and process manager

Record the Ruby build in use, how it was installed (operating system package, version manager or source build), and the process manager that starts Puma, such as systemd or a container runtime. Note the system packages that native gems compile against, since they must match the new interpreter's build requirements. Keep the current service unit file so you can restore the old interpreter path quickly. Owner: the platform or systems engineer who runs the host.

Optional components and background jobs

Inventory the optional components the installation uses: ImageMagick, Ghostscript, Pandoc, and Sidekiq for background job queues in production. Each one is a separate binary or service that can run under the old interpreter path or depend on a specific library version, so a Ruby change can leave a feature broken without any visible error at login. Test attachment previews, exports and scheduled jobs after the switch. Owner: the Redmine administrator, with the operations team that runs Sidekiq if it is deployed.

Staging environment that mirrors production

Build a staging copy with the same Redmine version, database engine and major version, plugin set, and a recent copy of production data, with personal data masked if your policy requires it. Run the Ruby change there first and keep a record of every command and gem install, so the production change repeats the same steps. Confirm with the team that owns the environment that staging is actually separate from production email and integrations. Owner: the platform team, with the Redmine administrator signing off on test results.

How to switch the interpreter, reinstall gems and restart Redmine

This sequence moves a Redmine installation onto a Ruby version that matches its release, while keeping the original interpreter and gem set available so the change can be reversed until production is accepted.

  1. Confirm the target Ruby version

    Check the Ruby versions supported by your Redmine line in the installation guide, then choose a patch level. For Redmine 7.0, the installation guide recommends Ruby 4.0.4 or later, because Ruby 4.0.0 to 4.0.3 has a wiki rendering slowdown. Avoid Ruby 3.3.0 for Redmine 7.0.2, since the changelog notes that Redmine does not start on it. Record the chosen version, the current version, and the Redmine version in the change ticket. Done when someone other than the author has reviewed the choice against both sources.

  2. Install the new Ruby beside the current one

    On the staging host, install the chosen Ruby patch level with a version manager or a separate prefix, leaving the existing interpreter in place and untouched. Do not replace the system Ruby used by production. Record the install path and the output of the Ruby version command for both interpreters. Rollback point: the production interpreter has not changed, so nothing needs to be undone. Done when both versions run side by side and the new one reports the exact patch level you chose.

  3. Point the staging copy at the new interpreter

    Switch the staging Redmine directory to the new Ruby, for example by setting the version file the version manager reads or by updating the PATH used by the application service. Confirm that the Bundler and Rails commands run under the new interpreter. Rollback point: switching the version file or PATH back restores the previous setup. Done when a Rails runner command in the staging directory prints the new Ruby version.

  4. Rebuild gems with bundle install

    Run bundle install in the staging copy so every gem with native extensions compiles against the new interpreter. Install gems into a separate path or keep the previous vendor bundle, so the old gem set still exists. Watch for compilation errors in native dependencies and for gems that do not declare support for the new Ruby. Rollback point: the previous gem directory is retained and can be reactivated. Done when bundle install finishes without errors and bundle check reports that all dependencies are satisfied.

  5. Run migrations only when the Redmine version changes

    If you are changing only the Ruby version, skip this step. If the Redmine version also changes, back up the database and files first, then run the database migration and the plugin migration steps described in the upgrade guide, in that order. Record the output of each command. Rollback point: restore the database and files from the backup taken before this step, since schema changes are not reversed by reverting the interpreter. Done when both commands complete and the migration status shows no pending changes.

  6. Clear the cache and restart the application server

    Clear the Redmine cache using the cache-clearing task from the upgrade guide, then restart the application server and any background job workers, such as Sidekiq if you run it, so they load the new interpreter. Confirm that the process list shows the new Ruby binary for each service. Rollback point: restart the services with the previous interpreter path and gem directory. Done when all services start without errors in the logs.

  7. Run smoke tests against the staging instance

    Test sign-in, creating and editing an issue, wiki rendering (the area affected by the Ruby 4.0.0 to 4.0.3 slowdown), attachment upload and download, email notifications, the REST API with a test key, and each installed plugin. Time the wiki page load against the same page on the old interpreter. Record every failure with its log entry. Rollback point: if a critical check fails, revert the staging interpreter pointer and retest. Done when all checks pass and the timings are recorded.

  8. Keep the old interpreter until acceptance

    Do not remove the previous Ruby installation, its gem set, or the pre-change backup until production has run on the new interpreter and the agreed acceptance period has ended. Confirm the acceptance criteria and the retention period with your change board, since this guide does not set a duration. Record who signed off. Done when production acceptance is written down and the rollback artifacts are archived with their locations.

Two Ruby releases to plan around in production

Two Ruby releases carry known problems for Redmine: a wiki rendering slowdown on Ruby 4.0.0 to 4.0.3 and a start failure on Ruby 3.3.0. The cards below cover those two releases and the everyday risks that appear when the interpreter changes underneath an existing installation.

Ruby 4.0.0 to 4.0.3 wiki slowdown

The Redmine installation guide recommends Ruby 4.0.4 or later for Redmine 7.0 because Ruby 4.0.0 to 4.0.3 has a wiki rendering slowdown. Staff will notice it on wiki-heavy projects, where pages take longer to open after the interpreter change. Before cutover, measure wiki page render times on a representative set of pages under the current Ruby, then repeat the same measurement on the candidate interpreter. If the candidate version is 4.0.0 to 4.0.3, move to 4.0.4 or later before go-live.

Installation guide

Ruby 3.3.0 start failure

The 7.0.2 changelog notes that Redmine does not start on Ruby 3.3.0. The symptom is a failed application start after the interpreter is switched, so the failure appears at boot rather than under user load. In staging, confirm the exact Ruby patch level with the interpreter version command, then start Redmine and check the logs before running any data tests. If the patch level is 3.3.0, install a later 3.3.x patch release that starts cleanly and repeat the start test.

7.0 changelog

Native gem extensions on the new interpreter

Gems with C extensions, including database drivers and image or file handling libraries, must be compiled again for each new Ruby minor version. A copied Gemfile.lock from the old server can point at binaries that no longer load. In staging, run bundle install against the new interpreter in a clean vendor path, then check that the database adapter loads and that attachment previews still work. Record which gems needed compilation so the production build uses the same steps.

Version manager and package source drift

Staging and production often differ in how Ruby was installed, such as a distribution package on one host and a version manager on another. That gap leads to different patch levels, different system libraries and different gem sources, so a test that passes in staging proves less than expected. Compare ruby -v, bundle -v and the Gemfile.lock hash on both hosts before the window opens. Pin the same Ruby patch release on both, and confirm which Ruby the service manager actually launches, since a shell session may pick up a different binary.

How to test plugins and roll back a Ruby change

Test every installed plugin on the new interpreter before the cutover, and start with the ones that carry native extensions or Ruby-level hooks, since those are the most likely to fail to compile or load on a different Ruby. Check each plugin's declared compatibility with your target Redmine line first, then install it into a staging copy built with the new Ruby and the gem set you intend to ship. Look for failed native builds during bundle install, load errors at boot, and hooks or patches that reference core methods that changed between releases. Plugins that have not been updated in a long time are the ones to decide on early, because a Ruby change can turn a quiet dependency problem into a hard stop.

Once plugins load, run the core workflows that most users depend on: creating and editing an issue, confirming that email notifications are sent, opening and saving wiki pages, uploading and downloading attachments, calling the REST API with an API key, and confirming that background jobs such as mail delivery and any Sidekiq queues are processed. Use a copy of production data so that rendering and attachment paths are realistic, and record the results so you can compare them after any later change. Confirm the exact list of checks against your own environment and integrations, since your installed plugins and job setup may add to it.

A rollback restores the previous Ruby interpreter, the previous gem set and the previous configuration together, because a mismatch between them is a common cause of failed reversals. A database migration already applied on a Redmine 7.0 instance may not reverse cleanly, so take a full database and files backup before the cutover and write the rollback steps down in advance, including who decides to roll back and how long the old stack must be kept available. Confirm each rollback step against your own environment and a restore test before you rely on it.

What makes a Ruby switch take longer

This table lists the factors that stretch a Ruby change on a Redmine installation, why each one adds work, and what to confirm with a partner or your internal team before scoping. Read each row against your own environment, since a small, single-instance install with no plugins and a current staging copy sits at the simple end, while many plugins, native extensions and several environments push the work up.

DriverWhy it adds effortWhat to ask a partner or internal team to confirm
Number and age of pluginsEach plugin must load on the new Ruby and the Rails version Redmine runs, and older plugins often pin gems that have no build for newer interpreters.Full plugin list with versions, the last release date of each, and which ones declare support for the target Redmine line.
Native gem extensionsGems with C extensions must compile against the new Ruby headers and system libraries, so a build failure can block the whole upgrade.Which gems in the Gemfile.lock compile native code, and whether the build host has the compilers and development headers needed.
Custom themesTheme assets and templates can depend on markup or icon classes that change between Redmine lines, so testing covers the visual layer as well as the server.Whether custom themes are in use, who maintains them, and whether they were built for the current Redmine release.
Number of environmentsDevelopment, test, staging and production each need the same interpreter, gems and checks, and drift between them is a common cause of late surprises.How many environments run Redmine, who controls each one, and whether they can all be moved to the same Ruby build.
Redmine moving in the same changeChanging Ruby and the Redmine version together multiplies the compatibility checks and makes it harder to tell which change caused a fault.Whether the Ruby switch can be done on the current Redmine line first, or whether both must move in one window.
Optional components such as Sidekiq and ImageMagickBackground job workers and image or document tools run their own Ruby or system dependencies and need testing alongside the web application.Which optional components are installed, their versions, and whether they run under the same Ruby as Redmine.
Size of wiki and attachment dataLarge wikis and attachment stores take longer to exercise in tests, and rendering or processing problems often appear only with real content.Approximate wiki page count, attachment volume, and whether a representative subset can be copied into the test environment.
Access to a staging copyWithout a recent copy of the database and files, testing runs on synthetic data and misses plugin and content edge cases.Whether a staging copy can be built from a current backup, who provides it, and how quickly it can be refreshed for retesting.

What buyers ask before a Ruby upgrade for Redmine

What does a Ruby upgrade for Redmine cost?

The software itself is free under GPL v2, so the cost is labor, testing and any hosting changes. Cost is driven by how many Redmine instances and plugins you run, whether the host operating system must also change, how much testing your users need, and whether gems and plugins must be reinstalled or replaced. Costs are mostly one-time, while maintenance of the new interpreter recurs with each Ruby patch release. No public price list exists, so ask for a fixed-scope quote that lists each instance, each plugin to retest, the staging environment, the rollback test and the handover. Ask whether retesting plugins is priced separately from the core interpreter change.

How long does a Ruby upgrade for Redmine take?

Duration depends on the number of instances, the number of installed plugins and themes, the state of the current server, and how much regression testing your business requires. A single standard instance with few plugins is the simplest case. Ask the vendor to show the planned sequence in the written scope: staging build, gem reinstall, plugin tests, a wiki rendering check, a rollback rehearsal and the production window. No duration figure is supplied for this work, so request a timeline in the quote rather than relying on a generic estimate.

Can our own team upgrade Ruby for Redmine without a partner?

Yes, if your team has Linux administration experience, can manage Ruby versions and bundler, and can test your plugins against the new interpreter. The Redmine installation guide lists supported Ruby versions for each release, so the first step is confirming your target. The main risks are plugins with unclear compatibility and a rollback plan that has never been rehearsed. A partner is most useful when many plugins are involved, when the change must fit a tight change window, or when an auditable test record is needed. Decide based on skills and risk, not only on cost.

What does the work need from our staff?

Expect to provide a named owner for the change, someone who knows which plugins and themes are in use, a test group of users who can sign off on core workflows, and an administrator who can grant access to the server, database and backups. Your team should also confirm the change window, the business sign-off process and who can approve a rollback. If your organization has change management rules, ask the vendor which evidence it will produce, such as test logs and a rollback record, so your staff can plan review time.

Can Redmine 6.0 stay on Ruby 3.3 while we plan the upgrade?

The Redmine installation guide lists Ruby 3.1 to 3.3 as supported for Redmine 6.0, so staying on Ruby 3.3 with Redmine 6.0 is within the supported matrix. Redmine 6.0 receives only important security updates, so you should still plan a move to a supported line. Confirm your exact Ruby patch level, keep the operating system and gems patched, and check the 7.0 requirements before planning a jump. Your planning can therefore proceed on Ruby 3.3 while the Redmine line decision is made separately.

What should we do if the wiki slows down after the Ruby change?

The Redmine installation guide reports a wiki rendering slowdown on Ruby 4.0.0 to 4.0.3 and recommends Ruby 4.0.4 or later for Redmine 7.0. If wiki pages slow after your change, first check the exact Ruby patch version in use, then move to 4.0.4 or later where your target line allows it. Keep the previous interpreter available for rollback until performance is measured. Ask your vendor to include a wiki page timing check in the test plan and to record results before and after the change.

What happens if the Ruby 3.3.0 start failure affects our installation?

The Redmine 7.0.2 changelog notes that Redmine does not start on Ruby 3.3.0. If you run that exact patch level, plan to move to a later 3.3 patch release before or during the Redmine change. Confirm the installed patch version with your Ruby manager, then test startup in staging before production. Ask the vendor to confirm the target Ruby patch version in the written scope so the start check is part of acceptance testing.

How DeployOpen scopes and delivers a Redmine Ruby upgrade

DeployOpen treats the Ruby change as its own scoped piece of work, tied to the Redmine line you run and the plugins you depend on. We confirm the target Ruby version against the Redmine release you are moving to, then test the change on a copy of your installation before anything touches production.

How we scope

  • Confirm your current Redmine line, Ruby version, database and installed plugins before quoting the work
  • Map the target Redmine release to the Ruby versions it supports, and agree which Ruby patch level is used
  • Record in writing whether the Ruby change stands alone or ships with a Redmine upgrade, since engagements are fixed-scope
  • Name the plugins, themes and gems that must be retested on the new interpreter, and who decides on replacements

How we build

  • Build a staging copy with the current database, uploads and configuration to test the new Ruby before cutover
  • Reinstall gems and rebuild native extensions under the target Ruby, then record any version pins that were needed
  • Run the Redmine test steps on staging, including wiki pages and a sample of plugin features, and log the results
  • Check startup and performance on the chosen Ruby patch level before any production change is approved

How we hand over

  • Deliver a runbook listing the exact Ruby version, gem set, service restart order and rollback steps used
  • Document the backup taken before cutover and the restore path if the new interpreter fails in production
  • Provide a plugin compatibility log showing what passed, what was replaced and what remains open for your team
  • Walk your administrators through the change so they can repeat the steps for future Ruby or Redmine updates

How we support

  • Offer ongoing support and upgrade planning as a retainer, covering future Ruby patch and minor releases
  • Monitor Redmine release notes so Ruby version requirements are reviewed before the next upgrade window
  • Repeat plugin and gem checks when new Redmine or Ruby releases change supported versions
  • Schedule retesting after each interpreter change, with a written scope agreed before work starts

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.