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

You said, you upgraded the site and got the error?
The complete output of the upgrade process would help.