Skip to content

module:uninstall get stuck on removing code from Magento codebase #9848

Closed
@nickbartlett

Description

@nickbartlett

Module will not uninstall completely

Preconditions

Magento version 2.1.5
PHP 5.6.30
MySQL: Server version: 5.7.17-11 Percona Server

Steps to reproduce

  1. Install module via composer successfully.
  2. Run magento/bin module:uninstall "my/module"

Expected result

  1. Module and dependencies should be removed including database and code

Actual result

Uninstalling a module will remove the entry from composer.json, and run the database uninstall scripts, but when it attempts to remove the code it hangs with message "removing code from Magento codebase:" . One thing to note is our module has its own composer.json file where it requires and installed another codebase. The module is being installed from our own satis server .

vendor/magento/framework/Composer/Remove.php, Magento tries to run 'remove' composer command.
runComposerCommand() method can be found here: vendor/magento/composer/src/MagentoComposerApplication.php
it gets stuck on line $exitCode = $this->consoleApplication->run($input, $this->consoleOutput);

FYI manually executing the command "composer remove my/module" works successfully.

Metadata

Metadata

Labels

Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions