Skip to content

Rate this page
☆ ☆ ☆ ☆ ☆
Thanks for your feedback
Thank you! The feedback has been submitted.

Get free database assistance or contact our experts for personalized support.

Manual upgrade: Upgrade PMM Server using Podman

Before you begin

Before starting the upgrade, complete these preparation steps to ensure you can recover your system if needed and confirm compatibility with the new version:

  1. Create a backup before upgrading, as downgrades are not possible. Therefore, reverting to a previous version requires a backup made prior to the upgrade.

  2. Verify your current PMM version: Check your current PMM version by navigating to Configuration > Updates or by running the following command:

    podman exec -it pmm-server \
    curl -ku admin:admin https://localhost/v1/version
    
  3. If your current version is PMM 3.9.1 or earlier and you use the built-in database, this upgrade also migrates your PMM Server data from PostgreSQL 14 to PostgreSQL 18, so the first start takes longer than usual. Prepare for the PostgreSQL migration.

Upgrade steps

Follow these steps to upgrade your PMM Server while preserving your monitoring data and settings. In case of any issues, you can restore your system using the backup created in the preparation steps.

  1. Update PMM version by editing the PMM Server environment file. Replace 3.0.0 with your target version number:

    sed -i "s/PMM_IMAGE=.*/PMM_IMAGE=docker.io/percona/pmm-server:3.0.0/g" ~/.config/systemd/user/pmm-server.env
    
  2. Pre-pull the new image to ensure a faster restart:

    source ~/.config/systemd/user/pmm-server.env
    podman pull ${PMM_IMAGE}
    
  3. Restart PMM Server:

    systemctl --user restart pmm-server
    
  4. After the upgrade, verify that PMM Server is running correctly:

    podman ps | grep pmm-server
    
  5. Check the logs for any errors:

    podman logs pmm-server