Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
-
On managing Plesk, for example:
- using the search bar in top left corner
- installing Plesk updates
- installing, updating or removing extensions
one of the following error is shown:
The extension %%name%% was removed with errors: Error: GraphQL error: External exception. File '/opt/psa/var/search/segments_4b' is not readable. "
PHP Warning: fread(): Length parameter must be greater than 0; File: /opt/psa/admin/plib/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Storage/File/Filesystem.php, Line: 148
mmap() failed: [12] Cannot allocate memory
PHP Fatal error: Out of memory (allocated 16777216) (tried to allocate 4512838288218564640 bytes) in /opt/psa/admin/plib/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Storage/File/Filesystem.php on line 152
ERR [extension/revisium-antivirus] Execution of
/opt/psa/admin/plib/modules/revisium-antivirus/scripts/pre-uninstall.php
failed with exit code 1 and the output:
ERR [panel] SQLSTATE[HY000]: General
error: 1 no such table: pool:
0:
/opt/psa/admin/plib/modules/revisium-antivirus/library/Model/Pool.php:95
PDO->prepare(string 'SELECT count(*) FROM pool WHERE
status IN (2, 3)')
...
3:
/opt/psa/admin/plib/modules/revisium-antivirus/scripts/pre-uninstall.php:9
ERROR: PDOException: SQLSTATE[HY000]: General error: 1 no such
table: pool (Pool.php:95)
Wrong segments.gen file format
Wrong TermInfoFile file format
Wrong norms file format.
-
Accessing Plesk extensions (e.g. ImunifyAV) show an empty page or an error 500
-
One of the following errors might be shown in the Plesk log file either
/var/log/plesk/panel.log
(Linux) or%plesk_dir%admin\logs\php_error.log
(Windows):ERR [panel] Unsupported segments file format:
0: /opt/psa/admin/plib/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Index.php:276
ZendSearch\Lucene\Index->_readSegmentsFile()
1: /opt/psa/admin/plib/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Index.php:420
ZendSearch\Lucene\Index->__construct(string '/opt/psa/var/modules/catalog/search', boolean false)
...
6: /opt/psa/admin/plib/modules/catalog/scripts/update-index.php:12
ERROR: ZendSearch\Lucene\Exception\InvalidFileFormatException: Unsupported segments file format (Index.php:276)
...
ERR [1] Exception: PHP Warning: fread(): Length parameter must be greater than 0; File: /opt/psa/admin/plib/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Storage/File/Filesystem.php, Line: 148
file: /opt/psa/admin/plib/Smb/Exception/Syntax.php
line: 56
code: 0
trace: #0 (0): Smb_Exception_Syntax::handleError(integer '2', string 'fread(): Length parameter must be greater than 0', string '/opt/psa/admin/plib/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Storage/File/Filesystem.php', integer '148', array)
#1 /opt/psa/admin/plib/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Storage/File/Filesystem.php(148): fread(resource, integer '-5546308971613470365')
ERROR: Out of memory (allocated 16777216) (tried to allocate 4080523509242931280 bytes) (Filesystem.php:152)
ERR [1] /opt/psa/admin/bin/autoinstaller '--select-product-id' 'plesk' '--select-release-current' '--upgrade-installed-components' failed with message: Downloading file products.inf3: 0%
Downloading file products.inf3: 100% was finished.
Downloading file plesk.inf3: 0%
...
Installing packages
ERROR: Failed to install or upgrade the extension 'SEO Toolkit' (package: xovi):
mmap() failed: [12] Cannot allocate memory
PHP Fatal error: Out of memory (allocated 16777216) (tried to allocate 4080523509242931280 bytes) in /opt/psa/admin/plib/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Storage/File/Filesystem.php on line 152
Warning! Not all packages were installed.
... -
The segments file might be missing:
# ls -la /opt/psa/var/search/segments_4b
ls: cannot access /opt/psa/var/search/segments_4b: No such file or directory -
One of the following messages might be shown in the
/var/log/plesk/install/autoinstaller3.log
or in theC:\ParallelsInstaller\autoinstaller3.log
:Wrong segments.gen file format
Wrong TermInfoFile file format
Wrong norms file format.
Extension package ext-xovi 1.1.4-43 installation failed with code 255, stdout: ~empty
stderr:
mmap() failed: [12] Cannot allocate memory
PHP Fatal error: Out of memory (allocated 16777216) (tried to allocate 4080523509242931280 bytes) in /opt/psa/admin/plib/vendor/zendframework/zendsearch/library/ZendSearch/Lucene/Storage/File/Filesystem.php on line 152
Warning! Not all packages were installed.
Cause
Segment files are missing or corrupted.
Resolution
Reinstall Plesk Catalog extension and recreate index files:
-
Connect to the server via SSH
-
Remove the index files:
# rm -rf /usr/local/psa/var/search/*
# rm -rf /usr/local/psa/var/modules/catalog/search/*
# rm -rf /opt/psa/var/search/*
-
Reinstall Plesk Extension Catalog with the following command:
# plesk bin extension -i catalog
-
Recreate the indexes:
# plesk daily SearchIndex
-
Connect to the server via RDP
-
Delete all files in the folders
%plesk_dir%var\search
and%plesk_dir%var\modules\catalog\search
-
Reinstall Plesk extension catalog with the following command:
plesk bin extension -i catalog
-
Recreate the indexes:
plesk daily SearchIndex
plesk bin extension --exec catalog update-index.php
Comments
0 comments
Please sign in to leave a comment.