SOLVED cPanel hook error Requested hook does not exist in hooks database with escalateprivs attribute

gnusys

Well-Known Member
Jan 18, 2013
62
20
58
cPanel Access Level
DataCenter Provider
Any cPanel hook in python (I am not sure of any other language) raise the error


Code:
[2019-10-30 05:16:39 +0100] warn [hooks2] Requested hook does not exist in hooks database with escalateprivs attribute at bin/admin/Cpanel/hooks2.pl line 97, <STDIN> line 2.
    main::main() called at bin/admin/Cpanel/hooks2.pl line 43
[2019-10-30 05:16:39 +0100] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request adminbin Cpanel/hooks2/Cpanel::Api2::SubDomain::delsubdomain: exit 1: namespace=[Cpanel] module=[hooks2] function=[Cpanel::Api2::SubDomain::delsubdomain]: set error in context subdomain: raw_response=[{"status":1,"mode":"full","statusmsg":"adminbin Cpanel/hooks2/Cpanel::Api2::SubDomain::delsubdomain: exit 1","exit_code":256,"error":1,"version":"2.4","action":"run","data":"Requested hook does not exist in hooks database with escalateprivs attribute","timeout":0}] at /usr/local/cpanel/Cpanel/Wrap.pm line 120, <$socket> line 1.
in v84 which is pushed to release tier, this breaks compatibility with third-party plugins. I have already opened a ticket and cPanel confirmed this as a bug

CPANEL-29888

But I see that this is not fixed before the v84 is put in release tier, so people who get upgraded automatically will find things broken

It would be great if the above bug is fixed asap or if there is a new way to register the hooks etc, please let the community know so that it can help third party integrations to modify accordingly
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hello,


You are correct this case is fixed in v86 of cPanel/WHM but the fix has not been applied to v84. I do see a request for this though and I've noted the request for this in the case as well. You can check the change logs here: 84 Change Log - Change Logs - cPanel Documentation to see if it's been added to the next version.

Thanks!