Learn about Centmin Mod LEMP Stack today
Become a Member

Sysadmin Linode migrated my server, NGINX fails to start

Discussion in 'System Administration' started by RB1, Sep 28, 2017.

  1. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    3:51 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    Kind of curius how this happened.
    Linode migrated my server to a newer datacenter and my domains all have the same IP.

    Upon trying to start nginx, I get the error:
    Code (Text):
    Starting 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
    [FAILED]

    Troubleshooting with the first command reveals:
    Code (Text):
    ‚óŹ 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 Wed 2017-09-27 19:54:39 UTC; 2min 1s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 11053 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
    
    Sep 27 19:54:39 atlas systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Sep 27 19:54:39 atlas nginx[11053]: Starting nginx: /bin/bash: line 1: 11065 Illegal instruction     /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    Sep 27 19:54:39 atlas nginx[11053]: [FAILED]
    Sep 27 19:54:39 atlas systemd[1]: nginx.service: control process exited, code=exited status=1
    Sep 27 19:54:39 atlas systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Sep 27 19:54:39 atlas systemd[1]: Unit nginx.service entered failed state.
    Sep 27 19:54:39 atlas systemd[1]: nginx.service failed.


    I don't really know what to make of this error.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,606
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,297
    Local Time:
    9:51 AM
    Nginx 1.13.x
    MariaDB 5.5
    Linode host node cpu changed most likely. Centmin Mod compiles Nginx with specific cpu optimisations so if you run centmin.sh menu option 4 to recompile nginx and menu 5 to recompile php you should be fine

    The below is classic symptom of the issue
    Code (Text):
    Sep 27 19:54:39 atlas nginx[11053]: Starting nginx: /bin/bash: line 1: 11065 Illegal instruction     /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    Sep 27 19:54:39 atlas nginx[11053]: [FAILED]


    I did add to 123.09beta01 a new option that can address this before you move servers at https://community.centminmod.com/th...ive-option-for-123-09beta01-and-higher.12817/.
     
    • Winner Winner x 1
  3. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    3:51 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    Awesome! You're a life saver (and a server saver) :)
    Recompiling NGINX fixed the problem.

    Guess it's time to update PHP as well. Any reason to NOT upgrade PHP 7.0.x to 7.1.x?
     
  4. Jon Snow

    Jon Snow Active Member

    190
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    7:51 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    Compatibility issues with scripts you use that do not support PHP 7. You can always downgrade if you run into issues.
     
    • Like Like x 1