Articles in this section

When updating or repairing Plesk, the Premium Anti-Virus for Servers extension is attempted to be installed automatically

kb: bug Plesk for Linux

Applicable to:

  • Plesk for Linux

Symptoms

  • After updating Plesk to 18.0.52, the extension "Premium Anti-Virus for Servers" (to which the Premium Antivirus component is converted in that Plesk version) is installed automatically.
  • An error that is similar to the following is present within the update log of the server:

    CONFIG_TEXT: 2023-02-27-12-40-32_InstallExtensionPremiumAv.php failed with code 1 
    [extension/premium-av] The execution of pre-install.php has failed with the following message: 
    Premium Antivirus can't be installed when there is not a mail server installed.

  • Before updating, the Premium Antivirus component was not installed but, however the following record existed in the Plesk database:

    # plesk db "select * from ServiceNodeConfiguration where name='virusfilter'"
    +---------------+------------+-------------+-------+
    | serviceNodeId | section | name | value |
    +---------------+------------+-------------+-------+
    | 1 | mailServer | virusfilter | drweb |
    +---------------+------------+-------------+-------+

Cause

The Plesk Premium Antivirus (DrWeb) component was previously removed when Premium Antivirus for Servers by Dr.Web was uninstalled, but at the time of removal it was still being selected at Plesk > Tools & Settings > Mail Server Settings > Antivirus.

This situation creates incorrect leftover records in the Plesk database, which then triggers a reinstallation attempt for the Plesk Premium Antivirus (DrWeb) component, due to which this is considered a bug with ID PPPM-14005.

The bug in question will be resolved in future versions of Plesk and its extensions and when that happens, the result will be published in the Change Log for Plesk Obsidian

Note: Please click the Follow button near the article headline to stay informed - you will receive an update via email when the bug is fixed

Resolution

Until the bug is resolved permanently, you may apply one of the following workarounds before updating Plesk:

Click on a section to expand

Remove the leftover records in the Plesk DB

1. Log into your server via SSH
2. Backup up the Plesk database (just in case):

# plesk db dump psa > /root/psa-before-virusfilter.sql

3. Remove the Plesk Premium Antivirus (DrWeb) leftover records about virusfilter=drweb from the Plesk database (ServiceNodeConfiguration table) by executing the following commands:

# plesk installer remove --components drweb
plesk db 'delete from ServiceNodeConfiguration where name="virusfilter" and value="drweb"'


At that point, you should be able to repeat any Plesk update or upgrade actions without encountering the error.

Install the Premium Antivirus component

Note: It is necessary for you to have a mail server installed on the server in order to execute this workaround.

1. Log into Plesk

2. Install the Premium Antivirus for Servers extension for Plesk

3. Go to Tools & Settings > Mail Server Settings > Antivirus and set the antivirus to None

4. Uninstall the Premium Antivirus for Servers extension for Plesk

5. Proceed with updating Plesk

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.