Join the community today
Register Now

Beta Branch My 123.09beta01 Nginx issues

Discussion in 'Beta release code' started by apidevlab, Mar 24, 2016.

  1. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    12:19 PM
    1.11.1
    5.2.14-122
    Will do :) thanks for the help here. I am going to attach the 1st install and update logs to the gist above. I have just done as suggested:

    Code (Text):
    [root@centmod centminmod]# cd ..
    [root@centmod src]# cd ..
    [root@centmod local]# cd ..
    [root@centmod usr]# cd ..
    [root@centmod /]# cd /usr/local/src/centminmod
    [root@centmod centminmod]# git stash
    No local changes to save
    [root@centmod centminmod]# git pull
    Already up-to-date.
    [root@centmod centminmod]# 


    That's correct yes? SO I already have the latest codebase? If that's the case then for me the issue still applies. I have will probably re-initialis(ed) the VPS and start from scratch as it's bugging me to hell :)

     
    Last edited: Mar 26, 2016
  2. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    12:19 PM
    1.11.1
    5.2.14-122
    Code (Text):
    --------------------------------------------------------
    Check Nginx Version:
    --------------------------------------------------------
    which: no nginx in (/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    can not find nginx binary.. install failed


    Code (Text):
    Starting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
    


    Code (Text):
    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)
      Active: failed (Result: exit-code) since Fri 2016-03-25 18:03:20 UTC; 28min ago
      Docs: man:systemd-sysv-generator(8)
    



    I warily admit defeat here, I have spent the last 2 days trying to figure this... I may try to install stable and then upgrade via centminmod.sh[/CODE]
     
    Last edited: Mar 26, 2016
  3. eva2000

    eva2000 Administrator Staff Member

    59,269
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    9:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    should be
    post to gist.github.com that latest log contents as well for install log file - only way for me to see what's going on
     
  4. eva2000

    eva2000 Administrator Staff Member

    59,269
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    9:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    for that type output of
    Code:
    nginx -t
     
  5. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    12:19 PM
    1.11.1
    5.2.14-122
    Command gives...
    Code (Text):
    -bash: nginx: command not found


    Will gist the logs for your perusal
     
  6. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    12:19 PM
    1.11.1
    5.2.14-122
    Last edited: Mar 26, 2016
  7. eva2000

    eva2000 Administrator Staff Member

    59,269
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    9:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    ah problem is you used an older version of lua-nginx-module 0.10.1rc0 instead of 0.10.2 probably you set it in /etc/centminmod/custom_config.inc ? as 123.09beta01 defaults to 0.10.2 now not 0.10.1rc0
    centmin 123.09beta01 default
    Code (Text):
    ORESTY_LUANGINXVER='0.10.2'     # openresty lua-nginx-module https://github.com/openresty/lua-nginx-module

    error in your log for failed nginx install
    Code (Text):
    -L/usr/local/lib -lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib \
    -shared
    objs/addon/src/ngx_http_lua_module.o: In function `ngx_http_lua_merge_srv_conf':
    /svr-setup/nginx-1.9.12/../lua-nginx-module-0.10.1rc0/src/ngx_http_lua_module.c:893: undefined reference to `SSL_CTX_set_cert_cb'
    objs/addon/src/ngx_http_lua_ssl_certby.o: In function `ngx_http_lua_ffi_ssl_clear_certs':
    /svr-setup/nginx-1.9.12/../lua-nginx-module-0.10.1rc0/src/ngx_http_lua_ssl_certby.c:553: undefined reference to `SSL_certs_clear'
    objs/addon/src/ngx_http_lua_ssl_certby.o: In function `ngx_http_lua_ffi_ssl_set_der_certificate':
    /svr-setup/nginx-1.9.12/../lua-nginx-module-0.10.1rc0/src/ngx_http_lua_ssl_certby.c:623: undefined reference to `SSL_add0_chain_cert'
    collect2: error: ld returned 1 exit status
    make[1]: *** [objs/nginx] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.9.12'
    make: *** [build] Error 2

    what's output of
    Code (Text):
    grep ORESTY_LUANGINXVER /usr/local/src/centminmod/centmin.sh

    should be like
    Code (Text):
    grep ORESTY_LUANGINXVER /usr/local/src/centminmod/centmin.sh
    ORESTY_LUANGINXVER='0.10.2'     # openresty lua-nginx-module https://github.com/openresty/lua-nginx-module

    contents of /etc/centminmod/custom_config.inc ?
    Code (Text):
    cat /etc/centminmod/custom_config.inc

    if you set ORESTY_LUANGINXVER in custom_config.inc, remove the line and recompile nginx via centmin.sh menu option 4
     
  8. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    12:19 PM
    1.11.1
    5.2.14-122
    I haven't set a custom_config.inc I initialised the VPS > set the hostname > (no yum update) Ran 1 liner
    Over the past few installs I tried yum update BEFORE the 1 liner, make a minimal install etc

    Output of ORESTY_LUAGINXVER
    Code (Text):
    ORESTY_LUANGINXVER='0.10.2'  # openresty lua-nginx-module https://github.com/openresty/lua-nginx-module


    Found in centminmod_ngxinstalltime_250316-114651.log this
    Code:
    Line 6591: collect2: error: ld returned 1 exit status
       Line 6879: collect2: error: ld returned 1 exit status
    [\CODE]
    
    Is this a repo issue, when installing I have seen message about the 'repo more than 2 weeks old' or similar?
    
    Consider if it's worth me installing stable and upgrading to beta? Even if only to get some logs.
     
    Last edited: Mar 26, 2016
  9. eva2000

    eva2000 Administrator Staff Member

    59,269
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    9:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    strange as there's no way nginx would try compiling nginx with lua nginx 0.10.1rc0 version then
    Code (Text):
    /svr-setup/nginx-1.9.12/../lua-nginx-module-0.10.1rc0/src/ngx_http_lua_module.c:893: undefined reference to `SSL_CTX_set_cert_cb'
    objs/addon/src/ngx_http_lua_ssl_certby.o: In function `ngx_http_lua_ffi_ssl_clear_certs':
     
  10. eva2000

    eva2000 Administrator Staff Member

    59,269
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    9:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Probably not as 123.08 stable doesn't support lua nginx 0.10 branch anyway, only 123.09beta01 does
     
  11. eva2000

    eva2000 Administrator Staff Member

    59,269
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    9:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    what does output of the following give you
    Code (Text):
    grep -Rn '0.10.1rc0' /usr/local/src/centminmod/*
    

    did you use installer-latest-gitlab.sh ? or one of the installer-latest.sh installs ? i see that old version is left in 123.09beta01 for those 2 versions which could be your problem - will fix it now :)
    Code (Text):
    grep -Rn '0.10.1rc0' /usr/local/src/centminmod/*
    /usr/local/src/centminmod/installer-latest-gitlab.sh:182:echo "ORESTY_LUANGINXVER='0.10.1rc0'" >> /etc/centminmod/custom_config.inc
    /usr/local/src/centminmod/installer-latest.sh:182:echo "ORESTY_LUANGINXVER='0.10.1rc0'" >> /etc/centminmod/custom_config.inc


    edit: updated 123.09beta01 and fixed a confirmed bug in installer-latest.sh and installer-latest-gitlab.sh versions at Beta Branch - fix bug in installer-latest.sh & installer-latest-gitlab.sh | Centmin Mod Community
     
  12. eva2000

    eva2000 Administrator Staff Member

    59,269
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    9:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  13. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    12:19 PM
    1.11.1
    5.2.14-122
    This is looking more promising now :)

    Code (Text):
    ORESTY_LUANGINXVER='0.10.2'  # openresty lua-nginx-module https://github.com/openresty/lua-nginx-module
    [root@centmod ~]# grep -Rn '0.10.1rc0' /usr/local/src/centminmod/*
    /usr/local/src/centminmod/installer-latest-gitlab.sh:182:echo "ORESTY_LUANGINXVER='0.10.1rc0'" >> /etc/centminmod/custom_config.inc
    /usr/local/src/centminmod/installer-latest.sh:182:echo "ORESTY_LUANGINXVER='0.10.1rc0'" >> /etc/centminmod/custom_config.inc
    
     
  14. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    12:19 PM
    1.11.1
    5.2.14-122
    Yay, will post my findings. Here is a little head scratch though... I will double check but am 99% sure I used the same process on 22 March (I will double check that) and that seemed to install fine??

    Just a heads up Beta Branch - Centmin Mod .09 beta branch Testing | Centmin Mod Community still refers to betainstaller-latest.sh

    Code (Text):
    # bypass initial setup email prompt
    mkdir -p /etc/centminmod/
    echo "NGINX_PAGESPEED=y" > /etc/centminmod/custom_config.inc
    echo "ORESTY_LUANGINX=y" >> /etc/centminmod/custom_config.inc
    # echo "ORESTY_LUANGINXVER='0.10.2'" >> /etc/centminmod/custom_config.inc
    echo "1" > /etc/centminmod/email-primary.ini
    echo "2" > /etc/centminmod/email-secondary.ini
    "${INSTALLDIR}/centminmod/centmin.sh" install
    rm -rf /etc/centminmod/email-primary.ini
    rm -rf /etc/centminmod/email-secondary.ini
    
     
    Last edited: Mar 26, 2016
  15. eva2000

    eva2000 Administrator Staff Member

    59,269
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    9:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    That's fine it's commented out with hash in front
     
  16. apidevlab

    apidevlab Member

    91
    33
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +58
    Local Time:
    12:19 PM
    1.11.1
    5.2.14-122
    I noticed that but was not 100% sure.

    To report I left 2 x Installs running last night and am very pleased to report they have installed successfully. I used the method 2 this time which worked :)

    I have only tested very briefly but am very grateful to the support @eva2000 has provided here. I couldn't have done it without him. You have created a thing of beauty with centminmod and I hope I'll be able to contribute back to help others here, many thanks.
     
  17. eva2000

    eva2000 Administrator Staff Member

    59,269
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    9:19 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    cheers thanks for the feedback and confirmation of the fix working :)

    More bug reports the better 123.09beta01 will be once fixed and released as stable :D