Plesk

Installing, updating or removing extensions in Plesk throws error: file segments is not readable

Symptoms

Cause

Segment files are missing or corrupted.

Resolution

Reinstall Plesk Catalog extension and recreate index files:

For Plesk on Linux:

  1. Connect to the server via SSH

  2. 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/* (path is for Debian-based distributions only)

  3. Reinstall Plesk Extension Catalog with the following command:

    # plesk bin extension -i catalog

  4. Recreate the indexes:

    # plesk daily SearchIndex

For Plesk on Windows:

  1. Connect to the server via RDP

  2. Delete all files in the folders %plesk_dir%varsearch and %plesk_dir%varmodulescatalogsearch

  3. Reinstall Plesk extension catalog with the following command:

    plesk bin extension -i catalog

  4. Recreate the indexes:

    plesk daily SearchIndex

    plesk bin extension --exec catalog update-index.php