Extract the new release
Download the new Redmine release archive and extract it into a separate directory:Do not overwrite the existing installation directory. Work from the new directory and copy configuration across.
Copy configuration files
Copy your existing configuration files into the new
config directory:Before Redmine 1.2, SMTP configuration was stored in
config/email.yml. It must now be in config/configuration.yml.Copy attached files
Copy the contents of the
files directory from your old installation. This directory contains all uploaded attachments:Install required gems
In the new installation directory, install the required gems:If ImageMagick is not installed on your system, skip the Re-run this command if you change the database adapter in
rmagick group:config/database.yml.Regenerate the secret token
If you are upgrading from Redmine 2.x or earlier, first remove the old secret file if it exists:Then generate a new secret:
Compile assets (optional)
Redmine recompiles assets automatically on startup. To precompile manually:For sub-URI deployments:If you encounter missing assets, clear the output first:
Migrate the database
Apply any pending schema migrations:If you have installed plugins, run their migrations as well:
If you are also upgrading from a very old Rails version (2.3.14), run plugin migration upgrades first:
Restart the application server
Restart your application server (Puma, Passenger, Unicorn, etc.) to load the new code.
Plugin compatibility
Plugins are not guaranteed to be compatible across major Redmine versions. After upgrading:- Check each plugin’s repository or documentation for compatibility with the new Redmine version.
- Update or remove plugins that are not compatible before running migrations.
- Some plugins may require separate migration steps via
rake db:migrate_plugins.
