Skip to content

Upgrade to Symfony 6.4 gives option name already exists error #487

@lipflip

Description

@lipflip

We are upgrading a symfony 5.4 project to 6.4 but we are stuck on gos-websocket.

When we are executing the command php bin/console gos:websocket:server -vvv

we are getting following error:

[Symfony\Component\Console\Exception\LogicException] An option named "profile" already exists.

Exception trace: at /var/www/html/domain/vendor/symfony/console/Input/InputDefinition.php:236 Symfony\Component\Console\Input\InputDefinition->addOption() at /var/www/html/domain/vendor/symfony/console/Input/InputDefinition.php:222 Symfony\Component\Console\Input\InputDefinition->addOptions() at /var/www/html/domain/vendor/symfony/console/Command/Command.php:403 Symfony\Component\Console\Command\Command->mergeApplicationDefinition() at /var/www/html/domain/vendor/symfony/console/Command/Command.php:281 Symfony\Component\Console\Command\Command->run() at /var/www/html/domain/vendor/symfony/console/Application.php:1096 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/domain/vendor/symfony/framework-bundle/Console/Application.php:126 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /var/www/html/domain/vendor/symfony/console/Application.php:324 Symfony\Component\Console\Application->doRun() at /var/www/html/domain/vendor/symfony/framework-bundle/Console/Application.php:80 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/html/domain/vendor/symfony/console/Application.php:175 Symfony\Component\Console\Application->run() at /var/www/html/domain/bin/console:42

It seems like somewhere the argument 'profile' is automatically added twice but I cannot find this in the code.

Our yaml file did not change, this is our yaml file (partially):

gos_web_socket: authentication: enable_authenticator: true providers: session: session_handler: 'session.handler.pdo' firewalls: user server: port: '%env(WEBSOCKET_SERVER_PORT)%' #The port the socket server will listen on host: 0.0.0.0 #The host ip to bind to router: resources: - '%kernel.project_dir%/config/pubsub/routing.yaml' ping: services: - name: 'pdo' type: 'pdo' # periodically ping the mysql server, keeping the connection active in case of 24 hrs (mysql wait_timeout) inactivity

Question: is the latest release (3.15) compactible with symfony 6.4? This is not clear to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions