Symptoms
You will see an error like the following in the cPanel update log.
[2021-09-02 01:20:58 -0400] E [/usr/local/cpanel/scripts/expunge_expired_transfer_sessions] Cpanel::Exception::Database::Error/(XID asqbvn) The system received an error from the “SQLite” database “/var/cpanel/transfer_sessions/whmxfer.sqlite”: SQLITE_CORRUPT (database disk image is malformed)
The article below covers where the logs are located.
Where are the cPanel update logs?
Description
This is cause by a corrupted transfer session database. This can be verified with the following command.
sqlite3 /var/cpanel/transfer_sessions/whmxfer.sqlite "select * from sessions"
If the database is corrupt, you will receive an error like the following.
Error: database disk image is malformed
Workaround
1) Move the database out of the way so it can be regenerated.
mv -v /var/cpanel/transfer_sessions/whmxfer.sqlite{,.bak}
2) Run the update again.
/scripts/upcp