cancel
Showing results for 
Search instead for 
Did you mean: 

Magento cloud error on composer update

Magento cloud error on composer update

I tried to push on integration enviroment but i got an error con Composer update, specifically on module-staging-page-builder. 

 

W:                                                                                                                                                                                      
    W:   [Composer\Downloader\TransportException]                                                                                                                                           
    W:   The "https://repo.magento.com/archives/magento/module-staging-page-builder/magento-module-staging-page-builder-2.2.0.0.zip" file could not be downloaded (HTTP/1.1 404 Not Found)  
    W:                                                                                                                                                                                      
    W: 
    W: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
    W: 
  
  E: Error building project: `composer` could not be run.

 

I already update auth.json  but always get the same error message 

 

Someone have a similar situation?

 

Thaks in advance

2 REPLIES 2

Re: Magento cloud error on composer update

@francisco_flores 

Use the following commands:

composer config -g repo.packagist composer https://packagist.org
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Magento cloud error on composer update

The proper way to do this would be to update the version of the metapackage in your composer.json, run a composer update locally and then git push the updated lock and json.

composer update "magento/magento-cloud-metapackage":">=2.3.1 < 2.3.2"
git add composer.lock composer.json
git commit -m "Upgrading to Magento 2.3.1"
git push

ECE-Tools runs setup:upgrade during the deploy phase which will upgrade your database appropriately. TellTims.com