magento / data-migration-tool

Magento Data Migration Tool
https://devdocs.magento.com/guides/v2.3/migration/bk-migration-guide.html
Open Software License 3.0
334 stars 200 forks source link

Dependency conflict with Magento 2.4.4 #891

Open mbitson opened 2 years ago

mbitson commented 2 years ago

Unable to install the prerelease of Magento 2.4.4 while the Data Migration Tool is installed due to conflicting Monolog packages.

A similar issue has been raised in the magento/magento2 repository, though I believe this will have to be fixed here.

Preconditions (*)

  1. Magento 2.4.3 installed
  2. magento/data-migration-tool (latest, 2.4.3) installed
  3. composer access to prerelease of 2.4.4

Steps to reproduce (*)

  1. composer require-commerce magento/product-community-edition 2.4.4 --no-update --interactive-root-conflicts
  2. composer update

Expected result (*)

  1. Dependencies should resolve and Magento 2.4.4 and its dependencies should be installed.

Actual result (*)

  Problem 1
    - Root composer.json requires magento/data-migration-tool ^2.4 -> satisfiable by magento/data-migration-tool[2.4.0, 2.4.1, 2.4.2, 2.4.3].
    - magento/product-community-edition 2.4.4 requires monolog/monolog ^2.3 -> satisfiable by monolog/monolog[2.3.0, ..., 2.4.0].
    - You can only install one version of a package, so only one of these can be installed: monolog/monolog[1.0.0, ..., 1.27.0, 2.0.0, ..., 2.4.0].
    - magento/product-enterprise-edition 2.4.4 requires magento/product-community-edition 2.4.4 -> satisfiable by magento/product-community-edition[2.4.4].
    - magento/data-migration-tool[2.4.0, ..., 2.4.3] require monolog/monolog ^1.17 -> satisfiable by monolog/monolog[1.17.0, ..., 1.27.0].
    - Root composer.json requires magento/product-enterprise-edition 2.4.4 -> satisfiable by magento/product-enterprise-edition[2.4.4].

References

  1. First, upgrade process for above was obtained from the Adobe doc here.
  2. This was caused in this Pull Request, while this Issue was being addressed.
  3. To resolve, data-migration-tool will need to update to Monolog ^2. A Monolog-written guide on that can be found here.
m2-assistant[bot] commented 2 years ago

Hi @mbitson. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


hostep commented 2 years ago

Sounds like a duplicate of https://github.com/magento/data-migration-tool/issues/880 which was fixed in ACP2E-505, but those fixes aren't released yet. I'm guessing that they will be included in the 2.4.4 release of this package.

victor-v-rad commented 2 years ago

The dependency issue was fixed in the latest Data Migration Tool 2.4.4

engcom-Hotel commented 2 years ago

Hello @mbitson @hostep @victor-v-rad,

We have tried again to reproduce the issue but we are facing other problems. We have followed the below steps in order to reproduce the issue:

  1. Install Magento 2.4.3
  2. Trying to install data-migration-tool by running this command composer require magento/data-migration-tool:2.4.4, but whenever I am running this command, I am getting the below error:

image

As per the document, we need to use the same version, as Magento. So in this case I then tried composer require magento/data-migration-tool:2.4.3 which works fine. But after following the upgrading steps, I end up with the same error as I mentioned in this https://github.com/magento/magento2/issues/35280#issuecomment-1099103709.

Please let us know if we have missed anything here.

Thanks

victor-v-rad commented 2 years ago

Hi @engcom-Hotel
Your Magneto composer.json probably has fixed DMT version, e.g.: "magento/data-migration-tool": "2.4.3" please change it to something like "magento/data-migration-tool": "~2.4.3" and repeat the composer update command

victor-v-rad commented 2 years ago

@mbitson please close the issue if it is not relevant any more

javaidahmad99 commented 1 year ago

Hi @engcom-Hotel Your Magneto composer.json probably has fixed DMT version, e.g.: "magento/data-migration-tool": "2.4.3" please change it to something like "magento/data-migration-tool": "~2.4.3" and repeat the composer update command

Perfect, it worked for me