Symptoms
-
When opening the Server Information page at Tools & Settings, the page fails to load with:
PLESK_ERROR: ERROR: PleskFatalException: StatInfo->getActiveDomainsNumber() failed: devices number <= 0
Additionally, an exception has occurred while trying to report this error: PleskFatalException
StatInfo->getProductVersion failed: devices number <= 0 (class.SystemStatisticsForm.php:123) -
Installation of a Plesk license fails with:
PLESK_ERROR: ERR [panel] StatInfo->getProductVersion failed: devices number <= 0:
0: /usr/local/psa/admin/plib/functions.php:76 getFullProductNameVersion()
1: /usr/local/psa/admin/plib/Plesk/Title.php:27 Plesk_Title::get()
2: /usr/local/psa/admin/plib/functions.php:363 go_to(string ‘/?start_page=%2Fplesk%2Flicense%2F’, string ‘top’)
3: /usr/local/psa/admin/htdocs/server/key_upload.php:134
ERR [1] StatInfo->getProductVersion failed: devices number <= 0 -
One of the following error messages may appear in
/var/log/plesk/panel.log
:PHP Warning: Invalid argument supplied for foreach(); File: /usr/local/psa/admin/plib/ExtendedServerInfo.php, Line: 1718
PHP Warning: A non-numeric value encountered; File: /usr/local/psa/admin/plib/StatInfo.php, Line: 406
-
When checking disk usage information about partitions used by Plesk and other partitions, there is a device or filesystem that cannot be detected:
# /usr/local/psa/admin/bin/sysinfo df-full
sysinfo: ERROR: system call statfs: Bad addressSystem error 14: Bad address
sysinfo: ERROR: system call statfs: Bad addressSystem error 14: Bad address
Cannot detect device or filesystem for /usr/share/cagefs-skeleton/usr/local/psa/admin/plib/modules/wp-toolkit/vendor/plesk/plesk-migrator/backend/lib/python/parallels/core/extras/cacert
Cause
Product issue:
-
#PPPM-11898 "In Plesk on CloudLinux, the “Server Information” page in Tools & Settings can no longer show the external Server Error 500."
Fixed in:- Plesk Obsidian 20 April 2021 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
As a workaround follow the steps below:
-
Connect to the Plesk server via SSH.
-
Find the defective device/filesystem using the command:
# /usr/local/psa/admin/bin/sysinfo df-full
In this example, the defective device/filesystem is:
System error 14: Bad address
Cannot detect device or filesystem for /usr/share/cagefs-skeleton/usr/local/psa/admin/plib/modules/wp-toolkit/vendor/plesk/plesk-migrator/backend/lib/python/parallels/core/extras/cacert -
Unmount it:
# umount /usr/share/cagefs-skeleton/usr/local/psa/admin/plib/modules/wp-toolkit/vendor/plesk/plesk-migrator/backend/lib/python/parallels/core/extras/cacert
If this is a CloudLinux server, additionally restart CageFS:
# service cagefs restart