Hello.
I installed Backup and Migrate to prep a site for upgrading from 8.6.16 to 8.7+. I already have the Tokens module installed. After it was installed, status report displays the following errors:
SETTINGS PROFILE The Settings Profile entity type needs to be installed.
SCHEDULE The Schedule entity type needs to be installed.
BACKUP SOURCE The Backup Source entity type needs to be installed.
BACKUP DESTINATION The Backup Destination entity type needs to be installed.
When I go to the Backup and Migrate page, there are no Backup Source options available in the dropdown.
When I go to the /admin/modules page, Backup and Migrate cannot be removed (checkmark is greyed out).
I followed the instructions on version 8 document page (https://www.drupal.org/docs/8/modules/backup-and-migrate/howto-for-backu...), watched the install the videos, made sure the private file system location is correct (/admin/config/media/file-system), and even tried removing it by just removing the module from the modules directory.
Does anyone have any additional help or suggestions?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | mismatched-entities.png | 41.53 KB | omarlopesino |
Comments
Comment #2
boehmrya commentedHello! You noted that you could not remove the module when you go to the /admin/modules page (since the checkbox is grayed-out).
Alternatively, can you go to the /admin/modules/uninstall page and try uninstalling the module? You can then try re-enabling the module.
If this still doesn't work, I would uninstall the module again, download a fresh copy of the module, and re-install.
Comment #3
ext237 commented@boehmrya Yes, I tried uninstalling from /admin/modules/uninstall. For your suggestion "I would uninstall the module again" -- the issue is that I cannot uninstall at all, so I can't uninstall and reinstall.
Comment #4
boehmrya commented@ext237 ok, I see. I've tried to replicate the issue, but haven't been able to so far.
1) I installed drupal 8.6.16, as well as the tokens module.
2) Then, I installed backup and migrate 8.x-4.0.
After these two steps, there were no errors on the status report page, all of the default backup source options were available, and the option to uninstall the module was still available (not greyed-out).
However, modules typically can't be uninstalled because they are required by other (currently-enabled) modules.
On the uninstall page, was there a message stating whether backup and migrate was required by another module?
Comment #5
ext237 commentedI created a database backup by other means. Then I installed a new drupal site with all the modules and themes, cloned the production database, and updated this cloned version to the latest version of Drupal. We migrated the domain to this cloned version and decommed the old install.
After that, I had "source" and "destination" options available in backup/migrate settings screen.
Other people have posted issues and comments on Drupal.org issues about the missing entity types. Seems like if you create a test environment and remove these entity types, you could reproduce the issue that is creating the error and provide code to add any missing entity types.
Doing a full site rebuild to navigate a single broken module really sucked and doesn't help solidify Drupal as a stable platform. But I could not wait any longer to resolve this issue and had to go the nuclear option. So I no longer have the ability to reproduce the issue.
Comment #6
damienmckennaI haven't been able to reproduce this problem yet. Please try updating to the newest 5.0.0 release and let us know if the problem is gone. Thank you.
Comment #7
omarlopesinoI reproduce this problem with a drupal 9.3 site, and with the latest stable version of backup and migrate (5.0.1):

I think the problem occurs only in sites that have backup and migrate already installed and the module is updated to 5.x version. I've created an MR that fixes this problem, in this issue: https://www.drupal.org/project/backup_migrate/issues/3221004#comment-145...
Comment #8
ivnish