0

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
0

1 Answer 1

0

Seems like SF 6.4.11 introduced a global --profile option to the console component, so I'd assume that the option isn't needed in this bundle anymore.

References: https://github.com/symfony/symfony/pull/52434 and https://github.com/symfony/symfony/issues/52433

I see you posted an issue on their repo; I haven't created a PR yet. I'm just using a local fork for now.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.