I upgraded check_mk from 1.6.p24 to 2.0.0p6 but get an error

Can you try to create your config with “cmk --debug -vvR” ?
This should give a little bit more error information.