Get the most out of your Centmin Mod LEMP stack
Become a Member

[Solved] nginx upgrade failing

Discussion in 'Bug Reports' started by Matt, Apr 7, 2016.

Tags:
  1. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    4:41 AM
    1.7.1
    MariaDB 10
    getting the below in the upgrade log
    Code:
    make -f objs/Makefile
    make[1]: Entering directory `/svr-setup/nginx-1.9.14'
    cd ../pcre-8.38 \
    && if [ -f Makefile ]; then make distclean; fi \
    && CC="ccache /usr/bin/gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
    ./configure --disable-shared  --enable-jit
    cd ../libressl-2.3.3 \
    && if [ -f Makefile ]; then make clean; fi \
    && ./config --prefix=/svr-setup/nginx-1.9.14/../libressl-2.3.3/.openssl no-shared enable-tlsext \
    && make \
    && make install_sw LIBDIR=lib
    make[2]: Entering directory `/svr-setup/libressl-2.3.3'
    CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /svr-setup/libressl-2.3.3/missing aclocal-1.15 -I m4
    /svr-setup/libressl-2.3.3/missing: line 81: aclocal-1.15: command not found
    WARNING: 'aclocal-1.15' is missing on your system.
             You should only need it if you modified 'acinclude.m4' or
             'configure.ac' or m4 files included by 'configure.ac'.
             The 'aclocal' program is part of the GNU Automake package:
             <http://www.gnu.org/software/automake>
             It also requires GNU Autoconf, GNU m4 and Perl in order to run:
             <http://www.gnu.org/software/autoconf>
             <http://www.gnu.org/software/m4/>
             <http://www.perl.org/>
    make[2]: *** [aclocal.m4] Error 127
    make[2]: Leaving directory `/svr-setup/libressl-2.3.3'
    make[2]: Entering directory `/svr-setup/pcre-8.38'
    CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /svr-setup/pcre-8.38/missing aclocal-1.15 -I m4
    make[1]: *** [../libressl-2.3.3/.openssl/include/openssl/ssl.h] Error 2
    make[1]: *** Waiting for unfinished jobs....
    /svr-setup/pcre-8.38/missing: line 81: aclocal-1.15: command not found
    WARNING: 'aclocal-1.15' is missing on your system.
             You should only need it if you modified 'acinclude.m4' or
             'configure.ac' or m4 files included by 'configure.ac'.
             The 'aclocal' program is part of the GNU Automake package:
             <http://www.gnu.org/software/automake>
             It also requires GNU Autoconf, GNU m4 and Perl in order to run:
             <http://www.gnu.org/software/autoconf>
             <http://www.gnu.org/software/m4/>
             <http://www.perl.org/>
    make[2]: *** [aclocal.m4] Error 127
    make[2]: Leaving directory `/svr-setup/pcre-8.38'
    make[1]: *** [../pcre-8.38/Makefile] Error 2
    make[1]: Leaving directory `/svr-setup/nginx-1.9.14'
    make: *** [build] Error 2
    

     
  2. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    4:41 AM
    1.7.1
    MariaDB 10
    Running latest Beta from GIT repo. Server has only been online 8 days, and currently built with nginx 1.9.12
    Code:
    nginx version: nginx/1.9.12
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    built with LibreSSL 2.3.3
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -mfpmath=sse -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -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 -Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module --with-http_secure_link_module --with-openssl-opt=enable-tlsext --add-module=../nginx-module-vts --with-libatomic --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_realip_module --add-module=../ngx-fancyindex-0.3.6 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0rc1 --add-module=../set-misc-nginx-module-0.30 --add-module=../echo-nginx-module-0.58 --add-module=../redis2-nginx-module-0.12 --add-module=../ngx_http_redis-0.3.7 --add-module=../nginx_upstream_check_module-0.3.0 --add-module=../openresty-memc-nginx-module-4f6f78f --add-module=../srcache-nginx-module-0.30 --add-module=../headers-more-nginx-module-0.29 --with-pcre=../pcre-8.38 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.3.3
    
     
  3. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    4:41 AM
    1.7.1
    MariaDB 10
    Hmm, I deleted the pcre folder and download from the svr-setup directory, forcing it be to re-downloaded, and it's built now.
     
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    interesting, is this on CentOS 6 or 7 ?
     
  5. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    4:41 AM
    1.7.1
    MariaDB 10
    CentOS7 on an OVH dedicated machine.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    Well at least we know.. hasn't happened to me yet, though I vaguely recall someone else ran into this with the same solution as well.
     
  7. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    4:41 AM
    1.7.1
    MariaDB 10
    It's built now, so I can only assume it originally picked up a dodgy version of the pcre package
    Code:
    [root@host centminmod]# nginx -V
    nginx version: nginx/1.9.14
    built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) 
    built with LibreSSL 2.3.3
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -mfpmath=sse -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-ipv6 --with-http_stub_status_module --with-http_secure_link_module --with-openssl-opt=enable-tlsext --add-module=../nginx-module-vts --with-libatomic --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_gzip_static_module --add-module=../ngx_pagespeed-release-1.11.33.0-beta --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-http_realip_module --add-module=../ngx-fancyindex-0.3.6 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0rc1 --add-module=../set-misc-nginx-module-0.30 --add-module=../echo-nginx-module-0.58 --add-module=../redis2-nginx-module-0.12 --add-module=../ngx_http_redis-0.3.7 --add-module=../nginx_upstream_check_module-0.3.0 --add-module=../openresty-memc-nginx-module-4f6f78f --add-module=../srcache-nginx-module-0.30 --add-module=../headers-more-nginx-module-0.29 --with-pcre=../pcre-8.38 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.3.3
    [root@host centminmod]#
    
     
    • Informative Informative x 1
  8. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    4:41 AM
    1.7.1
    MariaDB 10
    By the way @eva2000 , check the PM I sent you on my site.
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    Ah could be as pcre is a local centminmod.com mirror download centminmod/downloadlinks.inc at 123.09beta01 · centminmod/centminmod · GitHub after the last pcre official download downtime we experienced.
    OVH Canada would of hit one of my 4x New York/New Jersey centminmod.com locations and if it was OVH France it would of hit my centminmod.com London location. Might need to add some kind of check when download to mark and note which centminmod.com geo location the files get downloaded from for easier pin pointing
    k :)
     
    • Like Like x 1
  10. xtech

    xtech New Member

    5
    3
    3
    Jul 12, 2016
    Ratings:
    +3
    Local Time:
    4:41 AM
    1.11.2
    10.x
    Hi everyone. I've been using centminmod about one year ago. While i was using Centos 6 all was fine. I am now setting up my first Centos 7 server and installing centminmod is being an headache, mostly due to Nginx failing to install properly.

    It seems i am getting two errors, and one is like the one you're talking about on this thread.
    Here is the log:

    Code:
    Success: Nginx configure ok
    
    make -f objs/Makefile
    make[1]: Entering directory `/svr-setup/nginx-1.11.2'
    cd ../pcre-8.38 \
    && if [ -f Makefile ]; then make distclean; fi \
    && CC="ccache /usr/bin/clang -ferror-limit=0" CFLAGS="-O2 -pipe " \
    ./configure --disable-shared  --enable-jit
    cd ../libressl-2.3.6 \
    && if [ -f Makefile ]; then make clean; fi \
    && ./config --prefix=/svr-setup/nginx-1.11.2/../libressl-2.3.6/.openssl no-shared enable-tlsext \
    && make \
    && make install_sw LIBDIR=lib
    /bin/sh: line 0: cd: ../pcre-8.38: No such file or directory
    make[2]: Entering directory `/svr-setup/libressl-2.3.6'
    cd . && /bin/sh /svr-setup/libressl-2.3.6/missing automake-1.15 --foreign
    /svr-setup/libressl-2.3.6/missing: line 81: automake-1.15: command not found
    WARNING: 'automake-1.15' is missing on your system.
             You should only need it if you modified 'Makefile.am' or
             'configure.ac' or m4 files included by 'configure.ac'.
             The 'automake' program is part of the GNU Automake package:
             <http://www.gnu.org/software/automake>
             It also requires GNU Autoconf, GNU m4 and Perl in order to run:
             <http://www.gnu.org/software/autoconf>
             <http://www.gnu.org/software/m4/>
             <http://www.perl.org/>
    make[2]: *** [Makefile.in] Error 1
    make[2]: Leaving directory `/svr-setup/libressl-2.3.6'
    make[1]: *** [../pcre-8.38/Makefile] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: *** [../libressl-2.3.6/.openssl/include/openssl/ssl.h] Error 2
    make[1]: Leaving directory `/svr-setup/nginx-1.11.2'
    make: *** [build] Error 2
    
    real    0m0.075s
    user    0m0.080s
    sys     0m0.023s
    
    strip nginx binary...
    ls: cannot access objs/nginx: No such file or directory
    strip: 'objs/nginx': No such file
    ls: cannot access objs/nginx: No such file or directory
    
    
    Tue Jul 12 12:59:53 UTC 2016
    Success: Nginx make ok
    
    inc/nginx_upgrade.inc: line 464: /usr/local/sbin/nginx: No such file or directory
    make -f objs/Makefile install
    make[1]: Entering directory `/svr-setup/nginx-1.11.2'
    cd ../pcre-8.38 \
    && if [ -f Makefile ]; then make distclean; fi \
    && CC="ccache /usr/bin/clang -ferror-limit=0" CFLAGS="-O2 -pipe " \
    ./configure --disable-shared  --enable-jit
    /bin/sh: line 0: cd: ../pcre-8.38: No such file or directory
    make[1]: *** [../pcre-8.38/Makefile] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.11.2'
    make: *** [install] Error 2
    
    real    0m0.044s
    user    0m0.038s
    sys     0m0.006s
    
    Tue Jul 12 12:59:56 UTC 2016
    Success: Nginx was installed properly
    
    /usr/local/nginx/conf/conf.d/demodomain.com.conf
    ---
    /usr/local/nginx/conf/conf.d/ssl.conf
    ---
    /usr/local/nginx/conf/conf.d/virtual.conf
    ---
    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.
    [FAILED]
    I have no idea of what's going on. I've deleted the PCRE folder from /svr-setup as @Matt suggested with no avail.
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    fresh install or upgraded from 123.08stable to 123.09beta01 ?

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial 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 initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod | Centmin Mod Community
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  12. xtech

    xtech New Member

    5
    3
    3
    Jul 12, 2016
    Ratings:
    +3
    Local Time:
    4:41 AM
    1.11.2
    10.x
    So here is the info:

    fresh install (1.2.3-eva2000.08) installed from curl one line.
    Centos 7.2 64bit
    Dedicated server
    Installed a few days (5?) ago.
     
  13. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    and initial install log ?

    what's output for this command too
    Code (Text):
    ls -lahrt /svr-setup

    Might want to use CODE tags for code How to use forum BBCODE code tags :)
     
  14. xtech

    xtech New Member

    5
    3
    3
    Jul 12, 2016
    Ratings:
    +3
    Local Time:
    4:41 AM
    1.11.2
    10.x
    I've made a fresh Centos install, installed centminmod beta. It's now working! :)
     
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    30,157
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    1:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    good to hear :)

    enjoy :D
     
    • Like Like x 1