Want to subscribe to topics you're interested in?
Become a Member

Beta Branch My 123.09beta01 Nginx issues

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

  1. apidevlab

    apidevlab Member

    88
    30
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +54
    Local Time:
    2:40 AM
    1.11.1
    5.2.14-122
    Apologies in advance if this is not the correct place to post this. I am experiencing a rather baffling issue.

    I installed (with no problems) on 22/March see centminmod installer-latest.sh 123.09beta01 2016-03-22-22-40-11

    On the same VPS hardware (vmware / CentOS x64 6.7) on 24/March (I have tried 4 times today to install) on 2 different VPS There seems to be IS an issue with MY nginx install

    See centminmod installer-latest.sh 123.09beta01 cminfo.sh for 2016-03-24-04-58-02

    As you can see nginx shows as 'command not found' I have looked through the logs and cannot see anything the installer shows a successful build. I have also updated via option 4...
    I get
    Code:
    -bash: nginx: command not found
    error using
    Code:
    nginx -V
    and
    Code:
    nginx -t
    See Output (nginx) from cminfo.sh

    Code:
    Success: Nginx was installed properly
    Any pointers I can look at? I will take a good look through the logs and see what I can dig out.

    Have checked Commits · centminmod/centminmod · GitHub and see a Commits on Mar 23, 2016 related to nginx
     
    Last edited: Mar 24, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    To troubleshoot, you need to check the the nginx upgrade 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 initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code:
    nginx -t
     
  3. apidevlab

    apidevlab Member

    88
    30
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +54
    Local Time:
    2:40 AM
    1.11.1
    5.2.14-122
    Hi, thanks for the info & help. I have updated the post as suggested. Including
    Code:
    nginx -t
    output I have looked at nginxinstalltime_log which appears correct it reports
    Code:
    nginx installed, Apache disabled
    As am not hugely familiar with Centmin (from a Webmin background) you seem to imply above that an nginx upgrade (via option 4) would produce updated install logs?

    If that IS the case then I can confirm this has not happened on the x2 machines I have used.

    So the update nginx logs show
    Code:
    Thu Mar 24 04:53:20 UTC 2016
    Success: Nginx was installed properly
    One thing I have noticed is
    Code:
    dynamic module directory at /usr/local/nginx/modules
    ls: cannot access /usr/local/nginx/modules: No such file or directory
    also just before the Success message
    Code:
    cc1: all warnings being treated as errors
    make[1]: *** [objs/addon/src/ngx_http_lua_module.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.9.12'
    make: *** [install] Error 2
    
    real    0m0.979s
    user    0m0.790s
    sys    0m0.167s
    Don't really have any further clues? If this is a local (just me) issue can you move these posts to thier own thread?

    If any other info or specific logs would be of use please let me know.
     
    Last edited: Mar 24, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    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
     
  5. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    8:40 PM
    1.11.x
    10.1.18
    I'm having a similar issue as the OP. I've tried install Centmin Mod on a fresh Linode (2GB) 3 times in a row now and something is going on with NGINX it seems.

    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 143.1248 seconds
    Total YUM Time: 175.775701765 seconds
    Total YUM + Source Download Time: 196.3185
    [B]Total Nginx First Time Install Time: 16.2131[/B]
    Total PHP First Time Install Time: 477.4719
    Download Zip From Github Time: 1.8193
    Total Time Other eg. source compiles: 335.2855
    Total Centmin Mod Install Time: 1025.2890
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1170.2331 seconds
    ---------------------------------------------------------------------------
    
    [root@localhost ~]# nginx -v
    -bash: nginx: command not found
    
    I'd go up and look, but I'm not sure how to get putty to backtrack through the earlier portions of the installation? I just notice that NGINX is having a really low install time, which I don't think is actually installing, and makes me think something has gone a bit wonky somewhere.

    :)
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
  7. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    Looks like LibreSSL 2.3.3 geo mirror failed or hasn't populated 2.3.3 yet and local centminmod.com fall back mirror is missing libressl 2.3.3 download. I've updated 123.09beta01 with the fix for local centminmod.com fall back mirror for libressl 2.3.3
    Code (Text):
    HTTP/1.1 200 OK
    Download libressl-2.3.3.tar.gz ...
    Initializing download: http://centminmod.com/centminmodparts/libressl/libressl-2.3.3.tar.gz
    HTTP/1.1 404 Not Found
    Error: libressl-2.3.3.tar.gz download failed.
    check Centmin Mod log for details at /root/centminlogs/
    Aborting script...
    Download mysqlreport ...

    Code (Text):
    *************************************************
    * Installing nginx
    *************************************************
    Installing nginx Modules / Prerequisites...
                   ____                          _  _  _              
                  / ___| ___   _ __ ___   _ __  (_)| |(_) _ __    __ _
                 | |    / _ \ | '_ ` _ \ | '_ \ | || || || '_ \  / _` |
                 | |___| (_) || | | | | || |_) || || || || | | || (_| |
                  \____|\___/ |_| |_| |_|| .__/ |_||_||_||_| |_| \__, |
                                         |_|                     |___/
                     _      _  _                 ____  ____   _    
                    | |    (_)| |__   _ __  ___ / ___|/ ___| | |   
                    | |    | || '_ \ | '__|/ _ \\___ \\___ \ | |   
                    | |___ | || |_) || |  |  __/ ___) |___) || |___
                    |_____||_||_.__/ |_|   \___||____/|____/ |_____|
                                                                   
    Compiling LibreSSL...
    inc/openssl_install.inc: line 81: cd: libressl-2.3.3: No such file or directory
    bash: autogen.sh: No such file or directory
    inc/openssl_install.inc: line 117: ./configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    make: *** No rule to make target `install'.  Stop.
    -rw-r--r-- 1 root root 42 Mar 25 07:41 /root/centminlogs/centminmod_libresslinstalltime_250316-033944.log

    Code (Text):
    NGX_DYNAMICCHECK nginx_configure
    /svr-setup/nginx-1.9.12
    
    nginx dynamic module support detected
    
    grep: /usr/local/nginx/conf/nginx.conf: No such file or directory
    sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
    sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
    grep: /usr/local/nginx/conf/nginx.conf: No such file or directory
    sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
    tar (child): /svr-setup/libressl-2.3.3.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
  9. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    8:40 PM
    1.11.x
    10.1.18
    Mine were Atlanta, Georgia and Dallas, Texas. United States.
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    Yup that would be your problem, USA libressl mirror i defined was down and fallback centminmod.com local mirror didn't have libressl 2.3.3 download

    More permanent fix added to 123.09beta01 just now by extending LibreSSL official geo mirrors from 1x USA mirror to 5x USA mirror fallbacks + my centminmod.com local mirror Beta Branch - fix libressl geo mirror download routine | Centmin Mod Community :)
     
    • Winner Winner x 1
  11. apidevlab

    apidevlab Member

    88
    30
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +54
    Local Time:
    2:40 AM
    1.11.1
    5.2.14-122
    Mine are DE and FR, the possibility had occurred to me. I also tried the option 4 and got the same failed nginx result.

    I tried x 2 installs (x64 Centos 6 and 7) again last night and both failed with nginx (I have kept the logs but not been through them as yet) it's a little frustrating as the stable08 build on same VPS nodes installed again without problem.

    I'll dig through the logs and see if anything like above is noticeable rather than gist the whole thing.

    I just had the thought is there anything I could try via the ngix upgrade script to test this? I would rather try to nail this rather than a complete re-install via the betainstall script?
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    Try updating to latest 123.08stable OR 123.09beta01 I added a fix for libressl Update Centmin Mod 123.08stable & 123.09beta01 - libressl update | Centmin Mod Community so could be it
     
  13. apidevlab

    apidevlab Member

    88
    30
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +54
    Local Time:
    2:40 AM
    1.11.1
    5.2.14-122
  14. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    probably would be something folks familiar with git commandline could do outside of centmin.sh via just SSH + git command line if they wanted.

    However, 123.09beta01 git environment setup no longer takes the whole git commit history for speed Beta Branch - Reworking centmin.sh menu option 23 for better efficiency & performance | Centmin Mod Community
     
    • Like Like x 1
  15. apidevlab

    apidevlab Member

    88
    30
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +54
    Local Time:
    2:40 AM
    1.11.1
    5.2.14-122
    Will let you know, just re compiling now :)

    I have checked my centminmod_nginxinstalltime.log (Centos 7) and I don't see any of the issues above, indeed I only see a timeout:
    Code:
    Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was
    12: 
    Which is related to the install scl for newer gcc and g++ versions. I am 'slowly' retrying the nginx upgrade (with the fix) but it's taking forever. I think I have a node that's 'borked' but will update when I can check.
     
    Last edited: Mar 25, 2016
  16. apidevlab

    apidevlab Member

    88
    30
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +54
    Local Time:
    2:40 AM
    1.11.1
    5.2.14-122
    It's worth me pointing out that I have setup machines (and installed) as follows:

    • Centos 7.2 x64 > stable08 > Installed ok (nginx1.9.12)
    • Centos 6.7 x64 > stable08 > Installed ok (nginx1.9.12)
    • Centos 7.2 x64 > beta09 > No nginx (certainly no binary, many conf files as expected)
    • Centos 6.7 x64 > beta09 > No nginx...
    All machines are on identical hardware nodes running same vmware and same processor/cpu memory
    The installs were all carried out on the same 'window' eg same day

    My initial log scanning haven't really revealed anything that I can point to, it seems that it's likely it's my VPS environment (the nginx upgrade has just finished on both machines)..

    Code:
    Centos x64 6.7 Total Nginx Upgrade Time: 13122.197720128 seconds
    < over 3 hours :(
    Code:
    Centos x64 7.2 Total Nginx Upgrade Time: 2761.112150816 seconds
     
  17. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    These were attempts done prior to my fixes in post 12 above ?

    slowness would indicate problems with speed of your vps's processors

    you can see what processors are used via command
    Code (Text):
    cat /proc/cpuinfo
     
  18. apidevlab

    apidevlab Member

    88
    30
    18
    Mar 22, 2016
    /dev/null
    Ratings:
    +54
    Local Time:
    2:40 AM
    1.11.1
    5.2.14-122
    Q: How do you make the code box black?

    Ok all machines (4) are:
    Code (Text):
    [root@centmod centminmod]# cat /proc/cpuinfo
    processor       : 0
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 63
    model name      : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz
    stepping        : 2
    microcode       : 0x31
    cpu MHz         : 2299.998
    cache size      : 25600 KB
    physical id     : 0
    siblings        : 1
    core id         : 0
    cpu cores       : 1
    apicid          : 0
    initial apicid  : 0
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 15
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx hypervisor lahf_lm ida arat epb pln pts dtherm cqm_llc cqm_occup_llc
    bogomips        : 4599.99
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 40 bits physical, 48 bits virtual
    power management:


    x1 is not playing well have been having many issues :( I did try again after the 'fixes' above but just want to confirm the steps: 1 - setup centminmod repo (option 23) 2 - pull changes 3 - update via option 4?

    See centmin mod 123.09beta01 branch repo Cloning into 'centminmod'

    If that is the correct procedure then it's failed (I will post logs shortly) If I have not updated correctly then please explain. It does seem likely it's a specific issue to me :(

    EDIT - The gitupdate log shows
    Code (Text):
    inc/updater_submenu.inc: line 218: [[: 55%: syntax error: operand expected (error token is "%")
     
    Last edited: Mar 26, 2016
  19. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    see Testing custom CODEB tag | Centmin Mod Community
    Yes just exit out of centmin.sh after centmin.sh menu option 23 submenu 2 and change back into /usr/local/src/centminmod to run centmin.sh menu option 4 otherwise you don't get to see latest updates if you try to run centmin.sh menu option 4 within same session as centmin.sh menu option 23 submenu 2 update.

    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
     
    • Useful Useful x 1
  20. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    11:40 AM
    Nginx 1.13.x
    MariaDB 5.5
    try centmin.sh menu option 23 submenu option 3 and when prompted to switch branches, type 123.09beta01 to start fresh