magento-cloud-docker
magento-cloud-docker copied to clipboard
Fatal error while settting up local docker setup
Preconditions
- Magento Commerce 2.4.1 hosted on Magento cloud
- Local Environment : Ubuntu
Steps to reproduce
- Clone repo using mgc get <project_id>
- Modied docker-compose.yml for db changes,
- MYSQL_ROOT_PASSWORD=cloud
- MYSQL_DATABASE=cloud
- MYSQL_USER=cloud
- MYSQL_PASSWORD=cloud
- Renamed config.php.dist to config.php under .docker directory
- mgc db:dump to get sql and copy to .docker/mysql/docker-entrypoint-initdb.d directory
- curl https://raw.githubusercontent.com/magento/magento-cloud-docker/1.2.1/bin/init-docker.sh | bash
- ./vendor/bin/ece-docker build:compose --mode="developer"
- docker-sync start (Optional)
- docker-compose up -d
- docker-compose run --rm deploy cloud-deploy
Expected result
- It should work
Actual result
- While installing magento in terminal got errors see attached screenshot
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
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 when installing. This seems like it actually a core bug, not a Cloud Docker bug.
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 !?
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.
Look at the warnings
Create those directories and the issue goes awaaaaay 👻
Same here. Will try @mzink instructions.
Look at the warnings
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!