When I run the /scripts/elevate-cpanel --check --upgrade-to=almalinux script, it identifies MySQL 5.6 as a blocker ...
You are using MySQL 5.6 server. This version is not available for AlmaLinux 8. You first need to update your MySQL server to 8.0 or later. You can update to version 8.0 using the following command: /usr/local/cpanel/bin/whmapi1 start_background_mysql_upgrade version=8.0
I actually have a remote MySQL server, and don't run MySQL on the cPanel server. Just for fun I ran the suggested command "/usr/local/cpanel/bin/whmapi1 start_background_mysql_upgrade version=8.0" and the response was "API failure: (XID 8uxxzx) “selected_version” must be one of the following values: “10.6”"
10.6 is the version of MaraiDB that I run on the database server, AFAIK it has nothing to do with the MySQL version on the webserver.
Anyway, I tried /usr/local/cpanel/bin/whmapi1 start_background_mysql_upgrade version=10.6 and got ...
[2023-09-11 14:31:16 +1000] warn [Internal Warning while parsing [stdin] 35950] Use of uninitialized value $mysqldatadir in quotemeta at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 108.
at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 108.
Whostmgr::Mysql::Upgrade::Warnings::get_upgrade_warnings(10.6, 10.6) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 1030
Whostmgr::Mysql::Upgrade::_update_conf_with_current_version_and_check_for_blockers(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 528
Whostmgr::Mysql::Upgrade::_validate_conf(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 394
Whostmgr::Mysql::Upgrade::unattended_background_upgrade(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/API/1/Mysql.pm line 199
Whostmgr::API::1::Mysql::start_background_mysql_upgrade(HASH(0x2351408), Whostmgr::API::1::Utils::Metadata=HASH(0x2496260), HASH(0x3270d90)) called at whostmgr/bin/xml-api.pl line 5233
whostmgr::bin::xml_api::__ANON__(Whostmgr::API::1::Utils::Metadata=HASH(0x2496260), HASH(0x2351408), HASH(0x3270d90), CODE(0x325f3a8)) called at /usr/local/cpanel/Whostmgr/API/1/Data/Wrapper.pm line 240
Whostmgr::API::1::Data::Wrapper::__ANON__() called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 100
eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 91
Try::Tiny::try(CODE(0x32ea460), Try::Tiny::Catch=REF(0x32ea5e0)) called at /usr/local/cpanel/Whostmgr/API/1/Data/Wrapper.pm line 259
Whostmgr::API::1::Data::Wrapper::execute_internal(CODE(0x3270148), HASH(0x2351408), HASH(0x3270d90), HASH(0x326e460), CODE(0x325f3a8)) called at whostmgr/bin/xml-api.pl line 5507
whostmgr::bin::xml_api::runapp(undef, "start_background_mysql_upgrade", HASH(0x3270d90), HASH(0x2351408), 0, CODE(0x325f3a8)) called at whostmgr/bin/xml-api.pl line 5074
whostmgr::bin::xml_api::script(CODE(0x325f3a8), "-json", "start_background_mysql_upgrade") called at whostmgr/bin/xml-api.pl line 5015
[2023-09-11 14:31:16 +1000] warn [Internal Warning while parsing [stdin] 35950] Use of uninitialized value $path in pattern match (m//) at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 456.
at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 456.
Whostmgr::Mysql::Upgrade::Warnings::_maria_systemd_protected_path(undef) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 180
Whostmgr::Mysql::Upgrade::Warnings::get_upgrade_warnings(10.6, 10.6) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 1030
Whostmgr::Mysql::Upgrade::_update_conf_with_current_version_and_check_for_blockers(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 528
Whostmgr::Mysql::Upgrade::_validate_conf(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 394
Whostmgr::Mysql::Upgrade::unattended_background_upgrade(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/API/1/Mysql.pm line 199
Whostmgr::API::1::Mysql::start_background_mysql_upgrade(HASH(0x2351408), Whostmgr::API::1::Utils::Metadata=HASH(0x2496260), HASH(0x3270d90)) called at whostmgr/bin/xml-api.pl line 5233
whostmgr::bin::xml_api::__ANON__(Whostmgr::API::1::Utils::Metadata=HASH(0x2496260), HASH(0x2351408), HASH(0x3270d90), CODE(0x325f3a8)) called at /usr/local/cpanel/Whostmgr/API/1/Data/Wrapper.pm line 240
Whostmgr::API::1::Data::Wrapper::__ANON__() called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 100
eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 91
Try::Tiny::try(CODE(0x32ea460), Try::Tiny::Catch=REF(0x32ea5e0)) called at /usr/local/cpanel/Whostmgr/API/1/Data/Wrapper.pm line 259
Whostmgr::API::1::Data::Wrapper::execute_internal(CODE(0x3270148), HASH(0x2351408), HASH(0x3270d90), HASH(0x326e460), CODE(0x325f3a8)) called at whostmgr/bin/xml-api.pl line 5507
whostmgr::bin::xml_api::runapp(undef, "start_background_mysql_upgrade", HASH(0x3270d90), HASH(0x2351408), 0, CODE(0x325f3a8)) called at whostmgr/bin/xml-api.pl line 5074
whostmgr::bin::xml_api::script(CODE(0x325f3a8), "-json", "start_background_mysql_upgrade") called at whostmgr/bin/xml-api.pl line 5015
---
metadata:
command: start_background_mysql_upgrade
reason: "API failure: (XID c53v3m) Provide the “target” parameter for the “Cpanel::DiskCheck::target_has_enough_free_space_to_fit_source_sizes” function."
result: 0
version: 1
Does anyone know how to get around this?
You are using MySQL 5.6 server. This version is not available for AlmaLinux 8. You first need to update your MySQL server to 8.0 or later. You can update to version 8.0 using the following command: /usr/local/cpanel/bin/whmapi1 start_background_mysql_upgrade version=8.0
I actually have a remote MySQL server, and don't run MySQL on the cPanel server. Just for fun I ran the suggested command "/usr/local/cpanel/bin/whmapi1 start_background_mysql_upgrade version=8.0" and the response was "API failure: (XID 8uxxzx) “selected_version” must be one of the following values: “10.6”"
10.6 is the version of MaraiDB that I run on the database server, AFAIK it has nothing to do with the MySQL version on the webserver.
Anyway, I tried /usr/local/cpanel/bin/whmapi1 start_background_mysql_upgrade version=10.6 and got ...
[2023-09-11 14:31:16 +1000] warn [Internal Warning while parsing [stdin] 35950] Use of uninitialized value $mysqldatadir in quotemeta at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 108.
at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 108.
Whostmgr::Mysql::Upgrade::Warnings::get_upgrade_warnings(10.6, 10.6) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 1030
Whostmgr::Mysql::Upgrade::_update_conf_with_current_version_and_check_for_blockers(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 528
Whostmgr::Mysql::Upgrade::_validate_conf(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 394
Whostmgr::Mysql::Upgrade::unattended_background_upgrade(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/API/1/Mysql.pm line 199
Whostmgr::API::1::Mysql::start_background_mysql_upgrade(HASH(0x2351408), Whostmgr::API::1::Utils::Metadata=HASH(0x2496260), HASH(0x3270d90)) called at whostmgr/bin/xml-api.pl line 5233
whostmgr::bin::xml_api::__ANON__(Whostmgr::API::1::Utils::Metadata=HASH(0x2496260), HASH(0x2351408), HASH(0x3270d90), CODE(0x325f3a8)) called at /usr/local/cpanel/Whostmgr/API/1/Data/Wrapper.pm line 240
Whostmgr::API::1::Data::Wrapper::__ANON__() called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 100
eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 91
Try::Tiny::try(CODE(0x32ea460), Try::Tiny::Catch=REF(0x32ea5e0)) called at /usr/local/cpanel/Whostmgr/API/1/Data/Wrapper.pm line 259
Whostmgr::API::1::Data::Wrapper::execute_internal(CODE(0x3270148), HASH(0x2351408), HASH(0x3270d90), HASH(0x326e460), CODE(0x325f3a8)) called at whostmgr/bin/xml-api.pl line 5507
whostmgr::bin::xml_api::runapp(undef, "start_background_mysql_upgrade", HASH(0x3270d90), HASH(0x2351408), 0, CODE(0x325f3a8)) called at whostmgr/bin/xml-api.pl line 5074
whostmgr::bin::xml_api::script(CODE(0x325f3a8), "-json", "start_background_mysql_upgrade") called at whostmgr/bin/xml-api.pl line 5015
[2023-09-11 14:31:16 +1000] warn [Internal Warning while parsing [stdin] 35950] Use of uninitialized value $path in pattern match (m//) at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 456.
at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 456.
Whostmgr::Mysql::Upgrade::Warnings::_maria_systemd_protected_path(undef) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade/Warnings.pm line 180
Whostmgr::Mysql::Upgrade::Warnings::get_upgrade_warnings(10.6, 10.6) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 1030
Whostmgr::Mysql::Upgrade::_update_conf_with_current_version_and_check_for_blockers(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 528
Whostmgr::Mysql::Upgrade::_validate_conf(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/Mysql/Upgrade.pm line 394
Whostmgr::Mysql::Upgrade::unattended_background_upgrade(HASH(0x32ea910)) called at /usr/local/cpanel/Whostmgr/API/1/Mysql.pm line 199
Whostmgr::API::1::Mysql::start_background_mysql_upgrade(HASH(0x2351408), Whostmgr::API::1::Utils::Metadata=HASH(0x2496260), HASH(0x3270d90)) called at whostmgr/bin/xml-api.pl line 5233
whostmgr::bin::xml_api::__ANON__(Whostmgr::API::1::Utils::Metadata=HASH(0x2496260), HASH(0x2351408), HASH(0x3270d90), CODE(0x325f3a8)) called at /usr/local/cpanel/Whostmgr/API/1/Data/Wrapper.pm line 240
Whostmgr::API::1::Data::Wrapper::__ANON__() called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 100
eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Try/Tiny.pm line 91
Try::Tiny::try(CODE(0x32ea460), Try::Tiny::Catch=REF(0x32ea5e0)) called at /usr/local/cpanel/Whostmgr/API/1/Data/Wrapper.pm line 259
Whostmgr::API::1::Data::Wrapper::execute_internal(CODE(0x3270148), HASH(0x2351408), HASH(0x3270d90), HASH(0x326e460), CODE(0x325f3a8)) called at whostmgr/bin/xml-api.pl line 5507
whostmgr::bin::xml_api::runapp(undef, "start_background_mysql_upgrade", HASH(0x3270d90), HASH(0x2351408), 0, CODE(0x325f3a8)) called at whostmgr/bin/xml-api.pl line 5074
whostmgr::bin::xml_api::script(CODE(0x325f3a8), "-json", "start_background_mysql_upgrade") called at whostmgr/bin/xml-api.pl line 5015
---
metadata:
command: start_background_mysql_upgrade
reason: "API failure: (XID c53v3m) Provide the “target” parameter for the “Cpanel::DiskCheck::target_has_enough_free_space_to_fit_source_sizes” function."
result: 0
version: 1
Does anyone know how to get around this?
Last edited: