pim-docs
pim-docs copied to clipboard
Akeneo 4.0.19 Docker Install Errors
New install of Ubuntu 18.04
Environment
$ docker --version
Docker version 19.03.6, build 369ce74a3c
$ mysql --version
mysql Ver 8.0.19 for Linux on x86_64 (MySQL Community Server - GPL)
$ docker-compose --version
docker-compose version 1.25.5, build 8a1c60f6
$ curl localhost:9200
{
"name" : "ip",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "S_xHfVneQ6utZ_-0u384SQ",
"version" : {
"number" : "7.6.2",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
"build_date" : "2020-03-26T06:34:37.794943Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
Command Output
$ mkdir akeneo_4
$ cd akeneo_4
akeneo_4$ docker run -u www-data -v $(pwd):/srv/pim -w /srv/pim --rm akeneo/pim-php-dev:4.0 php -d memory_limit=4G /usr/local/bin/composer create-project --prefer-dist akeneo/pim-community-standard /srv/pim "4.0.*@stable"
Creating a "akeneo/pim-community-standard" project at "./"
Installing akeneo/pim-community-standard (v4.0.19)
- Installing akeneo/pim-community-standard (v4.0.19): Downloading (100%)`
Created project in /srv/pim
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 122 installs, 0 updates, 0 removals
- Installing ocramius/package-versions (1.5.1): Downloading (100%)
- Installing symfony/flex (v1.6.2): Downloading (100%)
Symfony recipes are disabled: "symfony/flex" not found in the root composer.json
Loading composer repositories with package information
Updating dependencies (including require-dev)
Prefetching 120 packages
- Downloading (100%)
Package operations: 120 installs, 0 updates, 0 removals
- Installing zendframework/zend-eventmanager (3.2.1): Loading from cache
- Installing zendframework/zend-code (3.4.1): Loading from cache
- Installing ocramius/proxy-manager (2.2.3): Loading from cache
- Installing psr/container (1.0.0): Loading from cache
- Installing symfony/service-contracts (v2.0.1): Loading from cache
- Installing psr/cache (1.0.1): Loading from cache
- Installing symfony/dependency-injection (v4.4.7): Loading from cache
- Installing symfony/contracts (v1.1.0): Loading from cache
- Installing symfony/proxy-manager-bridge (v4.4.7): Loading from cache
- Installing symfony/polyfill-ctype (v1.15.0): Loading from cache
- Installing symfony/templating (v4.4.7): Loading from cache
- Installing symfony/finder (v4.4.7): Loading from cache
- Installing symfony/intl (v4.4.7): Loading from cache
- Installing symfony/polyfill-intl-icu (v1.15.0): Loading from cache
- Installing symfony/options-resolver (v4.4.7): Loading from cache
- Installing symfony/event-dispatcher-contracts (v1.1.7): Loading from cache
- Installing symfony/security-core (v4.4.7): Loading from cache
- Installing symfony/inflector (v5.0.7): Loading from cache
- Installing symfony/property-access (v4.4.7): Loading from cache
- Installing paragonie/random_compat (v2.0.18): Loading from cache
- Installing psr/log (1.1.3): Loading from cache
- Installing symfony/polyfill-php73 (v1.15.0): Loading from cache
- Installing symfony/polyfill-mbstring (v1.15.0): Loading from cache
- Installing symfony/polyfill-php72 (v1.15.0): Loading from cache
- Installing symfony/polyfill-intl-idn (v1.15.0): Loading from cache
- Installing symfony/mime (v5.0.7): Loading from cache
- Installing symfony/http-foundation (v4.4.7): Loading from cache
- Installing symfony/event-dispatcher (v4.4.7): Loading from cache
- Installing symfony/var-dumper (v5.0.7): Loading from cache
- Installing symfony/debug (v4.4.7): Loading from cache
- Installing symfony/error-handler (v4.4.7): Loading from cache
- Installing symfony/http-kernel (v4.4.7): Loading from cache
- Installing symfony/security-csrf (v4.4.7): Loading from cache
- Installing symfony/security-http (v4.4.7): Loading from cache
- Installing symfony/routing (v4.4.7): Loading from cache
- Installing symfony/filesystem (v4.4.7): Loading from cache
- Installing symfony/config (v4.4.7): Loading from cache
- Installing symfony/process (v4.4.7): Loading from cache
- Installing symfony/yaml (v4.4.7): Loading from cache
- Installing symfony/lock (v4.4.7): Loading from cache
- Installing symfony/console (v4.4.7): Loading from cache
- Installing symfony/web-server-bundle (v4.4.7): Loading from cache
- Installing twig/twig (v1.42.2): Loading from cache
- Installing symfony/translation-contracts (v2.0.1): Loading from cache
- Installing symfony/twig-bridge (v4.4.7): Loading from cache
- Installing symfony/twig-bundle (v4.4.7): Loading from cache
- Installing symfony/var-exporter (v5.0.7): Loading from cache
- Installing symfony/cache-contracts (v2.0.1): Loading from cache
- Installing symfony/cache (v5.0.7): Loading from cache
- Installing symfony/framework-bundle (v4.4.1): Loading from cache
- Installing symfony/web-profiler-bundle (v4.4.7): Loading from cache
- Installing symfony/debug-bundle (v4.4.7): Loading from cache
- Installing symfony/security-guard (v4.4.7): Loading from cache
- Installing symfony/security-bundle (v4.4.7): Loading from cache
- Installing symfony/security-acl (v3.0.2): Loading from cache
- Installing symfony/acl-bundle (v1.0.1): Loading from cache
- Installing symfony/dotenv (v4.4.7): Loading from cache
- Installing symfony/polyfill-apcu (v1.12.0): Loading from cache
- Installing symfony/requirements-checker (v1.1.5): Loading from cache
- Installing symfony/validator (v4.4.7): Loading from cache
- Installing symfony/translation (v4.4.7): Loading from cache
- Installing symfony/polyfill-iconv (v1.15.0): Loading from cache
- Installing doctrine/lexer (1.2.0): Loading from cache
- Installing egulias/email-validator (2.1.17): Loading from cache
- Installing swiftmailer/swiftmailer (v6.2.3): Loading from cache
- Installing symfony/swiftmailer-bundle (v3.2.6): Loading from cache
- Installing doctrine/event-manager (1.1.0): Loading from cache
- Installing doctrine/cache (1.9.1): Loading from cache
- Installing doctrine/annotations (v1.8.0): Loading from cache
- Installing doctrine/reflection (v1.0.0): Loading from cache
- Installing doctrine/collections (1.6.4): Loading from cache
- Installing doctrine/persistence (1.2.0): Loading from cache
- Installing doctrine/inflector (1.3.1): Loading from cache
- Installing doctrine/common (v2.11.0): Loading from cache
- Installing doctrine/dbal (v2.10.0): Loading from cache
- Installing doctrine/migrations (v1.8.1): Loading from cache
- Installing symfony/doctrine-bridge (v4.4.1): Loading from cache
- Installing doctrine/doctrine-cache-bundle (1.4.0): Loading from cache
- Installing jdorn/sql-formatter (v1.2.17): Loading from cache
- Installing doctrine/doctrine-bundle (1.12.0): Loading from cache
- Installing doctrine/doctrine-migrations-bundle (v1.3.2): Loading from cache
- Installing doctrine/instantiator (1.3.0): Loading from cache
- Installing doctrine/orm (v2.7.0): Loading from cache
- Installing symfony/orm-pack (v1.0.8): Loading from cache
- Installing monolog/monolog (1.23.0): Loading from cache
- Installing symfony/monolog-bridge (v4.2.12): Loading from cache
- Installing symfony/monolog-bundle (v3.5.0): Loading from cache
- Installing symfony/form (v4.4.7): Loading from cache
- Installing symfony/asset (v4.4.7): Loading from cache
- Installing webmozart/assert (1.5.0): Loading from cache
- Installing box/spout (v2.7.2): Loading from cache
- Installing twig/extensions (v1.3.0): Loading from cache
- Installing sensio/framework-extra-bundle (v5.5.4): Loading from cache
- Installing ramsey/uuid (3.9.3): Loading from cache
- Installing league/flysystem (1.0.67): Loading from cache
- Installing oneup/flysystem-bundle (3.1.0): Loading from cache
- Installing imagine/imagine (v0.7.1): Loading from cache
- Installing liip/imagine-bundle (2.2.0): Loading from cache
- Installing league/flysystem-ziparchive (1.0.3): Loading from cache
- Installing behat/transliterator (v1.3.0): Loading from cache
- Installing gedmo/doctrine-extensions (v2.4.37): Loading from cache
- Installing willdurand/jsonp-callback-validator (v1.1.0): Loading from cache
- Installing willdurand/negotiation (v2.3.1): Loading from cache
- Installing friendsofsymfony/rest-bundle (2.6.0): Loading from cache
- Installing friendsofsymfony/oauth2-php (1.3.0): Loading from cache
- Installing friendsofsymfony/oauth-server-bundle (1.6.2): Loading from cache
- Installing symfony/serializer (v4.4.7): Loading from cache
- Installing friendsofsymfony/jsrouting-bundle (2.1.1): Loading from cache
- Installing react/promise (v2.7.1): Loading from cache
- Installing guzzlehttp/streams (3.0.0): Loading from cache
- Installing guzzlehttp/ringphp (1.1.1): Loading from cache
- Installing elasticsearch/elasticsearch (v7.5.0): Loading from cache
- Installing sabberworm/php-css-parser (8.3.0): Loading from cache
- Installing phenx/php-svg-lib (v0.3.3): Loading from cache
- Installing phenx/php-font-lib (0.5.2): Loading from cache
- Installing dompdf/dompdf (v0.8.3): Loading from cache
- Installing doctrine/data-fixtures (1.4.0): Loading from cache
- Installing doctrine/doctrine-fixtures-bundle (3.3.0): Loading from cache
- Installing ass/xmlsecurity (v1.1.1): Loading from cache
- Installing akeneo/pim-community-dev (v4.0.19): Loading from cache
Package zendframework/zend-eventmanager is abandoned, you should avoid using it. Use laminas/laminas-eventmanager instead.
Package zendframework/zend-code is abandoned, you should avoid using it. Use laminas/laminas-code instead.
Package guzzlehttp/streams is abandoned, you should avoid using it. No replacement was suggested.
Package guzzlehttp/ringphp is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
48 packages you are using are looking for funding. Use the `composer fund` command to find out more!
Symfony recipes are disabled: "symfony/flex" not found in the root composer.json
bash vendor/akeneo/pim-community-dev/std-build/install-required-files.sh
Could not scan for classes inside "dompdf/dompdf/lib/" which does not appear to be a file nor a folder
Could not scan for classes inside "jdorn/sql-formatter/lib" which does not appear to be a file nor a folder
Could not scan for classes inside "symfony/intl/Resources/stubs" which does not appear to be a file nor a folder
Could not scan for classes inside "symfony/polyfill-php73/Resources/stubs" which does not appear to be a file nor a folder
Project configuration is disabled: "symfony/flex" not found in the root composer.json
bash vendor/akeneo/pim-community-dev/std-build/install-required-files.sh
src/ directory already exists. Not preparing the directory content.
These lines are questioning me:
Package operations: 122 installs, 0 updates, 0 removals
- Installing ocramius/package-versions (1.5.1): Downloading (100%)
- Installing symfony/flex (v1.6.2): Downloading (100%)
Symfony recipes are disabled: "symfony/flex" not found in the root composer.json
It doesn't find flex, yet it is present in the line just before.
Could you paste your resulting composer.json
file?
{
"name": "akeneo/pim-community-standard",
"description": "The \"Akeneo Community Standard Edition\" distribution",
"license": "OSL-3.0",
"type": "project",
"authors": [
{
"name": "Akeneo",
"homepage": "http://www.akeneo.com"
}
],
"autoload": {
"psr-0": {
"": "src/"
},
"psr-4": {
"Pim\\Upgrade\\": "upgrades/"
},
"exclude-from-classmap": [
"vendor/akeneo/pim-community-dev/src/Kernel.php"
]
},
"require": {
"akeneo/pim-community-dev": "^4.0.0"
},
"require-dev": {
"doctrine/doctrine-migrations-bundle": "1.3.2"
},
"scripts": {
"post-update-cmd": [
"bash vendor/akeneo/pim-community-dev/std-build/install-required-files.sh"
],
"post-install-cmd": [
"bash vendor/akeneo/pim-community-dev/std-build/install-required-files.sh"
],
"post-create-project-cmd": [
"bash vendor/akeneo/pim-community-dev/std-build/install-required-files.sh"
]
},
"minimum-stability": "stable"
}
How to Reproduce
I'm using a User Data script to build this Ubuntu 18.04 server in AWS. It follows all the manual setup steps, and at the end adds the Docker setup commands. The final Docker Run command I run as the Ubuntu user in /home/ubuntu/pim.