Join the community today
Become a Member

Nginx Can not upgrade nginx after hitting disk full during upgrade: Error: 2, Nginx make failed

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Jens Sogaard, Nov 4, 2017.

  1. Jens Sogaard

    Jens Sogaard New Member

    12
    8
    3
    Feb 28, 2016
    Copenhagen, Denmark
    Ratings:
    +9
    Local Time:
    12:57 AM
    1.9.4
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.0
    • PHP Version Installed: 7.0.15
    • MariaDB MySQL Version Installed: 10.1.21
    • When was last time updated Centmin Mod code base ? : current
    • Persistent Config: no
    Code (Text):
    Fri Nov  3 14:21:59 UTC 2017
    Success: Nginx configure ok
    
                _   _         _                __  __         _
               | \ | |  __ _ (_) _ __  __  __ |  \/  |  __ _ | | __ ___
               |  \| | / _` || || '_ \ \ \/ / | |\/| | / _` || |/ // _ \
               | |\  || (_| || || | | | >  <  | |  | || (_| ||   <|  __/
               |_| \_| \__, ||_||_| |_|/_/\_\ |_|  |_| \__,_||_|\_\\___|
                       |___/
    make -f objs/Makefile
    make[1]: Entering directory `/svr-setup/nginx-1.13.1'
    cd ../pcre-8.41 \
    && if [ -f Makefile ]; then make distclean; fi \
    && CC="ccache /usr/bin/clang -ferror-limit=0" CFLAGS="-O2 -pipe " \
    ./configure --disable-shared  --enable-jit
    cd ../ \
    && if [ -f Makefile ]; then make clean; fi \
    && ./config --prefix=/svr-setup/nginx-1.13.1/..//.openssl no-shared  \
    && make \
    && make install_sw LIBDIR=lib
    /bin/sh: line 2: ./config: No such file or directory
    make[1]: *** [..//.openssl/include/openssl/ssl.h] Error 127
    make[1]: *** Waiting for unfinished jobs....
    make[2]: Entering directory `/svr-setup/pcre-8.41'
     rm -f pcretest pcregrep
    test -z "pcre_chartables.c testsavedregex teststderr testtemp* testtry testNinput testtrygrep teststderrgrep testNinputgrep" || rm -f pcre_chartables.c testsavedregex teststderr testtemp* testtry testNinput testtrygrep teststderrgrep testNinputgrep
    test -z "libpcre.la   libpcreposix.la libpcrecpp.la" || rm -f libpcre.la   libpcreposix.la libpcrecpp.la
    rm -rf .libs _libs
    rm -f *.o
     rm -f pcre_jit_test pcrecpp_unittest pcre_scanner_unittest pcre_stringpiece_unittest
    test -z "pcre_jit_test.log pcrecpp_unittest.log pcre_scanner_unittest.log pcre_stringpiece_unittest.log RunTest.log RunGrepTest.log" || rm -f pcre_jit_test.log pcrecpp_unittest.log pcre_scanner_unittest.log pcre_stringpiece_unittest.log RunTest.log RunGrepTest.log
    rm -f *.lo
    test -z "pcre_jit_test.trs pcrecpp_unittest.trs pcre_scanner_unittest.trs pcre_stringpiece_unittest.trs RunTest.trs RunGrepTest.trs" || rm -f pcre_jit_test.trs pcrecpp_unittest.trs pcre_scanner_unittest.trs pcre_stringpiece_unittest.trs RunTest.trs RunGrepTest.trs
    rm -f ./so_locations
    rm -f *.tab.c
    test -z "libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h" || rm -f libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h
    test -z "test-suite.log" || rm -f test-suite.log
    rm -f config.h stamp-h1
    rm -f libtool config.lt
    test . = "." || test -z "" || rm -f
    rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
    rm -f cscope.out cscope.in.out cscope.po.out cscope.files
    rm -f config.status config.cache config.log configure.lineno config.status.lineno
    rm -rf ./.deps
    rm -f Makefile
    make[2]: Leaving directory `/svr-setup/pcre-8.41'
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether make supports nested variables... (cached) yes
    checking for style of include used by make... GNU
    checking for gcc... ccache /usr/bin/clang -ferror-limit=0
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether ccache /usr/bin/clang -ferror-limit=0 accepts -g... yes
    checking for ccache /usr/bin/clang -ferror-limit=0 option to accept ISO C89... none needed
    checking whether ccache /usr/bin/clang -ferror-limit=0 understands -c and -o together... yes
    checking dependency style of ccache /usr/bin/clang -ferror-limit=0... gcc3
    checking for ar... ar
    checking the archiver (ar) interface... ar
    checking for gcc... (cached) ccache /usr/bin/clang -ferror-limit=0
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether ccache /usr/bin/clang -ferror-limit=0 accepts -g... (cached) yes
    checking for ccache /usr/bin/clang -ferror-limit=0 option to accept ISO C89... (cached) none needed
    checking whether ccache /usr/bin/clang -ferror-limit=0 understands -c and -o together... (cached) yes
    checking dependency style of ccache /usr/bin/clang -ferror-limit=0... (cached) gcc3
    checking whether we are using the GNU C++ compiler... yes
    checking whether ccache /usr/bin/clang++ -ferror-limit=0 accepts -g... yes
    checking dependency style of ccache /usr/bin/clang++ -ferror-limit=0... gcc3
    checking how to run the C preprocessor... ccache /usr/bin/clang -ferror-limit=0 -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for int64_t... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by ccache /usr/bin/clang -ferror-limit=0... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /bin/nm -B
    checking the name lister (/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... dlltool
    checking how to associate runtime and link libraries... printf %s\n
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /bin/nm -B output from ccache /usr/bin/clang -ferror-limit=0 object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... no
    checking if : is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if ccache /usr/bin/clang -ferror-limit=0 supports -fno-rtti -fno-exceptions... yes
    checking for ccache /usr/bin/clang -ferror-limit=0 option to produce PIC... -fPIC -DPIC
    checking if ccache /usr/bin/clang -ferror-limit=0 PIC flag -fPIC -DPIC works... yes
    checking if ccache /usr/bin/clang -ferror-limit=0 static flag -static works... no
    checking if ccache /usr/bin/clang -ferror-limit=0 supports -c -o file.o... yes
    checking if ccache /usr/bin/clang -ferror-limit=0 supports -c -o file.o... (cached) yes
    checking whether the ccache /usr/bin/clang -ferror-limit=0 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... no
    checking whether to build static libraries... yes
    checking how to run the C++ preprocessor... ccache /usr/bin/clang++ -ferror-limit=0 -E
    checking for ld used by ccache /usr/bin/clang++ -ferror-limit=0... /usr/bin/ld -m elf_x86_64
    checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
    checking whether the ccache /usr/bin/clang++ -ferror-limit=0 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for ccache /usr/bin/clang++ -ferror-limit=0 option to produce PIC... -fPIC -DPIC
    checking if ccache /usr/bin/clang++ -ferror-limit=0 PIC flag -fPIC -DPIC works... yes
    checking if ccache /usr/bin/clang++ -ferror-limit=0 static flag -static works... no
    checking if ccache /usr/bin/clang++ -ferror-limit=0 supports -c -o file.o... yes
    checking if ccache /usr/bin/clang++ -ferror-limit=0 supports -c -o file.o... (cached) yes
    checking whether the ccache /usr/bin/clang++ -ferror-limit=0 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... (cached) GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether ln -s works... yes
    checking whether the -Werror option is usable... yes
    checking for simple visibility declarations... yes
    checking for ANSI C header files... (cached) yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking for sys/types.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking windows.h usability... no
    checking windows.h presence... no
    checking for windows.h... no
    checking for alias support in the linker... no
    checking for alias support in the linker... no
    checking string usability... yes
    checking string presence... yes
    checking for string... yes
    checking bits/type_traits.h usability... no
    checking bits/type_traits.h presence... no
    checking for bits/type_traits.h... no
    checking type_traits.h usability... no
    checking type_traits.h presence... no
    checking for type_traits.h... no
    checking for strtoq... yes
    checking for long long... yes
    checking for unsigned long long... yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking for bcopy... yes
    checking for memmove... yes
    checking for strerror... yes
    checking zlib.h usability... yes
    checking zlib.h presence... yes
    checking for zlib.h... yes
    checking for gzopen in -lz... yes
    checking bzlib.h usability... yes
    checking bzlib.h presence... yes
    checking for bzlib.h... yes
    checking for libbz2... yes
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking for PTHREAD_PRIO_INHERIT... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libpcre.pc
    config.status: creating libpcre16.pc
    config.status: creating libpcre32.pc
    config.status: creating libpcreposix.pc
    config.status: creating libpcrecpp.pc
    config.status: creating pcre-config
    config.status: creating pcre.h
    config.status: creating pcre_stringpiece.h
    config.status: creating pcrecpparg.h
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing script-chmod commands
    config.status: executing delete-old-chartables commands
    
    pcre-8.41 configuration summary:
    
        Install prefix .................. : /usr/local
        C preprocessor .................. : ccache /usr/bin/clang -ferror-limit=0 -E
        C compiler ...................... : ccache /usr/bin/clang -ferror-limit=0
        C++ preprocessor ................ : ccache /usr/bin/clang++ -ferror-limit=0 -E
        C++ compiler .................... : ccache /usr/bin/clang++ -ferror-limit=0
        Linker .......................... : /usr/bin/ld -m elf_x86_64
        C preprocessor flags ............ :
        C compiler flags ................ : -pthread -O2 -pipe  -fvisibility=hidden
        C++ compiler flags .............. : -O2 -fvisibility=hidden -fvisibility-inlines-hidden
        Linker flags .................... :
        Extra libraries ................. :
    
        Build 8 bit pcre library ........ : yes
        Build 16 bit pcre library ....... : no
        Build 32 bit pcre library ....... : no
        Build C++ library ............... : yes
        Enable JIT compiling support .... : yes
        Enable UTF-8/16/32 support ...... : no
        Unicode properties .............. : no
        Newline char/sequence ........... : lf
        \R matches only ANYCRLF ......... : no
        EBCDIC coding ................... : no
        EBCDIC code for NL .............. : n/a
        Rebuild char tables ............. : no
        Use stack recursion ............. : yes
        POSIX mem threshold ............. : 10
        Internal link size .............. : 2
        Nested parentheses limit ........ : 250
        Match limit ..................... : 10000000
        Match limit recursion ........... : MATCH_LIMIT
        Build shared libs ............... : no
        Build static libs ............... : yes
        Use JIT in pcregrep ............. : yes
        Buffer size for pcregrep ........ : 20480
        Link pcregrep with libz ......... : no
        Link pcregrep with libbz2 ....... : no
        Link pcretest with libedit ...... : no
        Link pcretest with libreadline .. : no
        Valgrind support ................ : no
        Code coverage ................... : no
    
    make[1]: Leaving directory `/svr-setup/nginx-1.13.1'
    make: *** [build] Error 2
    
    real    0m3.428s
    user    0m1.260s
    sys    0m0.470s
    
    Fri Nov  3 14:22:03 UTC 2017
    Error: 2, Nginx make failed
    
    report errors on the forums at community.centminmod.com/forums/8/
    
                  total        used        free      shared  buff/cache   available
    Mem:           3948         233         113          30        3602        3390
    Swap:           511           0         511
    
    CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz (2)
    
    version increment history
    1.2.3-eva2000.09.007 #Fri Nov  3 13:57:16 UTC 2017
    1.2.3-eva2000.09.007 #Fri Nov  3 14:02:50 UTC 2017
    1.2.3-eva2000.09.007 #Fri Nov  3 14:11:27 UTC 2017
    1.2.3-eva2000.09.007 #Fri Nov  3 14:20:11 UTC 2017
    1.2.3-eva2000.09.007 #Fri Nov  3 14:20:43 UTC 2017
    
    last Centmin Mod local git commit entry
    /usr/local/src/centminmod /svr-setup/nginx-1.13.1
    
    f1f947e George Liu Fri, 3 Nov 2017 19:02:56 +1000
    update tools/csf-advancetweaks.sh extend blocklist
    
    13    1    tools/csf-advancetweaks.sh
     1 file changed, 13 insertions(+), 1 deletion(-)
    /svr-setup/nginx-1.13.1
    Total Nginx Upgrade Time: 74.339505531 seconds
    

     
  2. Jens Sogaard

    Jens Sogaard New Member

    12
    8
    3
    Feb 28, 2016
    Copenhagen, Denmark
    Ratings:
    +9
    Local Time:
    12:57 AM
    1.9.4
    # nginx -t
    nginx: [emerg] dlopen() "/usr/local/nginx/modules/ngx_http_headers_more_filter_module.so" failed (/usr/local/nginx/modules/ngx_http_headers_more_filter_module.so: cannot open shared object file: No such file or directory) in /usr/local/nginx/conf/dynamic-modules.conf:5
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
    [14:30][root@normann centminlogs]#

    # centmin logs
    ./configure --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib" --with-cc-opt="-m64 -mtune=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector -fuse-ld=gold --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-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 -gsplit-dwarf" --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.4.2 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.32 --with-pcre=../pcre-8.41 --with-pcre-jit --with-zlib=../zlib-1.2.11 --with-http_ssl_module --with-http_v2_module --with-openssl=../
     
  3. Jens Sogaard

    Jens Sogaard New Member

    12
    8
    3
    Feb 28, 2016
    Copenhagen, Denmark
    Ratings:
    +9
    Local Time:
    12:57 AM
    1.9.4
  4. eva2000

    eva2000 Administrator Staff Member

    30,606
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,297
    Local Time:
    9:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    so it wasn't a disk space issue but possible pcre issue then ?

    Might want to check out these threads which will shed some light if it's disk space though :)
    1st post i updated a wrapped command output in BBCODE CODE tags. You might want to do that for future outputs like them. How to use forum BBCODE code tags :)