Symptoms
-
The scheduled task
/usr/local/psa/libexec/modules/watchdog/cp/secur-check
fails with:ERR [panel] No entry is registered for key 'container':
0: /usr/local/psa/admin/plib/vendor/plesk/zf1/library/Zend/Registry.php:147
Zend_Registry::get(string 'container')
1: /usr/local/psa/admin/plib/Plesk/Log/UtilExec.php:34
Plesk_Log_UtilExec->start(string 'rsecurcheck', array, string '', boolean false)
2: /usr/local/psa/admin/plib/common_func.php:123
util_exec(string 'rsecurcheck', array, array, string 'msg', string 'watchdog', boolean true)
3: /usr/local/psa/admin/plib/common_func.php:35
mod_smart_exec(string 'watchdog', string 'rsecurcheck', array, array, string 'msg')
4: /usr/local/psa/admin/plib/modules/watchdog/wdlib.php:1157
wd__exec_wd_util(string 'rsecurcheck', array, array)
5: /usr/local/psa/libexec/modules/watchdog/cp/secur-check:10
ERROR: Zend_Exception: No entry is registered for key 'container' (Registry.php:147) -
Plesk Administrator receives an email notification with the same error message.
Cause
Product issue:
-
#PPPM-13385 "Emails with daily reports from the “Watchdog” extension now contain correct data instead of error messages again."
Fixed in:- Plesk Obsidian 08 February 2022 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
As a workaround, apply a custom fix:
-
Connect to the Plesk server via SSH.
-
Download the patched file in zip:
# wget https://plesk.zendesk.com/hc/article_attachments/12376925990039/wdcplib.zip
-
Extract the file:
# unzip wdcplib.zip
-
Rename the original file:
# mv /usr/local/psa/admin/plib/modules/watchdog/wdcplib.php /usr/local/psa/admin/plib/modules/watchdog/wdcplib.php.orig
-
Move the patched file:
# mv wdcplib.php /usr/local/psa/admin/plib/modules/watchdog