I'm running my cronjob using n98-magerun (for testing purposes):

./n98-magerun2.phar sys:cron:run my_cron_job

However, the job is not running, and the following error occurs:


Circular dependency: Magento\Backend\Model\Auth\Session depends on Magento\Backend\Model\Authorization\RoleLocator and vice versa.

I've flushed caches & var/generation, so it's not that. Has anyone come across this issue?

1 Answer 1


It turns out I was using an old version of n98-magerun. Updating to the latest version fixed this issue:

./n98-magerun2.phar self-update

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.