cancel
Showing results for 
Search instead for 
Did you mean: 

Data Migration Tool - There are no commands defined in the "migrate" namespace.

SOLVED

Data Migration Tool - There are no commands defined in the "migrate" namespace.

I am trying to migrate data from CE 1.9.4.1 to CE 2.3.5-p1.

 

I installed the Data Migration Tool as per https://devdocs.magento.com/guides/v2.3/migration/migration-migrate.html, and configured it to run the migration in a separate module. However, when I try to start with settings I get 'There are no commands defined in the "migrate" namespace.'

composer require magento/data-migration-tool:2.3.5
./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead. Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested. Generating autoload files PHP CodeSniffer Config installed_paths set to ../../codeception,../../magento/magento-coding-standard,../../phpcompatibility/php-compatibility
php bin/magento migrate:settings -r /<magento_dir>/app/code/etc/opensource-to-opensource/1.9.4.1/config.xml

  There are no commands defined in the "migrate" namespace.

I have run composer to install the Data Migration Tool several times and I cannot get past this error. When I run php bin/magento I get

In ClassReader.php line 43:

  Class Migration\App\Mode\StepListFactory does not exist

In ClassReader.php line 36:

  Class Migration\App\Mode\StepListFactory does not exist

Any help would be appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Data Migration Tool - There are no commands defined in the "migrate" namespace.

Hi @mcpacific ,

Can you please run below commands in sequence 

1. rm -rf var/log/* generated/* var/cache/* 

2. php bin/Magento setup:upgrade

3. php bin/Magento setup:di:compile

4. php bin/Magento s:s:d -f

5. php bin/magento cache:flush

 

Thanks!

Problem solved!click kudo & Accept as solution!

View solution in original post

3 REPLIES 3

Re: Data Migration Tool - There are no commands defined in the "migrate" namespace.

Hi @mcpacific ,

Can you please run below commands in sequence 

1. rm -rf var/log/* generated/* var/cache/* 

2. php bin/Magento setup:upgrade

3. php bin/Magento setup:di:compile

4. php bin/Magento s:s:d -f

5. php bin/magento cache:flush

 

Thanks!

Problem solved!click kudo & Accept as solution!

Re: Data Migration Tool - There are no commands defined in the "migrate" namespace.


@Nishu Jindal wrote:

Hi @mcpacific ,

Can you please run below commands in sequence 

1. rm -rf var/log/* generated/* var/cache/* 

2. php bin/Magento setup:upgrade

3. php bin/Magento setup:di:compile

4. php bin/Magento s:s:d -f

5. php bin/magento cache:flush

 

Thanks!

Problem solved!click kudo & Accept as solution!



Worked great, thank you so much!

I also found a permissions issue in generated. I fixed that and I'm all good now. Smiley Happy

Re: Data Migration Tool - There are no commands defined in the "migrate" namespace.

Hi i had the same problem and my solution was this : 

 

UPDATE `store` SET `is_active` = '1' WHERE `store`.`store_id` = 1;

restart mysql and done!