Werk #16551: Crash in agent bakery GUI after cloning a site

Component Agent bakery
Title Crash in agent bakery GUI after cloning a site
Date Mar 22, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b4 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p26 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

After cloning a site with omd cp or renaming it with omd mv, opening the agent bakery GUI did result in a crash, showing a message like

Internal error: '/omd/sites/SITE/share/check_mk/agents/check_mk_agent.linux' is not in the subpath of '/omd/sites/SITE_COPY/share/check_mk/agents' OR one path is relative and the other is absolute.

As a workaround, you can delete the file ~/var/check_mk/wato/bakery_file_status.mk on the site.

To the list of all Werks