eZ Platform Discussions

Legacy Bridge - Content Approval Workflow - "Failed to steal cronjob part lock"


#1

Hi All,
I am using eZ Platform 2.2 Community Edition + Legacy Bridge + Netgen Admin UI and I have followed the following guide http://share.ez.no/learn/ez-publish/creating-a-simple-custom-workflow-event to build a simple content approval workflow.
As stated at the end of this guide(https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Workflow-events/Approve) once the approver has approved a content, the “cronjobs/workflow.php” cronjob must be run for the content to be published completely.

If i run the following command:

bin/console ezpublish:legacy:script runcronjobs.php -s ngadminui frequent

I get the following output:

Running script ‘runcronjobs.php’ in eZ Publish legacy context
Using siteaccess ngadminui for cronjob
Running cronjob part ‘frequent’
Running cronjobs/notification.php at: 31/07/2018 8:35 amFailed to steal cronjob part lock.
Forcing to steal the mutex lock: cronjobs/notification.php
Stealing mutex. Old process has run too long.
Completing cronjobs/notification.php at: 31/07/2018 8:35 am
Elapsed time: 00:00:00
Running cronjobs/workflow.php at: 31/07/2018 8:35 am
Forcing to steal the mutex lock: cronjobs/workflow.phpFailed to steal cronjob part lock.
Stealing mutex. Old process has run too long.
Completing cronjobs/workflow.php at: 31/07/2018 8:35 am
Elapsed time: 00:00:00

There are a few eZ Publish forum posts regarding this problem(eg http://share.ez.no/forums/developer/runcrnjobs.php-mutex-stealing) but they resolve it setting safe_mode=On. But such php.ini directive has been removed for php7.

How can I resolve this issue?

Thanks