cancel
Showing results for 
Search instead for 
Did you mean: 

magento/module-cookie breaks composer installation

SOLVED

magento/module-cookie breaks composer installation

 

 

Hi! 

Wasn't able to install Magento using composer project creation flow due to error below. Used archive installation for that. Now can't install any update and module because of the same error. See stack trace bellow. 

Note: composer & auth.json & keys & composer diagnose - everything is ok. Please, don't spam such answers, cause reason is somewhere on server side of `repo.magento.com` and is about `cookie` module being redirected to `coieok` somehow.  

www-data@a2bea6f3472c:~/html$ composer browse magento/module-cookie -vvv
Reading ./composer.json
Loading config file /var/www/.composer/auth.json
Loading config file ./composer.json
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Failed to initialize global composer: Composer could not find the config file: /var/www/.composer/composer.json
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Reading /var/www/html/vendor/composer/installed.json
Loading plugin MagentoHackathon\Composer\Magento\Plugin
activate magento plugin
Loading plugin Magento\InventoryComposerInstaller\Plugin
Running 1.9.0 (2019-08-02 20:55:32) with PHP 7.1.29 on Linux / 4.15.0-62-generic
Downloading https://repo.magento.com/packages.json
Writing /var/www/.composer/cache/repo/https---repo.magento.com/packages.json into cache
Downloading https://repo.packagist.org/packages.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/packages.json into cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2013.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2014.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2015.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2016.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2017.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2018.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2018-10.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-01.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-04.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-2019-07.json from cache
Reading /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-archived.json from cache
Downloading http://repo.packagist.org/p/provider-latest%24fccda46c7df65a6a20ac520f5ad09deb51c7130bd2fd4c750a0c6f1112c1c647.json
Writing /var/www/.composer/cache/repo/https---repo.packagist.org/p-provider-latest.json into cache
Downloading http://repo.packagist.org/p/magento/module-cookie%2413bb5cbfa29b7aaf8df5c0cf67822c0aa01450e59e1ebcdc5ed475e1d30acb68.json

Following redirect (2) https://packagist.org/p/magento/module-coieok%2413bb5cbfa29b7aaf8df5c0cf67822c0aa01450e59e1ebcdc5ed475e1d30acb68.json
Downloading https://packagist.org/p/magento/module-coieok%2413bb5cbfa29b7aaf8df5c0cf67822c0aa01450e59e1ebcdc5ed475e1d30acb68.json

                                                                                                    
  [Composer\Downloader\TransportException]                                                          
  The "https://packagist.org/p/magento/module-coieok%2413bb5cbfa29b7aaf8df5c0cf67822c0aa01450e59e1  
  ebcdc5ed475e1d30acb68.json" file could not be downloaded (HTTP/1.1 404 Not Found)                 
                                                                                                    

Exception trace:
 () at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:440
 Composer\Util\RemoteFilesystem->get() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:880
 Composer\Util\RemoteFilesystem->handleRedirect() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:430
 Composer\Util\RemoteFilesystem->get() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:104
 Composer\Util\RemoteFilesystem->getContents() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:687
 Composer\Repository\ComposerRepository->fetchFile() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:358
 Composer\Repository\ComposerRepository->whatProvides() at phar:///usr/local/bin/composer/src/Composer/Repository/ComposerRepository.php:174
 Composer\Repository\ComposerRepository->findPackages() at phar:///usr/local/bin/composer/src/Composer/Command/HomeCommand.php:77
 Composer\Command\HomeCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:267
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:106
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:61
 require() at /usr/local/bin/composer:24

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: magento/module-cookie breaks composer installation

The issue is `composer` related

 

composer config -g repo.packagist composer https://repo.packagist.org && composer config -g repo.magento composer https://repo.magento.com

Fixed the problem. 

View solution in original post

1 REPLY 1

Re: magento/module-cookie breaks composer installation

The issue is `composer` related

 

composer config -g repo.packagist composer https://repo.packagist.org && composer config -g repo.magento composer https://repo.magento.com

Fixed the problem.