Cronjobs not running/updating

Recently a friend asked me for help. He was having the same problem.

I was informed about the CyberCP code and it actually has a bug that only happens on Debian, Ubuntu or Ubuntu-based distros.

To fix the error you are editing the file /usr/local/CyberCP/websiteFunctions/website.py
on line 3579 you will put the following code

        if ProcessUtilities.decideDistro() == ProcessUtilities.ubuntu or ProcessUtilities.decideDistro() == ProcessUtilities.ubuntu20:
            command = 'systemctl restart cron'
            ProcessUtilities.executioner(command)

Add the same code on line 3539.

This will make cronjob restart every time there is a change.

Restart CyberCP after changes

systemctl restart lscpd

This is a patchwork fix until an update fixes this

1 Like