Closed (fixed)
Project:
Backup and Migrate
Version:
5.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2018 at 10:28 UTC
Updated:
5 Jan 2026 at 13:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ioana apetri commentedI've tested on Drupal 8.5 and it works perfectly for me.
Comment #3
damienmckennaI'm sorry you've ran into this bug. Had you created any custom configurations (extra destinations, sources, schedule)?
Comment #4
roborew commentedActually likely I have, ill try clearing all configuration and attempt uninstalling again. Will report back.
Comment #5
ikit-claw commentedDid you install with Composer and then try to uninstall with Drush?
Comment #6
roborew commentedI installed the package with composer. Enabled with Drush and committed the config.
Just removed all configuration through the UI and tried uninstalling again using both Drush and through UI and still receiving the error unfortunately.
I might try a ditch attempt and see what happens if I edit the config directly and import to see if this uninstalls the module.
Comment #7
roborew commentedRemoved backup_migrate from core.extension and removed all config files.
Drush cim still results in the same error.
Not critical for now as we are not using the module but has no impact on production, but not got any time yet to debug. If anyone else has run into this and has a solution it would be appreciated.
Comment #8
yazzbe commentedMy error log complained about a private files folder that could not be found by the module.
Warning: opendir(): Unable to find the wrapper "private" - did you forget to enable it when you configured PHP? in BackupMigrate\Core\Destination\DirectoryDestination->_getAllFileNames() (line 245 of /sites/web/mydrupal/www/modules/backup_migrate/lib/backup_migrate_core/src/Destination/DirectoryDestination.php)Created a private files folder (files/private).
hit save on the configuration > media > file system to set the .htaccess
run update.php, run cron, cleared cache & checked status report for errors.
After that. I was able to uninstalled the module (with drush).
Comment #9
tandroid commentedI wasn't able to track down the real issue, but if anyone is looking for a quick and dirty solution to getting this uninstalled, you can add the route to the
backup_migrate.routing.ymlfile so it won't throw an error. This is what I added:Comment #10
damienmckennaComment #11
bradjones1I ran into this ticket while debugging the failed uninstall of one of my custom modules; the issue here is that the Source entity type specifies a canonical link template, however there is no corresponding route. So a quick patch to remove that link template should fix this.
Comment #12
purencool commented@tandroid #9 worked fine for me thanks
Comment #13
damienmckennaOut of interest, does this fix the problem? I noticed there was a difference between the routes the entity defined vs what the routing file had.
This patch tries to match them all up as they currently are.
While reviewing them I noticed that some of them were structured differently. Most of them are in the format /admin/config/development/backup_migrate/[entity]/[action]/[entity_id] though some are /admin/config/development/backup_migrate/[entity]/[entity_id]/[action]. I think we could do a follow-on issue to resolve these inconsistencies, but for now hopefully this will help.
Comment #15
s_leu commentedThe patch in the last post didn't fix the problem for me. Also it introduces more problems, after applying and trying to uninstall backup_migrate using drush, i get
[Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_CURLY_BRACES, got 'canonical' at position 678 in class Drupal\backup_migrate\Entity\SettingsProfile.Comment #16
stevenpatz#9 . Works for me as well. Can we get this commited?
Comment #17
karuna patel commentedattached patch is working fine for me.
Comment #19
WillenLeal commentedThe uninstall worked well for me (8.7), what version of Drupal 8.x are guys running?
Comment #20
damienmckennaMoving 8.x-4.x issues to 5.0.x because the older branch is no longer supported.
Comment #21
ivnishAlready fixed https://git.drupalcode.org/project/backup_migrate/-/commit/f73276e0b2b3f...