Troubleshooting Exception: Error running automation call bake-agents (exit code 1) while baking agents

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.

  1. Switch to your site user

    root@linux~$ su mysite

    .

  2. Run cmk-update-config -v

    OMD[mysite]:~$ cmk-update-config -v

 

Related articles