Want more timely Centmin Mod News Updates?
Become a Member

Nginx Nginx crash when brotli enabled in persistent config file

Discussion in 'Install & Upgrades or Pre-Install Questions' started by negative, Aug 20, 2019.

  1. negative

    negative Active Member

    328
    36
    28
    Apr 11, 2015
    Ratings:
    +74
    Local Time:
    3:21 PM
    1.9.10
    10.1.11
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.17.3
    • PHP Version Installed: 7.1.31
    • MariaDB MySQL Version Installed: 10.1
    • When was last time updated Centmin Mod code base ? : today
    • Persistent Config:
      Code (Text):
      POSTGRESQL=y
      PHPFINFO=y
      NGINX_PAGESPEED=n
      NGXDYNAMIC_NGXPAGESPEED=n
      NGINX_GEOIP=n
      PHPIONCUBE='n'
      PHPIMAGICK='y'
      ENABLEMOTD_CSFMSG='n'         # motd banner csf message alert disaply
      ENABLEMOTD_LINKSMSG='n'       # motd centminmod.com links bookmark alert display
      VHOSTCTRL_CLOUDFLAREINC='y'
      #LETSENCRYPT_DETECT='y'
      CLOUDFLARE_ZLIB='y'
      CLOUDFLARE_ZLIBPHP='y'
      #NGXDYNAMIC_BROTLI='y'
      #NGINX_LIBBROTLI='y'
      PHP_PGO_ALWAYS='y'
      PHP_PGO='y'
      
      
    After i put these commands NGXDYNAMIC_BROTLI='y' and NGINX_LIBBROTLI='y' to centminmod persistent config, and tried upgrade the nginx, it crashes so nginx downs.

    Nginx status shows that;
    Code (Text):
    [09:46][[email protected] ~]# service nginx status
    ‚óŹ nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
       Active: failed (Result: exit-code) since Tue 2019-08-20 09:45:51 +03; 1min 4s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 22459 ExecStop=/etc/rc.d/init.d/nginx stop (code=exited, status=0/SUCCESS)
      Process: 22474 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
     Main PID: 7604 (code=exited, status=0/SUCCESS)
    
    Aug 20 09:45:51 server systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Aug 20 09:45:51 server nginx[22474]: Starting nginx: nginx: [emerg] dlopen() "/usr/local/nginx/modules/ngx_http_brotli_filter_module.s....conf:10
    Aug 20 09:45:51 server nginx[22474]: [FAILED]
    Aug 20 09:45:51 server systemd[1]: nginx.service: control process exited, code=exited status=1
    Aug 20 09:45:51 server systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Aug 20 09:45:51 server systemd[1]: Unit nginx.service entered failed state.
    Aug 20 09:45:51 server systemd[1]: nginx.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.


    journalctl -xe
    Code (Text):
    ......
    -- Unit nginx.service has begun starting up.
    Aug 20 09:47:06 server nginx[23037]: Starting nginx: nginx: [emerg] dlopen() "/usr/local/nginx/modules/ngx_http_brotli_filter_module.so" failed (
    Aug 20 09:47:06 server nginx[23037]: [FAILED]
    Aug 20 09:47:06 server systemd[1]: nginx.service: control process exited, code=exited status=1
    Aug 20 09:47:06 server systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    -- Subject: Unit nginx.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nginx.service has failed.
    .....


    BTW, I'm using the paid professional cloudflare plan so it uses brotli i though. So should i install and active the brotli compression even on my server?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,350
    9,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,236
    Local Time:
    10:21 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. negative

    negative Active Member

    328
    36
    28
    Apr 11, 2015
    Ratings:
    +74
    Local Time:
    3:21 PM
    1.9.10
    10.1.11
  4. EckyBrazzz

    EckyBrazzz Active Member

    589
    125
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +231
    Local Time:
    9:21 AM
    1.17.x
    10.3.x
    • Agree Agree x 1
  5. eva2000

    eva2000 Administrator Staff Member

    41,350
    9,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,236
    Local Time:
    10:21 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yeah what @EckyBrazzz said need to view the nginx upgrade log
     
  6. negative

    negative Active Member

    328
    36
    28
    Apr 11, 2015
    Ratings:
    +74
    Local Time:
    3:21 PM
    1.9.10
    10.1.11
    @eva2000 paste.ee didn't accept the full of log content so i paste only related with brotli lines to here if it helps.

    View Paste uGJVD
     
    • Like Like x 1
  7. eva2000

    eva2000 Administrator Staff Member

    41,350
    9,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,236
    Local Time:
    10:21 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    it seems libbrotli library that ngx_brotli uses didn't install properly
    have you tried recompiling nginx via centmin.sh menu option 4?
     
  8. negative

    negative Active Member

    328
    36
    28
    Apr 11, 2015
    Ratings:
    +74
    Local Time:
    3:21 PM
    1.9.10
    10.1.11
    No, after that fault, i comment the brotli lines in the custom config file then run nginx re-compile and website worked. I will try again recompile the nginx when i available again. (with brotli enabled)