Exported a previously working database dump from Pantheon down to my local machine, attempted to view the migration overview page for a migration I'd set up through the UI on Pantheon locally and got the following error:

DatabaseDriverNotSpecifiedException: Driver not specified for this database connection: NavajoNationWashingtonOffice_legacy in Database::openConnection() (line 1682 of /Volumes/Macintosh HD/Users/robertson/Sites/new_nnwo/includes/database/database.inc).

I doubt this is particularly helpful, but here's what's in the migrate_group table:

a:6:{s:19:"encrypted_arguments";a:1:{i:0;s:15:"source_database";}s:14:"source_version";s:1:"6";s:17:"source_connection";s:35:"NavajoNationWashingtonOffice_legacy";s:15:"source_database";s:326:"a:3:{s:4:"text";s:224:"[...]";s:6:"method";s:14:"mcrypt_rij_256";s:8:"key_name";s:18:"drupal_private_key";}";s:13:"source_system";s:8:"Drupal 6";s:15:"format_mappings";a:3:{i:1;s:13:"filtered_html";i:2;s:9:"full_html";i:3;s:2:"-1";}}

[...] obviously replacing some encrypted gibberish that I probably don't want to share here. ;-)

Comments

mikeryan’s picture

Title: DatabaseDriverNotSpecifiedException » DatabaseDriverNotSpecifiedException - encrypted credentials
Component: migrate_ui » Code
Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

The encryption of your credentials is performed using the drupal_private_key variable - if you copy a database between environments, and the key (typically set in settings.php) is different, then Migrate will not be able to decrypt the database credentials. Try

drush vget drupal_private_key 

in both environments to confirm this. If they differ, you can set your local dev's private key to match the original and it should just work.

mikeryan’s picture

Component: Code » Documentation
Category: Support request » Task
Status: Postponed (maintainer needs more info) » Active

This should be documented.

mikeryan’s picture

Assigned: Unassigned » mikeryan
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.