Restore From file failing - a file can't be restored to this database

Created on 16 November 2013, about 11 years ago
Updated 22 December 2023, 12 months ago

I was running on 7.x-2.7 and upgraded to see if that would resolve my issue. It did not.

When trying to restore a database from a file (tar.gz), I receive the following errors:

  • Notice: Undefined property: stdClass::$uri in backup_migrate_ui_manual_restore_form_submit() (line 677 of /home/ktarec/public_html/sites/all/modules/backup_migrate/backup_migrate.module).
  • Notice: Undefined property: stdClass::$uri in backup_migrate_destination_browser_upload->load_file() (line 44 of /home/ktarec/public_html/sites/all/modules/backup_migrate/includes/destinations.browser.inc).
  • Notice: Undefined property: stdClass::$uri in backup_migrate_destination_browser_upload->load_file() (line 45 of /home/ktarec/public_html/sites/all/modules/backup_migrate/includes/destinations.browser.inc).
  • Unable to restore from file /home/ktarec/tmp/backup_migrate_aOMhwp because a file can't be restored to this database.
    Could not perform the restore.

I get the following error messages in my Recent Log Messages:

  • Unable to restore from file /home/ktarec/tmp/backup_migrate_aOMhwp because a file can't be restored to this database.
  • Could not perform the restore.

Any help would be greatly appreciated!

Thanks!
Kirk

πŸ› Bug report
Status

Active

Version

2.8

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kirkofalltrades

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom joachim

    I'm getting this error for a database backup that I've just made on another copy of the site.

  • πŸ‡¬πŸ‡§United Kingdom joachim

    The downloaded file wasn't created properly - trying to unzip on the command line gave this error:

    Archive:  /Users/joachim/Downloads/Joachim039sblog-2023-07-21T14-06-44.mysql.gz
      End-of-central-directory signature not found.  Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive.  In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.
    unzip:  cannot find zipfile directory in one of /Users/joachim/Downloads/Joachim039sblog-2023-07-21T14-06-44.mysql.gz or
    
  • πŸ‡³πŸ‡±Netherlands BrankoC

    If you open the file in a text editor, what does it look like?

    I am asking because several browsers unpack a downloaded .gz file, but do not rename it when saving it to the local file system.

Production build 0.71.5 2024