Articles in this section

Plesk inaccessible after enabling HTTP3 or Plesk Premium Antivirus cannot be enabled in Mail Server Settings

kb: bug kb: fixed Plesk for Linux

Symptoms

  • Premium Antivirus for Servers extension is installed

  • Plesk Premium Antivirus is selected in Tools & Settings > Mail Server Settings > Antivirus

  • Enabling HTTP3 returns the following error:

    # plesk bin http3_pref --enable -panel -nginx
    Execution failed.
    Command: pleskrc
    Arguments: Array
    (
    [0] => sw-cp-server
    [1] => try-reload
    )

    Details: Job for sw-cp-server.service failed.
    See "systemctl status sw-cp-server.service" and "journalctl -xe" for details.


    exit status 1

  • Accessing Plesk returns a 502 Bad Gateway error

  • The sw-cp-server service fails to start:

    # systemctl status sw-cp-server
    ● sw-cp-server.service - Startup script for Plesk control panel server
    Loaded: loaded (/usr/lib/systemd/system/sw-cp-server.service; enabled; vendor preset: disabled)
    Drop-In: /usr/lib/systemd/system/sw-cp-server.service.d
    └─respawn.conf
    Active: activating (auto-restart) (Result: exit-code) since Wed 2024-05-15 17:03:08 UTC; 1s ago
    Process: 2824712 ExecReload=/usr/sbin/sw-cp-serverd -q -t (code=exited, status=1/FAILURE)
    Process: 2825442 ExecStartPre=/usr/sbin/sw-cp-serverd -q -t (code=exited, status=1/FAILURE)
    Main PID: 2705176 (code=exited, status=0/SUCCESS)

  • The following error can be found when running journalctl -xeu sw-cp-server:

    CONFIG_TEXT: sw-cp-serverd[106784]: nginx: [emerg] duplicate listen options for 0.0.0.0:8443 in /etc/sw-cp-server/conf.d/http3_plesk.inc:1

  • Selecting Premium Antivirus for Servers in Tools & Settings > Mail Server Settings > Antivirus fails if HTTP3 is already enabled:

    PLESK_ERROR: Execution drwebmng has failed with exit code 1, stdout: , stderr: nginx: [emerg] duplicate listen options for 0.0.0.0:8443 in /etc/sw-cp-server/conf.d/http3_plesk.inc:1 nginx: configuration file /etc/sw-cp-server/config test failed Unable to setup sw-cp-server to receive connections from drweb.

Cause

Product issue:

  • #PPPM-14424 "Enabling HTTP3 no longer crashes the Plesk panel if Plesk Premium Antivirus was enabled."
    Fixed in:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround
Enable HTTP3 for websites only
  1. Connect to the server via SSH

  2. Disable panel HTTP3:

    # plesk bin http3_pref --disable -panel

  3. Enable HTTP3 for websites:

    # plesk bin http3_pref --enable -nginx

Disable HTTP3
  1. Connect to the server via SSH

  2. Disable HTTP3:

    # plesk bin http3_pref --disable -panel -nginx

Was this article helpful?

Comments

1 comment
Date Votes
  • Great article, thank you Vincent also for all your support about this case that affected me.

    0

Please sign in to leave a comment.