Want more timely Centmin Mod News Updates?
Become a Member

Nginx Nginx upgrade issue - from nginx/1.11.1 to nginx/1.11.8

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Gio Arteaga, Dec 30, 2016.

  1. Gio Arteaga

    Gio Arteaga New Member

    3
    3
    3
    Dec 30, 2016
    Los Angeles
    Ratings:
    +3
    Local Time:
    8:31 PM
    nginx/1.11.1
    10.0.28-MariaDB
    Hello,

    I'm sorry if this is not the appropriate forum to report the issue I'm having.

    6 months ago I installed a fresh installation of Centmin Mod 1.2.3-eva2000.08 on Centos 7.x. Everything has been working fine.

    Currently, I have not been successful upgrading from nginx/1.11.1 to nginx/1.11.8. I seem to find some issues on some variables on the configuration files. See error log file.

    Here are the details.

    Fresh installed 6 months ago. Never upgraded from previous version.
    Centmin Mod 1.2.3-eva2000.08
    CentOS 7.3.1611 64bit
    PHP 5.5.38 (cli) (built: Dec 28 2016 23:44:29)
    nginx/1.11.1
    10.0.28-MariaDB

    1. Updated Centos OS to the latest version (yum update)
    2. centmin.sh menu option 23 to first setup the git environment via submenu option 1. Then exiting centmin.sh and relauncing centmin.sh to use centmin.sh menu option 23 submenu option 2 to check for updates.
    3. centmin.sh menu option 4-Nginx Upgrade
    4. See log here.
    HTML:
    http://s3-hdpixel.s3.amazonaws.com/docs/centminmod/centminmod_1.2.3-eva2000.08_281216-231016_nginx_upgrade.log
    Thank you in advanced for looking at this issue. And let me know if you need more information.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    2:31 PM
    Nginx 1.13.x
    MariaDB 5.5
    were there any updates ? if there was you would need to exit centmin.sh and re-run centmin.sh again for centmin.sh menu option 4

    but looks like you didn't enter the correct nginx version when prompted during centmin.sh menu option 4 as nginx version is blank causing the nginx download to fail = 404 not found
    Code (Text):
    Compiling nginx...
    http://nginx.org/download/nginx-.tar.gz:
    2016-12-28 23:18:13 ERROR 404: Not Found.
    tar (child): nginx-.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
    inc/nginx_upgrade.inc: line 403: cd: nginx-: No such file or directory
    

    when asked which version of nginx to upgrade to, you must of hit enter instead of specifying 1.11.8
    Code (Text):
    Nginx Upgrade - Would you like to continue? [y/n] y
    
    Install which version of Nginx? (version i.e. 1.11.8}):
    
    
    backup NGINX CONF...
    
     
  3. pamamolf

    pamamolf Well-Known Member

    2,820
    253
    83
    May 31, 2014
    Ratings:
    +447
    Local Time:
    6:31 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    I also specify by typing the latest version at that prompt...

    Didn't know that i can leave it empty and hit enter to get the latest version...
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    2:31 PM
    Nginx 1.13.x
    MariaDB 5.5
    no you specify the version number, i just mentioned he must of hit enter and left blank the version

    though i do recall working on a fallback for folks leaving version empty. Have to check if 123.09beta01 has that fallback check or whether it's not working... edit: oh 123.08stable that @Gio Arteaga doesn't have that code. It was added to 123.09beta01 so probably what @pamamolf experienced

    centmin mod 123.09beta01 has improved code in inc/nginx_upgrade.inc centminmod/nginx_upgrade.inc at 123.09beta01 · centminmod/centminmod · GitHub

    Code (Text):
        read -ep "Install which version of Nginx? (version i.e. type $NGINX_VERSION): " ngver
        # if user forgets to type in nginx version and hits
        # enter, ngxver will be empty so should fall back to
        # the nginx version defined by NGINX_VERSION variable
        if [ -z "$ngver" ]; then
            LASTEST_NGINXVERS=$(curl -sL https://nginx.org/en/download.html 2>&1 | egrep -o "nginx\-[0-9.]+\.tar[.a-z]*" | awk -F "nginx-" '/.tar.gz$/ {print $2}' | sed -e 's|.tar.gz||g' | head -n 1 2>&1)
            ngver="$LASTEST_NGINXVERS"
        fi
     
  5. Gio Arteaga

    Gio Arteaga New Member

    3
    3
    3
    Dec 30, 2016
    Los Angeles
    Ratings:
    +3
    Local Time:
    8:31 PM
    nginx/1.11.1
    10.0.28-MariaDB
    @eva2000 You're correct. I left the field blank for version number. I just did it again, and this time it worked after I specified the version number of 1.11.8.

    Thank you very much.
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    2:31 PM
    Nginx 1.13.x
    MariaDB 5.5
    Great to hear :)