Want more timely Centmin Mod News Updates?
Become a Member

Nginx Nginx Install failure. Error: 2, Nginx make failed

Discussion in 'Install & Upgrades or Pre-Install Questions' started by yunos, Mar 19, 2022.

  1. yunos

    yunos Member

    129
    3
    18
    Aug 8, 2015
    Ratings:
    +16
    Local Time:
    6:30 AM
    1.8.0
    • CentOS Version: / CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.21.6
    • When was last time updated Centmin Mod code base ? : few minutes ago
    • Persistent Config:
    Code (Text):
    LETSENCRYPT_DETECT='y'
    KEYLENGTH='ec-256'
    PHP_PGO='y'
    PHPPGO_INDEXPATH='/home/nginx/domains/domain.com/public/index.php'
    DUALCERTS='y'
    ENABLEMOTD_CSFMSG='n'
    ENABLEMOTD_LINKSMSG='n'
    MM_LICENSE_KEY=''
    MM_CSF_SRC='y'
    ACMEDEBUG='y'
    PHPFINFO='y'
    AUDITD_ENABLE='y'
    ALERTEMAIL='@gmail.com'
    



    i tried updating and downgrading always result with makefile error

     

    Attached Files:

    • l.txt
      File size:
      129.2 KB
      Views:
      0
  2. eva2000

    eva2000 Administrator Staff Member

    53,211
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    2:30 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Looks like openssl 1.1.1n tar.gz file is corrupt or broken incomplete download - from log
    Code (Text):
    Compiling OpenSSL...
    OPENSSL_CFZLIB_OPT =
    OPENSSL_CFZLIB_RPATH =
    tar: Skipping to next header
    
    gzip: stdin: invalid compressed data--format violated
    tar: Child returned status 1
    tar: Error is not recoverable: exiting now
    

    What's output for
    Code (Text):
    ls -lhArt /svr-setup/openssl-1.1.1n.tar.gz
    

    example
    Code (Text):
    ls -lhArt /svr-setup/openssl-1.1.1n.tar.gz 
    -rw-r--r-- 1 root root 9.4M Mar 17 05:39 /svr-setup/openssl-1.1.1n.tar.gz
    

    If it isn't 9.4MB in size, then remove the incomplete download
    Code (Text):
    cd /svr-setup
    rm -f /svr-setup/openssl-1.1.1n*
    

    and re-run centmin.sh menu option 4 to recompile Nginx again.
     
  3. yunos

    yunos Member

    129
    3
    18
    Aug 8, 2015
    Ratings:
    +16
    Local Time:
    6:30 AM
    1.8.0
    Code (Text):
    -rw-r--r-- 1 root root 8.3M Mar 18 15:12 /svr-setup/openssl-1.1.1n.tar.gz
    

    removing that did install the new version successfully however encounter new issue

    systemd[1]: Can't open PID file /usr/local/nginx/logs/nginx.pid (yet?) after start: No such file or directory
    systemd[1]: Reload failed for SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
     
    Last edited: Mar 19, 2022