Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx PageSpeed Nginx Nginx uses all resources and then crashes when pagespeed is enabled

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Volodymyr Lupu, Dec 12, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:44 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    FYI, all folks reading basic gist is if you have nginx crashes with ngx_pagespeed 1.12.34* (pre 1.13.35.1) version, update to ngx_pagespeed 1.13.35.1-beta or higher ASAP Nginx PageSpeed - Nginx PageSpeed 1.13.35.1-beta Released. That would be first step to do.

     
  2. noly

    noly Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    2:44 PM
    1.18.x
    10.2.x
    A possible reason and fix was recently posted on Github by someone who encountered a similar bug.
    Upgrading brotli to v.1.0.2 supposedly comes with a fix.

    Is it possible to define the brotli version via custom_config.inc or is it necessary to recompile nginx for upgrading?
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:44 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Centmin Mod will use the latest brotli version available each time you recompile Nginx via centmin.sh menu option 4 :)
     
  4. noly

    noly Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    2:44 PM
    1.18.x
    10.2.x
    I just recompiled Nginx but checking the version with "broli -V" shows me "brotli 1.0.1" :(
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:44 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  6. noly

    noly Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    2:44 PM
    1.18.x
    10.2.x
    Thank you for your assistance here again. Really appreciate your invested time. :)

    I would like to test out fix which was committed recently on GitHub ngx_brotli.
    Unfortunately this is not possible by editing "/usr/local/nginx/modules/ngx_http_brotli_filter_module.so".

    Is there a way to update ngx_brotli with the above recent Github version?
     
  7. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:44 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  8. noly

    noly Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    2:44 PM
    1.18.x
    10.2.x
    I tested it back and forth and can confirm that the bug is fixed with the new brotli patch. :happy:
     
  9. eva2000

    eva2000 Administrator Staff Member

    58,908
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    10:44 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  10. noly

    noly Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    2:44 PM
    1.18.x
    10.2.x
    Very nice! :)