We upgrade to checkMK v2 yesterday and we are unable to activate changes to our downstream sites. We keep getting this error any advice?
Hi,
you need to update all your slave sites first I think.
Hi,
please check your web.log in /omd/sites//var/log.
We saw this kind of error with some wrong permissions inside the ~/local path.
BR
Anastasios
I’m getting the same error. Here’s my log:
2021-03-15 10:52:55,479 [40] [cmk.web.CRESnapshotDataCollector 1818100] <check_MK_SITE>/check_mk/ajax_start_activation.py/<site>/check_mk/ajax_start_activation.py Failed to clone files from /omd/sites/monitoring/local to /omd/sites/<site>/var/check_mk/site_configs/sensors/local: b"cp: cannot create hard link '/omd/sites/<site>/var/check_mk/site_configs/sensors/local/lib/nagios/plugins/check_dnsbl.py' to '/omd/sites/<site>/local/lib/nagios/plugins/check_dnsbl.py': Operation not permitted\n"
We finally figgured it out. After a sight upgrade if you have put anything in the MIB folders it will crash. We put an MIB in for a Tempature Monitor and it would crash it.
Looks like there is an issue with “check_dnsbl.py” in /omd/sites//local/lib/nagios/plugins/
Thanks, but this was not my problem, I think!
I’ve no files in my “/local/share/check_mk/mibs” folder, so there may be other things in local that could be the problem. I’ve deleted some incompatible plugins also but can’t activate the changes…
I would suggest deleting or checking file permissions in the “/omd/sites//local/lib/nagios/plugins/” folder at check_dnsbl.py. My guess is that is not stock.
You have a Problem with your hardlink:
2021-03-15 10:52:55,479 [40] [cmk.web.CRESnapshotDataCollector 1818100] <check_MK_SITE>/check_mk/ajax_start_activation.py//check_mk/ajax_start_activation.py Failed to clone files from /omd/sites/monitoring/local to /omd/sites//var/check_mk/site_configs/sensors/local: b"cp: cannot create hard link ‘/omd/sites//var/check_mk/site_configs/sensors/local/lib/nagios/plugins/check_dnsbl.py’ to ‘/omd/sites//local/lib/nagios/plugins/check_dnsbl.py’: Operation not permitted\n
Please check the permissions.
Br
Anastasios
Hi @athomaidis,
I’m not so familiar with permissions in omd. How can I check (is there an implemented permission-check-tool?) and how do I know that they’re correct?
what is the output of ls -ltr /omd/sites//local/lib/nagios/plugins/check_dnsbl.py
I assume that the permissions are not correct.
BR
Anastasios
Hi,
output is the following:
-rw-r--r-- 1 root root 5248 Mai 6 2020 /omd/sites//local/lib/nagios/plugins/check_dnsbl.py
that’s what I expected to see.
Please execute the following command to change the permissisons:
chown <sitename>. /omd/sites//local/lib/nagios/plugins/check_dnsbl.py
and try to activate changes again
Worked!
Many thanks!
Now I know that everything needs to be owned by sitename!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.

