Symptoms
When accessing "List Accounts" in WHM , you receive an error similar to the following.
XID hrcswb) The WHM API v1 call “showbw” failed: API failure: (XID xu6kkw) The system received an error from the “SQLite” database “/var/cpanel/bandwidth_cache.sqlite”: SQLITE_CORRUPT (database disk image is malformed) at /usr/local/cpanel/Whostmgr/API/1/Utils/Execute.pm line 70.
Whostmgr::API::1::Utils::Execute::execute_or_die("Bandwidth", "showbw", HASH(0x2689778)) called at /usr/local/cpanel/Whostmgr/Accounts/UpgradeOpportunities.pm line 150
Whostmgr::Accounts::UpgradeOpportunities::_get_bw_limit_info(HASH(0x1357998), 0.75) called at /usr/local/cpanel/Whostmgr/Accounts/UpgradeOpportunities.pm line 121
Whostmgr::Accounts::UpgradeOpportunities::get("silence_unlimited", 1) called at whostmgr/bin/whostmgr4.pl line 304
main::listaccts("listaccts") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 364
Whostmgr::Dispatch::_do_call("listaccts", HASH(0x25bb7c8), HASH(0x25bba20)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 176
Whostmgr::Dispatch::dispatch("listaccts", 1, ARRAY(0x25bb990)) called at whostmgr/bin/whostmgr4.pl line 209
Description
The error occurs because the /var/cpanel/bandwidth_cache.sqlite
file has become corrupt and needs to be rebuilt.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the
rebuild_bandwidthdb_root_cache
script./usr/local/cpanel/scripts/rebuild_bandwidthdb_root_cache
Comments
0 comments
Article is closed for comments.