magento / magento-cloud-docker

All Submissions you make to Magento Inc. (“Magento") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here: https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html
Open Software License 3.0
253 stars 191 forks source link

Fatal error while settting up local docker setup #302

Open VZeroCool opened 3 years ago

VZeroCool commented 3 years ago

Preconditions

  1. Magento Commerce 2.4.1 hosted on Magento cloud
  2. Local Environment : Ubuntu

Steps to reproduce

  1. Clone repo using mgc get
  2. Modied docker-compose.yml for db changes,
    • MYSQL_ROOT_PASSWORD=cloud
      • MYSQL_DATABASE=cloud
      • MYSQL_USER=cloud
      • MYSQL_PASSWORD=cloud
  3. Renamed config.php.dist to config.php under .docker directory
  4. mgc db:dump to get sql and copy to .docker/mysql/docker-entrypoint-initdb.d directory
  5. curl https://raw.githubusercontent.com/magento/magento-cloud-docker/1.2.1/bin/init-docker.sh | bash
  6. ./vendor/bin/ece-docker build:compose --mode="developer"
  7. docker-sync start (Optional)
  8. docker-compose up -d
  9. docker-compose run --rm deploy cloud-deploy

Expected result

  1. It should work

Actual result

  1. While installing magento in terminal got errors see attached screenshot

Selection_038 Selection_039 Selection_040

By seeing terminal output its lopping upgrade command.

Any help would be appreciate. Checked with magento enterprise support answered like no support for local setup!! lol

mzink commented 3 years ago

We ran in the same issue while following the Launch Docker instructions. For us it worked to run this manually: docker-compose run deploy bin/magento setup:upgrade

aepod commented 3 years ago

Same problem here when installing. This seems like it actually a core bug, not a Cloud Docker bug.

VZeroCool commented 3 years ago

Kudos to @mzink it worked for me for fresh setup, In existing project, I mean one which is has third-party modules and live project, While executing CLI (docker-compose run --rm deploy cloud-deploy) Its throwing weird error.

@shiftedreality Any idea !?

image

drpayyne commented 3 years ago

We ran in the same issue while following the Launch Docker instructions. For us it worked to run this manually: docker-compose run deploy bin/magento setup:upgrade

Same problem here and for all my colleagues. Running the above worked.

qaniel commented 3 years ago

Look at the warnings Screen Shot 2021-02-22 at 17 26 49

Create those directories and the issue goes awaaaaay 👻

AdamAnSubtractM commented 3 years ago

Same here. Will try @mzink instructions.

AdamAnSubtractM commented 3 years ago

Look at the warnings Screen Shot 2021-02-22 at 17 26 49

Create those directories and the issue goes awaaaaay 👻

Hi @qaniel ,

Docker novice here. Are you creating those directories in the docker image or in your cloud repo on your host machine? Follow up question, what command are you running after creating those directories?

Thanks in advance!