Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blt setup fails with strategy "sync" #2202

Closed
danepowell opened this issue Oct 25, 2017 · 2 comments
Closed

blt setup fails with strategy "sync" #2202

danepowell opened this issue Oct 25, 2017 · 2 comments

Comments

@danepowell
Copy link
Contributor

Running blt setup with the setup strategy set to sync can result in this error:

Fatal error: Uncaught TypeError: Argument 1 passed to Drush\Commands\sql\SqlSyncCommands::databaseName() must be an instance of Drush\SiteAlias\AliasRecord, boolean given, called in /mnt/tmp/local.prod/source/vendor/drush/drush/src/Commands/sql/SqlSyncCommands.php on line 142 and defined in /mnt/tmp/local.prod/source/vendor/drush/drush/src/Commands/sql/SqlSyncCommands.php:180

@danepowell
Copy link
Contributor Author

This occurs when an invalid alias is used: drush-ops/drush#3103

I think this is just a problem with the particular application.

@danepowell
Copy link
Contributor Author

The underlying cause here was that this particular project hadn't converted to the new Drush 9-style alias files. I documented this update process here: https://github.com/acquia/blt/wiki/Drush-9#aliases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant