After upgrading to the beta 1 version I get this error when I try to restore a database backup, ie at line 131 of file lib/backup_migrate_core/src/Main/BackupMigrate.php

Short look at the code/diff:

In backup_migrate.module these lines were removed:

    // Add an upload destination
    $destinations->add('upload', new \BackupMigrate\Drupal\Destination\DrupalBrowserUploadDestination(new Config(['name' => t('Upload')])));

In src/Form/BackupMigrateRestoreForm.php there's still this line:

  public function submitForm(array &$form, FormStateInterface $form_state) {
    $config = $form_state->getValues();
    backup_migrate_perform_restore($config['source_id'], 'upload', 'backup_migrate_restore_upload', $config);
  }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fietserwin created an issue. See original summary.

Alex Andrascu’s picture

Priority: Major » Normal

I don't seem to be able to replicate this. Have tried with several backup files from Saved backups both before and after the upgrade. Have also tried uploading a backup and restoring from that.

Can you please post the full error and also let us know what sort of restore are you trying to do (from upload or from the saved backups). What destination did you use for that particular backup file ? Is anyone else able to replicate this issue ?

fietserwin’s picture

Step 1: make a backup and download it to my own computer:

Step 2: Try to restore from a local file:

Step 3: error message:

Note: restoring those 2 lines from backup_migrate.module solves the problem for me, bu they are not in the beta1 version.

  • Alex Andrascu committed 2643518 on 8.x-4.x
    Issue #2913362 by fietserwin: The destination upload does not exist...
Alex Andrascu’s picture

Version: 8.x-4.0-beta1 » 8.x-4.x-dev
Status: Active » Fixed

Fixed in beta2. Thank you for reporting it!

zheleong’s picture

FileSize
15.98 KB

Hello, I get another error :
"The file backup_migrate_restore_upload does not exist."

Use :
Drupal core 8.4.0
Backup and Migrate 8.x-4.0-beta2

Thank you

paolo m.’s picture

Hello,
I get the same error: "The file backup_migrate_restore_upload does not exist." with Drupal core 8.4.0 and Backup and Migrate 8.x-4.0-beta2.
Thanks in advance.

finalred’s picture

same "The file backup_migrate_restore_upload does not exist." Drupal 8.4.0 Backup and Migrate 8.x-4.0-beta2

a65162’s picture

I have the same problem on Drupal 8.40.

Dinu R.’s picture

Status: Fixed » Needs review
FileSize
731 bytes
Alex Andrascu’s picture

Can someone please try this patch and report back ? Thanks.

paolo m.’s picture

Hello,
the patch #10 solved my problems, thank you very much.

I made a test on 3 different sites (all of them had "The file backup_migrate_restore_upload does not exist." issue): Drupal 8.4.0, backup_migrate 8.x-4.0-beta2, db version 5.6.35
2 sites with php 5.6.30,
1 site with php 7.1.6.

Alex Andrascu’s picture

Status: Needs review » Reviewed & tested by the community

Tested. Looks good.

  • Dinu Rodnitchi authored 26e974b on 8.x-4.x
    Issue #2913362 by Dinu Rodnitchi, fietserwin, zheleong, Alex Andrascu,...
Alex Andrascu’s picture

Status: Reviewed & tested by the community » Fixed
Alan D.’s picture

Issue tags: +8.4.0 update

Tagging to make it easier for people to track these errors :)

Sadly there seems to be a few from 8.3 - 8.4 ...

ikit-claw’s picture

Status: Fixed » Closed (fixed)
Alan D.’s picture

@ikit-claw
Tickets that are flagged as fixed are automatically closed in a couple weeks as part of the default drupal project issue workflow, so there is no need to manually do this ;)

ikit-claw’s picture

True but with over 100 issues it helps to clean things up quicker.