Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error while settting up local docker setup #302

Open
VZeroCool opened this issue Dec 30, 2020 · 7 comments
Open

Fatal error while settting up local docker setup #302

VZeroCool opened this issue Dec 30, 2020 · 7 comments

Comments

@VZeroCool
Copy link

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

@m2-community-project m2-community-project bot added this to Ready for Grooming in Backlog Dec 30, 2020
@YPyltiai YPyltiai added community PR/issue origin bug report issue type labels Jan 21, 2021
@mzink
Copy link

mzink commented Feb 2, 2021

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
Copy link
Contributor

aepod commented Feb 5, 2021

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

@VZeroCool
Copy link
Author

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
Copy link
Contributor

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
Copy link

qaniel commented Feb 22, 2021

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

Create those directories and the issue goes awaaaaay 👻

@AdamAnSubtractM
Copy link

Same here. Will try @mzink instructions.

@AdamAnSubtractM
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Backlog
Ready for Grooming
Development

No branches or pull requests

7 participants