magento / magento/data-migration-tool

Cannot install tool using composer due to out-of-memory error, is there another install method?

Open
#850 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
339
Forks
195
PR merge metrics
No merged PRs in 30d

Description

Installing the data-migration-tool using composer fails due to composer reaching memory limits during the dependency resolution stage. Removing the memory limit using composer's documented troubleshooting methods doesn't solve the problem. Is there a non-composer method to installing this Magento data-migration-tool?

### Preconditions

1. Linux shared hosting with cPanel from GoDaddy, 2GB RAM, SSH shell enabled, swap exists (1GB size)
2. PHP 7.3.17, server-wide memory limit 768M
3. Magento 2.4.0 installed via cPanel Installatron, almost no configuration beyond that except for locale
4. need to migrate from a Magento Open-Source 1.9.4.4 installation
5. Composer 1.10.13

### Steps to reproduce

1. Log into shell, cd into magento site root
2. repo.magento.com repository use is confirmed in composer.json
3. Run `composer require magento/data-migration-tool:2.4.0`
4. Alternatively, run `php -d memory_limit=-1 /path/to/composer require magento/data-migration-tool:2.4.0`

### Expected result

1. Composer should just barely finish

### Actual result

1. Composer errors out unable to allocate memory due to limit reached during the dependency resolution step

### Additional notes

Composer's out-of-memory problems during dependency resolution are well known and documented and even as of the current stable 1.10.13 version still not yet resolved. It is *not* NPM and not ready for prime time. While many PHP projects in 2020, some of them major like Symfony, do offer Composer-based installation workflows and of course recommend that path for ease of dependency management, many of those projects still offer non-Composer based procedures as well. What should be a relatively simple data migration tool with few dependencies is completely unusable because it cannot be installed at all using the only documented installation method available, Composer.

Please provide an installation method, official or unofficial, that does not require a third-party tool like Composer to work. Even if it's an archive dump of literally all the files data-migration-tool needs in order to work that can just be uploaded into a given subfolder in the Magento files root, please offer an installation method that removes the unreliable middleman that is Composer.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing composer.json and the documented composer require path described in the issue, then check how the tool is expected to be installed under the stated PHP and hosting constraints. Done would require a supported alternative installation method, or a clearly documented resolution to the Composer memory failure, verified against the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.