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

Dependency conflict with Magento 2.4.4 #891

Open
mbitson opened this issue Apr 8, 2022 · 7 comments
Open

Dependency conflict with Magento 2.4.4 #891

mbitson opened this issue Apr 8, 2022 · 7 comments

Comments

@mbitson
Copy link

mbitson commented Apr 8, 2022

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
Copy link

m2-assistant bot commented Apr 8, 2022

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
Copy link

hostep commented Apr 8, 2022

Sounds like a duplicate of #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
Copy link
Collaborator

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

@engcom-Hotel
Copy link

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 magento/magento2#35280 (comment).

Please let us know if we have missed anything here.

Thanks

@victor-v-rad
Copy link
Collaborator

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
Copy link
Collaborator

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

@javaidahmad99
Copy link

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

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

5 participants