Applicable to:
- Plesk for Linux
Symptoms
- Plesk Obsidian running on a Linux-based operating system
- The Plesk administrator receives unusual email notifications related to the execution of the hourly cron jobs.
- During the hourly task execution the following output is sent to the Plesk admin email as an email notification:
CONFIG_TEXT: Subject: Cron run-parts /etc/cron.hourly
Body:
/etc/cron.hourly/0anacron:
/etc/cron.hourly/50plesk-hourly:
/etc/cron.hourly/awstats:
/etc/cron.hourly/plesk-phpp-cleanuper:
Cause
Corrupted or altered /usr/bin/run-parts
script (most commonly as a result of interrupted operating system package updates).
Resolution
Note: Nothing on the side of Plesk edits or has ever edited the run-parts
script of any Linux operating system, due to which the resolution of the issue involves the reinstallation of core operating system packages.
1. Connect to the server via SSH as the root user
2. Find the exact package that is responsible for the creation of the current run-parts
file on your server and replace it by using the proper steps for your operating system:
Click on a section to expand
1. Find the exact package that creates this file:
# dpkg -S /bin/run-parts
debianutils: /bin/run-parts
2. Download the same package as a .deb
file by executing the following command:
Note: This command needs sudo even if you are executing it as the root user
# sudo apt download debianutils
3. Force the overwriting of the currently used package files with the ones from the .deb file you just downloaded by executing a command that is similar to the following:
Note: Replace /root/debianutils_4.11.2_amd64.deb
with the exact file that was downloaded while executing the previous command in your case
# dpkg --force-overwrite -i /root/debianutils_4.11.2_amd64.deb
1. Find the exact package that creates this file:
# dpkg -S /usr/bin/run-parts
debianutils: /usr/bin/run-parts
2. Download the same package as a .deb
file by executing the following command:
Note: This command needs sudo even if you are executing it as the root user
# sudo apt download debianutils
3. Force the overwriting of the currently used package files with the ones from the .deb file you just downloaded by executing the following command:
# dpkg --force-overwrite -i debianutils_5.5-1ubuntu2_amd64.deb
1. Find the exact package that creates this file:
# rpm -qf /usr/bin/run-parts
crontabs-1.11-6.20121102git.el7.noarch
2. Remove the mentioned package without its dependencies by executing the following command:
# rpm -e --nodeps crontabs-1.11-6.20121102git.el7.noarch
3. Reinstall the package that was just removed by executing the following command:
Note: On June 30, 2024, CentOS Linux 7 reached End of Life (EOL), due to which you may have to obtain the relevant package from an unofficial repository and reinstall it entirely manually (without using an automatic installer).
# yum install crontabs-1.11-6.20121102git.el7.noarch
/usr/bin/run-parts
(or /bin/run-parts
in the case of Debian) with the original one from another server.Centos 7 OS, Ubuntu 22 OS and Debian 11 OS default contents of run-parts are attached as run-parts-debian and run-parts-rhel at the bottom of the article
Comments
1 comment
The last step fail (yum install crontabs-1.11-6.20121102git.el7.noarch)... error 404. How can I solve it? I have done step 1 and 2 and now I find that I cannot run step 3 on my CentOS.
Please sign in to leave a comment.