Articles in this section

nginx warning after installing Plesk update 61: [warn] the "listen ... http2" directive is deprecated

kb: bug Plesk for Linux

Symptoms

1. Plesk update 61 has been recently installed on Plesk server with previously enabled HTTP/2

2. Command # nginx -t or cron tasks show error:

PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/plesk.conf.d/webmails/example.com_webmail.conf

Cause

Nginx directives for HTTP2 were updated by package vendor. Web server configuration was not regenerated during the update installation to avoid unplanned websites downtime. 

Resolution

  1. Applying the solution on a server with thousands domains can increase temporary sites downtime. In that case, apply the solution during server maintenance hours.
  2. Log in to Plesk via SSH
  3. Trigger nginx configuration files regeneration:

    # plesk bin http2_pref --disable
    # plesk bin http2_pref --enable

Was this article helpful?

Comments

8 comments
Date Votes
  • eta for PPPM-14442?

    0
  • Michael, I have updated the cause.

    0
  • # plesk bin http2_pref --disable && plesk bin http2_pref --enable

    Hi,

    whenever you perform this I think it causes a downtime of websites or, because if you have for instance 9k NGINX config files it is adding / removing the symlink (-> /etc/nginx/plesk.conf.d/vhosts/*.conf) the process is taking longer and if there is an NGINX reload during this process customer websites are offline or is this something which has been already fixed (we had this problem around 2k21!)

    thx for clarification

    cheers Michael 

    0
  • Michael

     PPPM-14442 was not recognized as bug due to low business impact (sites are up after update) that does not worth automatic reconfiguration of all domains (that temporarily brings the sites down). I will update the article with a warning that reconfiguration of thousands of sites will cause increased temporary downtime.

     
    1
  • thx for adding the warning and clarificaiton, cheers Michael

    0
  • As it is not the best option for every business, is it planned to solve it before it is becoming a "real" problem (upcoming versions?), because the deprecation warning is not the problem at least for me

    cheers Michael

    0
  • @Michael This question requires investigation. Please create a ticket to Plesk technical support.

    0
  • >> @Michael This question requires investigation. Please create a ticket to Plesk technical support.

    not needed, every new config file is OK after repair/regen
     
    cheers Michael
    0

Please sign in to leave a comment.