Upgrading a Mattermost Linux server

A planning guide for upgrading a tarball or package install of self-hosted Mattermost on one Linux server, covering checks, backups, preserved files and rollback.

On this page

How to upgrade a Mattermost Linux server without losing data

An upgrade of a single self-hosted Mattermost server is a stop, replace, restart sequence, guarded by backups and version checks, and the exact path depends on the release you are targeting. Start by confirming your current server version and its support status, because that determines which target versions are reasonable. Mattermost releases a new server version in binary form on the 16th of each month, and it also publishes Extended Support Releases (ESRs) on a longer track. Among the current ESRs, v11.7 was released on 2026-05-15 with support ending 2027-05-15. Check the Mattermost server releases page for the latest list before you pick a target, since a monthly release and an ESR carry different support windows.

Before you touch the binary, record the current version and the PostgreSQL version, then confirm both meet the requirements of the release you plan to install. Take a database backup and a copy of the application files, and store them somewhere the upgrade will not overwrite. The upgrade itself stops the service, removes the old application files while keeping config, data, logs and plugins, copies in the new files, resets ownership to the mattermost user and restarts. Confirm that the mattermost user still owns the directories after the copy, because a wrong owner is one of the most common reasons a restarted server fails to start. If your release requires binding to a low port, confirm the capability on the new binary as well.

Set the maintenance window around the backup and restore time for your database, not around the copy step, which is fast. Ask your team to confirm how long a restore of your largest backup takes in a test environment, and schedule the window with that number plus time to verify logins, channels and file access. Major version jumps can carry breaking changes, so read the release notes for every version between your current release and the target before you start. A staging copy built from the same backup is the safest way to rehearse the sequence, and it gives you a tested rollback point if the production restart fails.

What changes between Mattermost releases and what each change means for this upgrade

This table compares the release and support changes that affect when and to what version you upgrade a Linux server. Read each row against your current version and your support deadline. Breaking changes for major versions are covered on the sibling pages, so check those before you start the file procedure on this page.

ChangeImpactAction needed
Monthly binary release on the 16thMattermost publishes a new server version in binary form on the 16th of each month, so upgrade work can be scheduled against a known date.Check the server releases page each month and decide which version your next window will target.
v11.11 support ends 2026-12-15After this date, a server still on v11.11 no longer receives support from Mattermost.Plan your move to a supported version before 2026-12-15, and confirm the target with your support contract.
v12.0 released 2026-10-16, support ends 2027-01-15v12.0 is a major version with breaking changes, so the file procedure alone is not enough to move to it.Read the Mattermost v12 upgrade page and complete its prerequisites before you copy any new files.
v11.7 is an Extended Support Release, support ends 2027-05-15An ESR receives longer-term support than monthly releases, which suits servers that change less often.Confirm with your team whether to stay on the ESR track, and check the ESR to ESR upgrade path before choosing a target.
v10.11 reached end of life on 2026-08-15Servers still on v10.11 are past support and may not have received recent security fixes.Treat any v10.11 server as a priority, and review the ESR upgrade path to step forward in order.
Major version breaking changesMajor versions can remove features, change database requirements and require plugin rebuilds. The file procedure on this page does not cover those changes.Review the sibling pages for your target version and confirm each prerequisite before the maintenance window.

What to back up and inventory before touching the binary

Every step in the upgrade procedure assumes you can return to the previous state if something fails. The cards below cover the backups, inventories and checks that make that rollback possible, and they should be completed in order before the service is stopped.

Full database backup

Take a complete PostgreSQL dump of the Mattermost database before anything else changes. Schema migrations run when the new binary starts, and the database is the part that is hardest to undo. Confirm that the dump completes without errors, record its size and timestamp, and test that it can be restored into a scratch database. A backup you have never restored is an assumption, not a rollback plan.

Upgrade docs

Copy of the application directory

Archive the current application directory, including the binary, the client folder and any bundled files, so the exact previous build can be put back in place. Store the copy outside the install path so that removing old files cannot delete it. Keep the archive until the new version has run cleanly for a period your team agrees on.

Inventory of config, plugins and custom files

List everything the upgrade must preserve: config/config.json, the data and logs directories, the plugins folder, custom plugin bundles, reverse proxy settings and any scripts that call the server. Compare this list with the files in the new release package before copying. Files that exist only on this server, such as hand-installed plugins or local edits, are the ones most likely to be lost when the old tree is removed.

Staging rehearsal on a production copy

Restore the database backup and application files to a staging server, then run the full upgrade there using the same steps you plan for production. Check that the service starts, that users can sign in, that plugins load and that file uploads work. Record every command and every error so the production runbook reflects what actually happened. Staging should match production in database version, operating system and plugin set.

Server and PostgreSQL version check

Confirm the current Mattermost server version and the PostgreSQL major version, then compare both with the requirements for the release you are moving to. Requirements change between major releases, so check the floors in the official upgrade documentation for your exact target rather than relying on the version you last upgraded from. If the database is below the floor, plan the database upgrade as its own step before the server upgrade.

The upgrade sequence on a single Linux server

The documented quick start turns a risky in-place binary swap into a repeatable sequence, with a checked rollback point and a verified restart at each stage. Each step closes with a check, so you know the upgrade is complete before users return.

  1. Back up the database and application

    Take a full PostgreSQL backup and a copy of the existing Mattermost application directory before anything changes. The backup is your rollback point: if the new version fails, the database backup and the old files are what you restore. Confirm the dump file is non-empty and can be listed or restored to a scratch database. Store copies off the server so a disk fault does not remove both the live data and the backup.

  2. Verify server and PostgreSQL versions

    Check the running Mattermost server version and the PostgreSQL version against the target release notes before stopping anything. Confirm the target version's minimum PostgreSQL requirement is met on this host. If the database is below the floor, stop here and plan the database upgrade first. The check is complete when you have written down the current version, the target version and the PostgreSQL version, and each requirement is confirmed against the release documentation.

  3. Stop the Mattermost service

    Stop the Mattermost service with your init system so no new writes reach the database while files are replaced. The administrator performing the upgrade runs this on the host. Confirm the process has exited and the port is no longer listening. Stopping first prevents the running binary and the database from diverging from your backup.

  4. Move old application files aside

    Move the old application files out of the install path while keeping the config, data, logs and plugins directories in place. Preserving these means users, channels, file attachments, settings and installed plugins carry over. Check that the preserved directories still exist and that the moved copy is complete. Keep the moved files until the new version has passed the post-restart checks.

  5. Copy in the new application files

    Extract the new release into the install path and copy its binaries and default files alongside the preserved directories. Confirm the new binary is present and that config, data, logs and plugins were not overwritten by defaults. Compare the config file against your saved copy so any settings you rely on are still in place. The step is done when the file layout matches the release and your preserved directories are intact.

  6. Reset ownership to the mattermost user

    Set ownership of the install directory and the preserved data directories to the mattermost service user so the process can read and write them. Incorrect ownership is a common cause of a service that starts and then fails on file access. Verify with a recursive listing that the owner and group are correct on the binary, config and data paths. Confirm the service user can read the config file.

  7. Restart and confirm the new version

    Start the service and check its status with your init system. Confirm the server reports the target version and review the Mattermost logs for startup errors, migration messages and database connection problems. If the release binds to a low port such as 80 or 443, confirm the service still listens there, since the binary needs the capability to bind to privileged ports. Finish with a test login and a test message in a channel.

  8. Verify users, plugins and integrations

    Sign in with a test account, post a message, and open a channel with a file attachment to confirm storage and database access work. Check that installed plugins load and that any integrations you depend on respond. Keep the old files and the database backup until these checks pass. Only then remove the moved-aside directory, since that is the point at which the rollback option closes.

How to plan the maintenance window and communicate downtime

Plan the upgrade on the assumption that Mattermost is unavailable for the whole window. The service is stopped while the application files are replaced, and the database migrations run when the new binary starts, so users cannot sign in or post from the moment you stop the service until the health checks pass. The window length should come from your own staging rehearsal, not from a number in a document. Run the full procedure against a copy of production data on the same server build, record how long the backup, file replacement, first start and post-upgrade checks each take, then add margin for a slow migration on your largest tables and for the time needed to restore if something fails. Confirm the migration duration on your own data volume, because it depends on the size of your message history and the version you are moving across.

Decide before the window opens who approves it, who can call a rollback, and what the trigger for that call is. A workable pattern is a named change owner who signs off the window, a second engineer who runs the checks in the order written in the runbook, and a single decision maker who has authority to stop the upgrade and restore from the backups taken at the start. Write the rollback trigger as a concrete condition, such as the server failing to start, the version check not matching the release you intended, or a smoke test of sign-in and posting failing, and set a cut-off time after which you restore rather than keep debugging in production. Downgrade mechanics and schema considerations are covered in the rollback topic, so the decision here is who makes the call and when. Tell users through the channel they can still reach during the outage, usually email or a status page, with the start time, expected return time, what will not work, and where they will be told if the window moves.

How the procedure differs for tarball and package installs

A tarball install unpacks the Mattermost server files into a directory you chose, usually one that holds the application binary, the default configuration, and supporting folders. Because you placed everything yourself, the upgrade depends on keeping your own configuration, data directory, logs and plugins separate from the application files you replace. Many teams find that a site-specific layout, such as a data directory on a separate mount, is the part most likely to differ from the documentation.

  • Application location: The unpacked directory is the part you replace during the upgrade. Confirm its exact path and whether a symbolic link points to it.
  • Configuration file: The config.json file may sit inside the application directory or elsewhere. Copy it out before removing old files, then compare it against the new defaults.
  • Data and file storage: Local file storage may live under the application tree or on another volume. If it is inside the directory you clear, preserve it explicitly.
  • Plugins and logs: Custom or third-party plugins and log output may be stored in subfolders that the upgrade steps would otherwise remove. Record each one.
  • Ownership and service user: You create the mattermost user and set ownership yourself, so confirm that the restart runs as that user and that it can read and write every directory it needs.

Before starting, list every path the service reads or writes, and check each one against your installation rather than assuming a default layout.

How the upgrade phases and rollback points connect

The sequence starts with inventory and a staging rehearsal, then moves to a production backup that is the last clean rollback point before any application files are replaced. From there the work runs through the version check, stopping the service, swapping application files while keeping config, data, logs and plugins, resetting ownership to the mattermost user, and starting the service. Verification is the final gate: if it fails, the decision branch restores from the backup rather than trying to patch the running install.

Phases of a single-server upgrade, with the backup as the rollback point before files are replaced.

How to test the upgrade and decide on rollback

A Linux server upgrade is only finished when the running instance behaves correctly and you know what you will do if it does not. The four cards below cover the checks to run after the restart and the decision rule to agree before the maintenance window opens, so the call is not made under pressure.

Post-upgrade smoke tests

Run a short, scripted pass as a real user before you declare the window closed. Sign in through your actual identity path, open a few channels that matter to your teams, post a message, upload a file, and confirm that each integration your teams depend on still sends and receives. Record the results against a checklist written before the upgrade, so the tests are the same each time. Include at least one user from each authentication method you run, because a failure often appears in only one sign-in path.

Upgrade docs

Log review after restart

Read the Mattermost server logs from the moment the service starts, not only the final status line. Look for startup errors, database migration messages, repeated connection failures to PostgreSQL, file permission denials under the data and plugin paths, and errors when the server binds to its listening port. A clean service status does not prove a clean start, so compare the first few minutes of logs against the pre-upgrade baseline you saved. Keep the logs from the window in your change record.

Plugin compatibility check

Confirm that every plugin loads and is enabled in the System Console after the restart. Plugins built for the previous server version can fail to start or behave differently, and this risk is highest for any plugin you wrote or installed by hand. Compare the plugin list with your inventory from before the upgrade, and test the one or two plugin features your teams use most. If a plugin is not compatible, decide whether to disable it for the window or to hold the upgrade, and record that choice.

Rollback decision rule

Agree the rollback conditions with the change owner and the business approver before the window starts. For example, you might decide that any failed sign-in path, a data-loss symptom, or a plugin that breaks a core workflow triggers rollback, and that cosmetic issues are fixed forward. Write down who has authority to call rollback and the time limit for deciding. If the upgrade changed the database schema, restoring from the backup taken before the window is usually the practical rollback route, because the older binary may not run against the newer schema. The downgrade topic covers the schema checks and steps in detail.

What makes a Mattermost Linux upgrade take longer

This table lists the factors that stretch a single-server Mattermost upgrade and what each one changes in the work. Read it before scoping, so the backup, rehearsal and testing time is planned rather than discovered during the maintenance window. The main takeaway is that a large database, many manual plugins and untested integrations usually add more effort than the binary swap itself.

DriverEffect on effortWhat to check
Database size and backup timeA larger PostgreSQL database takes longer to back up and restore, and the backup step sits inside the maintenance window before the service stops.Measure the current database size and time a full backup and a test restore on a copy. Confirm the window covers both.
Custom or manually installed pluginsEach plugin may need a version check, a rebuild or a retest against the new server version before cutover.List every plugin in the plugins directory, its source and whether its vendor or author has released a build for the target version.
Custom configurationHand-edited settings in config.json need to be compared against the new release so that they carry over without breaking.Diff the current config against the new default file and record every custom key, path and environment override.
Integrations that must be retestedWebhooks, slash commands, bots and identity connections each need a functional test after the upgrade, which adds hands-on time.Inventory integrations by owner and business use, then write a short test script for each one that changes data or sends alerts.
Number of environments to rehearseEach environment such as development, test and production repeats the full procedure, so effort grows with every extra environment.Confirm which environments exist, which must match production and whether the same steps can run in each one.
Team access to a staging copyWithout a staging copy built from a recent backup, rehearsal happens on production or is skipped, which raises risk and delays sign-off.Ask whether a staging server can be restored from a recent backup, who can provision it and how long that restore takes in your environment.

Questions teams ask before upgrading Mattermost on a Linux server

Does an in-place Mattermost upgrade on a Linux server need a staging rehearsal first?

Yes, a rehearsal on a copy of production is the safest way to find problems before users see them. The documented procedure replaces application files in place, so a dry run on a restored backup shows whether your config, plugins and database migrations behave as expected. Run the same steps you will use in production, including the database backup, the version checks and the file ownership reset. Record how long each step takes, because that timing is what you will use to size the maintenance window. Skipping the rehearsal is most risky when you run custom plugins or have changed the default configuration, since those are the parts most likely to surprise you.

How is the cost of a Mattermost upgrade determined, and what should a quote cover?

Cost follows from the written scope, and the main drivers are the number of servers, the database and storage setup, the number of custom plugins or integrations, the version gap being crossed, and how much testing you need. Mattermost itself is licensed separately: its pricing page lists no public prices and directs buyers to contact sales, so a Mattermost subscription is a distinct cost from any upgrade work. Ask a quote to list the pre-upgrade checks, the backup method, the staging rehearsal, the production steps, the rollback plan, the verification checks and what is excluded. Ask whether the work is one-time or whether ongoing support is included. Most engagements are fixed-scope, so the scope should be agreed in writing before work starts.

What does the upgrade need from our team?

Your team needs to supply access, decisions and knowledge of the environment. Typical inputs include root or sudo access to the server, the database credentials and a place to store backups, the current config.json and any plugin inventory, and the names of people who can approve a maintenance window. Someone must confirm which users, integrations and bots depend on the server so that downtime is communicated correctly. Your team also owns the business decisions: the target release, the acceptable window and whether a rollback is acceptable. Ask the provider which artifacts they need before the rehearsal starts so that delays do not appear in the middle of the window.

Can our internal team perform the Mattermost upgrade alone?

A team with Linux administration and PostgreSQL experience can usually perform a single-server upgrade by following the documented procedure, provided it has time for a rehearsal. The procedure covers backing up the database and application, verifying the server and PostgreSQL versions, stopping the service, replacing application files while keeping config, data, logs and plugins, resetting ownership to the mattermost user, and restarting. The harder cases are multi-version jumps, custom plugins that must be rebuilt, and environments with tight change controls. If your team has not done an upgrade of this kind before, consider having a partner review the plan or run the rehearsal with your staff so that knowledge stays in-house.

How long does the maintenance window need to be?

The window must be measured in staging, not estimated from a general rule. Time the backup, the file replacement, the database migration that runs when the new binary starts, and the post-restart checks, then add margin for the backup restore if a rollback is needed. The size of the database and file storage, the number of plugins and the speed of the storage are the main factors. Make sure the staging environment is close enough to production in data volume and hardware for the timings to be meaningful. Publish the window to users before the change, and keep the rollback time inside the window so that a failed upgrade does not run past it.

Does moving to a new Mattermost version involve a plan or license change?

It can. Mattermost sells Professional, Enterprise and Enterprise Advanced plans as prepaid annual subscriptions based on seat licenses, and some capabilities depend on plan level. According to the Mattermost pricing page, SSO (SAML, OIDC, OAuth) and AD/LDAP user sync are included from the Professional plan, high availability clustering and FIPS 140-3 compliance from Enterprise, and air-gapped deployment in Enterprise Advanced. A version upgrade does not by itself change your plan, but if the target release or your planned features require a higher tier, that change must be purchased and recorded. Confirm your current entitlement with Mattermost before you pick a target release, and check the Mattermost pricing page for the current plan details.

How should we choose between a monthly release and an Extended Support Release?

Choose based on how quickly you can absorb change and how long you need support. Mattermost releases a new server version in binary form on the 16th of each month. Mattermost v11.11 was released on 2026-09-16 with support ending 2026-12-15, and v12.0 was released on 2026-10-16 with support ending 2027-01-15. Mattermost v11.7 is an Extended Support Release, released on 2026-05-15 with support ending 2027-05-15. Monthly releases give you newer features but require upgrading more often, while an ESR suits teams that want fewer changes. Check the Mattermost server releases page for current dates before you commit, and plan the next upgrade before support ends.

What happens if the Mattermost upgrade fails partway through?

The outcome depends on what was backed up and how far the procedure got. The documented procedure starts with a database and application backup, so a failed upgrade can be reverted by restoring those backups and the previous application files. Do not assume that a binary can always be swapped back without a database step, because a newer release may have changed the schema. Before the window, write a rollback plan that names who makes the call, the trigger conditions, the restore steps and the checks that confirm the service is healthy again. Keep the previous binary and the backup for a defined period after the upgrade. Test the restore in staging so you know it works before you need it.

How DeployOpen scopes an upgrade before work starts

Every DeployOpen upgrade engagement starts with a written scope that states what will be upgraded, what will be delivered and when. Most engagements are fixed-scope, so the scope, deliverables and timelines are agreed in writing before any work begins. DeployOpen does not publish a price list. A quote follows from that written scope, which is why the inputs below matter: the more precisely they are described, the more precisely the work can be bounded.

For a single Linux server, the scoping conversation needs the current Mattermost server version and the install method, which is either a tarball or a package install. The team should also provide the PostgreSQL version and connection details, the location of the config.json file, the data directory and any file storage path, and a list of installed plugins, including whether any are custom builds that must be rebuilt for the target release. Confirm whether the server runs behind a reverse proxy, whether it uses SSO or LDAP sync, and whether any custom scripts or integrations call the server API. Each of these changes the test plan and the rollback steps.

The target release is the other essential input. Monthly releases and Extended Support Releases follow different cadences, and the target determines which breaking changes and prerequisites apply. Confirm the target version against the Mattermost server releases page before the scope is written. DeployOpen can also support ongoing work through retainers for recurring upgrades and support, so ask for a quote covering both the one-time upgrade and any ongoing arrangement, and state in the scope who owns the maintenance window and sign-off.

How DeployOpen delivers Mattermost upgrades

DeployOpen plans and carries out single-server Mattermost Linux upgrades inside your own infrastructure, following the upgrade procedure Mattermost documents. Each engagement starts with a written scope that fixes what is upgraded, what is tested and what your team receives at the end.

How we scope

  • Confirm the current server version, target release and PostgreSQL version before any change is planned.
  • Inventory tarball or package install method, custom plugins, reverse proxy and low-port binding requirements.
  • Agree the maintenance window, backup locations and rollback criteria in writing before work starts.

How we build

  • Take and verify database and application backups, then run the upgrade in a staging copy first.
  • Preserve config, data, logs and plugins while replacing application files, and reset ownership to the mattermost user.
  • Test sign-in, messaging, file upload and plugin behavior on the upgraded server before the window closes.

How we hand over

  • Deliver a written runbook with the exact steps, commands and checks used for your server.
  • Document the backup set, rollback procedure and the version and PostgreSQL floors confirmed during the work.
  • Walk your administrators through the procedure so the next upgrade can be run by your own team.

How we support

  • Plan follow-on upgrades against the monthly release cadence and Extended Support Release dates you choose to follow.
  • Offer ongoing upgrade, patching and support work as a retainer, scoped separately from the one-time upgrade.
  • Confirm support windows and release dates with Mattermost's published release page before each planned upgrade.

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.