symfony-cli / symfony-cli

The Symfony CLI tool
https://symfony.com/download
GNU Affero General Public License v3.0
526 stars 103 forks source link

Help/Defect: Failed to extract symfony/event-dispatcher-contracts #431

Closed JaieParker closed 9 months ago

JaieParker commented 9 months ago

Hey Guys,

I am very new to PHP and trying to get Symfony running, so if it's my fault sorry :)

I am using docker to avoid installation on Windows by using https://github.com/JaieParker/php-apache-mysql-containerized with the following vars: PHP_VERSION=8.3.2 MYSQL_VERSION=8.0 APACHE_VERSION=2.4.58

Running the following in the PHP container, I tried using the CLI here and got Failed to extract doctrine/instantiator: (1) '/usr/bin/unzip' -qq '/var/www/html/symfonyApp/vendor/composer/tmp-299ecf3d5d7ac5c47b37959695aaf8e3.zip'

/var/www/html # symfony new --webapp symfonyApp
* Creating a new Symfony project with Composer
  (running /usr/bin/composer create-project symfony/skeleton /var/www/html/symfonyApp  --no-interaction)

* Setting up the project under Git version control
  (running git init /var/www/html/symfonyApp)

  (running /usr/bin/composer require webapp --no-interaction)

./composer.json has been updated
Running composer update symfony/webapp-pack
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "7.0.*"
Updating dependencies
Lock file operations: 105 installs, 0 updates, 0 removals
  - Locking composer/semver (3.4.0)
  - Locking doctrine/cache (2.2.0)
  - Locking doctrine/collections (2.1.4)
  - Locking doctrine/dbal (4.0.0)
  - Locking doctrine/deprecations (1.1.3)
  - Locking doctrine/doctrine-bundle (2.11.2)
  - Locking doctrine/doctrine-migrations-bundle (3.3.0)
  - Locking doctrine/event-manager (2.0.0)
  - Locking doctrine/inflector (2.0.9)
  - Locking doctrine/instantiator (2.0.0)
  - Locking doctrine/lexer (3.0.1)
  - Locking doctrine/migrations (3.7.2)
  - Locking doctrine/orm (3.0.0)
  - Locking doctrine/persistence (3.2.0)
  - Locking doctrine/sql-formatter (1.1.3)
  - Locking egulias/email-validator (4.0.2)
  - Locking masterminds/html5 (2.8.1)
  - Locking monolog/monolog (3.5.0)
  - Locking myclabs/deep-copy (1.11.1)
  - Locking nikic/php-parser (v5.0.0)
  - Locking phar-io/manifest (2.0.3)
  - Locking phar-io/version (3.2.1)
  - Locking phpdocumentor/reflection-common (2.2.0)
  - Locking phpdocumentor/reflection-docblock (5.3.0)
  - Locking phpdocumentor/type-resolver (1.8.0)
  - Locking phpstan/phpdoc-parser (1.25.0)
  - Locking phpunit/php-code-coverage (9.2.30)
  - Locking phpunit/php-file-iterator (3.0.6)
  - Locking phpunit/php-invoker (3.1.1)
  - Locking phpunit/php-text-template (2.0.4)
  - Locking phpunit/php-timer (5.0.3)
  - Locking phpunit/phpunit (9.6.16)
  - Locking psr/clock (1.0.0)
  - Locking psr/link (2.0.1)
  - Locking sebastian/cli-parser (1.0.1)
  - Locking sebastian/code-unit (1.0.8)
  - Locking sebastian/code-unit-reverse-lookup (2.0.3)
  - Locking sebastian/comparator (4.0.8)
  - Locking sebastian/complexity (2.0.3)
  - Locking sebastian/diff (4.0.5)
  - Locking sebastian/environment (5.1.5)
  - Locking sebastian/exporter (4.0.5)
  - Locking sebastian/global-state (5.0.6)
  - Locking sebastian/lines-of-code (1.0.4)
  - Locking sebastian/object-enumerator (4.0.4)
  - Locking sebastian/object-reflector (2.0.4)
  - Locking sebastian/recursion-context (4.0.5)
  - Locking sebastian/resource-operations (3.0.3)
  - Locking sebastian/type (3.2.1)
  - Locking sebastian/version (3.0.2)
  - Locking symfony/asset (v7.0.3)
  - Locking symfony/asset-mapper (v7.0.3)
  - Locking symfony/browser-kit (v7.0.3)
  - Locking symfony/clock (v7.0.3)
  - Locking symfony/css-selector (v7.0.3)
  - Locking symfony/debug-bundle (v7.0.3)
  - Locking symfony/debug-pack (v1.0.10)
  - Locking symfony/doctrine-bridge (v7.0.3)
  - Locking symfony/doctrine-messenger (v7.0.3)
  - Locking symfony/dom-crawler (v7.0.3)
  - Locking symfony/expression-language (v7.0.3)
  - Locking symfony/form (v7.0.3)
  - Locking symfony/http-client (v7.0.3)
  - Locking symfony/http-client-contracts (v3.4.0)
  - Locking symfony/intl (v7.0.3)
  - Locking symfony/mailer (v7.0.3)
  - Locking symfony/maker-bundle (v1.54.0)
  - Locking symfony/messenger (v7.0.3)
  - Locking symfony/mime (v7.0.3)
  - Locking symfony/monolog-bridge (v7.0.3)
  - Locking symfony/monolog-bundle (v3.10.0)
  - Locking symfony/notifier (v7.0.3)
  - Locking symfony/options-resolver (v7.0.0)
  - Locking symfony/orm-pack (v2.4.0)
  - Locking symfony/password-hasher (v7.0.3)
  - Locking symfony/phpunit-bridge (v7.0.3)
  - Locking symfony/polyfill-intl-icu (v1.29.0)
  - Locking symfony/polyfill-intl-idn (v1.29.0)
  - Locking symfony/process (v7.0.3)
  - Locking symfony/profiler-pack (v1.0.6)
  - Locking symfony/property-access (v7.0.3)
  - Locking symfony/property-info (v7.0.3)
  - Locking symfony/security-bundle (v7.0.3)
  - Locking symfony/security-core (v7.0.3)
  - Locking symfony/security-csrf (v7.0.3)
  - Locking symfony/security-http (v7.0.3)
  - Locking symfony/serializer (v7.0.3)
  - Locking symfony/serializer-pack (v1.3.0)
  - Locking symfony/stimulus-bundle (v2.14.2)
  - Locking symfony/stopwatch (v7.0.3)
  - Locking symfony/test-pack (v1.1.0)
  - Locking symfony/translation (v7.0.3)
  - Locking symfony/translation-contracts (v3.4.1)
  - Locking symfony/twig-bridge (v7.0.3)
  - Locking symfony/twig-bundle (v7.0.3)
  - Locking symfony/twig-pack (v1.0.1)
  - Locking symfony/ux-turbo (v2.14.2)
  - Locking symfony/validator (v7.0.3)
  - Locking symfony/web-link (v7.0.3)
  - Locking symfony/web-profiler-bundle (v7.0.3)
  - Locking symfony/webapp-pack (v1.3.0)
  - Locking theseer/tokenizer (1.2.2)
  - Locking twig/extra-bundle (v3.8.0)
  - Locking twig/twig (v3.8.0)
  - Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 105 installs, 0 updates, 0 removals
  - Downloading composer/semver (3.4.0)
  - Downloading doctrine/cache (2.2.0)
  - Downloading symfony/stopwatch (v7.0.3)
  - Downloading doctrine/event-manager (2.0.0)
  - Downloading doctrine/deprecations (1.1.3)
  - Downloading doctrine/dbal (4.0.0)
  - Downloading doctrine/migrations (3.7.2)
  - Downloading doctrine/persistence (3.2.0)
  - Downloading symfony/doctrine-bridge (v7.0.3)
  - Downloading doctrine/sql-formatter (1.1.3)
  - Downloading doctrine/doctrine-bundle (2.11.2)
  - Downloading doctrine/doctrine-migrations-bundle (3.3.0)
  - Downloading doctrine/lexer (3.0.1)
  - Downloading doctrine/instantiator (2.0.0)
  - Downloading doctrine/inflector (2.0.9)
  - Downloading doctrine/collections (2.1.4)
  - Downloading doctrine/orm (3.0.0)
  - Downloading symfony/polyfill-intl-idn (v1.29.0)
  - Downloading egulias/email-validator (4.0.2)
  - Downloading webmozart/assert (1.11.0)
  - Downloading phpstan/phpdoc-parser (1.25.0)
  - Downloading phpdocumentor/reflection-common (2.2.0)
  - Downloading phpdocumentor/type-resolver (1.8.0)
  - Downloading phpdocumentor/reflection-docblock (5.3.0)
  - Downloading sebastian/version (3.0.2)
  - Downloading sebastian/type (3.2.1)
  - Downloading sebastian/resource-operations (3.0.3)
  - Downloading sebastian/recursion-context (4.0.5)
  - Downloading sebastian/object-reflector (2.0.4)
  - Downloading sebastian/object-enumerator (4.0.4)
  - Downloading sebastian/global-state (5.0.6)
  - Downloading sebastian/exporter (4.0.5)
  - Downloading sebastian/environment (5.1.5)
  - Downloading sebastian/diff (4.0.5)
  - Downloading sebastian/comparator (4.0.8)
  - Downloading sebastian/code-unit (1.0.8)
  - Downloading sebastian/cli-parser (1.0.1)
  - Downloading phpunit/php-timer (5.0.3)
  - Downloading phpunit/php-text-template (2.0.4)
  - Downloading phpunit/php-invoker (3.1.1)
  - Downloading phpunit/php-file-iterator (3.0.6)
  - Downloading theseer/tokenizer (1.2.2)
  - Downloading nikic/php-parser (v5.0.0)
  - Downloading sebastian/lines-of-code (1.0.4)
  - Downloading sebastian/complexity (2.0.3)
  - Downloading sebastian/code-unit-reverse-lookup (2.0.3)
  - Downloading phpunit/php-code-coverage (9.2.30)
  - Downloading phar-io/version (3.2.1)
  - Downloading phar-io/manifest (2.0.3)
  - Downloading myclabs/deep-copy (1.11.1)
  - Downloading phpunit/phpunit (9.6.16)
  - Downloading psr/clock (1.0.0)
  - Downloading psr/link (2.0.1)
  - Downloading masterminds/html5 (2.8.1)
  - Downloading symfony/dom-crawler (v7.0.3)
  - Downloading symfony/browser-kit (v7.0.3)
  - Downloading symfony/css-selector (v7.0.3)
  - Downloading twig/twig (v3.8.0)
  - Downloading symfony/translation-contracts (v3.4.1)
  - Downloading symfony/twig-bridge (v7.0.3)
  - Downloading symfony/debug-bundle (v7.0.3)
  - Downloading symfony/http-client-contracts (v3.4.0)
  - Downloading symfony/clock (v7.0.3)
  - Downloading symfony/messenger (v7.0.3)
  - Downloading monolog/monolog (3.5.0)
  - Downloading symfony/monolog-bridge (v7.0.3)
  - Downloading symfony/options-resolver (v7.0.0)
  - Downloading symfony/password-hasher (v7.0.3)
  - Downloading symfony/phpunit-bridge (v7.0.3)
  - Downloading symfony/polyfill-intl-icu (v1.29.0)
  - Downloading symfony/property-info (v7.0.3)
  - Downloading symfony/security-core (v7.0.3)
  - Downloading symfony/security-csrf (v7.0.3)
  - Downloading symfony/property-access (v7.0.3)
  - Downloading symfony/security-http (v7.0.3)
  - Downloading symfony/serializer (v7.0.3)
  - Downloading symfony/twig-bundle (v7.0.3)
  - Downloading symfony/web-profiler-bundle (v7.0.3)
  - Downloading symfony/web-link (v7.0.3)
  - Downloading symfony/validator (v7.0.3)
  - Downloading symfony/stimulus-bundle (v2.14.2)
  - Downloading symfony/ux-turbo (v2.14.2)
  - Downloading twig/extra-bundle (v3.8.0)
  - Downloading symfony/twig-pack (v1.0.1)
  - Downloading symfony/translation (v7.0.3)
  - Downloading symfony/test-pack (v1.1.0)
  - Downloading symfony/serializer-pack (v1.3.0)
  - Downloading symfony/security-bundle (v7.0.3)
  - Downloading symfony/profiler-pack (v1.0.6)
  - Downloading symfony/process (v7.0.3)
  - Downloading symfony/orm-pack (v2.4.0)
  - Downloading symfony/notifier (v7.0.3)
  - Downloading symfony/monolog-bundle (v3.10.0)
  - Downloading symfony/mime (v7.0.3)
  - Downloading symfony/maker-bundle (v1.54.0)
  - Downloading symfony/mailer (v7.0.3)
  - Downloading symfony/intl (v7.0.3)
  - Downloading symfony/http-client (v7.0.3)
  - Downloading symfony/form (v7.0.3)
  - Downloading symfony/expression-language (v7.0.3)
  - Downloading symfony/doctrine-messenger (v7.0.3)
  - Downloading symfony/debug-pack (v1.0.10)
  - Downloading symfony/asset-mapper (v7.0.3)
  - Downloading symfony/asset (v7.0.3)
  - Downloading symfony/webapp-pack (v1.3.0)
   0/105 [>---------------------------]   0%
   6/105 [=>--------------------------]   5%
  12/105 [===>------------------------]  11%
  24/105 [======>---------------------]  22%
  35/105 [=========>------------------]  33%
  42/105 [===========>----------------]  40%
  53/105 [==============>-------------]  50%
  63/105 [================>-----------]  60%
  74/105 [===================>--------]  70%
  84/105 [======================>-----]  80%
  95/105 [=========================>--]  90%
 103/105 [===========================>]  98%
 104/105 [===========================>]  99%
 105/105 [============================] 100%
  - Installing composer/semver (3.4.0): Extracting archive
  - Installing doctrine/cache (2.2.0): Extracting archive
  - Installing symfony/stopwatch (v7.0.3): Extracting archive
  - Installing doctrine/event-manager (2.0.0): Extracting archive
  - Installing doctrine/deprecations (1.1.3): Extracting archive
  - Installing doctrine/dbal (4.0.0): Extracting archive
  - Installing doctrine/migrations (3.7.2): Extracting archive
  - Installing doctrine/persistence (3.2.0): Extracting archive
  - Installing symfony/doctrine-bridge (v7.0.3): Extracting archive
  - Installing doctrine/sql-formatter (1.1.3): Extracting archive
  - Installing doctrine/doctrine-bundle (2.11.2): Extracting archive
  - Installing doctrine/doctrine-migrations-bundle (3.3.0): Extracting archive
  - Installing doctrine/lexer (3.0.1): Extracting archive
  - Installing doctrine/instantiator (2.0.0): Extracting archive
  - Installing doctrine/inflector (2.0.9): Extracting archive
  - Installing doctrine/collections (2.1.4): Extracting archive
  - Installing doctrine/orm (3.0.0): Extracting archive
  - Installing symfony/polyfill-intl-idn (v1.29.0): Extracting archive
  - Installing egulias/email-validator (4.0.2): Extracting archive
  - Installing webmozart/assert (1.11.0): Extracting archive
  - Installing phpstan/phpdoc-parser (1.25.0): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing phpdocumentor/type-resolver (1.8.0): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
  - Installing sebastian/version (3.0.2): Extracting archive
  - Installing sebastian/type (3.2.1): Extracting archive
  - Installing sebastian/resource-operations (3.0.3): Extracting archive
  - Installing sebastian/recursion-context (4.0.5): Extracting archive
  - Installing sebastian/object-reflector (2.0.4): Extracting archive
  - Installing sebastian/object-enumerator (4.0.4): Extracting archive
  - Installing sebastian/global-state (5.0.6): Extracting archive
  - Installing sebastian/exporter (4.0.5): Extracting archive
  - Installing sebastian/environment (5.1.5): Extracting archive
  - Installing sebastian/diff (4.0.5): Extracting archive
  - Installing sebastian/comparator (4.0.8): Extracting archive
  - Installing sebastian/code-unit (1.0.8): Extracting archive
  - Installing sebastian/cli-parser (1.0.1): Extracting archive
  - Installing phpunit/php-timer (5.0.3): Extracting archive
  - Installing phpunit/php-text-template (2.0.4): Extracting archive
  - Installing phpunit/php-invoker (3.1.1): Extracting archive
  - Installing phpunit/php-file-iterator (3.0.6): Extracting archive
  - Installing theseer/tokenizer (1.2.2): Extracting archive
  - Installing nikic/php-parser (v5.0.0): Extracting archive
  - Installing sebastian/lines-of-code (1.0.4): Extracting archive
  - Installing sebastian/complexity (2.0.3): Extracting archive
  - Installing sebastian/code-unit-reverse-lookup (2.0.3): Extracting archive
  - Installing phpunit/php-code-coverage (9.2.30): Extracting archive
  - Installing phar-io/version (3.2.1): Extracting archive
  - Installing phar-io/manifest (2.0.3): Extracting archive
  - Installing myclabs/deep-copy (1.11.1): Extracting archive
  - Installing phpunit/phpunit (9.6.16): Extracting archive
  - Installing psr/clock (1.0.0): Extracting archive
  - Installing psr/link (2.0.1): Extracting archive
  - Installing masterminds/html5 (2.8.1): Extracting archive
  - Installing symfony/dom-crawler (v7.0.3): Extracting archive
  - Installing symfony/browser-kit (v7.0.3): Extracting archive
  - Installing symfony/css-selector (v7.0.3): Extracting archive
  - Installing twig/twig (v3.8.0): Extracting archive
  - Installing symfony/translation-contracts (v3.4.1): Extracting archive
  - Installing symfony/twig-bridge (v7.0.3): Extracting archive
  - Installing symfony/debug-bundle (v7.0.3): Extracting archive
  - Installing symfony/http-client-contracts (v3.4.0): Extracting archive
  - Installing symfony/clock (v7.0.3): Extracting archive
  - Installing symfony/messenger (v7.0.3): Extracting archive
  - Installing monolog/monolog (3.5.0): Extracting archive
  - Installing symfony/monolog-bridge (v7.0.3): Extracting archive
  - Installing symfony/options-resolver (v7.0.0): Extracting archive
  - Installing symfony/password-hasher (v7.0.3): Extracting archive
  - Installing symfony/phpunit-bridge (v7.0.3): Extracting archive
  - Installing symfony/polyfill-intl-icu (v1.29.0): Extracting archive
  - Installing symfony/property-info (v7.0.3): Extracting archive
  - Installing symfony/security-core (v7.0.3): Extracting archive
  - Installing symfony/security-csrf (v7.0.3): Extracting archive
  - Installing symfony/property-access (v7.0.3): Extracting archive
  - Installing symfony/security-http (v7.0.3): Extracting archive
  - Installing symfony/serializer (v7.0.3): Extracting archive
  - Installing symfony/twig-bundle (v7.0.3): Extracting archive
  - Installing symfony/web-profiler-bundle (v7.0.3): Extracting archive
  - Installing symfony/web-link (v7.0.3): Extracting archive
  - Installing symfony/validator (v7.0.3): Extracting archive
  - Installing symfony/stimulus-bundle (v2.14.2): Extracting archive
  - Installing symfony/ux-turbo (v2.14.2): Extracting archive
  - Installing twig/extra-bundle (v3.8.0): Extracting archive
  - Installing symfony/twig-pack (v1.0.1): Extracting archive
  - Installing symfony/translation (v7.0.3): Extracting archive
  - Installing symfony/test-pack (v1.1.0): Extracting archive
  - Installing symfony/serializer-pack (v1.3.0): Extracting archive
  - Installing symfony/security-bundle (v7.0.3): Extracting archive
  - Installing symfony/profiler-pack (v1.0.6): Extracting archive
  - Installing symfony/process (v7.0.3): Extracting archive
  - Installing symfony/orm-pack (v2.4.0): Extracting archive
  - Installing symfony/notifier (v7.0.3): Extracting archive
  - Installing symfony/monolog-bundle (v3.10.0): Extracting archive
  - Installing symfony/mime (v7.0.3): Extracting archive
  - Installing symfony/maker-bundle (v1.54.0): Extracting archive
  - Installing symfony/mailer (v7.0.3): Extracting archive
  - Installing symfony/intl (v7.0.3): Extracting archive
  - Installing symfony/http-client (v7.0.3): Extracting archive
  - Installing symfony/form (v7.0.3): Extracting archive
  - Installing symfony/expression-language (v7.0.3): Extracting archive
  - Installing symfony/doctrine-messenger (v7.0.3): Extracting archive
  - Installing symfony/debug-pack (v1.0.10): Extracting archive
  - Installing symfony/asset-mapper (v7.0.3): Extracting archive
  - Installing symfony/asset (v7.0.3): Extracting archive
  - Installing symfony/webapp-pack (v1.3.0): Extracting archive
   0/105 [>---------------------------]   0%    Install of doctrine/instantiator failed

  11/105 [==>-------------------------]  10%
  16/105 [====>-----------------------]  15%
  17/105 [====>-----------------------]  16%
  21/105 [=====>----------------------]  20%    Install of sebastian/comparator failed

  30/105 [========>-------------------]  28%
  32/105 [========>-------------------]  30%
  42/105 [===========>----------------]  40%
  45/105 [============>---------------]  42%
  48/105 [============>---------------]  45%    Install of symfony/debug-bundle failed

  52/105 [=============>--------------]  49%
  53/105 [==============>-------------]  50%
  55/105 [==============>-------------]  52%
  56/105 [==============>-------------]  53%
  58/105 [===============>------------]  55%
  62/105 [================>-----------]  59%
  63/105 [================>-----------]  60%
  67/105 [=================>----------]  63%
  69/105 [==================>---------]  65%
  71/105 [==================>---------]  67%
  72/105 [===================>--------]  68%
  74/105 [===================>--------]  70%
  83/105 [======================>-----]  79%
  84/105 [======================>-----]  80%
  86/105 [======================>-----]  81%
  89/105 [=======================>----]  84%
  91/105 [========================>---]  86%
  95/105 [=========================>--]  90%
 100/105 [==========================>-]  95%
 101/105 [==========================>-]  96%
 102/105 [===========================>]  97%
 104/105 [===========================>]  99%
 105/105 [============================] 100%
In ZipDownloader.php line 185:

  Failed to extract doctrine/instantiator: (1) '/usr/bin/unzip' -qq '/var/www/html/symfonyApp/vendor/composer/tmp-299ecf3d5d7ac5c47b37959695aaf8e3.zip'   
  -d '/var/www/html/symfonyApp/vendor/composer/b3fb4934'                                                                                                  

  unzip: short read                                                                                                                                       

require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

  unable to run /usr/bin/composer require webapp --no-interaction  

/var/www/html # 

Running the following in the PHP container, I deleted the previous folder and tried composer and got a similar error

/var/www/html # composer create-project symfony/skeleton:"7.0.*" symfonyWebApp
Creating a "symfony/skeleton:7.0.*" project at "./symfonyWebApp"
Installing symfony/skeleton (v7.0.99)
  - Installing symfony/skeleton (v7.0.99): Extracting archive
Created project in /var/www/html/symfonyWebApp
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking symfony/flex (v2.4.4)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing symfony/flex (v2.4.4): Extracting archive
Generating autoload files
1 package you are using is looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "7.0.*"
Updating dependencies
Lock file operations: 30 installs, 0 updates, 0 removals
  - Locking psr/cache (3.0.0)
  - Locking psr/container (2.0.2)
  - Locking psr/event-dispatcher (1.0.0)
  - Locking psr/log (3.0.0)
  - Locking symfony/cache (v7.0.3)
  - Locking symfony/cache-contracts (v3.4.0)
  - Locking symfony/config (v7.0.3)
  - Locking symfony/console (v7.0.3)
  - Locking symfony/dependency-injection (v7.0.3)
  - Locking symfony/deprecation-contracts (v3.4.0)
  - Locking symfony/dotenv (v7.0.3)
  - Locking symfony/error-handler (v7.0.3)
  - Locking symfony/event-dispatcher (v7.0.3)
  - Locking symfony/event-dispatcher-contracts (v3.4.0)
  - Locking symfony/filesystem (v7.0.3)
  - Locking symfony/finder (v7.0.0)
  - Locking symfony/framework-bundle (v7.0.3)
  - Locking symfony/http-foundation (v7.0.3)
  - Locking symfony/http-kernel (v7.0.3)
  - Locking symfony/polyfill-intl-grapheme (v1.29.0)
  - Locking symfony/polyfill-intl-normalizer (v1.29.0)
  - Locking symfony/polyfill-mbstring (v1.29.0)
  - Locking symfony/polyfill-php83 (v1.29.0)
  - Locking symfony/routing (v7.0.3)
  - Locking symfony/runtime (v7.0.3)
  - Locking symfony/service-contracts (v3.4.1)
  - Locking symfony/string (v7.0.3)
  - Locking symfony/var-dumper (v7.0.3)
  - Locking symfony/var-exporter (v7.0.3)
  - Locking symfony/yaml (v7.0.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 30 installs, 0 updates, 0 removals
  - Installing symfony/runtime (v7.0.3): Extracting archive
  - Installing psr/cache (3.0.0): Extracting archive
  - Installing symfony/cache-contracts (v3.4.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.29.0): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.29.0): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.29.0): Extracting archive
  - Installing symfony/string (v7.0.3): Extracting archive
  - Installing psr/container (2.0.2): Extracting archive
  - Installing symfony/service-contracts (v3.4.1): Extracting archive
  - Installing symfony/console (v7.0.3): Extracting archive
  - Installing symfony/dotenv (v7.0.3): Extracting archive
  - Installing psr/event-dispatcher (1.0.0): Extracting archive
  - Installing symfony/event-dispatcher-contracts (v3.4.0): Extracting archive
  - Installing symfony/deprecation-contracts (v3.4.0): Extracting archive
  - Installing symfony/routing (v7.0.3): Extracting archive
  - Installing symfony/polyfill-php83 (v1.29.0): Extracting archive
  - Installing symfony/http-foundation (v7.0.3): Extracting archive
  - Installing symfony/event-dispatcher (v7.0.3): Extracting archive
  - Installing symfony/var-dumper (v7.0.3): Extracting archive
  - Installing psr/log (3.0.0): Extracting archive
  - Installing symfony/error-handler (v7.0.3): Extracting archive
  - Installing symfony/http-kernel (v7.0.3): Extracting archive
  - Installing symfony/finder (v7.0.0): Extracting archive
  - Installing symfony/filesystem (v7.0.3): Extracting archive
  - Installing symfony/var-exporter (v7.0.3): Extracting archive
  - Installing symfony/dependency-injection (v7.0.3): Extracting archive
  - Installing symfony/config (v7.0.3): Extracting archive
  - Installing symfony/cache (v7.0.3): Extracting archive
  - Installing symfony/framework-bundle (v7.0.3): Extracting archive
  - Installing symfony/yaml (v7.0.3): Extracting archive
    Install of symfony/event-dispatcher-contracts failed

In ZipDownloader.php line 185:

  Failed to extract symfony/event-dispatcher-contracts: (1) '/usr/bin/unzip' -qq '/var/www/html/symfonyWebApp/vendor/composer/tmp-0a872b227d72080ea80286  
  38cadaf206.zip' -d '/var/www/html/symfonyWebApp/vendor/composer/0b0436b8'                                                                               

  unzip: short read                                                                                                                                       

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]

/var/www/html # 

Can you advise why this is not working please?

Cheers

JaieParker commented 9 months ago

Hey Guys I worked out that this was due to the way I installed Composer and have changed that to use the way it's done in https://github.com/composer/docker/blob/main/2.6/Dockerfile . I have now updated https://github.com/JaieParker/php-apache-mysql-containerized and validated that I can now install it correctly. Hope this helps someone. Cheers