Learn about Centmin Mod LEMP Stack today
Register Now

Stable Branch update Nginx 1.9.7 default

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 18, 2015.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    30,186
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    1:14 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. Andy

    Andy Active Member

    316
    46
    28
    Aug 6, 2014
    Ratings:
    +55
    Local Time:
    11:14 AM
    Couldn't update my nginx to 1.9.7 eventhough it said it was upgraded ok
    Code:
    2 errors generated.
    make[1]: *** [objs/addon/src/ngx_http_vhost_traffic_status_module.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.9.7'
    make: *** [install] Error 2
    
    real    0m0.941s
    user    0m0.797s
    sys     0m0.130s
    
    Fri Nov 20 12:00:08 EST 2015
    Success: Nginx was installed properly
    
    /usr/local/nginx/conf/conf.d/demodomain.com.conf
    ---
    /usr/local/nginx/conf/conf.d/quantnet.com.conf
    21:        ###add_header Alternate-Protocol  443:npn-spdy/3;
    ---
    10:        listen 443 ssl http2;
    21:        ####add_header Alternate-Protocol  443:npn-spdy/3;
    /usr/local/nginx/conf/conf.d/ssl.conf
    ---
    /usr/local/nginx/conf/conf.d/virtual.conf
    ---
    Starting nginx (via systemctl):  [  OK  ]
    *************************************************
    * nginx updated
    *************************************************
     
  3. Epic Internet Marketing

    Epic Internet Marketing Member

    40
    7
    8
    Aug 3, 2014
    New York, NY
    Ratings:
    +18
    Local Time:
    1:14 AM
    1.12.x | PHP 7.1.x
    10.1
    I think 1.9.7 caused an error in installs, any new servers I try to put centminmod on do not launch nginx anymore, or even install for that matter.
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    11:14 PM
    1.11
    10.2
    Try to disable "vhost_traffic_status_module" ? There is a variable on centmin.sh to disable that.
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,186
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    1:14 AM
    Nginx 1.13.x
    MariaDB 5.5
  6. eva2000

    eva2000 Administrator Staff Member

    30,186
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    1:14 AM
    Nginx 1.13.x
    MariaDB 5.5
    you can disable vhost traffic module by adding to or creating persistent config file /etc/centminmod/custom_config.inc

    Code:
    NGINX_VHOSTSTATS=n
    then recompile nginx via centmin.sh menu option 4
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,186
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    1:14 AM
    Nginx 1.13.x
    MariaDB 5.5
    Updated both Centmin Mod 123.08stable and 123.09beta01 builds for now disabled Nginx vhost traffic stats module temporarily so that centmin.sh variable defaults to NGINX_VHOSTSTATS=n. Posted an issue report on @vozlt's issue tracker at broken nginx 1.9.7 support ? · Issue #27 · vozlt/nginx-module-vts · GitHub too.

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:

    It is an issue i didn't have with Nginx 1.9.7 a few days ago so the Nginx vhost traffic stats latest November 20th commits might have broken something in terms of compatibility with Nginx 1.9.7

    Code:
    Fri Nov 20 23:28:44 UTC 2015
    Success: Nginx make ok
    
    make -f objs/Makefile install
    make[1]: Entering directory `/svr-setup/nginx-1.9.7'
    ccache /usr/bin/clang -ferror-limit=0 -c -I/usr/local/include/luajit-2.1  -pipe  -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -m64 -mtune=native -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion  -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR  -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../ngx_pagespeed-1.9.32.10-beta/psol/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/chromium/src -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/google-sparsehash/src -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/google-sparsehash/gen/arch/linux/x64/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/protobuf/src -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/re2/src -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/out/Release/obj/gen -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/out/Release/obj/gen/protoc_out/instaweb -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/apr/src/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/aprutil/src/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/apr/gen/arch/linux/x64/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I ../ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /usr/local/include/luajit-2.1 -I ../lua-nginx-module-0.9.18/src/api -I ../nginx_upstream_check_module-0.3.0 -I ../pcre-8.37 -I ../libressl-2.2.4/.openssl/include -I objs -I src/http -I src/http/modules -I src/http/v2 -I ../ngx_devel_kit-0.2.19/src -I src/mail -I src/stream \
            -o objs/addon/src/ngx_http_vhost_traffic_status_module.o \
            ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:904:22: error: adding 'unsigned int' to a string does not append to the string [-Werror,-Wstring-plus-int]
        len = ngx_strlen(ngx_vhost_traffic_status_group_to_string(type));
              ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:341:30: note: expanded from macro 'ngx_vhost_traffic_status_group_to_string'
        : "NO\0UA\0UG\0CC\0FG\0" + 3 * n                                           \
                                 ^
    src/core/ngx_string.h:61:51: note: expanded from macro 'ngx_strlen'
    #define ngx_strlen(s)       strlen((const char *) s)
                                                      ^
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:904:22: note: use array indexing to silence this warning
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:341:30: note: expanded from macro 'ngx_vhost_traffic_status_group_to_string'
        : "NO\0UA\0UG\0CC\0FG\0" + 3 * n                                           \
                                 ^
    src/core/ngx_string.h:61:51: note: expanded from macro 'ngx_strlen'
    #define ngx_strlen(s)       strlen((const char *) s)
                                                      ^
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:915:23: error: adding 'unsigned int' to a string does not append to the string [-Werror,-Wstring-plus-int]
        p = ngx_cpymem(p, ngx_vhost_traffic_status_group_to_string(type), len);
            ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:341:30: note: expanded from macro 'ngx_vhost_traffic_status_group_to_string'
        : "NO\0UA\0UG\0CC\0FG\0" + 3 * n                                           \
                                 ^
    src/core/ngx_string.h:103:60: note: expanded from macro 'ngx_cpymem'
    #define ngx_cpymem(dst, src, n)   (((u_char *) memcpy(dst, src, n)) + (n))
                                                               ^
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:915:23: note: use array indexing to silence this warning
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:341:30: note: expanded from macro 'ngx_vhost_traffic_status_group_to_string'
        : "NO\0UA\0UG\0CC\0FG\0" + 3 * n                                           \
                                 ^
    src/core/ngx_string.h:103:60: note: expanded from macro 'ngx_cpymem'
    #define ngx_cpymem(dst, src, n)   (((u_char *) memcpy(dst, src, n)) + (n))
                                                               ^
    2 errors generated.
    make[1]: *** [objs/addon/src/ngx_http_vhost_traffic_status_module.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.9.7'
    make: *** [install] Error 2
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,186
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    1:14 AM
    Nginx 1.13.x
    MariaDB 5.5
    Last edited: Nov 21, 2015
    • Like Like x 1