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

    72
    17
    8
    Oct 9, 2014
    Ratings:
    +19
    Local Time:
    9:40 AM
    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

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    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

    72
    17
    8
    Oct 9, 2014
    Ratings:
    +19
    Local Time:
    9:40 AM
    Reinstalling NginX from centmin menu #4
     
  4. Jota

    Jota Member

    72
    17
    8
    Oct 9, 2014
    Ratings:
    +19
    Local Time:
    9:40 AM
    Sorry, didn't see ur post ! now it's compiling .... I'll do after this is done !
     
  5. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    oh corrected my post need install log not nginx, although nginx log will help too
     
  6. Jota

    Jota Member

    72
    17
    8
    Oct 9, 2014
    Ratings:
    +19
    Local Time:
    9:40 AM
  7. Jota

    Jota Member

    72
    17
    8
    Oct 9, 2014
    Ratings:
    +19
    Local Time:
    9:40 AM
    After upgrading, same result ....
     
  8. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 1
  9. Jota

    Jota Member

    72
    17
    8
    Oct 9, 2014
    Ratings:
    +19
    Local Time:
    9:40 AM
    What should I do now ? maybe try a lower version of nginx ?
     
  10. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:40 AM
    Nginx 1.13.x
    MariaDB 5.5
  12. Jota

    Jota Member

    72
    17
    8
    Oct 9, 2014
    Ratings:
    +19
    Local Time:
    9:40 AM
    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 ;)
     
    • Like Like x 1
  13. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Agree Agree x 1
  14. Jota

    Jota Member

    72
    17
    8
    Oct 9, 2014
    Ratings:
    +19
    Local Time:
    9:40 AM
    Will see what they say !
     
  15. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 1
  16. Jota

    Jota Member

    72
    17
    8
    Oct 9, 2014
    Ratings:
    +19
    Local Time:
    9:40 AM
    Worked like a charm ! thx dude ! ;)
     
    • Like Like x 1
  17. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,574
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,756
    Local Time:
    9:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    Great to hear :)