• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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