Want to subscribe to topics you're interested in?
Become a Member

Nginx Update Nginx to 1.25.2 and and server couldn't load

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Andy, Sep 2, 2023.

  1. Andy

    Andy Active Member

    535
    88
    28
    Aug 6, 2014
    Ratings:
    +129
    Local Time:
    3:14 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 130.00beta01
    • Nginx Version Installed: 1.25.2
    • PHP Version Installed: 8.2.10
    I updated nginx to 1.25.2 today and it got an error.
    nginx: [emerg] dlopen() "/usr/local/nginx/modules/ngx_http_brotli_filter_module.so" failed (/usr/local/nginx-dep/lib/libbrotlienc.so.1: undefined symbol: BrotliSharedDictionaryDestroyInstance) in /usr/local/nginx/conf/dynamic-modules.conf:10
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed


    I nailed it down to this file /usr/local/nginx/conf/dynamic-modules.conf
    and when I comment out the last 2 lines, it reboots ok.
    Code:
    # place custom load_module lines in this dynamic-modules-includes.conf
    # file so that they persistent i.e. for manually dropped in dynamic modules
    include /usr/local/nginx/conf/dynamic-modules-includes.conf;
    load_module "modules/ngx_http_image_filter_module.so";
    load_module "modules/ngx_http_headers_more_filter_module.so";
    load_module "modules/ndk_http_module.so";
    load_module "modules/ngx_http_set_misc_module.so";
    load_module "modules/ngx_http_echo_module.so";
    load_module "modules/ngx_http_fancyindex_module.so";
    #load_module "modules/ngx_http_brotli_filter_module.so";
    #load_module "modules/ngx_http_brotli_static_module.so";   
     
  2. Max Chan

    Max Chan New Member

    9
    3
    3
    Feb 17, 2020
    internet
    Ratings:
    +7
    Local Time:
    4:14 AM
    1.25.4
    MariaDB 10.6
    i also got this error when i upgrade in nginx, what i do is disable brotli module.
     
  3. Andy

    Andy Active Member

    535
    88
    28
    Aug 6, 2014
    Ratings:
    +129
    Local Time:
    3:14 PM
    This should not happen as I have upgraded nginx many times in the past and never an issue. I wonder if the latest nginx 1.25.2 makes any changes or any centminmod code changes?
     
  4. eva2000

    eva2000 Administrator Staff Member

    52,729
    12,075
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,602
    Local Time:
    6:14 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. eva2000

    eva2000 Administrator Staff Member

    52,729
    12,075
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,602
    Local Time:
    6:14 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Looks like ngx_brotli's brotli dependency got updated to v1.1.0 but this update removed configure-cmake method of building brotli dependency that ngx_brotli relies on Statically compiled installation fails · Issue #148 · google/ngx_brotli. So updated Centmin Mod 124.00stable and 130.00beta01 to revert back to brotli v1.0.9 for ngx_brotli's dependency for now until ngx_brotli updates to account for brotli dependency v1.1.0 changes :)

    So Centmin Mod users can run cmupdate command to update your local code with this commit fix and then re-run centmin.sh menu option 4 and recompile or upgrade your nginx version
     
  6. Andy

    Andy Active Member

    535
    88
    28
    Aug 6, 2014
    Ratings:
    +129
    Local Time:
    3:14 PM
    I knew you would find the issue and provide a fix, George.
    Thank you