• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved /opt/psa/libexec/modules/watchdog missing - crontab errors

mit

New Pleskian
Hi Plesk-Friends,

First, merry Christmas to everyone.

I used the time to upgrade my VPS from ubuntu 18.04 (with latest Plesk version) to ubuntu 22.04.1 (with latest Plesk version). I decided to take a backup of my old VPS, re-install the VPS, and restore the backup. Everything went smooth (with some minor situations I managed to solve).

However, now I am getting crontab errors for different files in /opt/psa/libexec/modules/watchdog/cp/

Like:
/bin/sh: 1: /opt/psa/libexec/modules/watchdog/cp/clean-events: not found
/bin/sh: 1: /opt/psa/libexec/modules/watchdog/cp/pack-sysstats: not found
/bin/sh: 1: /opt/psa/libexec/modules/watchdog/cp/pack-sysstats: not found

(and some more)

I checked the path, and only /opt/psa/libexec/modules/ is available (but empty).
Crontab however shows a list with jobs on that cp folder:

:/opt/psa/libexec/modules# crontab -l

#MAILTO=""

0 1 * * 1 /opt/psa/libexec/modules/watchdog/cp/secur-check
0 1 * * 1 /opt/psa/libexec/modules/watchdog/cp/send-report weekly
10 1 * * * /opt/psa/libexec/modules/watchdog/cp/clean-sysstats
15 1 * * * /opt/psa/libexec/modules/watchdog/cp/pack-sysstats day
15 1 * * 1 /opt/psa/libexec/modules/watchdog/cp/pack-sysstats week
15 1 1 * * /opt/psa/libexec/modules/watchdog/cp/pack-sysstats month
15 1 1 * * /opt/psa/libexec/modules/watchdog/cp/pack-sysstats year
20 1 * * * /opt/psa/libexec/modules/watchdog/cp/clean-events
0 3 * * 7 /opt/psa/libexec/modules/watchdog/cp/clean-reports
MAILTO="<Removed>"

My question, is /opt/psa/libexec/modules/watchdog/cp/ with the files supposed to exist (and missing files is the issue), or the cronjobs are orphan (and I should delete those)?

I tried to uninstall the watchdog module, but no luck:
/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --remove-component watchdog
/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --install-component watchdog

Any idea?

Thanks,
MIT

PS: Plesk Obsidian Version 18.0.48
 
Hey Maarten,
Great, thank you. I see... In this case, I will simply disable those cron jobs.

Thanks again,
Mat
 
Great, thank you. I see... In this case, I will simply disable those cron jobs.
I'd also recommend to run
# /usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --remove-component watchdog
again. I am not sure why the software allowed the installation in the first place as Watchdog is not supported on that OS.
 
  • Like
Reactions: mit
Back
Top