Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
PM (dl, en, up ...)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Jul 2011 at 14:19 UTC
Updated:
11 Sep 2013 at 05:03 UTC
Issuing drush site-upgrade --core-only @example.d7 fails with
using drush version 5.0-dev gives
error: no database record could be found for @self
while drush version 4.5-dev runs partly as expected (reloading the db) but then fails with
Command site-upgrade-prepare needs a higher bootstrap level to run - you will need invoke drush from a more functional Drupal environment to run this command. [error]
The drush command 'site-upgrade-prepare content content_copy fieldgroup filefield imagefield nodereference optionwidgets text imageapi imageapi_gd graphstat pathauto token googleanalytics' could not be executed. [error]
Visiting update.php works fine.
- drush @example.d7 sql-drop
- drush site-upgrade --core-only @example.d7
- visit example.d7/update.php
It keeps me away from drush site-ugrade unfortunately :-(
Comments
Comment #1
sunCan't reproduce the OP with 5.x, but 5.x fails at a later point for me:
Observations:
- it seems to attempt to bootstrap the old D6 site somehow with the new/empty database (not sure how that is actually possible...?)
- the D7 database is still empty.
- settings.php in the fresh D7 site contains a D6 style $db_url string appended to the end, which contains the new/D7 db credentials (probably intended to be replaced by Drupal core upgrade)
Comment #2
moshe weitzman commented1. It does do that. It can do so because the new DB has not been upgraded. In other words, it is still a D6 database and we are merely running on a copy of the real source DB.
2. The new DB should not be empty if the sql-sync succeeds. It seems like yours failed, but without a --verbose log I can't be sure.
3. Correct about D7 upgrade appending $databases.
Comment #3
guysaban commentederror: no database record could be found for @selfFor the above error we cleared the .drush/cache and it got past the error.
I am not sure that would help with your issue.
Comment #4
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.