samynw / pimcore-maintenance-toolbox

This provides a set of usefull tools for the Pimcore maintenance
MIT License
2 stars 0 forks source link

Command "maintenance:release-lock" is not defined. #6

Closed kaurov closed 2 years ago

kaurov commented 2 years ago

What can be a reason of following error mesage?

❯ php bin/console maintenance:release-lock versioncleanup

  Command "maintenance:release-lock" is not defined.

  Did you mean one of these?
      maintenance
      maintenance:list

I see you successfully registered command ReleaseLockCommand :

    # auto-register all commands as services
    Samynw\MaintenanceToolboxBundle\Command\:
        resource: '../../Command/*'
        tags: ['console.command']

But still it causes the error althougth :list command works fine: php bin/console maintenance:list

Versions: php8 "pimcore/data-hub": "^1.2", "pimcore/pimcore": "^10.0", "samynw/pimcore-maintenance-toolbox": "^2.0"

samynw commented 2 years ago

Hi @kaurov !

The release-lock is not enabled by default, as releasing locks might result into unexpected behaviour (such as 2 jobs running parallel). You can enable the command in the extension manager through the Pimcore user interface.

See Configuration

Look for the "edit" icon next to the bundle: Selection_999(842)

Does this resolve your issue?