Werk #18232: BI: handle FileNotFoundError in update config migration

Component BI
Title BI: handle FileNotFoundError in update config migration
Date Jun 24, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p6 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Users reported the following error when running the update config migration:

39/39 Migrate legacy frozen aggregations....
FileNotFoundError: [Errno 2] No such file or directory: '~/tmp/check_mk/bi_cache/compilation.LOCK'

This would occur when a user did not have Business Intelligence (BI) rules set. The applied fix makes sure that the operation now never fails, especially when BI is not in use.

The bug was introduced with the following werk: https://checkmk.com/werk/18116

To the list of all Werks