data-migration-tool
data-migration-tool copied to clipboard
Dependency conflict with Magento 2.4.4
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 (*)
- Magento 2.4.3 installed
- magento/data-migration-tool (latest, 2.4.3) installed
- composer access to prerelease of 2.4.4
Steps to reproduce (*)
- composer require-commerce magento/product-community-edition 2.4.4 --no-update --interactive-root-conflicts
- composer update
Expected result (*)
- 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
- First, upgrade process for above was obtained from the Adobe doc here.
- This was caused in this Pull Request, while this Issue was being addressed.
- To resolve, data-migration-tool will need to update to Monolog ^2. A Monolog-written guide on that can be found here.
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
- Join Magento Community Engineering Slack and ask your questions in #github channel.
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.
The dependency issue was fixed in the latest Data Migration Tool 2.4.4
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:
- Install Magento 2.4.3
- Trying to install
data-migration-tool
by running this commandcomposer require magento/data-migration-tool:2.4.4
, but whenever I am running this command, I am getting the below error:
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
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
@mbitson please close the issue if it is not relevant any more
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 thecomposer update
command
Perfect, it worked for me