Changing domain extension via modify account issue

snakes1100

Member
Jul 23, 2002
12
0
151
Customer has whm/cpanel - Removed -

WHM Version: CENTOS 7.5 [xxxxx] v76.0.0

Modify Account - Change domain from .tv to .org fails with error below.


Error: API failure: Undefined subroutine &Cpanel::Services::Available::ensure_mysql_if_expected called at /usr/local/cpanel/Whostmgr/Accounts/Modify.pm line 349.

This file doesnt even exist on the server.


[[email protected] public]# locate Modify.pm
/usr/local/cpanel/Cpanel/FileUtils/Modify.pm
/usr/local/cpanel/Cpanel/Homedir/Modify.pm
/usr/local/cpanel/Cpanel/Locale/Utils/User/Modify.pm
/usr/local/cpanel/Cpanel/MysqlUtils/MyCnf/Modify.pm
/usr/local/cpanel/Cpanel/Security/Authn/User/Modify.pm
/usr/local/cpanel/Cpanel/Session/Modify.pm
/usr/local/cpanel/Cpanel/Sys/Hostname/Modify.pm

I verified that file dont exist on a few servers i manage for them all running 76.0.0
 
Last edited by a moderator:

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
cPanel 76.0.0 is still only in Edge/Current (a Release Candidate), so there may still be some bugs in it.

You would probably do cPanel and yourself a favour, and open a support ticket with them so that the cPanel development team can see if there is a bug that need fixing, and solve your issue at the same time.
 

snakes1100

Member
Jul 23, 2002
12
0
151
Im guessing you didnt read my post fully, if you go back & read my post, you'd know that this is a - Removed - server, not mine.
 
Last edited by a moderator:

rpvw

Well-Known Member
Jul 18, 2013
1,101
465
113
UK
cPanel Access Level
Root Administrator
The provider of the server would seem to be irrelevant in this case.

I don't understand why you are reluctant to reach out to cPanel support ? If you are not prepared/able to do so, ask your client to.

Irrespective of who provides the server - and since you say you manage "a few servers for them" (whoever "them" is), if you are acting on behalf of either your client as a server administrator, or the server provider itself; either ask the server provider for support, or go directly to cPanel support.

And my observations regarding the cPanel version still stand.
 
Last edited:

Glenndilen

Registered
Oct 22, 2018
1
0
1
England
cPanel Access Level
Root Administrator
I'm having this same issue on v76.0.0 RC.

Error: API failure: Undefined subroutine &Cpanel::Services::Available::ensure_mysql_if_expected called at /usr/local/cpanel/Whostmgr/Accounts/Modify.pm line 349.

Cannot modify any accounts on this WHM installation. Changing any information requires creating a new account, and copying data over manually as a workaround for the time being.

We are looking into API logs and a patch for the time being. If anyone else has any information, would be appreciated.
As soon as a fix is found, I'll post here.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Hello @Glenndilen


First I want to note that is a Perl module you should not expect to find that specific file. The issue isn't actually with that file it's with:
Code:
Undefined subroutine &Cpanel::Services::Available::ensure_mysql_if_expected
Can you show me the API you're running as well as the full error?

Thanks!