magento / magento/magento-cloud

Magento cloud setup install failure

Open
#527 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
226
Forks
244
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am trying to install magento in magento cloud.

To do so I did:

- check out https://github.com/magento/magento-cloud
- setup auth.json
- setup env:COMPOSER_AUTH in the project with same values stored in auth.json
- pushed everything in a separate branch called staging in the magento cloud environment

However the composer install does not work.
In the cloud and in my local machine I got

```
W: [Composer\Downloader\TransportException]
W: The "https://repo.magento.com/archives/magento/module-staging-page-builder/magento-module-staging-page-builder-1.7.0.0-patch1.zip" file could not be downloaded (HTTP/1.1 404 Not Found)
In my local pc (with php 7.4) i have different issues (they turn based on the composer install run).
```

I tried also with `composer config -g repo.packagist composer https://packagist.org` in local but all I got was different error messages:

```
The "https://repo.magento.com/archives/magento/module-banner/magento-module-banner-101.2.3.0.zip" file could not be downloaded (HTTP/2 404 )
The "https://repo.magento.com/archives/magento/module-invitation/magento-module-invitation-100.4.2.0.zip" file could not be downloaded (HTTP/2 404 )
The "https://repo.magento.com/archives/magento/module-banner-customer-segment/magento-module-banner-customer-segment-100.4.1.0.zip" file could not be downloaded (HTTP/2 404 )
The "https://repo.magento.com/archives/magento/module-invitation/magento-module-invitation-100.4.2.0.zip" file could not be downloaded (HTTP/2 404 )
```

With composer update i have

```
- Root composer.json requires magento/magento-cloud-metapackage 2.4.3, found magento/magento-cloud-metapackage[2.4.3] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file.
```

What am I doing wrong?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing `composer install` in the magento-cloud checkout with `auth.json` and the `env:COMPOSER_AUTH` value described in the report. Compare the failing archive URLs and the `magento-cloud-metapackage` resolution during `composer update`; done means the reported packages install successfully in the cloud environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.