docker-magento2 icon indicating copy to clipboard operation
docker-magento2 copied to clipboard

Quickstart instructions yield errors

Open J-Fricke opened this issue 8 years ago • 6 comments

Started with the Quick Start to see how easy it was to get the base up and running and ran into the following errors:

Installing magento/project-community-edition (2.1.7)


  [InvalidArgumentException]
  Project directory /var/www/magento/ is not empty.


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

Install Magento
chmod: cannot access '/var/www/magento/bin/magento': No such file or directory
sudo: /var/www/magento/bin/magento: command not found
chmod: cannot access '/var/www/magento/bin/magento': No such file or directory
sudo: /var/www/magento/bin/magento: command not found
chmod: cannot access '/var/www/magento/bin/magento': No such file or directory
sudo: /var/www/magento/bin/magento: command not found
Fixing file permissions..
find: `/var/www/magento/pub': No such file or directory
find: `/var/www/magento/pub': No such file or directory
find: `/var/www/magento/var/generation': No such file or directory

Also I noticed it was attempting to download CE, yet we are running EE, is there a setting to change this?

J-Fricke avatar Jul 01 '17 00:07 J-Fricke

Thanks for trying out the images and I'm sorry they've caused problems right out of the door. My next step on this is to try the commands in the readme out to make sure that they work for me. I'll do that as soon as I can.

To answer your EE comment, it's currently hardcoded to use the community edition. I've opened #88 to add support.

punkstar avatar Jul 13 '17 16:07 punkstar

Any update to this? We're having the same problems here.

wickywills avatar Oct 11 '17 10:10 wickywills

Just to update, my issue was resolved by deleting the "magento" folder and letting the script recreate it. I had originally been clearing the contents of the folder and opening up permissions, but completely deleting the folder solved this.

wickywills avatar Oct 12 '17 12:10 wickywills

So the problem is in the README: mkdir magento If you leave that step out everything works fine.

joekohlsdorf avatar Nov 26 '18 02:11 joekohlsdorf

@joekohlsdorf - Thank you for this. This worked.

SteveChurch avatar Jan 23 '19 11:01 SteveChurch

In my case I had wrong credential in composer.env http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html generate magento auth public and private key, then pasted the public key into the username and the private key in as the password. Then as mentioned in above comments delete magento dir and run docker-compose run cli magento-installer again. Thanks

MPietrukowski avatar Mar 27 '19 13:03 MPietrukowski