Learn about Centmin Mod LEMP Stack today
Become a Member

Upgrade Nginx Make build error 2 on upgrade to nginx 1.15.3

Discussion in 'Install & Upgrades or Pre-Install Questions' started by JJC84, Sep 1, 2018.

  1. JJC84

    JJC84 Premium Member Premium Member

    170
    74
    28
    Jan 31, 2018
    Ratings:
    +101
    Local Time:
    2:25 AM
    1.13.9
    10.1
    Please fill in any relevant information that applies to you:
    • CentOS Version: Centos 7
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.15.2 attempting to upgrade to 1.15.3
    • PHP Version Installed: 7.2.9
    • MariaDB MySQL Version Installed: 10.1.xx
    • When was last time updated Centmin Mod code base ?: today
    • Persistent Config:
      Code (Text):
      DISABLE_IPVSIX='y'
      CSFPORTFLOOD_OVERRIDE='y'
      DEVTOOLSETSEVEN='y'
      GENERAL_DEVTOOLSETGCC='y'
      CRYPTO_DEVTOOLSETGCC='y'
      PHP_TUNING='y'
      NGINX_PAGESPEED='y'
      NGXDYNAMIC_NGXPAGESPEED='y'
      NGXDYNAMIC_BROTLI='y'
      NGINX_LIBBROTLI='y'
      NGINX_DYNAMICTLS='y'
      PHP_PGO='y'
      LETSENCRYPT_DETECT='y'
      NGINX_HTTP2='y'
      NGINX_ZLIBNG='y'
      NGINX_ZLIBCUSTOM='y'
      PHP_CUSTOMSSL='y'
      OPENSSL_THREADS='y'
      CLOUDFLARE_PATCHSSL='y'
      CLOUDFLARE_ZLIBPHP='y'
      OPENSSLECDSA_PATCH='y'
      OPENSSLECDHX_PATCH='y'
      VHOSTCTRL_CLOUDFLAREINC='y'
      OPENSSLEQUALCIPHER_PATCH='y'
      

     
  2. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,896
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,174
    Local Time:
    5:25 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    generally i'd remove these 2

    NGINX_ZLIBNG='y'
    NGINX_ZLIBCUSTOM='y

    zlib-ng doesn't work and default is now cloudflare zlib for nginx

    remove

    NGINX_HTTP2='y'

    it's default already

    remove

    OPENSSL_THREADS='y'

    not really working 100%

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

    also what's output of
    Code (Text):
    nginx -t

    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

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log
     
    • Informative Informative x 1
  3. JJC84

    JJC84 Premium Member Premium Member

    170
    74
    28
    Jan 31, 2018
    Ratings:
    +101
    Local Time:
    2:25 AM
    1.13.9
    10.1
    trying your first steps right now by removing the flags then i'll send the logs if it doesn't compile
     
  4. JJC84

    JJC84 Premium Member Premium Member

    170
    74
    28
    Jan 31, 2018
    Ratings:
    +101
    Local Time:
    2:25 AM
    1.13.9
    10.1
    We are all good now! Thank you! More money your way soon
     
    • Like Like x 1
  5. Jimmy

    Jimmy Premium Member Premium Member

    1,359
    287
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +703
    Local Time:
    3:25 AM
    1.13.x
    MariaDB 10.1.x
    You have
    Code:
    CSFPORTFLOOD_OVERRIDE='y'
    Shouldn't you have the other options of what you're going to set it too?
     
    • Informative Informative x 1
  6. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,896
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,174
    Local Time:
    5:25 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    see CSF - Insight Guide - CSF Firewall Port Flood Blocking Pure-FTPD Connections

    Code (Text):
    #####################################################
    # CSF FIREWALL
    # PORTFLOOD Configuration
    # https://community.centminmod.com/threads/14708/
    # Setting CSFPORTFLOOD_OVERRIDE='y' allows you to
    # override default CSF Firewall PORTFLOOD values set
    # by Centmin Mod initial install. If end user made
    # custom changes to PORTFLOOD values, the override
    # will not work. Override only works if end user has
    # not made custom changes to PORTFLOOD values to ensure
    # end users customisations do not get overwritten
    CSFPORTFLOOD_OVERRIDE='n'
    # max hit count value allowed is 20
    PORTFLOOD_COUNT=20
    # lowering interval in seconds allows for more
    # port flood hits against default TCP port 21
    PORTFLOOD_INTERVAL=300
    

    good to hear :)
     
  7. JJC84

    JJC84 Premium Member Premium Member

    170
    74
    28
    Jan 31, 2018
    Ratings:
    +101
    Local Time:
    2:25 AM
    1.13.9
    10.1
    Good catch! I messed that one up.
     
    • Like Like x 2
  8. Peter Nehem

    Peter Nehem It hates everything I try to type here Premium Member

    10
    8
    3
    Nov 22, 2017
    Tucson, Arizona USA
    Ratings:
    +12
    Local Time:
    12:25 AM
    1.15.0
    MariaDB 10.1.34
    I wanted to report that I too was getting this same error last week and thought I had it fixed, but after updating my kernel to 4.18.5, my home computer went down and took me 3 days to get it back and I'm still not quite sure what went wrong, other than I'm getting more wary of not downloading those kernel-ml updates right after they come out because this is the 2nd time and update has taken down a computer of mine..but I've gotten off track.
    The old local machine sailed through 1.15.3 with no problem, my new home computer in the same place, when right as nginx had finished recompiling openssl for the 2nd time and would error out right after it finished copying the files and just before the complete compile of nginx.
    Then I saw this posting and looked at my custom_config.inc - I had been trying all kinds of changes trying to figure out what was causing it to not compile - but this NGINX_ZLIBNG='y' was in every trial I ran. I took it out of the server and the only other thing I did was comment out NGXDYNAMIC_TESTCOOKIE='y'
    But wow, one line was throwing it all off - now I got nginx 1.15.3 on my two locals and one server and I'm still trying to fix my 1and 1 main server - had to reload it and they use the stupidest script to setup the drives - they put root / on a 4G /dev/md1 partition that I can't make bigger - while everything else (home, var, usr is on an LVM - which is quite easy to make those partitions larger. But I maxed out the 4 Gigs while loading centminmod.
    I got sort of the subject - But THANKS for this - I got be back up my and running Thanks again!
     
    • Informative Informative x 2
..