Skip to content

Unable to install Magento 2 #1

Closed
@ihor-sviziev

Description

@ihor-sviziev

I tried to install magento2 with your docker-compose file, but got following error:
Why it's happened? Any ideas how to fix it? Looks like this issue related to https://github.com/magento/magento2-community-edition/issues/15

phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
sjparkinson/static-review suggests installing sensiolabs/security-checker (Required for ComposerSecurityReview.)
lusitanian/oauth suggests installing symfony/http-foundation (Allows using the Symfony Session storage backend.)
lusitanian/oauth suggests installing predis/predis (Allows using the Redis storage backend.)
Writing lock file
Generating autoload files



  [ErrorException]
  file_get_contents(app/etc/NonComposerComponentRegistration.php): failed to open stream: No such file or directory



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


chmod: cannot access '/src/bin/magento': No such file or directory
Installing composer dependencies...
/usr/local/bin/m2setup.sh: 11: /usr/local/bin/m2setup.sh: /src/bin/magento: not found
Ignore the above error (bug in Magento), fixing with 'composer update'...
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files



  [ErrorException]
  file_get_contents(app/etc/NonComposerComponentRegistration.php): failed to open stream: No such file or directory



update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--] [<packages>]...


Running Magento 2 setup script...
/usr/local/bin/m2setup.sh: 27: /usr/local/bin/m2setup.sh: /src/bin/magento: not found
Reindexing all indexes...
/usr/local/bin/m2setup.sh: 41: /usr/local/bin/m2setup.sh: /src/bin/magento: not found
The setup script has completed execution.

Also I tried replace image to mageinferno/magento2-setup:2.0.0 but get following error:

ocker-compose run --rm setup
Starting test_dbdata_1
Pulling setup (mageinferno/magento2-setup:2.0.0)...
2.0.0: Pulling from mageinferno/magento2-setup
5bac9e9b1edc: Pull complete
1e676c810de2: Pull complete
a02b4754c021: Pull complete
f192cde5963d: Pull complete
Digest: sha256:6afcfe7c4ae4ae4a466ed68d69c920a3a59cbffcaf29a2dd8afc85c22cc9e5a7
Status: Downloaded newer image for mageinferno/magento2-setup:2.0.0
Initializing setup...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
chmod: cannot access '/src/bin/magento': No such file or directory
Running Magento 2 setup script...
/usr/local/bin/m2setup.sh: 15: /usr/local/bin/m2setup.sh: /src/bin/magento: not found
Reindexing all indexes...
/usr/local/bin/m2setup.sh: 28: /usr/local/bin/m2setup.sh: /src/bin/magento: not found
The setup script has completed execution.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions