Mautic Community Forums

cron job segment issue

Hi,

I am trying to configure cron job for segment but I get this error when I use this command



mypathl/app/console mautic:segment:update --env=prod



PHP Warning: fopen( my path/

/app/cache/prod/…/run/sf.mautic-segments-update.5415eaf7823c0a036b252ba

8a9f1f4065263e1c60a23cacf6b5851144245b8c9.lock): failed to open stream:

Permission denied in my path/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 123

PHP Warning: flock() expects parameter 1 to be resource, boolean given

in my path/app/bundles/Core

Bundle/Command/ModeratedCommand.php on line 124

Failed to lock my path/app/

cache/prod/…/run/sf.mautic-segments-update.5415eaf7823c0a036b252ba8a9f1

f4065263e1c60a23cacf6b5851144245b8c9.lock.

Script in progress. Can force execution by using --force.

Hi,
I am trying to configure cron job for segment but I get this error when I use this command

mypathl/app/console mautic:segment:update --env=prod

PHP Warning: fopen( my path/
/app/cache/prod/…/run/sf.mautic-segments-update.5415eaf7823c0a036b252ba
8a9f1f4065263e1c60a23cacf6b5851144245b8c9.lock): failed to open stream:
Permission denied in my path/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 123
PHP Warning: flock() expects parameter 1 to be resource, boolean given
in my path/app/bundles/Core
Bundle/Command/ModeratedCommand.php on line 124
Failed to lock my path/app/
cache/prod/…/run/sf.mautic-segments-update.5415eaf7823c0a036b252ba8a9f1
f4065263e1c60a23cacf6b5851144245b8c9.lock.
Script in progress. Can force execution by using --force.