Want to subscribe to topics you're interested in?
Become a Member

Nginx Error upgrading Nginx

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Milano, Aug 20, 2015.

Tags:
  1. Milano

    Milano New Member

    15
    3
    3
    Oct 1, 2014
    Ratings:
    +3
    Local Time:
    1:44 PM
    I got this error while upgrading Nginx to 1.9.4. Pls help.


     
  2. eva2000

    eva2000 Administrator Staff Member

    55,163
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what version of centmin mod .07 stable, .08 stable, .09 beta01 or older ?

    which version of nginx upgrading from ?

    looks like corrupted yum database etc

    google-fu Corrupt RPMDB and recovery - CloudiBee

    Code:
    rm -f /var/lib/rpm/__*
    rpm --rebuilddb
    then try recompiling/upgrading Nginx again
     
  3. Milano

    Milano New Member

    15
    3
    3
    Oct 1, 2014
    Ratings:
    +3
    Local Time:
    1:44 PM
    Thanks for your fast reply, problem solved. I'm using V1.2.3-Eva2000.08 -31/07/2015 and upgrading from nginx 1.7.9
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,163
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Glad to hear :D
     
  5. Chris

    Chris Member

    51
    10
    8
    Feb 27, 2015
    Ratings:
    +15
    Local Time:
    2:44 AM
    1.7
    10
    I was following up with this...upgrading from 1.7.3

    I did the commands from earlier Eva...

    and this is from my logs
    Code:
    [1;33;40mDownload headers-more-v0.261.tar.gz ...
    (B[m--2015-09-01 00:59:24--  https://github.com/agentzh/headers-more-nginx-module/archive/v0.261.tar.gz
    Resolving github.com (github.com)... failed: Name or service not known.
    wget: unable to resolve host address ‘github.com’
    [1;32;40mError: headers-more-v0.261.tar.gz download failed.
    (B[mcheck Centmin Mod log for details at /root/centminlogs/
    Aborting script...
    
    Total Nginx Upgrade Time: 7.750328964 seconds
    I try the url, they download fine.
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,163
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @Chris could be that some github hosted nginx modules didn't download properly due to DNS issues on your VPS preventing resolution of github.com domain. It maybe that other Nginx and github hosted downloads didn't download properly too. You can double check by doing the following download manually on your server

    Code:
    cd /svr-setup
    wget https://github.com/agentzh/headers-more-nginx-module/archive/v0.261.tar.gz -O headers-more-v0.261.tar.gz
    check your DNS nameservers for your server in /etc/resolv.conf

    you may want to switch to using google's dns
    Code:
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    If using Centmin Mod .08 stable and higher, there's a preset included download files for base versions that comes inside the download for Centmin Mod so if you're upgrading from Centmin Mod .07 and older, you can extract this from /downloads/svr-setup.zip to /svr-setup using this command in SSH as root user

    Code:
    /usr/bin/unzip -qo /usr/local/src/centminmod/downloads/svr-setup.zip -d /
    if any prompts for overwrite, you can select yes or A for ALL and your local /svr-setup download folder should have base downloads for centmin.sh specified version downloads

    after that try reinstall Nginx via centmin.sh menu option 4 with or without vts nginx traffic module settings enabled/disabled.
     
    Last edited: Sep 1, 2015
  7. Chris

    Chris Member

    51
    10
    8
    Feb 27, 2015
    Ratings:
    +15
    Local Time:
    2:44 AM
    1.7
    10
    The DNS was not set for some reason.
    Your solution solved the problem!

    Many thanks!
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,163
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Glad to hear.. :)

    If it's a fresh server, might want to do a fresh reload and reinstall Centmin Mod fresh as who knows what other downloads or yum installs failed due to DNS not working