Sheduled jobs doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • martin
    Junior Member
    • Feb 2016
    • 2

    Sheduled jobs doesn't work

    Hi ,

    It seems that scheduled job are not working,

    I have no log (my crontab is propely set ). In data/logs I have this issue :

    Unable to create file data/cache/application/cronLastRunTime.php because Permission denied

    However my cache folder is in 775 and my application folder is in 755 so should be ok.

    ​any idea ?

    Martin
  • alasdaircr
    Active Community Member
    • Aug 2014
    • 525

    #2
    Does the file exist already? What are the permissions on it?

    What user owns data/cache/application/ ? Is it the same as the one your web server and cron job runs under?

    Comment

    • martin
      Junior Member
      • Feb 2016
      • 2

      #3
      thanks for the response, alasdaircr. No, the file doesn't exist. And it seems that the application folder owner is not the same as the user who launch cron jobs. So I should probably change the owners of application folder ?

      Comment

      • alasdaircr
        Active Community Member
        • Aug 2014
        • 525

        #4
        Yes, otherwise the cron user can't create the file

        Comment

        • yuri
          Member
          • Mar 2014
          • 8624

          #5
          You can setup cron for user:
          crontab -u www-data -e
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          Working...