Installation aborts with an error message
es-cologne opened this issue · 1 comments
es-cologne commented
My environment:
- composer 1.10.16
- Symfony 4.4.16
- doctrine/mongodb-odm-bundle 4.3.0
My commands:
composer config extra.symfony.allow-contrib true
composer require doctrine/mongodb-odm-bundle
see https://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/installation.html
I get:
Symfony operations: 1 recipe (ed554a17e5e1f193db7e62c16c839c2b)
- Configuring doctrine/mongodb-odm-bundle (>=3.3): From github.com/symfony/recipes-contrib:master
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In FileLoader.php line 180:
!!
!! The file "/var/www/html/config/services.yaml" does not contain valid YAML:
!! Unable to parse at line 13 (near " env(MONGODB_URL): ''") in /var/www/html
!! /config/services.yaml (which is loaded in resource "/var/www/html/config/se
!! rvices.yaml").
!!
!!
!! In YamlFileLoader.php line 693:
!!
!! The file "/var/www/html/config/services.yaml" does not contain valid YAML:
!! Unable to parse at line 13 (near " env(MONGODB_URL): ''").
!!
!!
!! In Parser.php line 481:
!!
!! Unable to parse at line 13 (near " env(MONGODB_URL): ''").
!!
!!
!!
Script @auto-scripts was called via post-update-cmd
Installation failed, reverting ./composer.json to its original content.
malarzm commented
I'm sorry you're facing an error during bundle installation. Unfortunately it comes from a flex recipe and not this bundle so you need open an issue here: https://github.com/symfony/recipes-contrib