Learn about Centmin Mod LEMP Stack today
Become a Member

[Solved] nginx not working after betainstaller-latest.sh install, maybe a bug ?

Discussion in 'Bug Reports' started by Jota, Oct 17, 2016.

  1. Jota

    Jota Member

    78
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    6:26 PM
    IÑ'm installing this on Centos 6.8 64bit OpenVZ (i tried twice):
    yum -y update; curl -O https://centminmod.com/betainstaller-latest.sh && chmod 0700 betainstaller-latest.sh && bash betainstaller-latest.sh

    And I get nginx error, nginx wasn't started, but when I try to restart it, I get next error:

    Code:
    /etc/init.d/nginx: line 75: /usr/local/sbin/nginx: No such file or directory
    So I check line 75 and see this:

    Code:
    $nginx -t -c $NGINX_CONF_FILE 
    In install.log I see this:

    Code:
    [1;33;40m--------------------------------------------------------
    [m[1;33;40mCheck Nginx Version:
    [m[1;33;40m--------------------------------------------------------
    [mwhich: no nginx in (/opt/rh/devtoolset-3/root/usr/bin:/opt/rh/devtoolset-3/root/usr/bin:/opt/rh/devtoolset-3/root/usr/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    can not find nginx binary.. install failed
    Is this a bug ? how to fix ? maybe I should reinstall the standard installer version ?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,070
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    2:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Need the full log install log posted to Pastebin.com or Gists

    To troubleshoot, you need to check the the install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for install in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep install
    
     
  3. Jota

    Jota Member

    78
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    6:26 PM
    Reinstalling NginX from centmin menu #4
     
  4. Jota

    Jota Member

    78
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    6:26 PM
    Sorry, didn't see ur post ! now it's compiling .... I'll do after this is done !
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,070
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    2:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh corrected my post need install log not nginx, although nginx log will help too
     
  6. Jota

    Jota Member

    78
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    6:26 PM
  7. Jota

    Jota Member

    78
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    6:26 PM
    After upgrading, same result ....
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,070
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    2:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like a bug with ngx_brotli/libbrotli during nginx compile
    Code (Text):
            -o objs/addon/src/ngx_http_brotli_filter_module.o \
            ../ngx_brotli/src/ngx_http_brotli_filter_module.c
    ../ngx_brotli/src/ngx_http_brotli_filter_module.c: In function 'ngx_http_brotli_body_filter':
    ../ngx_brotli/src/ngx_http_brotli_filter_module.c:272:9: error: 'BrotliEncoderInputBlockSize' is deprecated (declared at /usr/local/include/brotli/encode.h:87) [-Werror=deprecated-declarations]
             ctx->brotli_ring = BrotliEncoderInputBlockSize(ctx->encoder);
             ^
    ../ngx_brotli/src/ngx_http_brotli_filter_module.c: In function 'ngx_http_brotli_filter_add_data':
    ../ngx_brotli/src/ngx_http_brotli_filter_module.c:498:5: error: 'BrotliEncoderCopyInputToRingBuffer' is deprecated (declared at /usr/local/include/brotli/encode.h:95) [-Werror=deprecated-declarations]
         BrotliEncoderCopyInputToRingBuffer(ctx->encoder, size, b->pos);
         ^
    ../ngx_brotli/src/ngx_http_brotli_filter_module.c: In function 'ngx_http_brotli_filter_process':
    ../ngx_brotli/src/ngx_http_brotli_filter_module.c:534:5: error: 'BrotliEncoderWriteData' is deprecated (declared at /usr/local/include/brotli/encode.h:109) [-Werror=deprecated-declarations]
         if (!BrotliEncoderWriteData(ctx->encoder, ctx->last, ctx->flush, &size,
         ^
    ../ngx_brotli/src/ngx_http_brotli_filter_module.c: At top level:
    cc1: error: unrecognized command line option "-Wno-c++11-extensions" [-Werror]
    cc1: all warnings being treated as errors
    make[1]: *** [objs/addon/src/ngx_http_brotli_filter_module.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.11.5'
    make: *** [build] Error 2
     
  9. Jota

    Jota Member

    78
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    6:26 PM
    What should I do now ? maybe try a lower version of nginx ?
     
  10. eva2000

    eva2000 Administrator Staff Member

    54,070
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    2:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    in persistent config file /etc/centminmod/custom_config.inc disable ngx_brotli module support by setting
    Code (Text):
    NGXDYNAMIC_BROTLI='n'
    NGINX_LIBBROTLI='n'

    then recompile nginx via centmin.sh menu option 4
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,070
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    2:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  12. Jota

    Jota Member

    78
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    6:26 PM
    Cool ..... I'm always getting all bugs anywhere ! LOL

    It's working now !

    Code:
    [root@dc1 ~]# nginx -v
    nginx version: nginx/1.11.5
    
    Plz let me know when there's an update to try again later ;)
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,070
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    2:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah sort of the price paid for the bleeding edge tech and features as they're always evolving :)

    could be issue with libbrotli library /usr/local/include/brotli/* that ngx_brotli uses actually form the error
    Code (Text):
    error: ‘BrotliEncoderInputBlockSize’ is deprecated (declared at /usr/local/include/brotli/encode.h:87) [-Werror=deprecated-declarations]


    seems there was a change to libbrotli done oct 17th today Commits · bagder/libbrotli · GitHub
     
  14. Jota

    Jota Member

    78
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    6:26 PM
    Will see what they say !
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,070
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    2:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    fixed via temp workaround until ngx_brotli author Piotr can do a rewrite for the new libbrotli API changes ngx_brotli uses deprecated Brotli API. · Issue #39 · google/ngx_brotli · GitHub

    so update 123.09beta01 to latest code and re-enable ngx-brotli in persistent config file /etc/centminmod/custom_config.inc set
    Code (Text):
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'

    then recompile nginx via a re-run of centmin.sh menu option 4 for betainstaller-latest.sh installs which enable ngx_brotli module
     
  16. Jota

    Jota Member

    78
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    6:26 PM
    Worked like a charm ! thx dude ! ;)
     
  17. eva2000

    eva2000 Administrator Staff Member

    54,070
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    2:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Great to hear :)