Werk #9500: Fix possible broken web access after updating a site (1.5.4 regression)
Component | Firmware |
Title | Fix possible broken web access after updating a site (1.5.4 regression) |
Date | Aug 31, 2022 |
Level | Trivial Change |
Class | Bug Fix |
Compatibility | Compatible - no manual interaction needed |
Appliance Version | 1.5.5 |
Werk #9499 introduced compatibility for Checkmk werk #14281.
There was a case which could break access to the web interface of the appliance. This happened in this situation:
- The Checkmk appliance uses firmware 1.5.4
- A Checkmk version newer than 2.1.0p7 or 2.0.0p28 is uploaded
- A Checkmk version older than 2.1.0p7 or 2.0.0p28 is uploaded (This triggers the issue)
- A site using a version 2.1.0p7, 2.0.0p28 or older is updated to the new version version
In this case the UI displays a message "Successfully updated site xyz from 2.1.0p2.cee to 2.1.0p11.cee" or similar. but below that message there is a red error box shown starting like this: "Error during update: Cannot execute omd command omd update-apache-config xyz: omd: no such command: update-apache-config".
Now after the next restart of the system apache (e.g. during system boot or other configuration changes), the service will fail to start (systemctl status apache2 shows a failed unit and a message like "apache2: Syntax error on line 222 of /etc/apache2/apache2.conf" is visible).
In case you experience this issue, you can workaround the problem by executing the following commands on the command line:
omd -V [OMD_VERSION] update-apache-config [SITE_ID]
systemctl restart apache2
To prevent this issue, ensure that the latest installed Checkmk version is the version you want to update to.