Join the community today
Register Now

NGINX Issue BetaInstaller-Latest

Discussion in 'Bug Reports' started by KeVo, Mar 12, 2017.

  1. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    2:41 AM
    1.11.x
    10.1.18
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed:
      betainstaller-latest
    • Nginx Version Installed: i.e. 1.11.10
    I've done this around 3-4 times now, each time at a different Linode datacenter with the betainstaller-latest. Upon the mod being installed, no changes made, the NGINX fails to restart out of the box. It spits out the following:

    Code:
    Restarting nginx (via systemctl):  Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
    
    Here's what it says using the first suggested command:

    Code:
    systemctl status nginx.service -l
    ● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
       Active: failed (Result: exit-code) since Sun 2017-03-12 00:18:32 UTC; 4min 32s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 23099 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=5)
    
    Mar 12 00:18:32 host systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Mar 12 00:18:32 host systemd[1]: nginx.service: control process exited, code=exited status=5
    Mar 12 00:18:32 host systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Mar 12 00:18:32 host systemd[1]: Unit nginx.service entered failed state.
    Mar 12 00:18:32 host systemd[1]: nginx.service failed.
    
    Using the betainstaller7, NGINX works well, so it seems to be isolated to the betainstaller-latest.

    :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    what's output for
    Code (Text):
    nginx -t
    

    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. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    2:41 AM
    1.11.x
    10.1.18
    The command doesn't seem to be valid, according to the response I received.

    Trying to work on that log.
     
  4. ljseals

    ljseals Member

    88
    22
    8
    Dec 20, 2016
    Ratings:
    +43
    Local Time:
    2:41 AM
    I believe I have the same issue as I tried to install a new server and the betainstaller-latest twice and it failed both times. The first time it was similar as above. The second time.

    Code:
    **********************************************************************
    Starting nginx (via systemctl):  Job for nginx.service failed because the contro                                                                                                                                                             l process exited with error code. See "systemctl status nginx.service" and "jour                                                                                                                                                             nalctl -xe" for details.
    [FAILED]
    Starting mysql (via systemctl):  [  OK  ]
    
    
    *************************************************
    * Running updatedb command. Please wait....
    *************************************************
    
    real    0m1.068s
    user    0m0.031s
    sys     0m0.138s
    *************************************************
    * Increase system Entropy pool availability
    *************************************************
    Created symlink from /etc/systemd/system/multi-user.target.wants/haveged.service                                                                                                                                                              to /usr/lib/systemd/system/haveged.service.
    [Service]
    ExecStart=
    ExecStart=/usr/sbin/haveged -w 4067 -v 1 --Foreground
    *************************************************
    * Post-Install Check List....
    *************************************************
    
    --------------------------------------------------------
    Check ccache Version:
    --------------------------------------------------------
    which: no ccache in (/opt/rh/devtoolset-4/root/usr/bin:/opt/rh/devtoolset-4/root                                                                                                                                                             /usr/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/                                                                                                                                                             usr/bin:/root/bin)
    inc/centminfinish.inc: line 44: -V: command not found
    
    --------------------------------------------------------
    Check Nginx Version:
    --------------------------------------------------------
    which: no nginx in (/opt/rh/devtoolset-4/root/usr/bin:/opt/rh/devtoolset-4/root/                                                                                                                                                             usr/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/u                                                                                                                                                             sr/bin:/root/bin)
    can not find nginx binary.. install failed
    
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    which: no php in (/opt/rh/devtoolset-4/root/usr/bin:/opt/rh/devtoolset-4/root/us                                                                                                                                                             r/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr                                                                                                                                                             /bin:/root/bin)
    inc/centminfinish.inc: line 68: -v: command not found
    
    --------------------------------------------------------
    Check MariaDB installed RPM Versions:
    --------------------------------------------------------
    MariaDB-compat-10.1.21-1.el7.centos.x86_64
    MariaDB-common-10.1.21-1.el7.centos.x86_64
    MariaDB-server-10.1.21-1.el7.centos.x86_64
    MariaDB-shared-10.1.21-1.el7.centos.x86_64
    MariaDB-client-10.1.21-1.el7.centos.x86_64
    MariaDB-devel-10.1.21-1.el7.centos.x86_64
    
    --------------------------------------------------------
    Check Memcached Server Version:
    --------------------------------------------------------
    memcached 1.4.35
    
    --------------------------------------------------------
    Check CSF Firewall Version:
    --------------------------------------------------------
    which: no csf in (/opt/rh/devtoolset-4/root/usr/bin:/opt/rh/devtoolset-4/root/us                                                                                                                                                             r/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr                                                                                                                                                             /bin:/root/bin)
    inc/centminfinish.inc: line 87: -v: command not found
    
    --------------------------------------------------------
    Check Siege Benchmark Version:
    --------------------------------------------------------
    which: no siege in (/opt/rh/devtoolset-4/root/usr/bin:/opt/rh/devtoolset-4/root/                                                                                                                                                             usr/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/u                                                                                                                                                             sr/bin:/root/bin)
    inc/centminfinish.inc: line 94: -V: command not found
    
    --------------------------------------------------------
    Check ngx_pagespeed Control Script:
    http://centminmod.com/nginx_ngx_pagespeed.html
    --------------------------------------------------------
    pscontrol admin
    pscontrol handler
    pscontrol edit
    pscontrol on
    pscontrol off
    pscontrol statson
    pscontrol statsoff
    
    --------------------------------------------------------
    Check mysqlreport version:
    
     
    • Informative Informative x 2
  5. ljseals

    ljseals Member

    88
    22
    8
    Dec 20, 2016
    Ratings:
    +43
    Local Time:
    2:41 AM
  6. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    @ljseals in your case, ccache which is crucial to all source compiles failed to download completely so could be a network issue on your server
    Code (Text):
    [1;33;40mDownload ccache-3.3.4.tar.gz ...
    (B[mInitializing download: https://centminmod.com/centminmodparts/ccache/ccache-3.3.4.tar.gz
    File size: 449905 bytes
    Opening output file ccache-3.3.4.tar.gz
    Starting download
    
    [  0%]  .......... .......... .......... .......... ..........  [ 509.8KB/s]
    [ 11%]  .......... .......... .......... .......... ..........  [1035.8KB/s]
    [ 22%]  .......... .......... .......... .......... ..........  [1504.8KB/s]
    [ 34%]  .......... .......... .......... .......... ..........  [1969.9KB/s]
    [ 45%]  .......... .......... .......... .......... ..........  [2481.9KB/s]
    [ 56%]  .......... .......... .......... .......... ..........  [2938.4KB/s]
    [ 68%]  .......... .......... .......... .......... ..........  [3032.2KB/s]
    [ 79%]  .......... .......... .......... .......... ..........  [3050.4KB/s]
    [ 91%]  .......... .......... .......... .........
    Connection 0 finished
    
    Downloaded 439.4 Kilobyte in 0 seconds. (1097.32 KB/s)
    /usr/local/src/centminmod/centmin.sh: line 889: 12493 Aborted                 $DOWNLOADAPP $1 $2 $3 $4
    [1;32;40mError: ccache-3.3.4.tar.gz download failed.
    

    on server what do you get for these commands
    Code (Text):
    curl -I https://centminmod.com/centminmodparts/ccache/ccache-3.3.4.tar.gz
    

    Code (Text):
    wget -O /dev/null https://centminmod.com/centminmodparts/ccache/ccache-3.3.4.tar.gz
    
     
    • Like Like x 1
  7. ljseals

    ljseals Member

    88
    22
    8
    Dec 20, 2016
    Ratings:
    +43
    Local Time:
    2:41 AM
    Oh well, I may have did that as I was trying to mimic your template OVH install on swap cache. https://community.centminmod.com/posts/40669/ I will try it again as I change the sawp ccache from 512 to 2 gigs....God bless you!

    Code:
    [root@srv2 ~]# curl -I https://centminmod.com/centminmodparts/ccache/ccache-3.3.4.tar.gz
    HTTP/1.1 200 OK
    Date: Mon, 13 Mar 2017 07:16:49 GMT
    Content-Type: application/octet-stream
    Content-Length: 449905
    Connection: keep-alive
    Last-Modified: Wed, 08 Mar 2017 01:58:39 GMT
    ETag: "58bf654f-6dd71"
    Expires: Wed, 12 Apr 2017 07:04:03 GMT
    Link: <http://centminmod.com/centminmodparts/ccache/ccache-3.3.4.tar.gz>; rel="canonical"
    Server: nginx centminmod
    X-Powered-By: centminmod
    Cache-Control: max-age=2592000
    PS-CapabilityList: LargeScreen.SkipUADependentOptimizations
    X-Pcache: HIT
    Accept-Ranges: bytes
    
    [root@srv2 ~]# wget -O /dev/null https://centminmod.com/centminmodparts/ccache/ccache-3.3.4.tar.gz
    --2017-03-13 07:17:37--  https://centminmod.com/centminmodparts/ccache/ccache-3.3.4.tar.gz
    Resolving centminmod.com... 45.63.18.5
    Connecting to centminmod.com|45.63.18.5|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 449905 (439K) [application/octet-stream]
    Saving to: ‘/dev/null’
    
    /dev/null                                                   100%[========================================================================================================================================>] 439.36K  --.-KB/s    in 0.08s
    
    2017-03-13 07:17:37 (5.29 MB/s) - ‘/dev/null’ saved [449905/449905]
    
     
  8. ljseals

    ljseals Member

    88
    22
    8
    Dec 20, 2016
    Ratings:
    +43
    Local Time:
    2:41 AM
    Well that did not work....:) Total newbie still.. hehe LOL haha! Will e-mail Kimsufi...
     
  9. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    try one more time i added a few fallback mirrors for ccache
     
    • Like Like x 1
  10. ljseals

    ljseals Member

    88
    22
    8
    Dec 20, 2016
    Ratings:
    +43
    Local Time:
    2:41 AM
    Thanks @eva2000 still did not work will wait to see what OVH will say. I thank the Lord for touching your heart. God bless you!
     
  11. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    got the install log?
     
  12. ljseals

    ljseals Member

    88
    22
    8
    Dec 20, 2016
    Ratings:
    +43
    Local Time:
    2:41 AM
  13. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    that looks good, so all fine on latest install ?

    note the install log reveals user/passwords so in future either mask those or just reinstall fresh so you get new sets of user/passwords
     
    • Like Like x 1
  14. ljseals

    ljseals Member

    88
    22
    8
    Dec 20, 2016
    Ratings:
    +43
    Local Time:
    2:41 AM
    Sorry, it works great now!. I thank the Lord for touching your heart. My prayer is that you continue to ask the Lord for his help. The software is brilliant and I know it is a personal dev for your servers but I am thankful to the Lord that you have shared it. I know you spend many hours on it and the writing of all the tutorials and the forum requests and I know that we can come across as not being grateful at times but I thank the Lord for your understanding as it has been a blessing to me and my business. God bless you!
     
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    6:41 PM
    Nginx 1.13.x
    MariaDB 5.5
    excellent :)