Troubleshooting Exception: Error running automation call bake-agents (exit code 1) while baking agents
ERROR: Error on creating msi file: [Errno 2] No such file or directory while baking agents.
LAST TESTED ON CHECKMK 2.3.0P1
Table of Contents
Problem
When running an agent bakery job, the following error occurs:
Exception: Error running automation call bake-agents (exit code 1), error:
ERROR: Error on creating msi file: [Errno 2] No such file or directory: '/omd/sites/mysite/var/check_mk/agents/.files_cache/xxxxxxxxxxxxxx/windows/checkmk.dat', work_dir is /omd/sites/mysite/tmp/msi-update.xxxxxxxxx
Solution
This problem is most likely caused by an upgrade from Checkmk version 1.6 to version 2.x by old MKPs, which are incompatible with version 2.x.
Switch to your site user
root@linux~$ su mysite.
Run
cmk-update-config -vOMD[mysite]:~$ cmk-update-config -v
Related articles