Installing and removing Redmine plugins safely

Adding or removing a Redmine plugin is routine when it is done in order: back up, test on staging, migrate, copy assets and restart. This page explains each step, what drives the effort and what to hand over.

On this page

Installing and removing Redmine plugins safely without losing data

A team usually needs to add or remove a Redmine plugin on a live instance, and often the request arrives just before an upgrade. Plugin installs and removals change the database through plugin migrations, so every change needs a backup and a run on a staging copy first. Installing a plugin can create tables, custom fields or settings, and removing one can drop data that users have already entered, so the order of steps matters as much as the steps themselves. Teams typically schedule this work when they add a capability such as a helpdesk, agile boards or document management, when they retire a plugin that no longer fits, or when a plugin is the last blocker to moving to a newer Redmine line.

Plugins are a common upgrade blocker because each one is written against specific Redmine internals, and a plugin that has not declared support for the target version can fail its migrations or break views after the core upgrade. Before any change, confirm which plugins are installed, which versions they are, and whether each one declares compatibility with the Redmine version you will run. The Redmine upgrade guide describes copying third-party plugins to the new installation and running the plugin migrations, which is why plugin status belongs in the same plan as the core upgrade.

This section covers the work that surrounds a plugin change: the backup and staging run, the migration direction when removing a plugin, asset handling, restarts and the checks that confirm Redmine still works afterward. The sections on choosing plugins and on replacing abandoned plugins cover how to pick a plugin and what to do when one stops being maintained. Ask your provider or internal team to write down the exact rollback path for each plugin, including which backup restores the pre-change database, before the change window is approved.

What plugin installation and removal involve in Redmine

Installing or removing a Redmine plugin is a sequence of file, database and process changes, not a single copy step. The cards below follow that sequence and flag where data can be lost if steps are skipped or reordered.

Copying the plugin into the installation

Third-party plugins are placed in the plugins directory of the Redmine installation, and the upgrade guide treats them as something you copy across when moving to a new installation. Each plugin is a folder with its own init file, so the directory name and the plugin version must match what your Redmine release supports. Check the plugin's declared compatibility before copying, and keep the previous copy so you can roll back the files if the migration fails.

Redmine upgrade guide

Running plugin migrations

Most plugins that store data ship database migrations, and Redmine applies them with rake redmine:plugins:migrate after the core db:migrate step. A plugin migration can create tables, add custom fields or change existing records, so it is the step most likely to change data irreversibly. Read the plugin's changelog for its migration list before you run it, and confirm the command completes without errors before moving on.

Understanding what a plugin adds

Redmine plugins are Rails engines, so one plugin can add database tables, custom fields, roles and permissions, menu entries, and static asset files such as stylesheets and JavaScript. Removing the plugin does not remove these additions automatically. Before installing, list the tables, custom fields and permissions the plugin creates, so you know what must be cleaned up later.

Copying and refreshing assets

Plugin stylesheets, images and scripts are served from the public area of the installation, and they are copied there with a Rake task rather than served from the plugin folder alone. A stale copy can leave a plugin partly working after an update, with missing icons or broken screens that look like application faults. Confirm the asset task finishes for each plugin, and recheck assets after any upgrade.

Clearing the cache and restarting

After migrations and asset changes, the upgrade guide calls for clearing the cache and restarting the application server, so that the running process loads the new plugin code and schema. Without a restart, users may see a mix of old and new behavior, and a plugin that failed to load can fail silently. Restart the process manager your deployment uses, then check the production log for plugin load errors on the first request.

Migrating down to version 0 before deletion

To remove a plugin cleanly, run its migrations down to version 0 first, using the plugin-specific form of the migrate task, so its tables and custom fields are dropped while the plugin code is still present. Deleting the folder first leaves orphaned tables and custom field definitions that the plugin can no longer clean up. Take a database backup before this step, since rolling back a migration can delete the plugin's stored data permanently.

How to install or remove a plugin in order

This sequence adds or removes a Redmine plugin while keeping issues, time entries, attachments and configuration intact. Each step produces a record you can check before moving on, so a failed migration never reaches production unnoticed.

  1. Confirm plugin compatibility with your Redmine version

    Before touching anything, check that the plugin's published release declares support for the Redmine version you run today and for the version you plan to move to. Redmine 7.0 is the only fully supported line, and 6.1.x and 6.0.x receive narrower support, so a plugin tied to an older line can block an upgrade later. Ask the plugin author or vendor for written compatibility and for their upgrade notes. The output is a short compatibility note recording the Redmine version, the plugin version and the source of the declaration.

  2. Take a verified database and file backup

    Back up the production database and the files directory, including attachments and any plugin-specific storage, before any plugin migration runs. Plugin migrations change database tables, and removal can delete data, so this backup is your only reliable rollback. Store a copy outside the Redmine host and restore it to a scratch database to confirm it is readable. The output is a restore-tested backup with a timestamp, a checksum or file listing, and the Redmine and plugin versions recorded alongside it.

  3. Rehearse the change on a staging copy

    Restore the production backup to a staging Redmine running the same Redmine, Ruby and database versions. Apply the planned change there first, whether that is installing the plugin or migrating it down for removal. Walk through the plugin's settings, permissions, custom fields, and the pages your users rely on most. Record any errors, warnings or slow pages. The output is a staging sign-off that lists the tested steps, the observed results and the person who approved moving to production.

  4. Install the plugin and run its migrations

    Place the plugin in the plugins directory, install any gems it requires, and run the database migrations for Redmine core and plugins in the order the upgrade guide describes, using the plugin migration task for the plugin itself. Run this in a maintenance window with the application stopped or in read-only mode if your setup allows it. Save the full output. The output is a migration log that shows each migration applied without errors, which you keep with the backup record.

  5. Copy plugin assets and clear the cache

    Copy the plugin's public assets into the Redmine public directory, using the asset task the plugin documents, so stylesheets, scripts and images load from the right path. Then clear the application cache so Rails does not serve stale templates or asset references. If the plugin ships translations or icon sprites, confirm they were copied too. The output is a clean asset and cache state, which you can confirm by loading a plugin page and checking the browser console for missing file errors.

  6. Restart the application and check the service

    Restart the Redmine application server and any background job workers, such as Sidekiq if your deployment uses it, so the new code and settings load. Confirm the service starts without errors in the application log and that the health check responds. The restart check is complete when the server logs show a clean start and a test login succeeds.

  7. Verify functionality and data before removal or sign-off

    Test the plugin's features as a user with each relevant role, and confirm existing issues, time entries and custom fields still display correctly. Check that permissions behave as your role design expects, and that the plugin's admin settings save. For removal, run the plugin's migrations down to version 0 first, verify the data it created is gone or exported as intended, and only then delete the plugin files and restart again. The output is a signed verification record, and for removal, a migration log showing the rollback to version 0.

Which removal path fits your plugin and data

Disabling a plugin leaves its database tables, custom field values, and stored settings in place, and simply stops Redmine from loading its code. This path fits when you expect to re-enable the plugin later, when a vendor fix is pending, or when you need to stop a feature without losing the records it created. It is the lowest-risk option for an urgent problem, but it is not a removal.

  • Data stays in the database: Tables and custom values created by the plugin remain, and they continue to count toward your backup size and restore scope.
  • Hooks and views stop running: Anything the plugin injected into pages or workflows disappears, so users may see missing fields or menus that were once required.
  • Upgrade checks still apply: Disabled plugins are often still listed in your deployment, so confirm whether the plugin needs a compatible version before the next Redmine upgrade.
  • Re-enabling is possible only with the same version: Confirm with the vendor that the stored data format will still work after you restore the plugin files.

Before choosing this path, ask the vendor whether disabling is supported for their plugin and what happens to stored data on re-enable.

Why a plugin migration can damage data if it runs unchecked

A Redmine plugin that ships database migrations changes the same database that holds your issues, time entries, custom field values and permissions. Running rake redmine:plugins:migrate against production is therefore a schema change, not a file copy. A migration that fails partway, or one that is reversed without care, can leave orphaned tables, custom field values pointing at nothing, or permission rows that no longer match the roles they were meant for. Because Redmine and the plugin share one database, the damage is not always visible on the day it happens. It can surface weeks later, when a report looks wrong or a user cannot reach a project they used to see.

Take a full database backup and a copy of the uploaded files before any plugin migration, install or removal, and confirm that you can restore it. The backup is the only reliable rollback if a migration fails halfway, because reversing a migration only works when the plugin provides a working down migration for each of its versions. Ask the plugin vendor or maintainer whether each release includes tested down migrations, whether the plugin documents a removal procedure, and which tables and custom fields it creates. If the answers are vague, treat the plugin as one you cannot cleanly remove.

Before you migrate production, ask the plugin's maintainer for its removal steps in writing and confirm them on a staging copy built from a recent production backup. Record which migration version the plugin is at, which tables and custom fields it added, and whether removing it deletes data your users created through it. Those answers decide whether a rollback is a planned step or a restore from backup, and they belong in your change record before anyone runs a command on the live system.

What makes a plugin change take longer

This table lists the factors that lengthen or shorten a Redmine plugin install or removal, and what each one means for scoping. Read each row as a question to ask a partner or your own team before agreeing on a timeline. The main takeaway is that a plugin that stores its own data or is depended on by custom code costs far more to remove than one that only changes views.

DriverWhy it changes effortWhat to ask a partner to scope
Number of installed pluginsEach plugin has its own migrations and may depend on others, so every change must be tested against the full set, not just the one being added.Which other plugins are installed, and whether any declare dependencies or conflict with the change.
Plugin adds data or only viewsA plugin that creates tables or custom fields needs a migration down to version 0 before removal, and that step can delete records. A view-only plugin is usually a file-level change.Whether the plugin runs database migrations, what tables it creates, and what happens to its records on uninstall.
Custom code depending on the pluginCustom views, hooks, or scripts that call the plugin's models or helpers break when it is removed or upgraded, and each one needs a retest.An inventory of custom code and integrations that reference the plugin.
Size of the database and attachmentsBackups, dry runs and migrations take longer on large databases and file stores, which lengthens the maintenance window.Current database size, attachment storage size, and whether a restore has been tested within the last quarter.
Staging environment existsWithout staging, changes are tested on production, which adds rollback planning and extends the window. A staging copy also needs its own data refresh and configuration check.Whether a staging instance matches production versions, plugins, and configuration, and who refreshes it.
Number of Redmine instancesEach instance has its own database, plugin set, and migration run, so effort multiplies unless the change is scripted and repeated consistently.How many instances share the plugin, whether they are configured identically, and whether the change can be applied by one procedure.
Plugin maintenance statusA plugin without a declared compatibility with the target Redmine version may need patching or replacement before the change can proceed.Declared Redmine version compatibility, the last maintenance activity, and any known issues with the target version.

How plugin changes touch the rest of your Redmine stack

A plugin install or removal runs migrations against the same database that holds your issues, and it changes code that every request, background job and outgoing message depends on. Each component below can fail independently after a restart, so each needs its own check before users return.

Database connection and migrations

Plugin migrations write to the production schema, and a failed or partial run can leave tables half-changed. Confirm that the database user Redmine connects with can run the migration, that the transaction isolation setting still matches your MySQL requirement if you use MySQL, and that a fresh backup exists before the first rake redmine:plugins:migrate run. After the restart, open a few projects and issues and confirm that reads and writes succeed, not just that the login page loads.

Installation guide

Attachment and file storage

Plugins can add their own upload directories or store files outside the standard attachments path, and a removed plugin may leave orphaned files behind. Compare the files directory and any plugin-specific storage paths before and after the change, and confirm that existing attachments still download and that the Redmine process user can read and write the paths. Do not delete plugin storage during removal until you have confirmed that no records still point to it.

Background job workers

If your deployment runs Sidekiq for background jobs, workers load the application code at startup and keep the old plugin code in memory until they restart. A plugin that adds jobs, hooks into notifications or changes mail delivery can fail silently in the queue while the web interface looks healthy. Restart the workers together with the web process, then check the queue for failed or retried jobs and trigger one test notification.

Puma and web server restart

Puma and any front web server cache the application after boot, so a plugin change takes effect only after a full restart and a cleared cache. Confirm that the restart actually reloaded the new code, since an old process may still serve requests. Watch the server log for plugin load errors on startup, because Redmine can start with a plugin that failed to initialize and surface the problem only on the page that uses it.

Email delivery

A plugin that alters issue notifications, reminders or mail templates can change what leaves your server, and a broken mailer hook can stop all notifications. Send a test issue update to a monitored mailbox after each change and confirm the message body, recipients and links. Email-based issue creation also depends on the incoming mail handler, so test a reply to a notification as well.

LDAP, reverse proxy and backups

Authentication and infrastructure around Redmine are often outside the plugin's scope but still affected. Test a directory login with a non-administrator account after the change, because a plugin that touches user records can interfere with LDAP-linked accounts. Check that the reverse proxy still forwards the headers and paths Redmine expects, and confirm that your backup job still captures the database and files and that a restore test works on the new plugin set.

How a plugin change moves through backup, staging and production

The path starts with a request to add or remove a plugin, followed by a compatibility check against the Redmine version in use. Every change then gets a backup of the database and uploaded files before anything runs. The change is applied on staging first, and only a passing run moves to production. A failure at any gate sends the team back to the backup rather than forward into live data. Check each hand-off, especially the migrate-down step and the restore path, before the production window opens.

Decision path for a plugin change, with rollback from backup on failure.

Questions teams ask before changing Redmine plugins

What drives the cost of a Redmine plugin change?

The cost depends mostly on how many plugins are involved, how much custom code or data sits behind them, and how many environments must be tested before production. Redmine itself is free under GPL v2, so the spend goes to hosting, implementation labor, plugin licenses where a vendor charges for them, and ongoing maintenance. Installing one well-documented plugin on a small instance costs far less than migrating data out of a plugin that has its own tables. Ask for a quote that separates the plugin license, the staging environment, the backup and rollback work, and the post-change testing, and confirm with each plugin vendor whether its license terms cover your instance and any staging copy.

How long does a plugin installation or removal take?

Duration is driven by the number of plugins, whether their database migrations are reversible, the size of the database and attachment store, and how long your test cycle runs. A plugin that adds no tables may be installed in a short window, while removing one that stores data needs time for export, a migration down to version 0, and checks that issues, custom fields and workflows still behave. Confirm the expected migration steps and any known issues for your Redmine version with the plugin vendor, and plan a maintenance window sized from a rehearsal on a copy of production rather than from a general estimate.

What does the internal team need to provide for a plugin change?

The internal team needs to supply access to a staging environment that mirrors production, a current backup of the database and uploaded files, and a named owner who can approve the test results. Someone must also know which plugins are installed, their versions, and which custom views or theme files they override. Engineers should be able to run the Redmine rake tasks and restart the application service, and a business owner should define the workflows and fields that must work after the change. Missing any of these usually extends the work more than the technical change itself.

Can our own team install or remove a Redmine plugin without a partner?

Yes, a team with Linux, Ruby on Rails and database experience can perform plugin changes in-house, provided it works from a tested runbook and does not skip staging. The risk rises when a plugin overrides core views, needs a migration that is not reversible, or depends on a version of Redmine that the plugin does not declare as compatible. Teams that lack a staging copy, an restore-tested backup or someone who has done a rollback before should weigh a partner for the first change. DeployOpen plans, implements and documents these changes inside your infrastructure under a written scope.

What happens if a plugin migration fails halfway?

A failed migration is recoverable if you took a verified backup before starting and can restore the database and uploaded files to the state they were in before the change. Redmine's upgrade guide recommends backing up the database and uploaded files before running migrations, and a plugin change should follow the same discipline. Do not run a rollback on production without first reproducing it on staging. After restoring, check the plugin list, the database schema version and a sample of issues, and confirm with the plugin vendor how its down migration behaves before you attempt it.

Why do we need to migrate a plugin down to version 0 before removing it?

Migrating a plugin down to version 0 runs its reversal scripts, which drop the tables and columns it created, so that its data does not stay behind as orphaned records. Skipping this step can leave tables that confuse later upgrades or fail when a new plugin reuses the same names. Check the plugin documentation for whether its down migration deletes data you need to keep, and export that data first. Some plugins store records that you may need as evidence for audit or history, so decide what to keep before the removal.

Do plugin changes affect our compliance evidence or change history?

They can, because removing a plugin may remove the data it recorded, such as time entries, custom field values or approval history. Before a change, list the records the plugin owns, export or archive them according to your retention policy, and record who approved the change and when. Your auditors will want to see that the change was tested, backed up and reviewed, but DeployOpen prepares these controls and evidence without issuing audit reports, which remain the job of independent auditors.

What to hand over after a plugin change

The handover for a plugin change should let the next person answer three questions without asking the person who made it: what changed, how to reverse it, and what the plugin is expected to do after the next upgrade. Start with the change record: the plugin name and exact version installed or removed, the Redmine version it was tested against, the date, the environment, and the person who approved it. Pair the plugin version with the Redmine version explicitly, because a plugin that was compatible with the previous line may not be compatible with the one you run now. Attach the backup locations for the database and the files directory, and the result of the restore test that proved those backups could be used. A backup that has never been restored is a hope, not a control, so record the staging restore date, the Redmine version it ran on, and any step that failed.

The second part covers test and migration evidence. Keep the staging test notes, including which workflows were exercised, which roles were used, and which plugin screens or hooks were checked. Include the output of the plugin migration step, for example the log from rake redmine:plugins:migrate or the migration down to version 0 when a plugin was removed, and note any warnings or errors even if they were resolved. Record the removal or retention decision for plugin data: whether custom fields, custom tables, settings or attachments were kept, archived or deleted, who signed off on that, and where the data is now stored. Confirm with your own team how long retained data must be kept and who may access it, because a plugin's data often outlives the plugin itself.

The final part is the maintenance note for the next upgrade. Write down the plugin's upgrade source, the vendor or repository you will check, the owner responsible for checking compatibility before the next Redmine release, and the steps you will repeat: backup, staging copy, migration, cache clearing and restart. Flag any plugin that overrides views, because those overrides are the most likely to break and need a retest. Ask your plugin vendor or maintainer to confirm the supported Redmine versions in writing, rather than assuming the last release notes still apply. Store the handover next to the upgrade plan so that the document is found when the next change is scheduled.

How DeployOpen scopes and delivers Redmine plugin changes

DeployOpen handles Redmine plugin installs and removals as fixed-scope changes with written steps, backups, staging tests and a rollback path. Each change is planned against your Redmine version, plugin versions and database before anything touches production.

How we scope

  • Inventory the current Redmine version, installed plugins, database engine and attachment storage before agreeing any change.
  • Record which plugin is being added or removed, its declared compatibility, and the data its migrations create or drop.
  • Agree in writing the staging environment, backup method, change window, acceptance tests and the rollback steps.

How we build

  • Take and verify database and file backups, then apply the change first on a staging copy of your production data.
  • Run plugin migrations forward for installs, or migrate down to version 0 before removal, and log every output.
  • Copy assets, clear the cache and restart the application, then test issues, roles, email and any plugin-dependent pages.

How we hand over

  • Deliver a change record listing versions, commands run, migration results, backup locations and verification evidence.
  • Document the removal or install procedure so your own team can repeat it during the next plugin upgrade.
  • Walk your administrators through the rollback steps and confirm who approves the production window.

How we support

  • Offer ongoing plugin upgrades, Redmine upgrades and continuous testing as a retainer, priced from the agreed scope.
  • Retest plugin behavior after each Redmine release, so compatibility issues surface on staging rather than in production.
  • Confirm with the plugin vendor or maintainer which versions support your Redmine line before each planned change.

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.