Applicable to:
- Plesk for Linux
Symptoms
-
Plesk administrator receives the following email notifications every day:
CONFIG_TEXT: run-parts: /etc/cron.daily/imunify360-firewall exited with return code 127
CONFIG_TEXT: /usr/bin/flock -n /var/run/shrinker.lock /opt/alt/python35/bin/python3 /opt/alt/modsec-sdbm-util/bin/shrinker.py > /dev/null
flock: failed to execute /opt/alt/python35/bin/python3: No such file or directory
CONFIG_TEXT: /bin/sh: /opt/alt/python35/share/imunify360/scripts/update_components_versions.py: No such file or directory
-
Imunify360 is not installed: the extension does not appear in Plesk at Extensions > My Extensions.
Cause
Imunify360 daily tasks have not been removed along with Imunify360 extension.
Resolution
-
Connect to the Plesk server via SSH.
-
Remove the Imunify360 cron tasks:
-
on CentOS/RHEL-based distributions
# rm -f /etc/cron.daily/imunify360-firewall
# rm -f /etc/cron.d/waf_configurator
# rm -f /etc/cron.d/imunify-notifier
# rm -f /etc/cron.d/imunify_scan_schedule
-
on Debian/Ubuntu-based distributions
# apt-get purge imunify360*
-
Comments
6 comments
Having the same issue here, the suggested solution: apt-get purge imunify360*
does not solve it (still receiving daily cron emails)
Hi Bas de Bruin
You can check what other Imunify cron jobs are still running with the following command:
Then you can remove the files from the paths mentioned in the output.
Hi @...
Thank you. My UNIX knowledge is a little rusty si that why I am using Plesk. Apparently:
- un-installing Imunify doesn't delete these cron entries
- Plesk will not show these cron entries in the Scheduled tasks
Hi Bas de Bruin
>- un-installing Imunify doesn't delete these cron entries
Yes. Removing the extension does not remove the cron tasks. It is needed to remove them manually.
>- Plesk will not show these cron entries in the Scheduled tasks
Some of the package files are installed on the OS directly and thus not managed by Plesk, such as the cron jobs.
We had also some zombies of immunify in our cron:
So I deleted these cron jobs (like mentioned above in the KB article):
Hi DrehPunkt Support
Thanks for sharing the information with us, we've added these cron tasks to the article.
Please sign in to leave a comment.