

A Story of a Failed Percona Monitoring and Management Update
source link: https://www.percona.com/blog/a-story-of-a-failed-percona-monitoring-and-management-update/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Just the other day, one of my Percona Monitoring and Management (PMM) instances failed to update and ended up in a funny state:
No matter how many times I clicked the “check for updates” button in the lower right, PMM still showed “no updates available”. Basically, PMM forgot what version it is and because of that it thinks there are no updates available
If you run into this (or possibly other PMM update problems), you may find the following helpful to troubleshoot or resolve the problem.
I have deployed PMM through docker, so the first step is to get inside the docker container to be able to investigate and troubleshoot the installation.
Percona Monitoring and Management (as of version 2.26) learns its own version from the version of “pmm-update” package. In my case, this did not work due to a corrupted rpm database:
It is not clear to me why the database has become corrupted in my case, but unfortunately, it did and needed to be repaired:
These commands backup the current database to /tmp/ (just in case) to rebuild the current database as well as remove already downloaded packages (it has nothing to do with database corruption but reduces reliance on the local state).
This command starts the update process. You probably could also trigger an update through the Web GUI at this point but I want you to be aware of this option, too.
As this simply starts the background update process you do not get much information about what is going on. To find that out, you need to check the log:
Note while the update is going, the PMM instance may not be available at all. You could see this message:
Do not freak out – wait for the update to finish before trying to use PMM again.
The update log does not really have a very clear message which states what update was completed successfully. Here is, however, an example of how the end of a log from a successful update may look:
With that, the update has been completed and my PMM instance has successfully updated to the recent version.
I hope this blog post will help you to troubleshoot your PMM update problems too if you happen to run into one!
Recommend
-
14
Observations on Better Resource Usage with Percona Monitoring and Management v2.12.0 Back to the Homepage (PMM)...
-
12
Latest Percona Monitoring and Management (PMM)/PMM unofficial Dashboards and Plugins topicsSkip to main conte...
-
9
Grafana Services
-
7
Percona Monitoring and Management Security Threat Tool Back to the Blog Percon...
-
9
Percona Monitoring and Management in Kubernetes is now in Tech Preview Back to the Blog
-
10
DBaaS¶ Caution DBaaS functionality is currently in
-
6
Install Percona Monitoring and Management Webinar: Advanced Percona Monitoring and Management (PMM) Usage - Aug 18 and 23. Don't miss it...
-
11
Podman¶ Caution Podman support is currently in
-
4
Virtual Appliance¶ How to run PMM Server as...
-
10
AWS Marketplace¶ You can run an instance of PMM Server hosted...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK