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
256 stars 191 forks source link

Cannot create a new user using command with magento-cloud-docker #338

Open XiaoYiyichonga opened 2 years ago

XiaoYiyichonga commented 2 years ago
 - Summary of the issue
 -      After successfully set up the magento-cloud-docker at my own Mac os, I cannot create a new user using the provide command from Adobe website.
 - Information on your environment:
 -      Mac os,
 -      Installed Magento-cloud-docker
 - Steps to reproduce,
 -      1. magento-cloud-docker was successfully setup and we can access is with "http://magento2.docker/"
 -      2. I want to create a new user based on the following command.
 -         ```
           php bin/magento admin:user:create --admin-user="xxx" --admin-password="xxx" --admin- email="xxxx" --admin-firstname="xxxi" --admin-lastname="xxx"
           ````
 - Expected and actual results,
   The expected result is this command was successfully run and a new user was created.
   actual result is I met a error as below
  "In Installer.php line 1136:
   Can't run this operation: configuration for DB connection is absent."
BaDos commented 2 years ago

@XiaoYiyichonga Hi,

Do you run this command inside the deploy container? The build container does not have access to the DB.