I'm trying to migrate a D7 site to D8 by following the steps outlined at drupal.org/docs/8/upgrade/upgrade-using-drush.
Once I can manage it and make sure I have all the PHP components, Drupal modules, etc., I need to update 4 sites that I suspect will be a very difficult one.
I have installed and used Composer to create a Drupal 8 site from my / home directory, with the intention of moving the files through the existing site. In addition, the Migrate upgrade appears to have to point to the D7 site via http.
If I run the following command to migrate the old (D7) site to this new D8 site, this will fail.
drush migrate-upgrade --legacy-db-url=mysql://user:password@server/db --legacy-root=http://example.com --configure only
with the following parameters for my specific environment
- user = user with which the site connects to the database
- server = localhost
- db = database name
- http://example.com = URL for the website
If it fails, it quotes (Debug) key_value table not found. The database may be empty. (0.1 sec., 9.59 MB) and when I check the MySQL database, I notice that there is no table name key value,
I could create the table if I know the requirements for the table (field names, field type, sizes, PK / FK, etc.). Or are there other ways to create this table.
Previously, I did everything manually. I thought since the update steps below (cloudways.com/blog/upgrade-drupal-7-to-drupal-8/) included the whole process of creating a D8 site and migrating the data to me that I have Composer and / or should use Drush. It's the first time I've let Composer and Drush work for me.
Any help would be appreciated.
I will get the next issue if I run the whole thing drush migrate upgrade Command:
Drush Launcher Version: 0.6.0
ROOT: / home / akwashnak / ctdollarsandsesne
DRUSH VERSION: 9
DRUPAL ROOT: / home / akwashnak / ctdollarsandsesne
Composer root: / home / akwashnak / ctdollarsandsesne
PROVIDER ROOT: / home / akwashnak / ctdollarsandsesne / vendor
(Preflight) configuration paths: /home/akwashnak/ctdollarsandsesne/vendor/drush/drush/drush.yml
(Preflight) alias paths: /home/akwashnak/ctdollarsandsesne/drush/sites, /home/akwashnak/drush/sites
(Preflight) command file search paths: / home / akwashnak / ctdollarsandsesne / vendor / drush / drush / src
(Debug) Bootstrap on to find Migrate upgrade (0.08 sec, 8.02 MB)
(Debug) Try to boot as far as possible (0.08 sec., 8.02 MB)
(Debug) Drush bootstrap phase: bootstrapDrupalRoot () (0.08 sec., 8.02 MB)
(Debug) working directory in / home / akwashnak / ctdollarsandsesne change (0.08 sec., 8.02 MB)
(Debug) Initialized Drupal 8.7.9 root at / home / akwashnak / ctdollarsandsesne (0.08 sec, 8.15 MB)
(Debug) Drush bootstrap phase: bootstrapDrupalSite () (0.09 sec., 8.5 MB)
(Debug) Initialized Drupal Site Standard at Sites / Standard (0.09 sec., 8.67 MB)
(Debug) Drush bootstrap phase: bootstrapDrupalConfiguration () (0.09 sec., 8.67 MB)
(Debug) Add Service Modifier (0.1 sec., 9.17 MB)
(Debug) key_value table not found. The database may be empty. (0.1 sec., 9.59 MB)
(Debug) bootstrap phase bootstrapDrupalDatabase () could not be validated. Continued with bootstrapDrupalConfiguration () (0.1 sec., 9.59 MB)
(Debug) Finish with Bootstrap Max in Application :: find (): again trying to find the upgrade for the migration. (0.1 sec., 9.59 MB)
In Application.php line 239:
(Symfony Component Console Exception CommandNotFoundException)
Command migrate-upgrade was not found. Drush could not query the database. As a result, many commands are not available. Run your command with -de again
Error displaying relevant log messages.
Drush Application-> bootstrapAndFind () at /home/akwashnak/ctdollarsandsesne/vendor/drush/drush/src/Application.php:192
Drush Application-> find () at /home/akwashnak/ctdollarsandsesne/vendor/symfony/console/Application.php:236
Symfony Component Console Application-> doRun () at /home/akwashnak/ctdollarsandsesne/vendor/symfony/console/Application.php:148
Symfony Component Console Application-> run () at /home/akwashnak/ctdollarsandsesne/vendor/drush/drush/src/Runtime/Runtime.php:118
Drush Runtime Runtime-> doRun () at /home/akwashnak/ctdollarsandsesne/vendor/drush/drush/src/Runtime/Runtime.php:49
Drush Runtime Runtime-> run () at /home/akwashnak/ctdollarsandsesne/vendor/drush/drush/drush.php:72
require () at /home/akwashnak/ctdollarsandsesne/vendor/drush/drush/includes/preflight.inc:18
drush_main () at phar: ///usr/local/bin/drush/bin/drush.php: 141
require () at / usr / local / bin / drush: 10