Unable to install symfony/serializer in Symfony 4.4 - symfony

composer require symfony/serializer
returns:
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In Definition.php line 288:
!!
!! Cannot replace arguments if none have been configured yet.
!!
!!
!!
Script #auto-scripts was called via post-update-cmd
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Has anyone ever seen this error? I've been debugging for hours, no result. The project is very identical to the Symfony 4.4 boilerplate project and the services seem to be fine. I'm currently debugging since hours, as i heavily depend on the rest bundles and serializers, to get the project up and working.
Thank you!
EDIT: services.yml, i checked with the boilerplate example from symfony, and cant find any differences in config files.
# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'
- '../src/Tests/'
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
App\Controller\:
resource: '../src/Controller/'
tags: ['controller.service_arguments']
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
EDIT: Here is the snippet from -vvv, interestingly it occurs too if i try serializer-pack, until the composer file is cleaned, no work can be done.
Running 2.1.9 (2021-10-05 09:47:38) with PHP 7.4.25 on Darwin / 21.4.0
Reading ./composer.json (/Users/christofjori/Desktop/Projects/bon-api/composer.json)
Loading config file /Users/christofjori/.composer/auth.json
Loading config file ./composer.json (/Users/christofjori/Desktop/Projects/bon-api/composer.json)
Checked CA file /opt/homebrew/etc/ca-certificates/cert.pem: valid
Executing command (/Users/christofjori/Desktop/Projects/bon-api): git branch -a --no-color --no-abbrev -v
Executing command (/Users/christofjori/Desktop/Projects/bon-api): git rev-list master..development
Executing command (/Users/christofjori/Desktop/Projects/bon-api): git rev-list remotes/origin/master..development
Executing command (/Users/christofjori/Desktop/Projects/bon-api): git rev-list remotes/origin/4.4_migration..development
Failed to initialize global composer: Composer could not find the config file: /Users/christofjori/.composer/composer.json
Reading /Users/christofjori/Desktop/Projects/bon-api/vendor/composer/installed.json
Loading plugin PackageVersions\Installer (from composer/package-versions-deprecated)
Loading plugin Symfony\Flex\Flex (from symfony/flex)
Reading /Users/christofjori/Library/Caches/composer/repo/flex/symfony-recipes-flex-main-index.json from cache
Reading /Users/christofjori/Library/Caches/composer/repo/flex/symfony-recipes-contrib-flex-main-index.json from cache
Downloading https://raw.githubusercontent.com/symfony/recipes/flex/main/index.json
Downloading https://raw.githubusercontent.com/symfony/recipes-contrib/flex/main/index.json
[304] https://raw.githubusercontent.com/symfony/recipes/flex/main/index.json
[304] https://raw.githubusercontent.com/symfony/recipes-contrib/flex/main/index.json
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git rev-parse --git-dir
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git remote -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git remote set-url origin -- 'https://git.incert.at/libaries/core.git' && git remote update --prune origin && git remote set-url origin -- 'https://git.incert.at/libaries/core.git' && git gc --auto
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git show-ref --tags --dereference
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git branch --no-color --no-abbrev -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git branch --no-color
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git show 'master':'composer.json'
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git -c log.showSignature=false log -1 --format=%at 'master'
Reading composer.json of incert/core (1.52)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-core.git/ccb15c4498a0ddde03845dabd9de8aa0ff12365f from cache
Importing tag 1.52 (1.52.0.0)
Reading composer.json of incert/core (master)
Importing branch master (dev-master)
Reading composer.json of incert/core (master1)
Importing branch master1 (dev-master1)
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git rev-parse --git-dir
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git remote -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git remote set-url origin -- 'https://git.incert.at/libaries/doctrine-rql' && git remote update --prune origin && git remote set-url origin -- 'https://git.incert.at/libaries/doctrine-rql' && git gc --auto
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git show-ref --tags --dereference
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git branch --no-color --no-abbrev -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git branch --no-color
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git show 'master':'composer.json'
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git -c log.showSignature=false log -1 --format=%at 'master'
Reading composer.json of incert/doctrine-rql (1.21)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-doctrine-rql/688d4dec384efbc48f056430136ebc2a65e2ffff from cache
Importing tag 1.21 (1.21.0.0)
Reading composer.json of incert/doctrine-rql (master)
Importing branch master (dev-master)
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git rev-parse --git-dir
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git remote -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git remote set-url origin -- 'https://git.incert.at/libaries/rql-parser54' && git remote update --prune origin && git remote set-url origin -- 'https://git.incert.at/libaries/rql-parser54' && git gc --auto
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git show-ref --tags --dereference
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git branch --no-color --no-abbrev -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git branch --no-color
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git show 'master':'composer.json'
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git -c log.showSignature=false log -1 --format=%at 'master'
Reading composer.json of incert/rql-parser54 (1.0)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-rql-parser54/785f29f1987974968e3730daba20b859bdf3e976 from cache
Importing tag 1.0 (1.0.0.0)
Reading composer.json of incert/rql-parser54 (1.01)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-rql-parser54/401f12fde384d308f827bc63e58a110f4f63493d from cache
Importing tag 1.01 (1.01.0.0)
Reading composer.json of incert/rql-parser54 (master)
Importing branch master (dev-master)
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git rev-parse --git-dir
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git remote -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git remote set-url origin -- 'https://git.incert.at/libaries/log-explorer-client-php' && git remote update --prune origin && git remote set-url origin -- 'https://git.incert.at/libaries/log-explorer-client-php' && git gc --auto
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git show-ref --tags --dereference
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git branch --no-color --no-abbrev -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git branch --no-color
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git show 'master':'composer.json'
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git -c log.showSignature=false log -1 --format=%at 'master'
Reading composer.json of incert/log-explorer-client-php (1.0)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-log-explorer-client-php/ca8f8385c20ccb3aeb2d042f0a20923ca6b4804d from cache
Importing tag 1.0 (1.0.0.0)
Reading composer.json of incert/log-explorer-client-php (1.01)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-log-explorer-client-php/0e14852d472050699cddb5e70dee9f9ff67ea49c from cache
Importing tag 1.01 (1.01.0.0)
Reading composer.json of incert/log-explorer-client-php (1.02)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-log-explorer-client-php/091d2cf864b1cf5a5970f7d49a713568eab077f0 from cache
Importing tag 1.02 (1.02.0.0)
Reading composer.json of incert/log-explorer-client-php (1.03)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-log-explorer-client-php/be64766d9a7a4d50c6f6203c4665f585d5e61749 from cache
Importing tag 1.03 (1.03.0.0)
Reading composer.json of incert/log-explorer-client-php (1.04)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-log-explorer-client-php/60354cae3b148201b47d4b2440c02939a6304e7a from cache
Importing tag 1.04 (1.04.0.0)
Reading composer.json of incert/log-explorer-client-php (1.041)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-log-explorer-client-php/1296c0c5a1fe9e464fdd828c497f0ff53395789b from cache
Importing tag 1.041 (1.041.0.0)
Reading composer.json of incert/log-explorer-client-php (master)
Importing branch master (dev-master)
Downloading https://repo.packagist.org/packages.json
[200] https://repo.packagist.org/packages.json
Info from https://repo.packagist.org: #StandWithUkraine
Writing /Users/christofjori/Library/Caches/composer/repo/https---repo.packagist.org/packages.json into cache
Reading /Users/christofjori/Library/Caches/composer/repo/https---repo.packagist.org/provider-symfony~serializer.json from cache
Downloading https://repo.packagist.org/p2/symfony/serializer.json if modified
Reading /Users/christofjori/Library/Caches/composer/repo/https---repo.packagist.org/provider-symfony~serializer~dev.json from cache
Downloading https://repo.packagist.org/p2/symfony/serializer~dev.json if modified
[304] https://repo.packagist.org/p2/symfony/serializer.json
[304] https://repo.packagist.org/p2/symfony/serializer~dev.json
./composer.json has been updated
Reading ./composer.json (/Users/christofjori/Desktop/Projects/bon-api/composer.json)
Loading config file /Users/christofjori/.composer/auth.json
Loading config file ./composer.json (/Users/christofjori/Desktop/Projects/bon-api/composer.json)
Executing command (/Users/christofjori/Desktop/Projects/bon-api): git branch -a --no-color --no-abbrev -v
Executing command (/Users/christofjori/Desktop/Projects/bon-api): git rev-list master..development
Executing command (/Users/christofjori/Desktop/Projects/bon-api): git rev-list remotes/origin/master..development
Executing command (/Users/christofjori/Desktop/Projects/bon-api): git rev-list remotes/origin/4.4_migration..development
Failed to initialize global composer: Composer could not find the config file: /Users/christofjori/.composer/composer.json
Reading /Users/christofjori/Desktop/Projects/bon-api/vendor/composer/installed.json
Loading plugin PackageVersions\Installer_composer_tmp0 (from composer/package-versions-deprecated)
Loading plugin Symfony\Flex\Flex_composer_tmp1 (from symfony/flex)
Reading /Users/christofjori/Library/Caches/composer/repo/flex/symfony-recipes-flex-main-index.json from cache
Reading /Users/christofjori/Library/Caches/composer/repo/flex/symfony-recipes-contrib-flex-main-index.json from cache
Downloading https://raw.githubusercontent.com/symfony/recipes/flex/main/index.json
Downloading https://raw.githubusercontent.com/symfony/recipes-contrib/flex/main/index.json
[304] https://raw.githubusercontent.com/symfony/recipes-contrib/flex/main/index.json
[304] https://raw.githubusercontent.com/symfony/recipes/flex/main/index.json
Running composer update symfony/serializer
Reading ./composer.lock (/Users/christofjori/Desktop/Projects/bon-api/composer.lock)
> pre-update-cmd: Symfony\Flex\Flex_composer_tmp1->configureInstaller
Loading composer repositories with package information
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git rev-parse --git-dir
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git remote -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git remote set-url origin -- 'https://git.incert.at/libaries/core.git' && git remote update --prune origin && git remote set-url origin -- 'https://git.incert.at/libaries/core.git' && git gc --auto
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git show-ref --tags --dereference
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git branch --no-color --no-abbrev -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git branch --no-color
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git show 'master':'composer.json'
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-core.git/): git -c log.showSignature=false log -1 --format=%at 'master'
Reading composer.json of incert/core (1.52)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-core.git/ccb15c4498a0ddde03845dabd9de8aa0ff12365f from cache
Importing tag 1.52 (1.52.0.0)
Reading composer.json of incert/core (master)
Importing branch master (dev-master)
Reading composer.json of incert/core (master1)
Importing branch master1 (dev-master1)
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git rev-parse --git-dir
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git remote -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git remote set-url origin -- 'https://git.incert.at/libaries/doctrine-rql' && git remote update --prune origin && git remote set-url origin -- 'https://git.incert.at/libaries/doctrine-rql' && git gc --auto
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git show-ref --tags --dereference
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git branch --no-color --no-abbrev -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git branch --no-color
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git show 'master':'composer.json'
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-doctrine-rql/): git -c log.showSignature=false log -1 --format=%at 'master'
Reading composer.json of incert/doctrine-rql (1.21)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-doctrine-rql/688d4dec384efbc48f056430136ebc2a65e2ffff from cache
Importing tag 1.21 (1.21.0.0)
Reading composer.json of incert/doctrine-rql (master)
Importing branch master (dev-master)
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git rev-parse --git-dir
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git remote -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git remote set-url origin -- 'https://git.incert.at/libaries/rql-parser54' && git remote update --prune origin && git remote set-url origin -- 'https://git.incert.at/libaries/rql-parser54' && git gc --auto
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git show-ref --tags --dereference
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git branch --no-color --no-abbrev -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git branch --no-color
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git show 'master':'composer.json'
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-rql-parser54/): git -c log.showSignature=false log -1 --format=%at 'master'
Reading composer.json of incert/rql-parser54 (1.0)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-rql-parser54/785f29f1987974968e3730daba20b859bdf3e976 from cache
Importing tag 1.0 (1.0.0.0)
Reading composer.json of incert/rql-parser54 (1.01)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-rql-parser54/401f12fde384d308f827bc63e58a110f4f63493d from cache
Importing tag 1.01 (1.01.0.0)
Reading composer.json of incert/rql-parser54 (master)
Importing branch master (dev-master)
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git rev-parse --git-dir
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git remote -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git remote set-url origin -- 'https://git.incert.at/libaries/log-explorer-client-php' && git remote update --prune origin && git remote set-url origin -- 'https://git.incert.at/libaries/log-explorer-client-php' && git gc --auto
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git show-ref --tags --dereference
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git branch --no-color --no-abbrev -v
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git branch --no-color
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git show 'master':'composer.json'
Executing command (/Users/christofjori/Library/Caches/composer/vcs/https---git.incert.at-libaries-log-explorer-client-php/): git -c log.showSignature=false log -1 --format=%at 'master'
Reading composer.json of incert/log-explorer-client-php (1.041)
Reading /Users/christofjori/Library/Caches/composer/repo/https---git.incert.at-libaries-log-explorer-client-php/1296c0c5a1fe9e464fdd828c497f0ff53395789b from cache
Importing tag 1.041 (1.041.0.0)
Reading composer.json of incert/log-explorer-client-php (master)
Importing branch master (dev-master)
Downloading https://repo.packagist.org/packages.json
[200] https://repo.packagist.org/packages.json
Info from https://repo.packagist.org: #StandWithUkraine
Writing /Users/christofjori/Library/Caches/composer/repo/https---repo.packagist.org/packages.json into cache
Reading /Users/christofjori/Library/Caches/composer/repo/https---repo.packagist.org/provider-symfony~serializer.json from cache
Downloading https://repo.packagist.org/p2/symfony/serializer.json if modified
[304] https://repo.packagist.org/p2/symfony/serializer.json
> pre-pool-create: Symfony\Flex\Flex_composer_tmp1->truncatePackages
Updating dependencies
Generating rules
Resolving dependencies through SAT
Looking at all rules.
Dependency resolution completed in 0.001 seconds
Analyzed 260 packages to resolve dependencies
Analyzed 656 rules to resolve dependencies
Generating rules
Resolving dependencies through SAT
Looking at all rules.
Dependency resolution completed in 0.000 seconds
Lock file operations: 1 install, 0 updates, 0 removals
Installs: symfony/serializer:v4.4.41
- Locking symfony/serializer (v4.4.41)
Writing lock file
Installing dependencies from lock file (including require-dev)
Reading ./composer.lock (/Users/christofjori/Desktop/Projects/bon-api/composer.lock)
> pre-operations-exec: Symfony\Flex\Flex_composer_tmp1->recordOperations
Package operations: 1 install, 0 updates, 0 removals
Installs: symfony/serializer:v4.4.41
Reading /Users/christofjori/Library/Caches/composer/files/symfony/serializer/6fa9ff63c92acff28fbdaf7744e7bb64fefcbebe.zip from cache
- Loading symfony/serializer (v4.4.41) from cache
- Installing symfony/serializer (v4.4.41): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/christofjori/Desktop/Projects/bon-api/vendor/composer/tmp-a61c55d8c539df185725083347debffb' -d '/Users/christofjori/Desktop/Projects/bon-api/vendor/composer/3247dc55'
Executing async command (CWD): rm -rf '/Users/christofjori/Desktop/Projects/bon-api/vendor/composer/3247dc55'
> post-package-install: Symfony\Flex\Flex_composer_tmp1->recordFlexInstall
Downloading https://packagist.org/downloads/
[201] https://packagist.org/downloads/
Package doctrine/doctrine-cache-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package symfony/inflector is abandoned, you should avoid using it. Use EnglishInflector from the String component instead.
Generating autoload files
> post-autoload-dump: PackageVersions\Installer_composer_tmp0->dumpVersionsClass
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
99 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> post-update-cmd: Symfony\Flex\Flex_composer_tmp1->update
Run composer recipes at any time to see the status of your Symfony recipes.
> post-update-cmd: #auto-scripts
> auto-scripts: Symfony\Flex\Flex_composer_tmp1->executeAutoScripts
Executing script cache:clear
Executed script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In Definition.php line 288:
!!
!! Cannot replace arguments if none have been configured yet.
!!
!!
!!
Script #auto-scripts was called via post-update-cmd
Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Related

Install of google/apiclient-services failed when I run composer require google/apiclient

In Laravel 7.0 Windows environment,
I want to integrate google calendar. When I run composer require google/apiclient my installation stucks on - Downloading google/apiclient-services (v0.224.1) after long time waiting it shows the following error in the cmd.
> Install of google/apiclient-services failed
> - Installing google/apiclient (v2.12.1): Extracting archive
0 [>---------------------------]
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
The following exception is caused by a process timeout
Check https://getcomposer.org/doc/06-config.md#process-timeout for details
> [Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone --no-checkout -- "https://github.com/googleapis/google-api-php-client-services.git" "C:\User
s\amu\Desktop\projects\laravel google calendar integration\blog\vendor\google\apiclient-services" && cd /D "C:\User
s\amu\Desktop\projects\laravel google calendar integration\blog\vendor\google\apiclient-services" && git remote add
composer -- "https://github.com/googleapis/google-api-php-client-services.git" && git fetch composer && git remote
set-url origin -- "https://github.com/googleapis/google-api-php-client-services.git" && git remote set-url compose
r -- "https://github.com/googleapis/google-api-php-client-services.git"" exceeded the timeout of 300 seconds.
>require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--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] [--] [<packages>]...
It seems google/apiclient-services cannot be installed. does anyone know what should I do?

Install systemd service on Debian installation

I'm building custom Debian ISO with simple-cdd utility. It worked well till the moment when I attached my own .deb package.
build-simple-cdd --dist stretch --profiles moj --force-root --local-packages /root/iso/deb
build-simple-cdd works properly, because I saw my deb package in tmp directory structure and iso image is created successfully. However debian installation fails
I suspect, that postinst script fails, since it uses systemctl command when it may be unavailable.
#!/bin/sh
set -e
echo $1
if [ "$1" = "configure" ]; then
echo "Configuring privileges..."
chown user:user /usr/bin/Koncentrator
chmod 0755 /usr/bin/Koncentrator
echo "Enabling Koncentrator services..."
systemctl daemon-reload
systemctl enable Xvfb.service
systemctl enable Koncentrator.service
fi
I've added systemd dependency to control file, but it doesn't work.
I made workaround for this issue. simple-cdd allows to prepare post installation script. apt install is called there without problems. Two steps are required to use this solution:
Add deb package to installation disk. This is configured via profile configuration file (moj.conf):
all_extras="$all_extras /root/iso/files/customapackage_0.1.3.deb"
Run apt install in moj.postinst script:
#!/bin/sh
mount /dev/cdrom /media/cdrom
cd /media/cdrom/simple-cdd
apt install ./custompackage_0.1.3.deb
cd /
sync
umount /media/cdrom
If you want to debug your postinst script, you can insert there long sleep:
#!/bin/sh
sleep 10000000
...
And switch terminal (Ctrl+Alt+F1-6) during finish-install phase. Than call chroot /target to switch in-target environemnent

Problems installing artifactory service on Ubuntu 16.04 Xenial (HVM) Amazon AWS image

I'm getting this, which doesn't help me a lot. Tomcat logs are not yet created, and the war files not yet expanded, so I guess tomcat cannot even start. How can I figure out the problem?
systemctl status artifactory.service
● artifactory.service - Setup Systemd script for Artifactory in Tomcat Servlet Engine
Loaded: loaded (/lib/systemd/system/artifactory.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2018-02-05 22:25:30 CET; 1s ago
Process: 13760 ExecStart=/0/artifactory/bin/artifactoryManage.sh start (code=exited, status=1/FAILURE)
I followed these installation instructions, downloaded and extracted JFrog Artifactory OSS 5.8.3, then
unzip /0/artifactory.zip -d /0
mv /0/artifactory-oss-5.8.3 /0/artifactory
chmod +x /0/artifactory/bin/*
ARTIFACTORY_HOME=/0/artifactory bash -c '/0/artifactory/bin/installService.sh'
Then edited /etc/opt/jfrog/artifactory/default:
#!/bin/sh
#Default values
export ARTIFACTORY_HOME=/0/artifactory
export ARTIFACTORY_USER=artifactory
export JAVA_HOME=/a/java/jdk1.8_lin64
export TOMCAT_HOME=/0/artifactory/tomcat
export ARTIFACTORY_PID=$ARTIFACTORY_HOME/run/artifactory.pid
export JAVA_OPTIONS="-server -Xms512m -Xmx756m -Xss256k -XX:+UseG1GC -XX:OnOutOfMemoryError=\"kill -9 %p\""
export JAVA_OPTIONS="$JAVA_OPTIONS -Djruby.compile.invokedynamic=false -Dfile.encoding=UTF8 -Dartdist=zip -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Djava.security.egd=file:/dev/./urandom"
# Timeout waiting for artifactory to start
# START_TMO=60
Finally reinstalled service (do I have to uninstall somehow first?)
ARTIFACTORY_HOME=/0/artifactory bash -c '/0/artifactory/bin/installService.sh'
systemctl start artifactory.service || true
systemctl status artifactory.service
Turns out it was a permissions problem.
Eventually I unzipped to /opt/artifactory (instead of /0/artifactory), and things started to work.
I found the problem by trying to manually start artifactory.
I looked inside /opt/artifactory/misc/service/artifactory.service and found:
ExecStart=/opt/jfrog/artifactory/bin/artifactoryManage.sh start
Inside artifactoryManage.sh I looked at the start method and found:
su -s "/bin/sh" ${ARTIFACTORY_USER} -c "export JAVA_HOME='$JAVA_HOME'; $TOMCAT_HOME/bin/startup.sh"
I manually resolved the variables by changing this to:
su -s "/bin/sh" artifactory -c "export JAVA_HOME=/a/java/jdk1.8_lin64; /opt/artifactory/tomcat/bin/startup.sh"
And then received the permission error. I vaguely remembered reading something about permissions in the installation instructions:

SULU CMS installation errors with Laravel Homestead

Follow this document http://docs.sulu.io/en/latest/book/getting-started.html at the end of installation process I got this error:
Target: cache
cache:clear ({"--no-optional-warmers":true,"--no-debug":true,"--no-interaction":true})
// Clearing the admin cache for the dev environment with debug true
[Symfony\Component\Filesystem\Exception\IOException]
Failed to remove directory "/home/vagrant/Code/sulu/var/cache/admin/de~/doctrine": .
sulu:build [-D|--nodeps] [--destroy] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-s|--shell] [--process-isolation] [-e|--env ENV] [--no-debug] [--] <command> [<target>]
Before that I was trying to set up file permissions with this:
HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var/cache var/logs var/uploads var/uploads/* web/uploads web/uploads/* var/indexes var/sessions
sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:`whoami`:rwX var/cache var/logs var/uploads var/uploads/* web/uploads web/uploads/* var/indexes var/sessions
and also had these errors:
setfacl: web/uploads: Operation not supported
setfacl: web/uploads/media: Operation not supported
setfacl: web/uploads/media: Operation not supported
My host OS : Ubuntu 16.04
Vagrant : v.1.9.3
VirtualBox : v.5
Homestead: v.5.2.1
Does anyone have successful installation Sulu CMS with Homestead?
What is the option to solve these my issues?
Sulu CMS looks very promising but unfortunately I could not install it locally still with many attempts.
UPDATE
After comment of Daniel I've tried other way to install Sulu but again got error at the very end of installation:
Executing builders
==================
Target: cache
cache:clear ({"--no-optional-warmers":true,"--no-debug":true,"--no-interaction":true})
// Clearing the admin cache for the dev environment with debug true
[Symfony\Component\Filesystem\Exception\IOException]
Failed to remove directory "/home/vagrant/Code/sulu/app/cache/admin/de~/annotations": .
Opened test.app in browser I see this error:
Fatal error: Uncaught
Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getLocale() on null in /home/vagrant/Code/sulu/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Twig/Content/ContentPathTwigExtension.php on line 70
Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getLocale() on null in /home/vagrant/Code/sulu/vendor/sulu/sulu/src/Sulu/Bundle/WebsiteBundle/Twig/Content/ContentPathTwigExtension.php on line 70
Tried to delete cache folders manually - the same error.
All console commands work fine.
Any ideas?
P.S. I have a good experience of installation other Symfony-based applications under Homestead and all went smooth basically (Sylius, eZ etc.). So I am very surprised....
To get around this, you need to remove this folder from the host machine, because it's an artifact from the previous process of trying to set things up and it's in god-mode, created by a no-longer existing almighty entity.
vagrant destroy (needed to release filesystem locks)
Remove folder on host: rm -rf .../sulu/app/cache/admin
type: nfs on folder binding
vagrant up
Should work then, encountered this same problem recently.
If you're using Homestead Improved, use the built-in "sulu" project type for a decent Nginx auto-setup:
sites:
- map: homestead.app
to: /home/vagrant/Code/Project/web
type: sulu

Capistrano/Git not recognising checkout -B flag unless logged in via ssh

I'm trying to use capistrano to deploy a wordpress site to my account on dreamhost.
For the most part capistrano seems to be working. Here's the output from cap dev git:check
$ cap dev git:check
INFO [1cd5c6b7] Running /usr/bin/env mkdir -p /home/parisstilton/tmp/theparisstilton.com/ on theparisstilton.com
DEBUG [1cd5c6b7] Command: /usr/bin/env mkdir -p /home/parisstilton/tmp/theparisstilton.com/
INFO [1cd5c6b7] Finished in 1.895 seconds with exit status 0 (successful).
DEBUG Uploading /home/parisstilton/tmp/theparisstilton.com/git-ssh.sh 0.0%
INFO Uploading /home/parisstilton/tmp/theparisstilton.com/git-ssh.sh 100.0%
INFO [4ede30ed] Running /usr/bin/env chmod +x /home/parisstilton/tmp/theparisstilton.com/git-ssh.sh on theparisstilton.com
DEBUG [4ede30ed] Command: /usr/bin/env chmod +x /home/parisstilton/tmp/theparisstilton.com/git-ssh.sh
INFO [4ede30ed] Finished in 0.317 seconds with exit status 0 (successful).
INFO [8d47d9d7] Running /usr/bin/env mkdir -p /home/parisstilton/tmp/theparisstilton.com/ on theparisstilton.com
DEBUG [8d47d9d7] Command: /usr/bin/env mkdir -p /home/parisstilton/tmp/theparisstilton.com/
INFO [8d47d9d7] Finished in 1.668 seconds with exit status 0 (successful).
DEBUG Uploading /home/parisstilton/tmp/theparisstilton.com/git-ssh.sh 0.0%
INFO Uploading /home/parisstilton/tmp/theparisstilton.com/git-ssh.sh 100.0%
INFO [1aacdb9a] Running /usr/bin/env chmod +x /home/parisstilton/tmp/theparisstilton.com/git-ssh.sh on theparisstilton.com
DEBUG [1aacdb9a] Command: /usr/bin/env chmod +x /home/parisstilton/tmp/theparisstilton.com/git-ssh.sh
INFO [1aacdb9a] Finished in 0.266 seconds with exit status 0 (successful).
DEBUG [bd5cfd74] Running /usr/bin/env git ls-remote git#bitbucket.org:sentur/partisstilton.git on theparisstilton.com
DEBUG [bd5cfd74] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/home/parisstilton/tmp/theparisstilton.com/git-ssh.sh /usr/bin/env git ls-remote git#bitbucket.org:sentur/partisstilton.git )
DEBUG [bd5cfd74] 5cadb90b1a5d4bbe59c2eb8e3f3e108f49b98fd0 HEAD
DEBUG [bd5cfd74] 9451025272b2a594ffc2af259bfce50c66ff15fc refs/heads/dev
DEBUG [bd5cfd74] 5cadb90b1a5d4bbe59c2eb8e3f3e108f49b98fd0 refs/heads/master
DEBUG [bd5cfd74] Finished in 2.722 seconds with exit status 0 (successful).
DEBUG [baacc1b3] Running /usr/bin/env git ls-remote git#bitbucket.org:sentur/partisstilton.git on theparisstilton.com
DEBUG [baacc1b3] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/home/parisstilton/tmp/theparisstilton.com/git-ssh.sh /usr/bin/env git ls-remote git#bitbucket.org:sentur/partisstilton.git )
DEBUG [baacc1b3] 5cadb90b1a5d4bbe59c2eb8e3f3e108f49b98fd0 HEAD
DEBUG [baacc1b3] 9451025272b2a594ffc2af259bfce50c66ff15fc refs/heads/dev
DEBUG [baacc1b3] 5cadb90b1a5d4bbe59c2eb8e3f3e108f49b98fd0 refs/heads/master
DEBUG [baacc1b3] Finished in 2.724 seconds with exit status 0 (successful).
When I deploy using the following code bundle exec cap dev deploy ( http://pastebin.com/fCWRjEyv ), capistrano fails at
DEBUG [e6f95da6] Command: cd /home/parisstilton/dev.theparisstilton.com/repo && ( GIT_ASKPASS=/bin/echo GIT_SSH=/home/parisstilton/tmp/theparisstilton.com/git-ssh.sh /usr/bin/env git checkout -B 20140806215353 origin/dev )
DEBUG [e6f95da6] error: unknown switch `B'
DEBUG [e6f95da6] usage: git checkout [options] <branch>
DEBUG [e6f95da6] or: git checkout [options] [<branch>] -- <file>...
However if I ssh into the dreamhost server and run the same command it works fine recognising the git checkout -B flag. I suspect that this may be because I have installed a more recent version of git (2.0.4) in my ~/packages/bin/ which is in my $PATH. Where as the default git on Dreamhost is git version 1.7.2.5.
[beehive]$ cd /home/parisstilton/dev.theparisstilton.com/repo && ( GIT_ASKPASS=/bin/echo GIT_SSH=/home/parisstilton/tmp/theparisstilton.com/git-ssh.sh /usr/bin/env git checkout -B 20140806215353 origin/dev )
Branch 20140806215353 set up to track remote branch dev from origin.
Switched to a new branch '20140806215353'
I managed to find a simple solution (though not sure if it's right, it works for me).
Editing the ~/.bashrc file to update $PATH as this is run by non-interactive shells where as ~/.bash_profile where I had originally updated my $PATH, is only run by bash on interactive shell login.
So here's the code.
$nano ~/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
#add ~/packages/bin installed apps/git to $PATH
export PATH=~/packages/bin:$PATH

Resources