magento-cloud-docker icon indicating copy to clipboard operation
magento-cloud-docker copied to clipboard

Fatal error while settting up local docker setup

Open VZeroCool opened this issue 4 years ago • 7 comments

Preconditions

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

Steps to reproduce

  1. Clone repo using mgc get <project_id>
  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

VZeroCool avatar Dec 30 '20 15:12 VZeroCool

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

mzink avatar Feb 02 '21 09:02 mzink

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

aepod avatar Feb 05 '21 16:02 aepod

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

VZeroCool avatar Feb 08 '21 08:02 VZeroCool

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.

drpayyne avatar Feb 10 '21 06:02 drpayyne

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

Create those directories and the issue goes awaaaaay 👻

qaniel avatar Feb 22 '21 23:02 qaniel

Same here. Will try @mzink instructions.

AdamAnSubtractM avatar May 19 '21 20:05 AdamAnSubtractM

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!

AdamAnSubtractM avatar May 20 '21 20:05 AdamAnSubtractM