Skip to main content

cron job disappearing

Comments

4 comments

  • cPanelLauren
    Based on this output your user is logging in and deleting the cron job from the crontab. It may not be you but it is your user. I'd suggest ensuring you don't have any scripts on the account that exhibit this behavior as well as ensure that the password is not shared with anyone else. Your provider should be able to check the cPanel access logs to determine if someone is logging in and doing this
    0
  • LuckyLucky
    Thanks for you answer. It is clearly not somebody who manually deletes the job. First because the people who have access to the account know about my issue and therefore would have raised it/stop doing it. And also because this happens at random time of the day inluding in the middle of the night. One suggestion that I received is that may be crontabs for multiple sites are using the same file and clashing? Does that make sens to you? Thanks
    0
  • LuckyLucky
    I've just noticed another thing. I had changed the email cron sends the reports to from the default user to my own email and it has reverted to the default user. email. So it's not just that the cron job disappears, it feels like the whole cron thing is resetting to default values of default user and empty list.
    0
  • cPanelLauren
    One suggestion that I received is that may be crontabs for multiple sites are using the same file and clashing? Does that make sens to you?

    crontab is separated per user not per domain all domain's within the same account would use the same crontab so no I don't see this as being possible part of the issue.
    So it's not just that the cron job disappears, it feels like the whole cron thing is resetting to default values of default user and empty list.

    It could be but this isn't behavior I've seen or heard of before, your provider would need to troubleshoot this. Definitively there is an issue with your user, has your provider ensured that there isn't a compromise on your account by checking the access logs? Ultimately, there's not a whole lot you're able to do without the provider in this instance, as they have root access to the server. Nothing cPanel does inherently would remove cron jobs unless you were manually removing them. Something they could do might be to set up an audit rule for your user's crontab to see if any further information might be garnered, they might also try reinstalling crontab as well as resetting your actual cron configuration to rule out potentially misconfiguration (i.e., if someone had previously set something like crontab some_file_name.ext to use that file as the source which would also reset the cron to whatever is in that file). As the cPanel user though I don't think this is really anything you can do, this would be up to your provider to manage.
    0

Please sign in to leave a comment.