Welcome to Centmin Mod Community
Register Now

Nginx Nginx Invalid User

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Mlkx, Jan 12, 2017.

  1. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    11:21 AM
    Hiya,

    I have created already one thread earlier and it was suggested to recreate it here to get some more help if possible.

    I am having Issues connecting to Nginx.
    Here's the pastebin of what has been happening- Vultr Pastebin

    Eva2000 said Nginx has failed to install properly because of a directory problem.


    How do i resolve this issue please?
    • Centmin Mod Version Installed: 123.08stable
    • Nginx Version Installed: I dont know
    • When was last time updated Centmin Mod code base ? : today
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    9:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    The pastebin's banner shows that maybe you're using 123.09beta01 not 123.08stable ? or did you install 123.08stable and later upgrade to 123.09beta01 ?

    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 ?
    • 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 ?
    • Did you install as full root user or did you setup a sudo user and switch to root to install ?

    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
    The install log should tell us what failed to install.
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    9:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like you installed via git master branch ? via centmin.sh menu option 1 ?
    Code (Text):
    [root@vultr ~]# cd /usr/local/src/centminmod-master
    [root@vultr centminmod-master]# ./centmin.sh
    

    try installing on fresh reloaded CentOS 6.x or 7.x via curl command
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
    
     
  4. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    11:21 AM
    I upgraded to 123.09 beta 1hour ago using this command"
    yum -y update; curl -O https://centminmod.com/betainstaller-latest.sh && chmod 0700 betainstaller-latest.sh && bash betainstaller-latest.sh"

    I use Vultr Vps with CentOs 6x64bit, i also installed it as a master root user I think.
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    9:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah there's the problem that curl command is for initial install only ! edit: actually that just added to the initial problem which was nginx failed to install on 123.08stable. The initial install log for 123.08stable in /root/centminlogs would have clues as to why it failed to install nginx

    For upgrades use centmin.sh menu option 23 submenu option 3 outlined below. So best to just reload a fresh CentOS virgin OS and use 123.09beta01 curl installer for initial install only

    in your case for betainstaller-latest.sh
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller-latest.sh && chmod 0700 betainstaller-latest.sh && bash betainstaller-latest.sh
    


    Upgrading Centmin Mod Code to Latest Version



    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod. This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to. You can easily update within a Centmin Mod version branch or switch version branches via centmin.sh menu option 23 outlined here.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at How to upgrade Centmin Mod software installed on your server.
    So essentially, you can upgrade from .08 to .09 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
    Last edited: Jan 12, 2017
  6. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    11:21 AM
    Right I have done a reinstall of the server, and I have the 123.09beta installed.

    Still getting the error message.

    Pastebin
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    9:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Strange. You posted the nginx add vhost log and same error indicating nginx failed to 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
    The install log should tell us what failed to install.
     
  8. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    11:21 AM
    Ok ive increased the scrollback to 15000 i hope that was enough....

    Pastebin
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    9:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    usually it ain't enough but seems you caught the error in the log as it failed very very early into install routine at just downloading required dependencies stage !
    Code (Text):
    Download mysqlreport ...
    Initializing download: https://centminmod.com/centminmodparts/mysqlreport/mysqlreport
    Too many redirects.
    
    Error: mysqlreport download failed.
    check Centmin Mod log for details at /root/centminlogs/
    Aborting script...
    
    Total Centmin Mod Install Time: 644.918711531 seconds
    

    I recently updated centminmod.com site to force HTTPS redirects so could be related though i just tested fresh 123.08stable and 123.09beta01 installs on centso 6.8 and 7.3 to doublecheck and they worked !

    curl header check okay
    Code (Text):
    curl -I https://centminmod.com/centminmodparts/mysqlreport/mysqlreport
    HTTP/1.1 200 OK
    Date: Wed, 11 Jan 2017 20:36:06 GMT
    Content-Type: application/octet-stream
    Content-Length: 49223
    Connection: keep-alive
    Last-Modified: Mon, 13 Jul 2015 05:30:48 GMT
    ETag: "55a34d08-c047"
    Link: <http://centminmod.com/centminmodparts/mysqlreport/mysqlreport>; rel="canonical"
    Server: nginx centminmod
    X-Powered-By: centminmod
    Cache-Control: public, must-revalidate, proxy-revalidate
    PS-CapabilityList: LargeScreen.SkipUADependentOptimizations
    X-Pcache: MISS
    Accept-Ranges: bytes


    seems related to download routine on lines 2566-2582 in inc/downloads.inc

    could be related Axel download accelerator I use for some downloads not liking my centminmod.com HTTPS configured SSL settings.

    I have a download_cmd routine to determine if a download uses axel or wget to download an item and the routine checks for cloudlfare and ecdsa ssl certificated based https and switches from axel to wget if detected at line 877 in centmin.sh

    But seems axel on your system is tripping up on my centminmod.com HTTPS ssl config even though I am not using ecdsa ssl certificate but standard rsa 2048bit ssl certificates.

    what do you get when you run this command manually ?
    Code (Text):
    axel https://centminmod.com/centminmodparts/mysqlreport/mysqlreport
    

    example working output on centos 7 with axel 2.11
    Code (Text):
    axel https://centminmod.com/centminmodparts/mysqlreport/mysqlreport
    Initializing download: https://centminmod.com/centminmodparts/mysqlreport/mysqlreport
    File size: 49223 bytes
    Opening output file mysqlreport
    Starting download
    
    [  0%]  .......... .......... .......... ......
    Connection 0 finished
            ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,
    Connection 2 finished
    Connection 3 finished
            ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,.... ........
    
    Downloaded 48.1 Kilobyte in 0 seconds. (239.79 KB/s)
    

    seems problem is with centos 6's installed axel 2.6 version and https in general
    Code (Text):
    axel https://centminmod.com/centminmodparts/mysqlreport/mysqlreport
    Initializing download: https://centminmod.com/centminmodparts/mysqlreport/mysqlreport
    Too many redirects.
    

    looks like I need to add an additional check for centos 6 + https based downloads and fallback from axel to wget if detected.

    If you used CentOS 7 + 123.09beta01 should be fine though just CentOS 6 + axel 2.6 + https download specific
     
    Last edited: Jan 12, 2017
  10. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    9:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @Mlkx just updated 123.09beta01 with a fix https://community.centminmod.com/th...l-2-6-errors-for-https-based-downloads.10011/ for this so if you do a fresh centos 6 install with 123.09beta01 it should work now.

    edit: also reversing centminmod.com's full http to https redirect for now so it's only selectively done on my html pages and not centmin mod required downloads to see if that helps for 123.08stable until i can push 123.09beta01 to stable release

    Strange that my own 123.08stable and 123.09beta01 on centos 6 worked though heh
     
    Last edited: Jan 12, 2017
  11. Mlkx

    Mlkx New Member

    17
    3
    3
    Jan 12, 2017
    Ratings:
    +3
    Local Time:
    11:21 AM
  12. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    9:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    should be fixed in centos 7

    reason why you download didn't start is because you ran in in /root directly and centmin mod install downloads mysqlreport to /root/mysqlreport. So it exists already so renamed to mysqlreport.0 in /root i believe so no worries you should be good in that aspect