/
Failed to create site config directory and/or Site is not running at activation although site is accessible
Failed to create site config directory and/or Site is not running at activation although site is accessible
"Failed to create site config directory" error and how to resolve.
LAST TESTED ON CHECKMK 2.3.0P1
Table of Contents
Problem
You may encounter this error when you upgrade a very very old checkmk version to checkmk 2.0 (which is again very old).
Also, you might encounter this error in conjunction:
Solution
Please check the web.log inside the site directory (~/var/log/web.log). You will receive a message that the hard link cannot be created.
/omd/sites/mysite/var/check_mk/site_configs/fe/local: b"cp: cannot create hard link '/omd/sites/mysite/var/check_mk/site_configs/fe/local/share/check_mk/agents/custom/my_mrpe_plugins/bin/check_http_ntlm' to '/omd/sites/mysite/local/share/check_mk/agents/custom/my_mrpe_plugins/bin/check_http_ntlm': Operation not permitted\n"
You might want to use the below command to fix it:
root@linux:~# chown <sitename.> /PATH/of/the/hardlink
If there are more than one hard link errors listed in the web.log file, you should fix all of them.
The Activate Changes should run now without problems.
Related articles