Can't modify accounts
AnsweredWe are on WHM 110.0.34 (until we are able to upgrade our OS), and a new update was pushed out recently that broke the ability to modify accounts. When we try to modify an account (Account Functions > Modify an Account, or Account Information > List Accounts > Modify Account), we get an error screen and cannot proceed:
undef error - Cpanel::Exception::AdminBinError/(XID 8nje5e) root is not permitted to call cpwrapd at /usr/local/cpanel/Cpanel/AdminBin/Call.pm line 218. Cpanel::AdminBin::Call::_throw_error(HASH(0x39d0a10)) called at /usr/local/cpanel/Cpanel/AdminBin/Call.pm line 168 Cpanel::AdminBin::Call::_parse_cpwrapd_response(HASH(0x39d0a10)) called at /usr/local/cpanel/Cpanel/AdminBin/Call.pm line 92 Cpanel::AdminBin::Call::call("Cpanel", "api_call", "LOG", HASH(0x3b505c0)) called at /usr/local/cpanel/Cpanel/API.pm line 693 Cpanel::API::_log_api_usage("WpToolkitCli", "execute_command") called at /usr/local/cpanel/Cpanel/API.pm line 245 Cpanel::API::execute("WpToolkitCli", "execute_command", HASH(0x3ae3ac8)) called at /usr/local/cpanel/Cpanel/Template/Plugin/Uapi.pm line 24 Cpanel::Template::Plugin::Uapi::_uapi_exec("WpToolkitCli", "execute_command", HASH(0x3ae3ac8)) called at /var/cpanel/packages/extensions/wp-toolkit.tt2 line 38 eval {...} called at /var/cpanel/packages/extensions/wp-toolkit.tt2 line 38 eval {...} called at /var/cpanel/packages/extensions/wp-toolkit.tt2 line 16 Cpanel::Template::Shared::__ANON__(Template::Context=HASH(0x2494208)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Document.pm line 165 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Document.pm line 163 Template::Document::process(Template::Document=HASH(0x396c840), Template::Context=HASH(0x2494208)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Context.pm line 352 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Context.pm line 322 Template::Context::process(Template::Context=HASH(0x2494208), "/var/cpanel/packages/extensions/wp-toolkit.tt2") called at (eval 12) line 367 eval {...} called at (eval 12) line 361 eval {...} called at (eval 12) line 1 Cpanel::Template::Shared::__ANON__(Template::Context=HASH(0x2494208)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Document.pm line 165 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Document.pm line 163 Template::Document::process(Template::Document=HASH(0x36281a8), Template::Context=HASH(0x2494208)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Context.pm line 352 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Context.pm line 322 Template::Context::process(Template::Context=HASH(0x2494208), Template::Document=HASH(0x36281a8)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Service.pm line 94 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Service.pm line 91 Template::Service::process(Template::Service=HASH(0x3526838), "edituser.tmpl", HASH(0x340b378)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template.pm line 66 Template::process(Template=HASH(0x35264c0), "edituser.tmpl", HASH(0x340b378)) called at /usr/local/cpanel/Cpanel/Template.pm line 471 Cpanel::Template::process_template("whostmgr", HASH(0x340b378)) called at whostmgr/bin/whostmgr.pl line 3967 main::edituser("edituser") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 366 Whostmgr::Dispatch::_do_call("edituser", HASH(0x2cfc870), HASH(0x2d0db70)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 178 Whostmgr::Dispatch::dispatch("edituser", 1, ARRAY(0x2cfc780), HASH(0x2d0db70)) called at whostmgr/bin/whostmgr.pl line 532
There are also these entries in the error log:
[2024-06-18 11:17:14 -0500] warn [whostmgr] Invalid username (falsy or forbidden character) given to loadcpuserfile.
[2024-06-18 11:17:14 -0500] warn [whostmgr] Failed to load cPanel user file for ''
[2024-06-18 11:17:14 -0500] warn [whostmgr] Invalid username (falsy or forbidden character) given to loadcpuserfile.
[2024-06-18 11:17:14 -0500] warn [whostmgr] Failed to load cPanel user file for ''
[2024-06-18 11:17:14 -0500] warn [whostmgr] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[api_call] function=[LOG]: statusmsg=[root is not permitted to call cpwrapd]
-
Hey there! Do you have any usernames that may be breaking the rules here? https://docs.cpanel.net/knowledge-base/accounts/reserved-invalid-and-misconfigured-username/
1 -
Hi. Seems like this may be the problem:
https://support.cpanel.net/hc/en-us/articles/24166912810007-Unable-to-edit-packages-in-WHM-when-the-cPanel-API-token-log-is-enabled
WorkaroundDisable the cPanel API Log within the Tweak settings interface, this can be found within the path below in the WHM Panel: Home / Server Configuration / Tweak Settings.
1 -
That was going to be my second recommendation as I've been linking that a bit more recently.
0 -
Thanks for your reply. I was not able to find any usernames that break any of the rules on that page.
0 -
Sure thing - I'm glad you found you the answer!
0 -
InterServed That fixed it! Thank you!
0 -
Thanks. That was the problem. Disabled it via an API call and all is good now.
whmapi1 --output=jsonpretty set_tweaksetting key='enable_api_log' value=0
I hope a fix is ready soon, since I needed that logging functionality.
0
Please sign in to leave a comment.
Comments
7 comments