Symptoms
Accessing the WHM Backup Restoration interface reports the following error.
# Can't call method "sqlite_busy_timeout" on an undefined value at
/usr/local/cpanel/Cpanel/SQLite/AutoRebuildSchemaBase.pm line 294.
at /usr/local/cpanel/Cpanel/SQLite/AutoRebuildSchemaBase.pm line 294.
Cpanel::SQLite::AutoRebuildSchemaBase::_setup_schema
("Cpanel::Backup::Transport::DB", undef) called at
/usr/local/cpanel/Cpanel/Backup/Transport/DB.pm line 63
Cpanel::Backup::Transport::DB::dbconnect("Cpanel::Backup::Transport::DB")
called at /usr/local/cpanel/Cpanel/Backup/Transport/History.pm line 58
Cpanel::Backup::Transport::History::new
("Cpanel::Backup::Transport::History")
called at /usr/local/cpanel/Whostmgr/API/1/Backup.pm line 574
Whostmgr::API::1::Backup::backup_set_list_combined() called at
whostmgr/bin/whostmgr5.pl line 1338
main::restoremenu("restoremenu") called at /usr/local/cpanel/Whostmgr/Dispatch.pm
line 274
Whostmgr::Dispatch::_do_call("restoremenu", HASH(0x2d7d838),
HASH(0x2d92360))
called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 172
Whostmgr::Dispatch::dispatch("restoremenu", 1, ARRAY(0x2d91a58))
called at whostmgr/bin/whostmgr5.pl line 282
Cause
When attempting to perform a restore in WHM, cPanel needs to ensure consistency of the transports database. This database is stored in the configured backup path for the cPanel automated backups.
CONFIG_TEXT: grep -i backupdir /var/cpanel/backups/config
BACKUPDIR: /backup
# Transport DB path: my $path = "$backup_dir/transports.db";
When this file can't be written to, locked, or opened, the restore interface can't be used to restore account backups.
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-34662.
Resolution
Repair the issue with the BACKUPDIR path, then try using the backup restoration interface again. This path needs to be writable to prevent the error.
Note: The path needs to be writable and lockable. Some mounts, like NFS, don't allow files to be locked. Please ensure files can be written and locked in the specified backup path.
Comments
1 comment
Update: We would like to thank you for your interest in this article/case and encourage your submissions as they are valuable to the ever-expanding development of cPanel & WHM. At this time, this particular issue has not been selected for action from our Development Team, as it may require more development resources than we can allot, or alters the direction cPanel envisions for the product. Submissions persist in our Issue Tracking System in the event the impact of the related issue grows or product direction changes. If you feel that this defect requires direct action, we strongly encourage you to submit a Feature Request to allow the cPanel Community to vote and support your cause.
Thank you again for helping us make cPanel & WHM the hosting platform of choice.
Article is closed for comments.