SOLVED [CPANEL-20644] Backup failure - SQLITE_ERROR (no such table: backup_paths)

Andy Maskell

Registered
May 25, 2018
2
0
1
UK
cPanel Access Level
Root Administrator
I started getting backup errors a week or two ago, which may have coincided with an update, but I am not 100% sure on that. Could anyone please point me in the right direction as to where the problem may be? This error seems to happen every day and on a different database .db file each day. Thanks:

Code:
Cpanel::Exception::Database::Error/(XID 2jezx2) The system received an error from the “SQLite” database “/nas/backup/.meta/dbame.db”: SQLITE_ERROR (no such table: backup_paths)
 at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
    Cpanel::Exception::create("Database::Error", ARRAY(0x34d6be0)) called at /usr/local/cpanel/Cpanel/DBI.pm line 200
    Cpanel::DBI::_create_exception(Cpanel::DBI::SQLite::db=HASH(0x352a718), "DBD::SQLite::db selectall_arrayref failed: no such table: bac"..., undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 188
    Cpanel::DBI::_error_handler("DBD::SQLite::db selectall_arrayref failed: no such table: bac"..., Cpanel::DBI::SQLite::db=HASH(0x352a718), undef) called at /usr/local/cpanel/Cpanel/Backup/Metadata.pm line 1485
    Cpanel::Backup::Metadata::remove_metadata_for_missing_backups() called at /usr/local/cpanel/bin/backup line 340
    bin::backup::run("bin::backup") called at /usr/local/cpanel/bin/backup line 120
[2018-05-25 00:00:01 +0100] info [backup] Final state is Backup::Failure (0)
 
Last edited by a moderator:

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,903
2,226
363
cPanel Access Level
DataCenter Provider
Twitter
Hello Andy,

It's possible this relates to an internal case we have open (CPANEL-20644). Can you open a support ticket so we can take a closer look at your system and see what's happening? You can post the ticket number here and I'll link this thread to the ticket.

Thank you.
 

savinna

Registered
Jan 5, 2017
4
0
1
Taiwan
cPanel Access Level
Root Administrator
Hello Andy,

It's possible this relates to an internal case we have open (CPANEL-20644). Can you open a support ticket so we can take a closer look at your system and see what's happening? You can post the ticket number here and I'll link this thread to the ticket.

Thank you.

me,too

I started getting backup errors a week or two ago~

Code:
Cpanel::Exception::Database::Error/(XID qjfgt8) The system received an error from the “SQLite” database “/BACKUP/hdd20/.meta/username.db”: SQLITE_ERROR (no such table: backup_paths)
 at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
    Cpanel::Exception::create("Database::Error", ARRAY(0x32d8108)) called at /usr/local/cpanel/Cpanel/DBI.pm line 200
    Cpanel::DBI::_create_exception(Cpanel::DBI::SQLite::db=HASH(0x2aea9f8), "DBD::SQLite::db selectall_arrayref failed: no such table: bac"..., undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 188
    Cpanel::DBI::_error_handler("DBD::SQLite::db selectall_arrayref failed: no such table: bac"..., Cpanel::DBI::SQLite::db=HASH(0x2aea9f8), undef) called at /usr/local/cpanel/Cpanel/Backup/Metadata.pm line 1485
    Cpanel::Backup::Metadata::remove_metadata_for_missing_backups() called at /usr/local/cpanel/bin/backup line 340
    bin::backup::run("bin::backup") called at /usr/local/cpanel/bin/backup line 120
[2018-05-29 02:00:02 +0800] info [backup] Final state is Backup::Failure (0)
 
Last edited by a moderator:

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,903
2,226
363
cPanel Access Level
DataCenter Provider
Twitter
Hello,

Internal case CPANEL-20644 is open to address an issue where backups can fail on higher latency disks (e.g. NAS, NFS) with an error message like this:

Code:
The system received an error from the “SQLite” database “/nas/backup/.meta/dbame.db”: SQLITE_ERROR (no such table: backup_paths) at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
I'll monitor this case and update this thread with more information as it becomes available. In the meantime, you can temporarily disable the use of metadata files for backups by running the following command as "root":

Code:
whmapi1 backup_config_set disable_metadata=yes
Note when metadata creation is disabled , the following actions occur:
  • WHM disables the File and Directory Restoration interface (Home >> WHM >> Backup >> File and Directory Restoration). The interface will display a warning that indicates the setting that disabled it.
  • cPanel hides the File and Directory Restoration interface (Home >> cPanel >> Files >> File and Directory Restoration) from the cPanel Home interface.
Thank you.
 

jusuf

Registered
May 27, 2018
1
0
76
Indonesia
cPanel Access Level
Root Administrator
i'm sorry. i have same problem
Code:
Cpanel::Exception::Database::Error/(XID yut8ur) The system received an error from
the “SQLite” database “/backup/.meta/database.db”: SQLITE_ERROR (no such table:
backup_paths)
at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
 

savinna

Registered
Jan 5, 2017
4
0
1
Taiwan
cPanel Access Level
Root Administrator
Hello,

Internal case CPANEL-20644 is open to address an issue where backups can fail on higher latency disks (e.g. NAS, NFS) with an error message like this:

Code:
The system received an error from the “SQLite” database “/nas/backup/.meta/dbame.db”: SQLITE_ERROR (no such table: backup_paths) at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
I'll monitor this case and update this thread with more information as it becomes available. In the meantime, you can temporarily disable the use of metadata files for backups by running the following command as "root":

Code:
whmapi1 backup_config_set disable_metadata=yes
Note when metadata creation is disabled , the following actions occur:
  • WHM disables the File and Directory Restoration interface (Home >> WHM >> Backup >> File and Directory Restoration). The interface will display a warning that indicates the setting that disabled it.
  • cPanel hides the File and Directory Restoration interface (Home >> cPanel >> Files >> File and Directory Restoration) from the cPanel Home interface.
Thank you.
MY BACKUP HDD USE Micron Crucial MX500 1TB SSD , This hdd is higher latency disks ??
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,903
2,226
363
cPanel Access Level
DataCenter Provider
Twitter
MY BACKUP HDD USE Micron Crucial MX500 1TB SSD , This hdd is higher latency disks ??
Hello @savinna,

High latency disks make it more likely to encounter this issue, but it's also possible this can happen on standard disks. I'll continue to monitor this case and update this thread with more information as it becomes available.

Thank you.
 

Matthew Swift

Registered
Jun 27, 2018
3
1
3
Gloucester MA USA
cPanel Access Level
Root Administrator
I seem to have the same problem, but I would like to confirm. During one test backup, for 5 of 17 accounts, I get two rounds of error messages in the backup log. Below are examples for one account "magmanet":

Code:
[2018-08-04 08:26:16 -0400] info [backup] Pruning metadata for backup at /backup/2018-08-04
warn [backup] There was an error pruning the backup dir '/backup/2018-08-04/accounts' for user 'magmanet': Cpanel::Exception::Database::Error/(XID huw528) The system received an error from the “SQLite” database “/backup/.meta/magmanet.db”: SQLITE_ERROR (no such table: backup_paths)
 at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
[snipped]
 
Last edited by a moderator:

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,903
2,226
363
cPanel Access Level
DataCenter Provider
Twitter
I seem to have the same problem, but I would like to confirm. During one test backup, for 5 of 17 accounts, I get two rounds of error messages in the backup log. Below are examples for one account "magmanet":
Hello @Matthew Swift,

Yes, the error message you provided suggests the issue is related to internal case CPANEL-20644. Note that cPanel & WHM version 74 is tentatively planned for publication to the RELEASE build tier this week and includes a solution to this issue:

Fixed case CPANEL-20644: Improve error handling when pruning missing backups.

Thank you.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,903
2,226
363
cPanel Access Level
DataCenter Provider
Twitter

lukapaunovic

Well-Known Member
Jul 29, 2012
49
0
6
Užice, Serbia
cPanel Access Level
Root Administrator
I do not understand why cPanel switched Roundcube from MySQL to SQLite....it obviously causes problems at times when waiting on disk is huge.
Now I have this problem too, all of a sudden, I can't update my cpanel.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,903
2,226
363
cPanel Access Level
DataCenter Provider
Twitter
I do not understand why cPanel switched Roundcube from MySQL to SQLite....it obviously causes problems at times when waiting on disk is huge. Now I have this problem too, all of a sudden, I can't update my cpanel.
Hi @lukapaunovic,

Can you provide some more details about the specific issue you are facing? What error message do you see when attempting to update cPanel & WHM?

Thank you.