Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx The service NGINX don't start

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

  1. netkom

    netkom New Member

    1
    0
    1
    Mar 28, 2017
    Ratings:
    +0
    Local Time:
    8:39 PM
    Hi,

    I have install centminmod and the service nginx don't start, i have an error :

    systemctl status httpd
    Unit httpd.service could not be found.
    [root@vps375114 centminmod]# systemctl status nginx.service
    â 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 lun. 2017-03-27 16:16:01 UTC; 5min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 4665 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=5)

    mars 27 16:16:01 vps375114.ovh.net systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IM...er...
    mars 27 16:16:01 vps375114.ovh.net systemd[1]: nginx.service: control process exited, code=exited status=5
    mars 27 16:16:01 vps375114.ovh.net systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy...rver.
    mars 27 16:16:01 vps375114.ovh.net systemd[1]: Unit nginx.service entered failed state.
    mars 27 16:16:01 vps375114.ovh.net systemd[1]: nginx.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.

    and other informations :

    [root@vps375114 centminmod]# journalctl -xe
    -- Defined-By: systemd
    -- Support: systemd-devel Info Page
    --
    -- L'unité (unit) session-40.scope a commencé à démarrer.
    mars 27 16:30:01 vps375114.ovh.net CROND[4762]: (root) CMD (/usr/lib64/sa/sa1 1 1)
    mars 27 16:30:02 vps375114.ovh.net kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:91:39:e3:b6:f8:56:89:5d:5a:08:
    mars 27 16:30:11 vps375114.ovh.net kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:91:39:e3:b6:f8:56:89:5d:5a:08:
    mars 27 16:30:37 vps375114.ovh.net crontab[4980]: (root) LIST (root)
    mars 27 16:31:06 vps375114.ovh.net kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:91:39:e3:b6:f8:56:89:5d:5a:08:
    mars 27 16:31:07 vps375114.ovh.net kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:91:39:e3:b6:f8:56:89:5d:5a:08:
    mars 27 16:31:20 vps375114.ovh.net kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:91:39:e3:b6:f8:56:89:5d:5a:08:
    mars 27 16:33:24 vps375114.ovh.net kernel: Firewall: *ICMP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:91:39:e3:b6:f8:56:89:5d:5a:08
    mars 27 16:33:28 vps375114.ovh.net kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:91:39:e3:b6:f8:56:89:5d:5a:08:
    mars 27 16:34:16 vps375114.ovh.net kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=fa:16:3e:91:39:e3:b6:f8:56:89:5d:5a:08:
    mars 27 16:34:43 vps375114.ovh.net polkitd[451]: Registered Authentication Agent for unix-process:6199:1791275 (system bus nam
    mars 27 16:34:43 vps375114.ovh.net systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
    -- Subject: L'unité (unit) nginx.service a commencé à démarrer
    -- Defined-By: systemd
    -- Support: systemd-devel Info Page
    --
    -- L'unité (unit) nginx.service a commencé à démarrer.
    mars 27 16:34:43 vps375114.ovh.net systemd[1]: nginx.service: control process exited, code=exited status=5
    mars 27 16:34:43 vps375114.ovh.net systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMA
    -- Subject: L'unité (unit) nginx.service a échoué
    -- Defined-By: systemd
    -- Support: systemd-devel Info Page
    --
    -- L'unité (unit) nginx.service a échoué, avec le résultat failed.
    mars 27 16:34:43 vps375114.ovh.net systemd[1]: Unit nginx.service entered failed state.
    mars 27 16:34:43 vps375114.ovh.net systemd[1]: nginx.service failed.
    mars 27 16:34:43 vps375114.ovh.net polkitd[451]: Unregistered Authentication Agent for unix-process:6199:1791275 (system bus n
    lines 1431-1461/1461 (END)



    CentOS Version: i.e. CentOS 7 64bit
    Centmin Mod Version Installed:
    i.e. 123-eva2000.08
    Nginx Version Installed:
    i.e. 1.11.10
    PHP Version Installed:
    5.6.30
    MariaDB MySQL Version Installed:
    10.0.21
    When was last time updated Centmin Mod code base ? :
    i.e. run centmin.sh menu option 23 submenu option 2 - i hav do now

    For the moment i'm blocked

    Thx for your help
    Frédéric
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:39 AM
    Nginx 1.13.x
    MariaDB 5.5
    For posting code or ssh outputs, you might want to use CODE tags for code How to use forum BBCODE code tags :)

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ?

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

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:39 AM
    Nginx 1.13.x
    MariaDB 5.5