How to upgrade Monsta from v4 to v5?
A version 5 (v5) of Monsta represents a complete overhaul of the system core, offering new features and greater efficiency compared to the previous version (v4).
Why upgrade?
Section titled “Why upgrade?”Support for v4 has been discontinued with the release of v5. Keeping Monsta outdated can cause critical compatibility and operational issues:
- License Validation: v4 is not compatible with the new subscription model. To apply or renew the license, Monsta must be on v5.
- Template Import: New templates requested from support are always provided in the latest official version. v5 templates cannot be imported into v4 due to file incompatibility.
It is essential to upgrade your Monsta to v5 to ensure continuity and validity of your monitoring.
If your Monsta does not show the new update under Settings > Update, an error may have occurred preventing detection. Follow the steps below to try to resolve the issue.
(Optional) Full backup
Section titled “(Optional) Full backup”The upgrade process is safe and does not affect the monitoring history database (graphs). However, for maximum data preservation assurance, we recommend a full backup. The cloud backup only saves Monsta settings.
Full Backup Options
Section titled “Full Backup Options”- Virtual Machine (VM): If Monsta is installed on Linux inside a VM, the simplest method is to create a full clone of the virtual machine.
- Physical Server or Manual Backup: If it is not possible to clone the VM or the installation is on a physical server, follow these steps:
- Check your Monsta version under Settings > About Monsta
- Stop Monsta:
#v4.1.18 or lower
service monsta stop
#4.1.19
systemctl stop monsta-com.* - With Monsta stopped, copy the folders:
/var/monstaand/opt/monsta
Checking the logs
Section titled “Checking the logs”A known issue that can block the update is a failure in Linux log rotation, resulting in an excessive accumulation of monstadb log files that overload the server.
-
Go to Monsta’s log directory:
cd /var/log/monsta -
Check the number of
monstadblogs:
- Run the command to count the monstadb log files. If there are hundreds/thousands of files, correction is needed. Note: You can also use thels -lacommand to view the directory files.
ls -la monstadb.log* | wc -l -
Stop the Monsta service (use the appropriate command according to the version, as described in item 2.2 of the Full Backup section.)
-
Delete the
monstadb.logfiles:
rm -f monstadb.log.*
rm -f monstadb.log-*
Note: if the “argument list too long” error occurs on therm -f monstadb.log.*command, use the following command:
printf '%s\0' monstadb.log.* | xargs -0 rm -v -
Use
ls -lato verify that the files have been removed -
Start Monsta again
#v4.1.18 or lower
service monsta start#V4.1.19
systemctl start monsta-com.nginx
systemctl start monsta-com.monstadb
systemctl start monsta-com.monstad
systemctl start monsta-com.moncored
systemctl start monsta-com.monagentd
systemctl start monsta-com.monstaupd
Upgrading
Section titled “Upgrading”After starting the services, access the Monsta web interface and check if the update is available. Depending on your current version (e.g. 4.1.16 or 4.1.18), Monsta may first update to 4.1.19 (which will cause a restart) and then allow the final update to v5.
Follow the progress in real time via the log:
tail -f /var/log/monstaupd.log
(use Ctrl + C to stop the tail command)
No log issues and the update still doesn’t appear
Section titled “No log issues and the update still doesn’t appear”If fixing the logs does not resolve the issue and the update to v5 does not appear, please contact support. Our specialists will analyze the root cause. Access to your Monsta web interface and Linux will be requested so the team can diagnose and resolve the issue directly.