Deployment issue on Azure with Composer

I am getting this issue from yesterday.

2020-10-28T01:28:58.1114562Z ##[section]Starting: Composer install
2020-10-28T01:28:58.1118785Z ==============================================================================
2020-10-28T01:28:58.1118830Z Task : Bash
2020-10-28T01:28:58.1118900Z Description : Run a Bash script on macOS, Linux, or Windows
2020-10-28T01:28:58.1118928Z Version : 3.176.0
2020-10-28T01:28:58.1118956Z Author : Microsoft Corporation
2020-10-28T01:28:58.1118983Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
2020-10-28T01:28:58.1119084Z ==============================================================================
2020-10-28T01:28:59.1540720Z Generating script.
2020-10-28T01:28:59.1541272Z ========================== Starting Command Output ===========================
2020-10-28T01:28:59.1542602Z [command]/usr/bin/bash --noprofile --norc /home/nginadmin/azagent/_work/_temp/d00429fc-77a6-4128-9077-b7ef98c32caa.sh
2020-10-28T01:28:59.1542869Z All settings correct for using Composer
2020-10-28T01:28:59.1542935Z Downloading…
2020-10-28T01:29:02.4864622Z
2020-10-28T01:29:02.4865122Z Composer (version 2.0.2) successfully installed to: /var/www/html/schrackforstudents_cmsbackend.new/composer.phar
2020-10-28T01:29:02.4865274Z Use it: php composer.phar
2020-10-28T01:29:02.4865556Z
2020-10-28T01:29:02.6278319Z Changed current directory to /home/nginadmin/.composer
2020-10-28T01:29:02.7374704Z The “hirak/prestissimo” plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation (“2.0.0”). You may need to run composer update with the “–no-plugins” option.
2020-10-28T01:29:03.2393236Z
2020-10-28T01:29:03.2480355Z
2020-10-28T01:29:03.2480677Z [InvalidArgumentException]
2020-10-28T01:29:03.2480778Z Package hirak/prestissimo at version has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version
2020-10-28T01:29:03.2480968Z
2020-10-28T01:29:03.2480989Z
2020-10-28T01:29:03.2481881Z require [–dev] [–dry-run] [–prefer-source] [–prefer-dist] [–fixed] [–no-suggest] [–no-progress] [–no-update] [–no-install] [–no-scripts] [–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] [–sort-packages] [-o|–optimize-autoloader] [-a|–classmap-authoritative] [–apcu-autoloader] [–apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [–] []…
2020-10-28T01:29:03.2482172Z
2020-10-28T01:29:03.2650336Z
2020-10-28T01:29:03.2931454Z ##[error]Bash exited with code ‘1’.
2020-10-28T01:29:03.2981335Z ##[section]Finishing: Composer install

Please help me, Thanks in Advance

Composer 2.0 was released on 24th October, see here. As you can see in your log output, this means that composer 2.0 was installed, however, not all of your dependencies are ready, in your case hirak/prestissimo, but AFAIK even if it were ready, some dependencies of Neos would fail.

You should pin Composer 1.0 for the time being in your install scripts. I don’t have experience with your setup, but in our Dockerfile, we install Composer with curl and now just added --1 at the end.

curl -sS https://getcomposer.org/installer | php -- \
    --install-dir=/usr/bin --filename=composer --1

Thanks for the quick feedback,
We are using azure-pipelines.yml, not Docker
can you suggest the argument in the below way

  • script: |
    composer global require hirak/prestissimo
    composer install --no-interaction --prefer-dist
    displayName: ‘composer install’