Join the community today
Register Now

Nginx Can't install on Vultr

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Benjamin74, Mar 30, 2017.

  1. Benjamin74

    Benjamin74 Member

    32
    2
    8
    May 2, 2016
    Ratings:
    +5
    Local Time:
    2:09 AM
    I'm having the same issue.

    It seems like there is a new bug with Vultr images... after running centminmod install script nginx is NOT running, and NOT installed either (which nginx returns nothing, ps aux | grep '[n]ginx' returns nothing either).

    One week ago the centminmod install script worked perfectly on the same Vultr package so it must be on their side.

    I'll have to open a ticket with them but is there any way to find out WHY doesn't centminmod install nginx ?

    Thanks,
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



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

    Example list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues
     
  3. Benjamin74

    Benjamin74 Member

    32
    2
    8
    May 2, 2016
    Ratings:
    +5
    Local Time:
    2:09 AM
    OK, not sure why you moved my thread, as it IS 100% related to what the guy getting ERR_CONNECTION_REFUSED is getting... (I got that error message too, domain.com pointed to server IP but even after DNS propagation, trying to access the site gets an ERR_CONNECTION_REFUSED)

    I got this ERR_CONNECTION_REFUSED on a new Vultr centos6 install, upon inspection it seems like nginx install failed. It's neither running nor installed.

    I'll try to see if I can install a custom "minimal centos 6 64 bits" disk image instead of the current Vultr image as my guess is that it could be related (or maybe a repo is down...).
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    moved so you can have separate troubleshooting discussions :)

    Centmin Mod installs Nginx and PHP-FPM via source install so not repo related usually

    to troubleshoot need above required install log
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    looks like something in 123.08stable broke for libressl download which nginx relies on
    Code (Text):
    curl -I http://openbsd.mirrors.pair.com/LibreSSL
    HTTP/1.1 403 Forbidden
    Date: Wed, 29 Mar 2017 19:31:20 GMT
    Server: Apache/2.2.31
    Content-Type: text/html; charset=iso-8859-1
    
    

    Code (Text):
    Download libressl-2.4.5.tar.gz ...
    http://openbsd.mirrors.pair.com/LibreSSL/libressl-2.4.5.tar.gz:
    2017-03-29 19:07:23 ERROR 403: Forbidden.
    http://centminmod.com/centminmodparts/libressl/libressl-2.4.5.tar.gz:
    2017-03-29 19:07:23 ERROR 404: Not Found.
    Error: libressl-2.4.5.tar.gz download failed.
    


    Code (Text):
    Compiling LibreSSL...
    inc/openssl_install.inc: line 67: cd: libressl-2.4.5: No such file or directory
    bash: autogen.sh: No such file or directory
    inc/openssl_install.inc: line 103: ./configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    make: *** No rule to make target `install'.  Stop.
    -rw-r--r-- 1 root root 42 Mar 29 19:07 /root/centminlogs/centminmod_libresslinstalltime_290317-190604.log
    


    Code (Text):
    
    make -f objs/Makefile install
    make[1]: Entering directory `/svr-setup/nginx-1.11.10'
    cd ../libressl-2.4.5 \
    && if [ -f Makefile ]; then make clean; fi \
    && ./config --prefix=/svr-setup/nginx-1.11.10/../libressl-2.4.5/.openssl no-shared enable-tlsext \
    && make \
    && make install_sw LIBDIR=lib
    /bin/sh: line 0: cd: ../libressl-2.4.5: No such file or directory
    make[1]: *** [../libressl-2.4.5/.openssl/include/openssl/ssl.h] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.11.10'
    make: *** [install] Error 2
    


    Just updated my local centminmod.com libressl mirror for 2.4.5, 2.5.0 and 2.5.1 so shouldn't happen now. Will update 123.08stable's main libressl link. Centmin Mod 123.09beta01 doesn't have such issue as it has improved libressl download mirroring routine which utilises mirrors listed at OpenBSD: Mirrors based on detected geo location of your server.
     
    Last edited: Mar 30, 2017
  6. Benjamin74

    Benjamin74 Member

    32
    2
    8
    May 2, 2016
    Ratings:
    +5
    Local Time:
    2:09 AM
    OK got it.

    - Vultr new install Cent OS 6 64 Bits
    - 08 Stable

    I'll run it again in a few minutes to see how it goes, I've deleted the instance that was buggy.
     
  7. Benjamin74

    Benjamin74 Member

    32
    2
    8
    May 2, 2016
    Ratings:
    +5
    Local Time:
    2:09 AM
    OK so after initial install nginx is there and running.

    After invoking centmin menu it seems like there is a small wget glitch (?)


    --------------------------------------------------------
    wget 1.18 failed to update, still using system wget
    --------------------------------------------------------

    Total wget Install Time: 167.540647354 seconds

    Else it seems to work as perfectly as usual ;-)

    Thanks a lot !!!
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    Great to here it worked

    as to wget, manually run /usr/local/src/centminmod/addons/wget.sh via command
    Code (Text):
    /usr/local/src/centminmod/addons/wget.sh install
    

    and when or if it fails to update, check /root/centminlogs/wget_source_install_${DT}.log where DT is date/timestamped and copy and paste contents of that log to pastebin.com or gist.github.com so we can see what error there is
     
  9. Benjamin74

    Benjamin74 Member

    32
    2
    8
    May 2, 2016
    Ratings:
    +5
    Local Time:
    2:09 AM
  10. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah seems to be your locale language related as it seems wget did install/update just my script's detection for it was a bit off due to language i think

    what's output for these 3 commands
    Code (Text):
    wget -V
    

    Code (Text):
    wget -V | head -n1 | awk '{print $3}'
    

    Code (Text):
    WGET_VERSION=1.18
    wget -V | head -n1 | awk '{print $3}' | grep -q ${WGET_VERSION} >/dev/null 2>&1; echo $?
    

    the log you provided shows wget was updated
    Code (Text):
    [1;32;40m--------------------------------------------------------
    (B[m[1;33;40mwget -V
    (B[mGNU Wget 1.18 compilé sur linux-gnu.
    
    -cares +digest -gpgme +https +ipv6 +iri +large-file -metalink +nls
    +ntlm +opie -psl +ssl/openssl
    
     
    Last edited: Mar 31, 2017
  11. Benjamin74

    Benjamin74 Member

    32
    2
    8
    May 2, 2016
    Ratings:
    +5
    Local Time:
    2:09 AM
    Yeah could be the locale, somehow Vultr thinks it's better to install in my locale even though I much prefer to have the EN version...

    GNU Wget 1.18 compilé sur linux-gnu.

    compilé


    2
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah indeed.. guess i need a smarter grep/awk match to take into account locales :)
     
  13. eva2000

    eva2000 Administrator Staff Member

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    10:09 AM
    Nginx 1.13.x
    MariaDB 5.5