Watchdog CRON run error

Christopher McBride

Basic Pleskian
Hi,

I've installed the latest version of Plesk 9.3 on a CentOS x86_64 box with all updates installed.

Mostly everything is working as expected, but each night when the Watchdog task runs, I get three failure emails:

Warning: require_once(modules/watchdog/wdcplib.php): failed to open stream: No such file or directory in /usr/local/psa/libexec/modules/watchdog/cp/clean-events on line 4

Fatal error: require_once(): Failed opening required 'modules/watchdog/wdcplib.php' (include_path='.:') in /usr/local/psa/libexec/modules/watchdog/cp/clean-events on line 4


The same for:
/usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats and
/usr/local/psa/libexec/modules/watchdog/cp/clean-sysstats

wdcplib.php is not located in /usr/local/psa/libexec/modules/watchdog, but is in /usr/local/psa/admin/plib/modules/watchdog/wdcplib.php

Has anyone else came across this?
 
Try to reinstall psa-watchdog package. Remove it first with

rpm -e psa-watchdog

and install it back with

/usr/local/psa/admin/sbin/autoinstaller
 
Still the same error occurs.

I believe the problem is that the watchdog is simply looking in the wrong directory for wdcplib.php.

It should be looking in /usr/local/psa/admin/plib/modules/watchdog/, but it is being run from /usr/local/psa/libexec/modules/watchdog which, when using the relative path shown in the error, it's failing as it can't find it.


Would a simple symlink work?
 
Here is default installation Plesk 9.3.0 to Centos 5 x86_64 server:

[root@plesk930 ~]# ll /usr/local/psa/admin/plib/modules/watchdog/
total 164
-rw-r--r-- 1 root root 1743 Dec 30 06:20 configure.php
-rw-r--r-- 1 root root 415 Dec 30 06:20 conf.php
-rw-r--r-- 1 root root 3847 Dec 30 06:20 DiskEditForm.php
-rw-r--r-- 1 root root 3415 Dec 30 06:20 Disk.php
-rw-r--r-- 1 root root 10335 Dec 30 06:20 DisksList.php
-rw-r--r-- 1 root root 623 Dec 30 06:20 help_topics.php
-rw-r--r-- 1 root root 1127 Dec 30 06:20 localelib.php
-rw-r--r-- 1 root root 975 Dec 30 06:20 locale.php
drwxr-xr-x 3 root root 4096 Apr 3 04:51 locales
-rw-r--r-- 1 root root 607 Dec 30 06:20 preaction.php
-rw-r--r-- 1 root root 2815 Dec 30 06:20 PreferencesForm.php
-rw-r--r-- 1 root root 4287 Dec 30 06:20 SecurityScanForm.php
-rw-r--r-- 1 root root 3903 Dec 30 06:20 ServiceEditForm.php
-rw-r--r-- 1 root root 5311 Dec 30 06:20 Service.php
-rw-r--r-- 1 root root 9583 Dec 30 06:20 ServicesList.php
-rw-r--r-- 1 root root 4095 Dec 30 06:20 StatsForm.php
-rw-r--r-- 1 root root 3007 Dec 30 06:20 UForm.php
drwxr-xr-x 2 root root 4096 Dec 30 06:20 ui
-rw-r--r-- 1 root root 13751 Dec 30 06:20 wdcplib.php
-rw-r--r-- 1 root root 623 Dec 30 06:20 WDForm.php
-rw-r--r-- 1 root root 6415 Dec 30 06:20 wdlib-demo.php
-rw-r--r-- 1 root root 36815 Dec 30 06:20 wdlib.php
-rw-r--r-- 1 root root 511 Dec 30 06:20 WDUIPointer.php

[root@plesk930 ~]# ll /usr/local/psa/libexec/modules/watchdog
total 16
drwxr-xr-- 2 root psaadm 4096 Apr 3 04:51 configure
drwxr-xr-- 2 root psaadm 4096 Apr 3 04:51 cp
drwxr-xr-- 2 root psaadm 4096 Apr 3 04:51 init
drwxr-xr-- 2 root psaadm 4096 Apr 3 04:51 security

[root@plesk930 ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)

[root@plesk930 ~]# rpm -q psa-watchdog
psa-watchdog-2.0.3-cos5.build93091230.06

Do you have the same structure?
 
[root@servervhosts]# ll /usr/local/psa/admin/plib/modules/watchdog/
total 164
-rw-r--r-- 1 root root 1743 Dec 30 00:20 configure.php
-rw-r--r-- 1 root root 415 Dec 30 00:20 conf.php
-rw-r--r-- 1 root root 3847 Dec 30 00:20 DiskEditForm.php
-rw-r--r-- 1 root root 3415 Dec 30 00:20 Disk.php
-rw-r--r-- 1 root root 10335 Dec 30 00:20 DisksList.php
-rw-r--r-- 1 root root 623 Dec 30 00:20 help_topics.php
-rw-r--r-- 1 root root 1127 Dec 30 00:20 localelib.php
-rw-r--r-- 1 root root 975 Dec 30 00:20 locale.php
drwxr-xr-x 3 root root 4096 Apr 13 11:03 locales
-rw-r--r-- 1 root root 607 Dec 30 00:20 preaction.php
-rw-r--r-- 1 root root 2815 Dec 30 00:20 PreferencesForm.php
-rw-r--r-- 1 root root 4287 Dec 30 00:20 SecurityScanForm.php
-rw-r--r-- 1 root root 3903 Dec 30 00:20 ServiceEditForm.php
-rw-r--r-- 1 root root 5311 Dec 30 00:20 Service.php
-rw-r--r-- 1 root root 9583 Dec 30 00:20 ServicesList.php
-rw-r--r-- 1 root root 4095 Dec 30 00:20 StatsForm.php
-rw-r--r-- 1 root root 3007 Dec 30 00:20 UForm.php
drwxr-xr-x 2 root root 4096 Apr 13 11:03 ui
-rw-r--r-- 1 root root 13751 Dec 30 00:20 wdcplib.php
-rw-r--r-- 1 root root 623 Dec 30 00:20 WDForm.php
-rw-r--r-- 1 root root 6415 Dec 30 00:20 wdlib-demo.php
-rw-r--r-- 1 root root 36815 Dec 30 00:20 wdlib.php
-rw-r--r-- 1 root root 511 Dec 30 00:20 WDUIPointer.php
[root@servervhosts]# ll /usr/local/psa/libexec/modules/watchdog
total 16
drwxr-xr-- 2 root psaadm 4096 Apr 13 11:03 configure
drwxr-xr-- 2 root psaadm 4096 Apr 13 11:03 cp
drwxr-xr-- 2 root psaadm 4096 Apr 13 11:03 init
drwxr-xr-- 2 root psaadm 4096 Apr 13 11:03 security
[root@servervhosts]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@servervhosts]# rpm -q psa-watchdog
psa-watchdog-2.0.3-cos5.build93091230.06
 
Last edited:
Try to create symlink there and update thread with result, please.
 
It should be from /etc/cron.daily/50plesk-daily

# install_autoreport daily
/usr/local/psa/admin/bin/php /usr/local/psa/admin/plib/report/autoreport.php --auto daily >/dev/null 2>&1
 
Still the same three error emails overnight after creating the symlink in /usr/local/psa/libexec/modules/watchdog

I've tried running /etc/cron.daily/50plesk-daily and /usr/local/psa/admin/bin/php /usr/local/psa/admin/plib/report/autoreport.php --auto daily >/dev/null 2>&1 independantly, but the first seems to be unresponsive and I ended up killing it after 15 minutes, the second just executes with no errors or emails.
 
Hi Igor - I'm still recieving these failure emails each night.

Rather than turn the watchdog off, I would really like the error fixed.

Warning: require_once(modules/watchdog/wdcplib.php): failed to open stream: No such file or directory in /usr/local/psa/libexec/modules/watchdog/cp/clean-sysstats on line 4

Fatal error: require_once(): Failed opening required 'modules/watchdog/wdcplib.php' (include_path='.:') in /usr/local/psa/libexec/modules/watchdog/cp/clean-sysstats on line 4

Warning: require_once(modules/watchdog/wdcplib.php): failed to open stream: No such file or directory in /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats on line 4

Fatal error: require_once(): Failed opening required 'modules/watchdog/wdcplib.php' (include_path='.:') in /usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats on line 4

Warning: require_once(modules/watchdog/wdcplib.php): failed to open stream: No such file or directory in /usr/local/psa/libexec/modules/watchdog/cp/clean-events on line 4

Fatal error: require_once(): Failed opening required 'modules/watchdog/wdcplib.php' (include_path='.:') in /usr/local/psa/libexec/modules/watchdog/cp/clean-events on line 4

Can you offer any further advice please?
 
Do you really have file /usr/local/psa/admin/plib/modules/watchdog/wdcplib.php there? Did you tried completely reinstall psa-watchdog package?
 
Yes - reinstalling was the first thing you suggested and the same problem occurred.

The file is in the correct directory:
/usr/local/psa/admin/plib/modules/watchdog/:
total 176
drwxr-xr-x 4 root root 4096 Apr 13 11:03 .
drwxr-xr-x 12 root root 4096 Apr 13 11:03 ..
-rw-r--r-- 1 root root 1743 Dec 30 00:20 configure.php
-rw-r--r-- 1 root root 415 Dec 30 00:20 conf.php
-rw-r--r-- 1 root root 3847 Dec 30 00:20 DiskEditForm.php
-rw-r--r-- 1 root root 3415 Dec 30 00:20 Disk.php
-rw-r--r-- 1 root root 10335 Dec 30 00:20 DisksList.php
-rw-r--r-- 1 root root 623 Dec 30 00:20 help_topics.php
-rw-r--r-- 1 root root 1127 Dec 30 00:20 localelib.php
-rw-r--r-- 1 root root 975 Dec 30 00:20 locale.php
drwxr-xr-x 3 root root 4096 Apr 13 11:03 locales
-rw-r--r-- 1 root root 607 Dec 30 00:20 preaction.php
-rw-r--r-- 1 root root 2815 Dec 30 00:20 PreferencesForm.php
-rw-r--r-- 1 root root 4287 Dec 30 00:20 SecurityScanForm.php
-rw-r--r-- 1 root root 3903 Dec 30 00:20 ServiceEditForm.php
-rw-r--r-- 1 root root 5311 Dec 30 00:20 Service.php
-rw-r--r-- 1 root root 9583 Dec 30 00:20 ServicesList.php
-rw-r--r-- 1 root root 4095 Dec 30 00:20 StatsForm.php
-rw-r--r-- 1 root root 3007 Dec 30 00:20 UForm.php
drwxr-xr-x 2 root root 4096 Apr 13 11:03 ui
-rw-r--r-- 1 root root 13751 Dec 30 00:20 wdcplib.php
-rw-r--r-- 1 root root 623 Dec 30 00:20 WDForm.php
-rw-r--r-- 1 root root 6415 Dec 30 00:20 wdlib-demo.php
-rw-r--r-- 1 root root 36815 Dec 30 00:20 wdlib.php
-rw-r--r-- 1 root root 511 Dec 30 00:20 WDUIPointer.php
 
Well. Not sure how can I help without access to server and detailed investigation. Therefore I can suggest only contact support team.
 
OK - I've given in to the fact that I can't get it working - and don't particularly want to pay for support for a non-required feature.

Can you advise how to turn these tasks off?

I have already disabled the scheduled taks for the root user running:

/usr/local/psa/libexec/modules/watchdog/cp/clean-sysstats
/usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats day
/usr/local/psa/libexec/modules/watchdog/cp/clean-events

However, the still ran last night and send the error emails!


Thanks
 
Back
Top